euidaccess: Update comments.
[gnulib.git] / ChangeLog
1 2011-09-20  Bruno Haible  <bruno@clisp.org>
2
3         euidaccess: Update comments.
4         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
5
6 2011-09-20  Bruno Haible  <bruno@clisp.org>
7
8         Ensure EBADF returns for socket functions on mingw.
9         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
10         descriptor is invalid.
11         * lib/bind.c (rpl_bind): Likewise.
12         * lib/connect.c (rpl_connect): Likewise.
13         * lib/getpeername.c (rpl_getpeername): Likewise.
14         * lib/getsockname.c (rpl_getsockname): Likewise.
15         * lib/getsockopt.c (rpl_getsockopt): Likewise.
16         * lib/listen.c (rpl_listen): Likewise.
17         * lib/recv.c (rpl_recv): Likewise.
18         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19         * lib/send.c (rpl_send): Likewise.
20         * lib/sendto.c (rpl_sendto): Likewise.
21         * lib/setsockopt.c (rpl_setsockopt): Likewise.
22         * lib/shutdown.c (rpl_shutdown): Likewise.
23
24 2011-09-20  Bruno Haible  <bruno@clisp.org>
25
26         select tests: EBADF tests.
27         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
28         test_bad_fd): New functions.
29         (test_function): Invoke also test_bad_fd.
30
31 2011-09-20  Bruno Haible  <bruno@clisp.org>
32
33         Tests for module 'posix_spawn_file_actions_addopen.
34         * modules/posix_spawn_file_actions_addopen-tests: New file.
35         * tests/test-posix_spawn_file_actions_addopen.c: New file.
36
37         Tests for module 'posix_spawn_file_actions_adddup2'.
38         * modules/posix_spawn_file_actions_adddup2-tests: New file.
39         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
40
41         Tests for module 'posix_spawn_file_actions_addclose'.
42         * modules/posix_spawn_file_actions_addclose-tests: New file.
43         * tests/test-posix_spawn_file_actions_addclose.c: New file.
44
45 2011-09-20  Bruno Haible  <bruno@clisp.org>
46
47         Tests for module 'unlockpt'.
48         * modules/unlockpt-tests: New file.
49         * tests/test-unlockpt.c: New file.
50         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
51
52         Tests for module 'grantpt'.
53         * modules/grantpt-tests: New file.
54         * tests/test-grantpt.c: New file.
55         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
56
57 2011-09-20  Bruno Haible  <bruno@clisp.org>
58
59         freopen tests: EBADF tests.
60         * tests/test-freopen.c: Include errno.h, unistd.h.
61         (main): Add tests for EBADF, commented out for the moment.
62
63         fclose tests: EBADF tests.
64         * tests/test-fclose.c (main): Add tests for EBADF.
65
66         fflush tests: EBADF tests.
67         * tests/test-fflush.c: Include errno.h, macros.h.
68         (main): Add tests for EBADF.
69
70         ftello tests: EBADF tests.
71         * tests/test-ftello4.sh: New file.
72         * tests/test-ftello4.c: New file.
73         * modules/ftello-tests (Files): Add them.
74         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
75
76         fseeko tests: EBADF tests.
77         * tests/test-fseeko4.sh: New file.
78         * tests/test-fseeko4.c: New file.
79         * modules/fseeko-tests (Files): Add them.
80         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
81
82         Tests for function fputc().
83         * modules/fputc-tests: New file.
84         * tests/test-fputc.c: New file.
85         * modules/stdio-tests (Depends-on): Add fputc-tests.
86
87         Tests for function fgetc().
88         * modules/fgetc-tests: New file.
89         * tests/test-fgetc.c: New file.
90         * modules/stdio-tests (Depends-on): Add fgetc-tests.
91
92         Tests for function fdopen().
93         * modules/fdopen-tests: New file.
94         * tests/test-fdopen.c: New file.
95         * modules/stdio-tests (Depends-on): Add fdopen-tests.
96
97         Tests for module 'vdprintf'.
98         * modules/vdprintf-tests: New file.
99         * tests/test-vdprintf.c: New file.
100
101         Tests for module 'dprintf'.
102         * modules/dprintf-tests: New file.
103         * tests/test-dprintf.c: New file.
104
105 2011-09-20  Bruno Haible  <bruno@clisp.org>
106
107         Tests for module 'ioctl'.
108         * modules/ioctl-tests: New file.
109         * tests/test-ioctl.c: New file.
110
111 2011-09-20  Bruno Haible  <bruno@clisp.org>
112
113         fcntl tests: EBADF tests.
114         * tests/test-fcntl.c (main): Add more tests for EBADF.
115
116 2011-09-20  Bruno Haible  <bruno@clisp.org>
117
118         utimensat tests: EBADF tests.
119         * tests/test-utimensat.c (main): Add tests for EBADF.
120
121         renameat tests: EBADF tests.
122         * tests/test-renameat.c (main): Add tests for EBADF.
123
124         mkfifoat tests: EBADF tests.
125         * tests/test-mkfifoat.c (main): Add tests for EBADF.
126
127         readlinkat tests: EBADF tests.
128         * tests/test-readlinkat.c (main): Add tests for EBADF.
129
130         symlinkat tests: EBADF tests.
131         * tests/test-symlinkat.c (main): Add tests for EBADF.
132
133         linkat tests: EBADF tests.
134         * tests/test-linkat.c (main): Add tests for EBADF.
135
136         Tests for module 'faccessat'.
137         * modules/faccessat-tests: New file.
138         * tests/test-faccessat.c: New file.
139
140         fdopendir tests: EBADF tests.
141         * tests/test-fdopendir.c (main): Add more tests for EBADF.
142
143         openat tests: EBADF tests.
144         * tests/test-fchownat.c (main): Add tests for EBADF.
145         * tests/test-fstatat.c (main): Likewise.
146         * tests/test-mkdirat.c (main): Likewise.
147         * tests/test-openat.c (main): Likewise.
148         * tests/test-unlinkat.c (main): Likewise.
149         * tests/test-fchmodat.c: New file.
150         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
151         (Makefile.am): Also run 'test-fchmodat'.
152
153 2011-09-20  Bruno Haible  <bruno@clisp.org>
154
155         utimens, futimens, fdutimensat tests: EBADF tests.
156         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
157
158         Tests for function fstat().
159         * modules/fstat-tests: New file.
160         * tests/test-fstat.c: New file.
161         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
162
163 2011-09-20  Bruno Haible  <bruno@clisp.org>
164
165         test-ttyname_r tests: EBADF tests.
166         * tests/test-ttyname_r.c (main): Add tests for EBADF.
167
168         Tests for module 'isatty'.
169         * modules/isatty-tests: New file.
170         * tests/test-isatty.c: New file.
171
172         Tests for module 'write'.
173         * modules/write-tests: New file.
174         * tests/test-write.c: New file.
175
176         Tests for module 'read'.
177         * modules/read-tests: New file.
178         * tests/test-read.c: New file.
179
180         pwrite tests: EBADF tests.
181         * tests/test-pwrite.c (main): Add tests for EBADF.
182
183         pread tests: EBADF tests.
184         * tests/test-pread.c (main): Add tests for EBADF.
185
186         lseek tests: EBADF tests.
187         * tests/test-lseek.c (main): Add more tests for EBADF.
188
189         Tests for module 'ftruncate'.
190         * modules/ftruncate-tests: New file.
191         * tests/test-ftruncate.sh: New file.
192         * tests/test-ftruncate.c: New file.
193
194         fsync tests: EBADF tests.
195         * tests/test-fsync.c (main): Add more tests for EBADF.
196
197         fdatasync tests: EBADF tests.
198         * tests/test-fdatasync.c (main): Add more tests for EBADF.
199
200         Tests for module 'fchown'.
201         * modules/fchown-tests: New file.
202         * tests/test-fchown.c: New file.
203
204         Tests for module 'fchmod'.
205         * modules/fchmod-tests: New file.
206         * tests/test-fchmod.c: New file.
207
208         fchdir tests: EBADF tests.
209         * tests/test-fchdir.c (main): Add more tests for EBADF.
210
211         dup2 tests: EBADF tests.
212         * tests/test-dup2.c (main): Add more tests for EBADF.
213
214         Tests for module 'dup'.
215         * modules/dup-tests: New file.
216         * tests/test-dup.c: New file.
217
218         Tests for module 'close'.
219         * modules/close-tests: New file.
220         * tests/test-close.c: New file.
221
222 2011-09-20  Bruno Haible  <bruno@clisp.org>
223
224         Tests for module 'shutdown'.
225         * modules/shutdown-tests: New file.
226         * tests/test-shutdown.c: New file.
227
228         Tests for module 'setsockopt'.
229         * modules/setsockopt-tests: New file.
230         * tests/test-setsockopt.c: New file.
231
232         Tests for module 'sendto'.
233         * modules/sendto-tests: New file.
234         * tests/test-sendto.c: New file.
235
236         Tests for module 'send'.
237         * modules/send-tests: New file.
238         * tests/test-send.c: New file.
239
240         Tests for module 'recvfrom'.
241         * modules/recvfrom-tests: New file.
242         * tests/test-recvfrom.c: New file.
243
244         Tests for module 'recv'.
245         * modules/recv-tests: New file.
246         * tests/test-recv.c: New file.
247
248         Tests for module 'listen'.
249         * modules/listen-tests: New file.
250         * tests/test-listen.c: New file.
251
252         Tests for module 'getsockopt'.
253         * modules/getsockopt-tests: New file.
254         * tests/test-getsockopt.c: New file.
255
256         Tests for module 'getsockname'.
257         * modules/getsockname-tests: New file.
258         * tests/test-getsockname.c: New file.
259
260         Tests for module 'getpeername'.
261         * modules/getpeername-tests: New file.
262         * tests/test-getpeername.c: New file.
263
264         Tests for module 'connect'.
265         * modules/connect-tests: New file.
266         * tests/test-connect.c: New file.
267
268         Tests for module 'bind'.
269         * modules/bind-tests: New file.
270         * tests/test-bind.c: New file.
271
272         accept4 tests: Fix for native Windows.
273         * tests/test-accept4.c: Include sockets.h.
274         (main): Invoke gl_sockets_startup.
275         * modules/accept4-tests (Depends-on): Add sockets.
276
277         accept tests: Fix for native Windows.
278         * tests/test-accept.c: Include sockets.h.
279         (main): Invoke gl_sockets_startup.
280         * modules/accept-tests (Depends-on): Add sockets.
281
282 2011-09-19  Bruno Haible  <bruno@clisp.org>
283
284         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
285         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
286         do...while(0).
287         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
288         Suggested by Paul Eggert.
289
290 2011-09-19  Bruno Haible  <bruno@clisp.org>
291
292         sched: Ensure pid_t is defined.
293         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
294         not define pid_t.
295         * lib/sched.in.h: Include <sys/types.h>.
296         * doc/posix-headers/sched.texi: Mention the pid_t problem.
297         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
298
299 2011-09-19  Bruno Haible  <bruno@clisp.org>
300
301         msvc-inval: Ensure the entire expansion is a single statement.
302         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
303         of braces.
304
305 2011-09-19  Jim Meyering  <meyering@redhat.com>
306
307         tests: use printf, not echo in init.sh's warn_ function
308         * tests/init.sh (warn_): Use printf, not echo.  The latter would
309         misbehave when given strings containing a backslash or starting
310         with e.g., -n.  James Youngman suggested setting IFS.
311
312 2011-09-19  Eric Blake  <eblake@redhat.com>
313
314         futimens: enhance test
315         * tests/test-futimens.h (test_futimens): Also check for EBADF on
316         closed non-negative fd.
317
318         date: accept 'hence' as opposite of 'ago'
319         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
320         * tests/test-parse-datetime.c (main): Enhance test.
321         Suggested by Jesse Wilson.
322
323 2011-09-19  Jim Meyering  <meyering@redhat.com>
324
325         getcwd: don't fail in a deep directory on a system without openat
326         Before this change, getcwd would fail when called from a directory
327         of depth PATH_MAX / 3 or greater.  That was due to the fact that
328         the non-openat implementation used "..", "../..", "../../..", etc.
329         to access ancestor directories.  With too many, that string would
330         be longer than PATH_MAX.
331         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
332         using gnulib's openat replacement.
333         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
334         we're using the replacement function.
335
336 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
337
338         maint.mk: avoid warnings from perl about missing files
339         * top/maint.mk (def_sym_regex): Ignore files listed in
340         $(gl_other_headers_) that do not exist, say because a project
341         does not use a corresponding module.
342
343 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
344
345         stat: use pathmax.h only if needed
346         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
347         This is better for Emacs, which does not have a mingw port and
348         therefore can avoid the pathmax module.
349
350         utimens: remove dependency on dup2
351         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
352         to work around the Linux kernel bug.
353         * modules/utimens (Depends-on): Remove dup2.
354
355 2011-09-18  Bruno Haible  <bruno@clisp.org>
356
357         inet_ntop, inet_pton: Look for it also in libresolv.
358         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
359         libnsl, search for it in libresolv.
360         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
361         Needed on Solaris 7.
362
363 2011-09-18  Bruno Haible  <bruno@clisp.org>
364
365         accept, accept4 tests: Avoid link error on Solaris.
366         * modules/accept-tests (Makefile.am): Link test-accept against
367         $(LIBSOCKET).
368         * modules/accept4-tests (Makefile.am): Link test-accept4 against
369         $(LIBSOCKET).
370
371         accept4: Avoid link error on Solaris.
372         * modules/accept4 (Link): New section.
373
374         socket functions: Avoid link errors on Solaris.
375         * modules/accept (Depends-on): Add socketlib.
376         (Link): New section.
377         * modules/bind (Depends-on): Add socketlib.
378         (Link): New section.
379         * modules/connect (Depends-on): Add socketlib.
380         (Link): New section.
381         * modules/getpeername (Depends-on): Add socketlib.
382         (Link): New section.
383         * modules/getsockname (Depends-on): Add socketlib.
384         (Link): New section.
385         * modules/getsockopt (Depends-on): Add socketlib.
386         (Link): New section.
387         * modules/listen (Depends-on): Add socketlib.
388         (Link): New section.
389         * modules/recv (Depends-on): Add socketlib.
390         (Link): New section.
391         * modules/recvfrom (Depends-on): Add socketlib.
392         (Link): New section.
393         * modules/send (Depends-on): Add socketlib.
394         (Link): New section.
395         * modules/sendto (Depends-on): Add socketlib.
396         (Link): New section.
397         * modules/setsockopt (Depends-on): Add socketlib.
398         (Link): New section.
399         * modules/shutdown (Depends-on): Add socketlib.
400         (Link): New section.
401         * modules/socket (Depends-on): Add socketlib.
402         (Link): New section.
403
404 2011-09-18  Bruno Haible  <bruno@clisp.org>
405
406         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
407         * tests/test-ptsname.c (main): Terminate the test if it takes longer
408         than 5 seconds.
409         * modules/ptsname-tests (configure.ac): Test for alarm.
410
411 2011-09-18  Bruno Haible  <bruno@clisp.org>
412
413         posix_spawn_file_actions_add*: Fix module dependencies.
414         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
415         posix_spawn_file_actions_init.
416         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
417         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
418
419 2011-09-18  Bruno Haible  <bruno@clisp.org>
420
421         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
422         * tests/test-rename.h (test_rename): Allow error code EEXIST.
423         * tests/test-renameat.c (main): Likewise.
424
425 2011-09-18  Bruno Haible  <bruno@clisp.org>
426
427         Tests for module 'accept4'.
428         * modules/accept4-tests: New file.
429         * tests/test-accept4.c: New file.
430
431 2011-09-18  Bruno Haible  <bruno@clisp.org>
432
433         Tests for module 'accept'.
434         * modules/accept-tests: New file.
435         * tests/test-accept.c: New file.
436
437 2011-09-18  Bruno Haible  <bruno@clisp.org>
438
439         dup2: Support for MSVC.
440         * lib/dup2.c: Include msvc-inval.h.
441         (rpl_dup2): Handle invalid parameter notifications during dup2 and
442         _get_osfhandle calls.
443         * modules/dup2 (Depends-on): Add msvc-inval.
444         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
445
446         New module 'msvc-inval'.
447         * lib/msvc-inval.h: New file.
448         * lib/msvc-inval.c: New file.
449         * m4/msvc-inval.m4: New file.
450         * modules/msvc-inval: New file.
451
452 2011-09-17  Bruno Haible  <bruno@clisp.org>
453
454         Tests for module 'pclose'.
455         * modules/pclose-tests: New file.
456
457         New module 'pclose'.
458         * lib/stdio.in.h (pclose): New declaration.
459         * lib/pclose.c: New file.
460         * m4/pclose.m4: New file.
461         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
462         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
463         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
464         * modules/pclose: New file.
465         * modules/popen-tests (Depends-on): Add pclose.
466         * modules/popen-safer-tests (Depends-on): Likewise.
467         * doc/posix-functions/pclose.texi: Mention the new module.
468
469 2011-09-17  Bruno Haible  <bruno@clisp.org>
470
471         popen: Support for MSVC.
472         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
473         * lib/popen.c (popen): Provide alternate definition for native Windows.
474         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
476         * modules/popen (Depends-on, configure.ac): Update condition.
477         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
478         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
479         fixed.
480
481 2011-09-17  Bruno Haible  <bruno@clisp.org>
482
483         isnanl, isnand, isnanf: Work around MSVC bug.
484         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
485
486 2011-09-17  Bruno Haible  <bruno@clisp.org>
487
488         sys_socket tests: Fix recent mistake.
489         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
490
491 2011-09-17  Bruno Haible  <bruno@clisp.org>
492
493         putenv: Support for MSVC.
494         * modules/putenv (Depends-on): Add environ.
495         * lib/putenv.c (environ): Disable declaration.
496         * lib/unistd.in.h: Update comment.
497
498 2011-09-17  Bruno Haible  <bruno@clisp.org>
499
500         math: Avoid macro redefinition warnings on MSVC.
501         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
502         Undefine before redefining.
503
504 2011-09-17  Bruno Haible  <bruno@clisp.org>
505
506         doc: Mention functions which are declared as macros.
507         * doc/posix-functions/*[fl].texi: Mention that some functions are
508         defined as macros with arguments only.
509
510 2011-09-17  Bruno Haible  <bruno@clisp.org>
511
512         Add dependencies to new dirent related modules.
513         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
514         * modules/fts (Depends-on): Likewise.
515         * modules/glob (Depends-on): Likewise.
516         * modules/savedir (Depends-on): Likewise.
517         * modules/scandir (Depends-on): Likewise.
518         * modules/dirent-safer (Depends-on): Add opendir, closedir.
519         * modules/fdopendir (Depends-on): Add opendir.
520
521 2011-09-17  Bruno Haible  <bruno@clisp.org>
522
523         inet_pton: Support for MSVC on Windows Vista or newer.
524         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
525         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
526         HAVE_DECL_INET_PTON is defined.
527         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
528         On platforms with <winsock2.h>, test whether inet_pton is declared in
529         <ws2tcpip.h>. If so, arrange to replace it.
530         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
531         REPLACE_INET_PTON.
532         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
533         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
534         (Depends-on, configure.ac): Update condition.
535         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
536
537 2011-09-17  Bruno Haible  <bruno@clisp.org>
538
539         inet_ntop: Support for MSVC on Windows Vista or newer.
540         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
541         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
542         HAVE_DECL_INET_NTOP is defined.
543         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
544         On platforms with <winsock2.h>, test whether inet_ntop is declared in
545         <ws2tcpip.h>. If so, arrange to replace it.
546         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
547         REPLACE_INET_NTOP.
548         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
549         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
550         (Depends-on, configure.ac): Update condition.
551         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
552
553 2011-09-16  Eric Blake  <eblake@redhat.com>
554
555         test-fsync: yet another enhancement
556         * tests/test-fsync.c (main): Also test behavior on read-only text
557         file.
558
559 2011-09-16  Bruno Haible  <bruno@clisp.org>
560
561         Enhance fsync, fdatasync tests.
562         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
563         * tests/test-fdatasync.c (main): Likewise.
564
565 2011-09-16  Bruno Haible  <bruno@clisp.org>
566
567         Support for MSVC compiler: Ensure mode_t gets defined.
568         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
569         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
570         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
571         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
572         * tests/test-fcntl-h.c: Check that mode_t is defined.
573         * tests/test-sys_stat.c: Likewise.
574         * tests/test-sys_types.c: Likewise.
575         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
576         * doc/posix-headers/sys_stat.texi: Likewise.
577         * doc/posix-headers/sys_types.texi: Likewise.
578
579 2011-09-16  Bruno Haible  <bruno@clisp.org>
580
581         sys_stat: Support for MSVC.
582         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
583         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
584         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
585         MSVC.
586
587 2011-09-16  Bruno Haible  <bruno@clisp.org>
588
589         Support for MSVC compiler: Ensure off_t gets defined.
590         * lib/unistd.in.h: Include <sys/types.h>.
591         * tests/test-fcntl-h.c: Check that off_t is defined.
592         * tests/test-sys_stat.c: Likewise.
593         * tests/test-sys_types.c: Likewise.
594
595 2011-09-16  Eric Blake  <eblake@redhat.com>
596
597         fdatasync: port to Solaris
598         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
599         * modules/fdatasync (Link): Document it.
600         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
601
602         fdatasync: port to MacOS X 10.7
603         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
604         declared.
605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
606         * modules/unistd (Makefile.am): Substitute it.
607         * lib/unistd.in.h (fdatasync): Declare on MacOS.
608         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
609
610         fdatasync: minor improvements
611         * modules/fdatasync (Depends-on): Add condition for fsync.
612         * lib/fdatasync.c (fdatasync): Add comment.
613         * tests/test-unistd-c++.cc: Test fdatasync.
614
615         unistd: update refs to newer POSIX
616         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
617         Suggested by Bruno Haible.
618
619         fdatasync: new module
620         * modules/fsync (Description): Document difference to fdatasync.
621         * modules/fdatasync: New module.
622         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
623         * lib/fdatasync.c (fdatasync): Likewise.
624         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
625         defaults.
626         * modules/unistd (Makefile.am): Set witnesses.
627         * lib/unistd.in.h (fdatasync): Declare.
628         * MODULES.html.sh: Document it.
629         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
630         * modules/fdatasync-tests: New test.
631         * tests/test-fdatasync.c: Likewise.
632
633 2011-09-16  Eric Blake  <eblake@redhat.com>
634
635         test-fsync: enhance tests
636         * modules/fsync-tests (Depends-on): Add errno, for mingw.
637         * tests/test-fsync.c (main): Enhance test.
638
639 2011-09-15  Bruno Haible  <bruno@clisp.org>
640
641         Support for MSVC compiler: Ensure ssize_t gets defined.
642         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
643         * doc/posix-headers/stdio.texi: Likewise.
644         * modules/stdio (Depends-on): Add ssize_t.
645         * modules/sys_socket (Depends-on): Likewise.
646         * modules/sys_types (Depends-on): Likewise.
647         * modules/sys_uio (Depends-on): Likewise.
648         * modules/unistd (Depends-on): Likewise.
649         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
650         * tests/test-sys_types.c: Check that ssize_t is defined.
651
652 2011-09-14  Bruno Haible  <bruno@clisp.org>
653
654         Avoid using #, the m4 comment starter character, near brackets.
655         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
656         delimiter character in sed expressions.
657         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
658         Suggested by Eric Blake.
659
660         Properly quote AC_CHECK_DECLS' 4th argument.
661         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
662         argument.
663         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
664         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
665         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
666         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
667         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
668         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
669         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
670         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
671         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
672         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
673         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
674         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
675         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
676         * m4/isinf.m4 (gl_ISINF): Likewise.
677         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
678         * m4/readutmp.m4 (gl_READUTMP): Likewise.
679         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
680         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
681         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
682         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
683         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
684         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
685         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
686         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
687         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
688         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
689         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
690         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
691         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
692         Reported by Eric Blake.
693
694         Properly quote AC_CHECK_DECL's 4th argument.
695         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
696         argument.
697         * m4/argp.m4 (gl_ARGP): Likewise.
698         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
699         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
700         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
701         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
702         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
703         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
704         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
705         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
706         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
707         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
708         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
709         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
710         Reported by Eric Blake.
711
712 2011-09-14  Eric Blake  <eblake@redhat.com>
713
714         opendir: avoid compile warning
715         * lib/opendir.c (includes): Always include errno.h.
716         Reported by Tatsuro MATSUOKA.
717
718 2011-09-14  Jim Meyering  <meyering@redhat.com>
719
720         maint.mk: sc_tight_scope: propagate failure from sub-make
721         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
722         Reported by Martin von Gagern.
723
724 2011-09-13  Bruno Haible  <bruno@clisp.org>
725
726         tempname: Support for MSVC.
727         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
728         MSVC.
729         * modules/tempname (Depends-on): Add fcntl-h.
730
731 2011-09-13  Bruno Haible  <bruno@clisp.org>
732
733         sys_time: Support for MSVC.
734         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
735         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
736         include <winsock2.h>.
737         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
738         function declarations that collide with POSIX.
739         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
740         (Makefile.am): Substitute HAVE_WINSOCK2_H.
741
742 2011-09-13  Bruno Haible  <bruno@clisp.org>
743
744         stat: Support for MSVC.
745         * lib/stat.c: Include pathmax.h.
746         * modules/stat (Depends-on): Add pathmax.
747
748         pathmax: Support for native Windows.
749         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
750
751 2011-09-12  Bruno Haible  <bruno@clisp.org>
752
753         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
754         * lib/dirent.in.h (struct dirent): New type.
755         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
756         DT_WHT): New macros.
757         (DIR): New type.
758         (opendir, closedir): Declare only if the module 'opendir' is enabled.
759         (readdir, rewinddir): New declarations.
760         * lib/dirent-private.h: New file.
761         * lib/opendir.c: New file.
762         * lib/readdir.c: New file.
763         * lib/rewinddir.c: New file.
764         * lib/closedir.c: New file.
765         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
766         * m4/opendir.m4: New file.
767         * m4/readdir.m4: New file.
768         * m4/rewinddir.m4: New file.
769         * m4/closedir.m4: New file.
770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
771         REPLACE_CLOSEDIR here.
772         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
773         readdir, rewinddir are declared.
774         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
775         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
776         HAVE_REWINDDIR, HAVE_CLOSEDIR.
777         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
778         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
779         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
780         * modules/opendir: New file.
781         * modules/readdir: New file.
782         * modules/rewinddir: New file.
783         * modules/closedir: New file.
784         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
785         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
786         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
787         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
788         * NEWS: Mention the 'fchdir' change.
789
790 2011-09-11  Bruno Haible  <bruno@clisp.org>
791
792         asm-underscore.m4: Support for MSVC.
793         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
794         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
795
796 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
797
798         Doc about crypt functions.
799         * doc/posix-functions/crypt.texi: Expand range of glibc versions
800         needing for _GNU_SOURCE to get crypt.
801         * doc/posix-functions/encrypt.texi: Likewise.
802         * doc/posix-functions/setkey.texi: Likewise.
803
804 2011-09-11  Bruno Haible  <bruno@clisp.org>
805
806         doc: Update regarding MSVC 9.
807         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
808         tested".
809         * doc/posix-functions/*.texi: Update with info about MSVC 9.
810         * doc/posix-headers/*.texi: Likewise.
811         * doc/pastposix-functions/*.texi: Likewise.
812         * doc/glibc-functions/*.texi: Likewise.
813         * doc/glibc-headers/*.texi: Likewise.
814
815 2011-09-11  Bruno Haible  <bruno@clisp.org>
816
817         unistd et al.: Don't assume <unistd.h> exists.
818         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
819         does not exist.
820         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
821         exist. But include <stdlib.h>.
822         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
823         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
824         symlink() does not exist.
825         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
826         include <io.h> instead.
827         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
828         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
829         include <direct.h> instead.
830         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
831         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
832         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
833         <io.h> instead.
834         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
835         correctly if the system does not have hard links.
836         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
837         <direct.h> instead.
838         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
839         it when looking for function declarations.
840         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
841         <direct.h> and <io.h> instead.
842         * doc/posix-headers/unistd.texi: More details about MSVC problem.
843
844 2011-09-11  Bruno Haible  <bruno@clisp.org>
845
846         strcase: Support for MSVC.
847         * modules/strcase (Status, Notice): Remove obsoletion mark.
848         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
849         * doc/posix-functions/strncasecmp.texi: Likewise.
850
851         strings: Don't assume <strings.h> exists.
852         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
853         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
854         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
855         * doc/posix-headers/strings.texi: Mention the MSVC problem.
856
857 2011-09-11  Bruno Haible  <bruno@clisp.org>
858
859         dirent: Don't assume <dirent.h> exists.
860         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
861         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
862         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
863         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
864
865 2011-09-11  Bruno Haible  <bruno@clisp.org>
866
867         Fix wint_t on MSVC.
868         * lib/wchar.in.h (wint_t): On MSVC, override it.
869         * lib/wctype.in.h (wint_t): Likewise.
870         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
871         MSVC.
872         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
873         * doc/posix-headers/wctype.texi: Likewise.
874
875 2011-09-11  Bruno Haible  <bruno@clisp.org>
876
877         sys_types: Fix typo.
878         * lib/sys_types.in.h: Fix typo in comment.
879         Reported by Paul Eggert.
880
881         Support for MSVC compiler: Ensure size_t gets defined.
882         * modules/strings (Depends-on): Add 'sys_types'.
883         * modules/sys_uio (Depends-on): Likewise.
884         * lib/sys_uio.in.h: Update comment.
885
886         C++ tests for module 'sys_types'.
887         * modules/sys_types-c++-tests: New file.
888         * tests/test-sys_types-c++.cc: New file.
889
890         Tests for module 'sys_types'.
891         * modules/sys_types-tests: New file.
892         * tests/test-sys_types.c: New file.
893
894         New module 'sys_types'.
895         * lib/sys_types.in.h: New file.
896         * m4/sys_types_h.m4: New file.
897         * modules/sys_types: New file.
898         * doc/posix-headers/sys_types.texi: Mention the new module and the
899         size_t problem on MSVC 9.
900
901 2011-09-11  Bruno Haible  <bruno@clisp.org>
902
903         Support for MSVC compiler: Avoid division by a literal 0.
904         * lib/math.in.h (NAN): Define through a function call also on MSVC.
905         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
906         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
907         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
908         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
909         * tests/infinity.h: New file.
910         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
911         on MSVC.
912         * tests/test-ceilf1.c: Include infinity.h.
913         (main): Use Infinityf.
914         * tests/test-ceil1.c: Include infinity.h.
915         (main): Use Infinityd.
916         * tests/test-ceill.c: Include infinity.h.
917         (main): Use Infinityl.
918         * tests/test-dprintf-posix.c: Include infinity.h.
919         (test_function): Use Infinityd.
920         * tests/test-floorf1.c: Include infinity.h.
921         (main): Use Infinityf.
922         * tests/test-floor1.c: Include infinity.h.
923         (main): Use Infinityd.
924         * tests/test-floorl.c: Include infinity.h.
925         (main): Use Infinityl.
926         * tests/test-fprintf-posix.c: Include infinity.h.
927         (test_function): Use Infinityd.
928         * tests/test-frexp.c: Include infinity.h.
929         (main): Use Infinityd.
930         * tests/test-frexpl.c: Include infinity.h.
931         (main): Use Infinityl.
932         * tests/test-isfinite.c: Include infinity.h.
933         (test_isfinitef): Use Infinityf.
934         (test_isfinited): Use Infinityd.
935         (test_isfinitel): Use Infinityl.
936         * tests/test-isinf.c: Include infinity.h.
937         (test_isinff): Use Infinityf.
938         (test_isinfd): Use Infinityd.
939         (test_isinfl): Use Infinityl.
940         * tests/test-isnan.c: Include infinity.h.
941         (test_float): Use Infinityf.
942         (test_double): Use Infinityd.
943         (test_long_double): Use Infinityl.
944         * tests/test-isnanf.h: Include infinity.h.
945         (main): Use Infinityf.
946         * tests/test-isnand.h: Include infinity.h.
947         (main): Use Infinityd.
948         * tests/test-isnanl.h: Include infinity.h.
949         (main): Use Infinityl.
950         * tests/test-ldexpl.c: Include infinity.h.
951         (main): Use Infinityl.
952         * tests/test-printf-posix.h: Include infinity.h.
953         (test_function): Use Infinityd.
954         * tests/test-roundf1.c: Include infinity.h.
955         (main): Use Infinityf.
956         * tests/test-round1.c: Include infinity.h.
957         (main): Use Infinityd.
958         * tests/test-roundl.c: Include infinity.h.
959         (main): Use Infinityl.
960         * tests/test-signbit.c: Include infinity.h.
961         (test_signbitf): Use Infinityf.
962         (test_signbitd): Use Infinityd.
963         (test_signbitl): Use Infinityl.
964         * tests/test-snprintf-posix.h: Include infinity.h.
965         (test_function): Use Infinityd, Infinityl.
966         * tests/test-sprintf-posix.h: Include infinity.h.
967         (test_function): Use Infinityd, Infinityl.
968         * tests/test-truncf1.c: Include infinity.h.
969         (main): Use Infinityf.
970         * tests/test-trunc1.c: Include infinity.h.
971         (main): Use Infinityd.
972         * tests/test-truncl.c: Include infinity.h.
973         (main): Use Infinityl.
974         * tests/test-vasnprintf-posix.c: Include infinity.h.
975         (test_function): Use Infinityd, Infinityl.
976         * tests/test-vasprintf-posix.c: Include infinity.h.
977         (test_function): Use Infinityd, Infinityl.
978         * modules/ceilf-tests (Files): Add tests/infinity.h.
979         * modules/ceil-tests (Files): Likewise.
980         * modules/ceill-tests (Files): Likewise.
981         * modules/dprintf-posix-tests (Files): Likewise.
982         * modules/floorf-tests (Files): Likewise.
983         * modules/floor-tests (Files): Likewise.
984         * modules/floorl-tests (Files): Likewise.
985         * modules/fprintf-posix-tests (Files): Likewise.
986         * modules/frexp-tests (Files): Likewise.
987         * modules/frexp-nolibm-tests (Files): Likewise.
988         * modules/frexpl-tests (Files): Likewise.
989         * modules/frexpl-nolibm-tests (Files): Likewise.
990         * modules/isfinite-tests (Files): Likewise.
991         * modules/isinf-tests (Files): Likewise.
992         * modules/isnan-tests (Files): Likewise.
993         * modules/isnanf-tests (Files): Likewise.
994         * modules/isnanf-nolibm-tests (Files): Likewise.
995         * modules/isnand-tests (Files): Likewise.
996         * modules/isnand-nolibm-tests (Files): Likewise.
997         * modules/isnanl-tests (Files): Likewise.
998         * modules/isnanl-nolibm-tests (Files): Likewise.
999         * modules/ldexpl-tests (Files): Likewise.
1000         * modules/printf-posix-tests (Files): Likewise.
1001         * modules/roundf-tests (Files): Likewise.
1002         * modules/round-tests (Files): Likewise.
1003         * modules/roundl-tests (Files): Likewise.
1004         * modules/signbit-tests (Files): Likewise.
1005         * modules/snprintf-posix-tests (Files): Likewise.
1006         * modules/sprintf-posix-tests (Files): Likewise.
1007         * modules/truncf-tests (Files): Likewise.
1008         * modules/trunc-tests (Files): Likewise.
1009         * modules/truncl-tests (Files): Likewise.
1010         * modules/vasnprintf-posix-tests (Files): Likewise.
1011         * modules/vasprintf-posix-tests (Files): Likewise.
1012         * modules/vdprintf-posix-tests (Files): Likewise.
1013         * modules/vfprintf-posix-tests (Files): Likewise.
1014         * modules/vprintf-posix-tests (Files): Likewise.
1015         * modules/vsnprintf-posix-tests (Files): Likewise.
1016         * modules/vsprintf-posix-tests (Files): Likewise.
1017         * modules/xprintf-posix-tests (Files): Likewise.
1018
1019 2011-09-11  Bruno Haible  <bruno@clisp.org>
1020
1021         Ensure pid_t gets defined.
1022         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
1023         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1024         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1025         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1026         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1027         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1028         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1029         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1030         * tests/test-fcntl-h.c: Check that pid_t is defined.
1031         * tests/test-sched.c: Likewise.
1032         * tests/test-termios.c: Likewise.
1033         * tests/test-time.c: Likewise.
1034         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
1035         * doc/posix-headers/signal.texi: Likewise.
1036         * doc/posix-headers/sys_types.texi: Likewise.
1037         * doc/posix-headers/time.texi: Likewise.
1038
1039 2011-09-11  Bruno Haible  <bruno@clisp.org>
1040
1041         acl: Fix compilation on Solaris 10 (older version).
1042         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
1043         of ACE_EVERYONE.
1044         * lib/set-mode-acl.c (qset_acl): Likewise.
1045         Reported by Christian Jullien <eligis@orange.fr>.
1046
1047 2011-09-10  Bruno Haible  <bruno@clisp.org>
1048
1049         iconv, unsetenv: Add support for MSVC compiler.
1050         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
1051         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
1052
1053 2011-09-10  Bruno Haible  <bruno@clisp.org>
1054
1055         *printf: Add support for MSVC compiler.
1056         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
1057         handles the exception caused by the %n directive. When cross-compiling,
1058         guess no on native Windows.
1059         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1060         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
1061         emulate it through vsnprintf.
1062         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
1063         * doc/posix-functions/dprintf.texi: Update documentation regarding
1064         MSVC 9.
1065         * doc/posix-functions/fprintf.texi: Likewise.
1066         * doc/posix-functions/printf.texi: Likewise.
1067         * doc/posix-functions/snprintf.texi: Likewise.
1068         * doc/posix-functions/sprintf.texi: Likewise.
1069         * doc/posix-functions/swprintf.texi: Likewise.
1070         * doc/posix-functions/vdprintf.texi: Likewise.
1071         * doc/posix-functions/vfprintf.texi: Likewise.
1072         * doc/posix-functions/vprintf.texi: Likewise.
1073         * doc/posix-functions/vsnprintf.texi: Likewise.
1074         * doc/posix-functions/vsprintf.texi: Likewise.
1075         * doc/glibc-functions/asprintf.texi: Likewise.
1076         * doc/glibc-functions/obstack_printf.texi: Likewise.
1077         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1078         * doc/glibc-functions/vasprintf.texi: Likewise.
1079
1080 2011-09-10  Bruno Haible  <bruno@clisp.org>
1081
1082         nocrash: Add support for native Windows.
1083         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
1084
1085 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
1086             Bruno Haible  <bruno@clisp.org>
1087
1088         absolute-header, include-next: Add support for MSVC compiler.
1089         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
1090         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
1091         directory separator in #line directives.
1092         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
1093         recognize also backslash as directory separator in #line directives.
1094
1095 2011-09-08  Jim Meyering  <meyering@redhat.com>
1096
1097         maint.mk: mark the post-release commit log with "maint: " prefix
1098         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
1099         one-line commit-log summary.
1100
1101 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
1102             Bruno Haible  <bruno@clisp.org>
1103
1104         Doc about crypt functions.
1105         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
1106         systems.
1107         * doc/posix-functions/encrypt.texi: Likewise.
1108         * doc/posix-functions/setkey.texi: Likewise.
1109
1110 2011-09-08  Simon Josefsson  <simon@josefsson.org>
1111
1112         * lib/gc.h: Fix copyright header.
1113
1114 2011-09-07  Bruno Haible  <bruno@clisp.org>
1115
1116         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
1117         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
1118         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
1119
1120 2011-09-07  Bruno Haible  <bruno@clisp.org>
1121
1122         openat: Work around compilation error with OSF/1 5.1 DTK cc.
1123         * lib/fopen.c: Use different syntax for include of <stdio.h>.
1124         * lib/freopen.c: Likewise.
1125         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
1126         * lib/lstat.c: Likewise.
1127         * lib/stat.c: Likewise.
1128         * lib/open.c: Use different syntax for include of <fcntl.h>.
1129         * lib/openat.c: Include fcntl.h again, explicitly.
1130
1131 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
1132
1133         parse-datetime: document the newly accepted format
1134         * doc/parse-datetime.texi (Combined date and time of day items):
1135         New section.
1136
1137 2011-09-06  Bruno Haible  <bruno@clisp.org>
1138
1139         acl: Fix a test failure on newer Solaris 10 with ZFS.
1140         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
1141         ENOSYS as no ACL.
1142         Reported by Jim Meyering.
1143
1144 2011-09-06  Bruno Haible  <bruno@clisp.org>
1145
1146         acl: Update for AIX >= 5.3 with NFS.
1147         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
1148         ENOSYS as no ACL.
1149
1150         acl: Fix a test failure on AIX >= 5.3 with NFS.
1151         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
1152         as no ACL.
1153
1154 2011-09-06  Bruno Haible  <bruno@clisp.org>
1155
1156         acl: Fix a test failure on IRIX 6.5 with NFS.
1157         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
1158         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
1159         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
1160         * lib/copy-acl.c (qcopy_acl): Likewise.
1161
1162 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1163
1164         openat: port to AIX 7.1 with large files
1165         AIX 7.1 does a "#define openat open64at" if large files are in use,
1166         so we can't simply #undef openat.  Use the orig_openat trick (similar
1167         to orig_open in lib/open.c) to work around the problem.  Problem
1168         reported by Kevin Brott for GNU tar, in the thread containing
1169         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
1170         * lib/openat.c (__need_system_fcntl_h): Define first.
1171         Include <fcntl.h> and <sys/types.h> before undefining.
1172         (orig_openat) [HAVE_OPENAT]: New inline function.
1173         (openat) [HAVE_OPENAT]: Do not undef.
1174         (rpl_openat): Use orig_openat, not openat.
1175
1176 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1177             Bruno Haible  <bruno@clisp.org>
1178
1179         acl: Avoid errors on NonStop Kernel.
1180         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
1181         ENOTSUP errors.
1182
1183 2011-09-05  Bruno Haible  <bruno@clisp.org>
1184
1185         acl: Clean up Solaris code.
1186         * lib/acl-internal.h: Remove no-op #if.
1187         * lib/file-has-acl.c: Likewise.
1188         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
1189         * lib/copy-acl.c (qcopy_acl): Likewise.
1190
1191 2011-09-05  Bruno Haible  <bruno@clisp.org>
1192
1193         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
1194         binaries built on the original Solaris 10.
1195         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
1196         trivial.
1197
1198 2011-09-05  Bruno Haible  <bruno@clisp.org>
1199
1200         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1201         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
1202         10.
1203         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
1204         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
1205         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
1206         instead of acl_get, facl_get, acl_set, facl_set.
1207
1208 2011-09-05  Bruno Haible  <bruno@clisp.org>
1209
1210         copy-file: Try unit tests on more file systems.
1211         * tests/test-copy-file-1.sh: New file.
1212         * tests/test-copy-file-2.sh: New file.
1213         * modules/copy-file-tests (Files): Add them.
1214         (Makefile.am): Add them to TESTS.
1215
1216         acl: Try unit tests on more file systems.
1217         * tests/test-file-has-acl-1.sh: New file.
1218         * tests/test-file-has-acl-2.sh: New file.
1219         * tests/test-set-mode-acl-1.sh: New file.
1220         * tests/test-set-mode-acl-2.sh: New file.
1221         * tests/test-copy-acl-1.sh: New file.
1222         * tests/test-copy-acl-2.sh: New file.
1223         * modules/acl-tests (Files): Add them.
1224         (Makefile.am): Add them to TESTS.
1225
1226 2011-09-04  Bruno Haible  <bruno@clisp.org>
1227
1228         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1229         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
1230         10.
1231         (OLD_ALLOW, OLD_DENY): New macros.
1232         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
1233         ACE_ACCESS_ALLOWED_ACE_TYPE.
1234         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
1235         ACE_ACCESS_DENIED_ACE_TYPE.
1236         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
1237         (NEW_ACE_EXECUTE): Fix value.
1238         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
1239         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
1240         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
1241         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
1242         NEW_ACE_SYNCHRONIZE): New macros.
1243         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
1244         instead of acl_fromtext, acl_set, facl_set.
1245         Fixes a coreutils/tests/cp/perm failure.
1246
1247 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1248
1249         openat: test for fstatat (..., 0) bug
1250         Further testing with tar suggests that fstatat (..., 0)
1251         does not work in general, on AIX 7.1; see
1252         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1253         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1254         replacement fstatat (which is what older AIX releases were using
1255         anyway).
1256         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1257         use is now changed to orig_fstatat.  This was probably the right
1258         thing to do anyway.
1259         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1260         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1261         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1262         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1263         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1264         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1265         if the bug is found.
1266
1267         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1268         This tests for another fstatat bug on AIX 7.1:
1269         fstatat (AT_FDCWD, ..., 0) does not work.  See
1270         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1271         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1272         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1273         (rpl_fstatat): Adjust so that it works around either (or both)
1274         bugs if present.
1275         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1276
1277 2011-09-03  Karl Berry  <karl@gnu.org>
1278
1279         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1280         in index entries.
1281
1282 2011-09-02  Bruno Haible  <bruno@clisp.org>
1283
1284         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1285         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1286         values of AR, ARFLAGS, RANLIB.
1287         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1288
1289 2011-09-02  Bruno Haible  <bruno@clisp.org>
1290
1291         Find 'ar' program that fits with --host argument.
1292         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1293
1294 2011-09-02  Bruno Haible  <bruno@clisp.org>
1295
1296         tests: init.sh: Support any non-GNU diff.
1297         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1298         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1299         Solaris 8.
1300
1301 2011-09-02  Bruno Haible  <bruno@clisp.org>
1302
1303         tests: init.sh: work also with any non-GNU diff that supports -u
1304         * tests/init.sh: Relax check for diff -u support.
1305         Rather than checking for GNU diff via --version, simply check
1306         for support for -u itself.  Useful at least on OpenBSD 4.9,
1307         AIX 7.1, IRIX 6.5, and Solaris 10.
1308
1309 2011-09-01  Bruno Haible  <bruno@clisp.org>
1310
1311         strtoimax, strtoumax: Document problem on HP-UX 11.
1312         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1313         * doc/posix-functions/strtoumax.texi: Likewise.
1314
1315 2011-09-01  Bruno Haible  <bruno@clisp.org>
1316
1317         strtoumax: Avoid link error on OSF/1 with DTK cc.
1318         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1319         defined as a function.
1320         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1321         strtoumax is defined, not whether it is declared.
1322
1323 2011-09-01  Bruno Haible  <bruno@clisp.org>
1324
1325         strtoimax: Avoid link error on OSF/1 with DTK cc.
1326         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1327         defined as a function.
1328         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1329         strtoimax is defined, not whether it is declared.
1330
1331 2011-09-01  Bruno Haible  <bruno@clisp.org>
1332
1333         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1334         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1335         as a function.
1336         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1337         whether it is declared.
1338
1339 2011-09-01  Bruno Haible  <bruno@clisp.org>
1340
1341         imaxabs: Avoid link error on OSF/1 with DTK cc.
1342         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1343         as a function.
1344         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1345         whether it is declared.
1346
1347 2011-09-01  Bruno Haible  <bruno@clisp.org>
1348
1349         Tests for module 'strtoumax'.
1350         * modules/strtoumax-tests: New file.
1351         * tests/test-strtoumax.c: New file.
1352
1353         Tests for module 'strtoimax'.
1354         * modules/strtoimax-tests: New file.
1355         * tests/test-strtoimax.c: New file.
1356
1357         Tests for module 'imaxdiv'.
1358         * modules/imaxdiv-tests: New file.
1359         * tests/test-imaxdiv.c: New file.
1360
1361         Tests for module 'imaxabs'.
1362         * modules/imaxabs-tests: New file.
1363         * tests/test-imaxabs.c: New file.
1364
1365 2011-09-01  Bruno Haible  <bruno@clisp.org>
1366
1367         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1368         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1369         pthread_create.
1370
1371 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1372
1373         openat: work around AIX 7.1 fstatat issue
1374         This should fix the problem that was not properly fixed
1375         in the previous change, dated 2011-08-30.
1376         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1377         __need_system_stat_h defined.
1378         (orig_fstatat) [HAVE_FSTATAT]: New function.
1379         (rpl_fstatat): Go back to the old way of doing things,
1380         except call orig_fstatat instead of fstatat.
1381         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1382         Remove unnecessary check whether fstatat fills in st_size etc.
1383
1384 2011-09-01  Bruno Haible  <bruno@clisp.org>
1385
1386         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1387         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1388         just include the system's header.
1389
1390 2011-08-31  Jim Meyering  <meyering@redhat.com>
1391
1392         tests: avoid spurious assertion failure in test-float.c on ppc64
1393         * tests/test-float.c (test_long_double): Comment out an assertion,
1394         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1395         with gcc-4.4.4.
1396
1397         maint: indent with spaces, not TABs
1398         I need to get in the habit of running gnulib's "make check".
1399         Both of these would have been caught.
1400         * m4/largefile.m4: Indent with spaces, not TABs.
1401         * lib/parse-datetime.y (iso_8601_time): Likewise.
1402         Spotted by Pádraig Brady.
1403
1404         test-parse-datetime.c: accommodate a relatively strict gcc warning
1405         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
1406         to avoid a warning from gcc's -Werror=missing-declarations.
1407         Insert a few spaces-before-funcall-parenthesis.
1408
1409 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
1410
1411         parse-datetime: accept ISO 8601 date and time rep with "T" separator
1412         The parser now accepts ISO 8601 date-time strings with "T" as the
1413         separator.  It has long parsed dates like "2004-02-29 16:21:42"
1414         with a space between the date and time strings.  Now it also parses
1415         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
1416         variants like "2004-02-29T16:21:42.333-07:00"
1417         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
1418         of day representation using the 'T' separator character.
1419         * doc/parse-datetime.texi (General date syntax): replace use of
1420         deprecated --iso-8601 option with --rfc-3339 in example of date
1421         command output formats that can be parsed.
1422         * tests/test-parse-datetime.c (tm_diff): New function, taken from
1423         lib/parse-datetime.y.
1424         (gmt_offset): New function.
1425         (main): Add additional test cases to validate ISO8601 extended
1426         date and time of day parsing.
1427
1428 2011-08-31  Bruno Haible  <bruno@clisp.org>
1429
1430         freopen: Documentation.
1431         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
1432         name.
1433         Reported by Claudio Bley <claudio.bley@gmail.com>.
1434
1435 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
1436
1437         freopen: Don't crash if the filename argument is NULL.
1438         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
1439         NULL.
1440
1441 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
1442
1443         openat: work around AIX 7.1 fstatat bug
1444         Problem reported by Kevin Brott for GNU tar, in the thread containing
1445         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
1446         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
1447         FSTATAT_ST_SIZE_ETC_BROKEN.
1448         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
1449         rpl_fstatat.
1450         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
1451         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
1452         AC_CHECK_FUNCS_ONCE for fstatat.
1453         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
1454         fchmodat, mkdirat, openat and unlinkat.
1455
1456 2011-08-30  Bruno Haible  <bruno@clisp.org>
1457
1458         Avoid endless recursions if config.h includes some header files.
1459         * lib/fopen.c (__need_FILE): Define already before including config.h.
1460         * lib/freopen.c (__need_FILE): Likewise.
1461         * lib/open.c (__need_system_fcntl_h): Likewise.
1462         * lib/stat.c (__need_system_sys_stat_h): Likewise.
1463         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
1464         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1465
1466 2011-08-25  Karl Berry  <karl@gnu.org>
1467
1468         * config/srclist.txt (ylwrap): new try.
1469         * build-aux/ylwrap: new file.
1470
1471 2011-08-23  Bruno Haible  <bruno@clisp.org>
1472
1473         tmpdir: Use a good default directory on native Windows.
1474         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
1475         (P_tmpdir): Default to _P_tmpdir on native Windows.
1476         (path_search): On native Windows, try the value returned by GetTempPath
1477         before trying P_tmpdir.
1478         * modules/tmpdir (Depends-on): Add pathmax.
1479         Suggested by John Darrington <john@darrington.wattle.id.au>.
1480
1481 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1482
1483         doc: fix typo in README-release
1484         * top/README-release: Capitalize first word of a sentence.
1485
1486 2011-08-19  Jim Meyering  <meyering@redhat.com>
1487
1488         fts: do not exhaust memory when processing million-entry directories
1489         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1490         directory would require about 256*N bytes of memory.  Thus, it was
1491         easy to construct a directory too large to be processed by any of
1492         those tools.  With this change, fts' maximum memory utilization is
1493         now limited to around 30MB.
1494         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1495         (fts_read): When we've processed the final entry (i.e., when
1496         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1497         using the parent entry to read any remaining entries.  Dispatch
1498         depending on what fts_build returns:
1499         - NULL+stop, aka failure: stop
1500         - NULL otherwise: move up in the dir hierarchy
1501         - non-NULL: handle this new entry
1502         (fts_build): Declare and use new local, continue_readdir.
1503         Prepare to be called from fts_read, when the entries
1504         from a partially-read directory have just been exhausted.
1505         In that case, we'll skip the opendir and instead use the parent's
1506         fts_dirp and derive dir_fd from that.
1507         Finally, in the readdir loop, if we read max_entries entries,
1508         exit the loop ensuring *not* to call closedir.  This is required
1509         so that fts_dirp can be reused on a subsequent call.
1510         Prompted by Ben England's report of memory exhaustion in find
1511         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1512
1513         maint: fts: move decl of `dp' down into while loop; split a long line
1514         * lib/fts.c (fts_build): No semantic change.
1515
1516         fts: add/use new struct member, fts_dirp
1517         We are about to use this to manage any directory with
1518         too many entries to read all of them into memory at once.
1519         To do that, we'll need to save the DIR* pointer in each
1520         affected FTSENT struct.
1521         * lib/fts_.h: Include <dirent.h>.
1522         (struct FTSENT) [fts_dirp]: New member.
1523         * lib/fts.c (closedir_and_clear): Define.
1524         Use it in place of closedir so that we are sure to
1525         clear the new fts_dirp member when done with it.
1526         (fts_alloc): Initialize the new member.
1527         (fts_lfree): Free, if needed.
1528
1529         maint: fts: give __opendir2 a new parameter and rename
1530         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1531         than surreptitiously using sole caller's "dir_fd".
1532         (fts_opendir): Rename from __opendir2.
1533
1534         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1535         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1536
1537         maint: fts.c: correct off-by-one indentation
1538         * lib/fts.c (fts_build): Correct indentation, change style
1539         of a couple of block comments, and bracing style.
1540
1541         maint: fts.c: move __opendir2 #define "up" out of function body
1542         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1543
1544         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1545         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1546         out for a long time and besides was useful only on BSD systems.
1547
1548 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1549
1550         regex: port to Stratus OpenVOS
1551         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1552         define to empty, rather than attempting nonportable optimizations.
1553         Problem reported by Paul Green in:
1554         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1555         and fix suggested by Eric Blake in:
1556         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1557
1558 2011-08-17  Eric Blake  <eblake@redhat.com>
1559
1560         getcwd: fix test failures on mingw
1561         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1562         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1563         test if long directory cannot be created, and allow mingw errno.
1564
1565         getcwd-lgpl: fix m4 to match relaxed test for BSD
1566         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1567         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1568         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1569         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1570         signature problem.
1571
1572         getcwd: fix compilation on mingw64
1573         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1574         getcwd.
1575         Reported by Marc-André Lureau.
1576
1577         pipe2: silence compiler warning
1578         * lib/pipe2.c (pipe2): Hide label if it is not used.
1579
1580 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1581
1582         relocatable-prog: fix link error
1583         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1584         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1585         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1586         into modules/relocatable-lib without noticing that
1587         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1588         also needs to build relocatable.c.
1589
1590 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1591
1592         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1593         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1594         shell code: it contained a 'break' that was not in a loop.
1595         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1596         via a shell-language loop; this may have been true in old Autoconf
1597         versions, but it's not true in Autoconf 2.68.  I found this bug
1598         when testing coreutils git on Solaris 8, whose shell complains
1599         about the syntax error.
1600
1601 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1602
1603         * lib/base64.c: Fix comment to reference RFC 4648.
1604         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1605         <gvtulder@gmail.com>.
1606
1607 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1608
1609         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1610
1611         po/Makefile.in.in: fix make -q problem
1612         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1613         rule, since there's no file named 'check-macro-version' and its
1614         use as a file breaks make -q.
1615         (all): Don't depend on check-macro-version.
1616         (CHECK_MACRO_VERSION): New macro.
1617         (stamp-po): Use it.
1618
1619         configmake: fix make -q problem
1620         * modules/configmake (configmake.h): Update configmake.h's time stamp
1621         even if the file does not change.  Otherwise, 'make -q' fails.
1622         Problem reported by Simon Josefsson in
1623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1624
1625 2011-08-11  Jim Meyering  <meyering@redhat.com>
1626
1627         git-version-gen: correct the advice in a comment
1628         * build-aux/git-version-gen: Correct comment.
1629         Don't recommend to list .tarball-version in .gitignore.
1630
1631 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1632
1633         base64: fix off-by-one buffer size bug
1634         Problem and (trivial) fix reported by Gijs van Tulder in
1635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1636         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1637         * tests/test-base64.c (main): Catch the bug.
1638
1639 2011-08-10  Eric Blake  <eblake@redhat.com>
1640
1641         closein: correct comments
1642         * lib/closein.c (close_stdin): Improve comments.
1643
1644 2011-08-09  Bruno Haible  <bruno@clisp.org>
1645
1646         More tests for 'fseeko'.
1647         * tests/test-fseeko3.c: New file, from Eric Blake.
1648         * tests/test-fseeko3.sh: New file.
1649         * modules/fseeko-tests (Files): Add them.
1650         (TESTS): Add test-fseeko3.sh.
1651         (check_PROGRAMS): Add test-fseeko3.
1652
1653 2011-08-09  Eric Blake  <eblake@redhat.com>
1654
1655         fseeko: remove unneeded hack
1656         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1657
1658         fseeko: fix bug on glibc
1659         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1660         Reported by John W. Eaton.
1661
1662 2011-08-08  Bruno Haible  <bruno@clisp.org>
1663
1664         unictype/base: Fix interoperability with preinstalled libunistring.
1665         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1666         Reported by Simon Josefsson.
1667
1668 2011-08-08  Bruno Haible  <bruno@clisp.org>
1669
1670         iswblank: Detect declaration correctly.
1671         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1672         AC_CHECK_DECLS invocation.
1673
1674 2011-08-08  Bruno Haible  <bruno@clisp.org>
1675
1676         tcgetsid: Detect declaration correctly.
1677         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1678         AC_CHECK_DECLS invocation.
1679         Reported by Simon Josefsson.
1680
1681 2011-08-08  Eric Blake  <eblake@redhat.com>
1682
1683         largefile: fix typo that regressed large file support
1684         * modules/largefile (configure.ac-early): Fix section name.
1685
1686 2011-08-06  Karl Berry  <karl@gnu.org>
1687
1688         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1689         a separate module.
1690
1691 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1692
1693         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1694         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1695         get prototype for free.
1696
1697 2011-08-04  Bruno Haible  <bruno@clisp.org>
1698
1699         Tests for module 'pathmax'.
1700         * modules/pathmax-tests: New file.
1701         * tests/test-pathmax.c: New file.
1702
1703         canonicalize-lgpl: Support larger filenames on the Hurd.
1704         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1705         Reported by Paul Eggert.
1706
1707         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1708         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1709         * lib/chdir-long.h: Include pathmax.h.
1710         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1711         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1712         (PATH_MAX): Remove code that is done by pathmax.h.
1713         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1714         * lib/tmpfile.c: Add a comment.
1715         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1716         * modules/chdir-long (Depends-on): Add pathmax.
1717         * modules/getcwd (Depends-on): Add pathmax.
1718         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1719         is not defined.
1720         * doc/posix-headers/limits.texi: Mention the pathmax module.
1721         * NEWS: Mention the change.
1722
1723 2011-08-02  Bruno Haible  <bruno@clisp.org>
1724
1725         pthread_sigmask: Actually use results of gl_THREADLIB.
1726         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1727         gl_THREADLIB, not gl_[]THREADLIB.
1728         Reported by Eric Blake.
1729
1730 2011-08-02  Jim Meyering  <meyering@redhat.com>
1731
1732         maint.mk: relax the default _gl_TS_function_match regexp
1733         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1734         space between function name and "(" in an "extern" declaration.
1735         That would fail to match a decl with no space there: extern void foo();
1736
1737 2011-07-31  Iain Nicol  <iain@thenicols.net>
1738
1739         git-version-gen: document that EXTRA_DIST must include .version
1740         * build-aux/git-version-gen: In the how-to-use comment, document
1741         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1742         will fail when run from an unpacked distribution tarball.
1743
1744 2011-08-01  Bruno Haible  <bruno@clisp.org>
1745
1746         wctype-h: Fix last change.
1747         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1748         REPLACE_TOWLOWER to 0.
1749         Reported by Sam Steingold <sds@gnu.org>.
1750
1751 2011-07-31  Bruno Haible  <bruno@clisp.org>
1752
1753         frexpl: Update autoconf test.
1754         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1755         according to changes of 2011-06-20.
1756
1757 2011-07-31  Bruno Haible  <bruno@clisp.org>
1758
1759         sys_utsname: Add support for Minix.
1760         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1761         <sys/utsname.h>.
1762         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1763         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1764
1765 2011-07-31  Bruno Haible  <bruno@clisp.org>
1766
1767         strings: Add support for Minix.
1768         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1769         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1770         * doc/posix-headers/strings.texi: Document the Minix problem.
1771
1772 2011-07-31  Bruno Haible  <bruno@clisp.org>
1773
1774         wctype-h: Add support for Minix.
1775         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1776         REPLACE_TOWLOWER.
1777         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1778         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1779         REPLACE_ISWCNTRL.
1780
1781 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1782
1783         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1784         This is a performance improvement for 64-bit hosts: it causes the
1785         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1786
1787 2011-07-31  Bruno Haible  <bruno@clisp.org>
1788
1789         stdioext: Add support for Minix.
1790         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1791         * lib/fpurge.c (fpurge): Likewise.
1792         * lib/freadahead.c (freadahead): Likewise.
1793         * lib/freadable.c (freadable): Likewise.
1794         * lib/freading.c (freading): Likewise.
1795         * lib/freadptr.c (freadptr): Likewise.
1796         * lib/freadseek.c (freadptrinc): Likewise.
1797         * lib/fseeko.c (rpl_fseeko): Likewise.
1798         * lib/fseterr.c (fseterr): Likewise.
1799         * lib/fwritable.c (fwritable): Likewise.
1800         * lib/fwriting.c (fwriting): Likewise.
1801         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1802         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1803
1804 2011-07-31  Bruno Haible  <bruno@clisp.org>
1805
1806         errno: Port to Minix.
1807         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1808         ECONNABORTED are defined.
1809         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1810         GNULIB_defined_ECONNABORTED): New macros.
1811         * lib/strerror-override.h (strerror_override): Test also
1812         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1813         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1814         ECONNABORTED.
1815         * doc/posix-headers/errno.texi: Mention the Minix problem.
1816
1817 2011-07-31  Bruno Haible  <bruno@clisp.org>
1818
1819         Work around declaration collisions on Minix.
1820         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1821         defined, set REPLACE_MBSINIT.
1822         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1823         defined, set REPLACE_MBRTOWC.
1824         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1825         set REPLACE_MBRLEN.
1826         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1827         defined, set REPLACE_MBSRTOWCS.
1828         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1829         defined, set REPLACE_WCRTOMB.
1830         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1831         defined, set REPLACE_WCSRTOMBS.
1832
1833 2011-07-31  Bruno Haible  <bruno@clisp.org>
1834
1835         Add support for Minix with ACK compiler.
1836         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1837         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1838         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1839
1840 2011-07-31  Bruno Haible  <bruno@clisp.org>
1841
1842         Documentation about Minix.
1843         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1844         * doc/glibc-headers/*.texi: Likewise.
1845         * doc/posix-functions/*.texi: Likewise.
1846         * doc/glibc-functions/*.texi: Likewise.
1847
1848 2011-07-31  Bruno Haible  <bruno@clisp.org>
1849
1850         snippet/warn-on-use: Fix indentation.
1851         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1852
1853 2011-07-25  Jim Meyering  <meyering@redhat.com>
1854
1855         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1856         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1857         commands.
1858
1859 2011-07-27  Jim Meyering  <meyering@redhat.com>
1860
1861         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1862         * top/maint.mk (gl_extract_significant_defines_): Now that
1863         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1864         gnulib/lib/signal.in.h, and now that we recommend to
1865         define-if-undefined those two symbols in application code,
1866         we must filter them out of the "significant" list.
1867         This avoids a "make syntax-check" failure in coreutils.
1868
1869 2011-07-26  Eric Blake  <eblake@redhat.com>
1870
1871         warnings: add comments about previous patch
1872         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1873         * m4/include_next.m4: Likewise.
1874         * m4/warn-on-use.m4: Likewise.
1875         * m4/warnings.m4: Likewise, and simplify use.
1876         Suggested by Stefano Lattarini.
1877
1878         include-next, warnings: support older autoconf
1879         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1880         AS_VAR_PUSHDEF in a way that works with older autoconf.
1881         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1882         Reported by Daniel P. Berrange.
1883
1884 2011-07-25  Bruno Haible  <bruno@clisp.org>
1885
1886         fseek, ftell: Fix doc.
1887         * doc/posix-functions/fseek.texi: Reword statement about
1888         AC_SYS_LARGEFILE.
1889         * doc/posix-functions/ftell.texi: Likewise.
1890
1891 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1892             Bruno Haible  <bruno@clisp.org>
1893
1894         Add dependencies to the 'largefile' module.
1895         * modules/fopen (Depends-on): Add 'largefile'.
1896         * modules/freopen (Depends-on): Likewise.
1897         * modules/fseeko (Depends-on): Likewise.
1898         * modules/ftello (Depends-on): Likewise.
1899         * modules/glob (Depends-on): Likewise.
1900         * modules/lseek (Depends-on): Likewise.
1901         * modules/lstat (Depends-on): Likewise.
1902         * modules/mkostemp (Depends-on): Likewise.
1903         * modules/mkostemps (Depends-on): Likewise.
1904         * modules/mkstemp (Depends-on): Likewise.
1905         * modules/mkstemps (Depends-on): Likewise.
1906         * modules/open (Depends-on): Likewise.
1907         * modules/openat (Depends-on): Likewise.
1908         * modules/pread (Depends-on): Likewise.
1909         * modules/pwrite (Depends-on): Likewise.
1910         * modules/scandir (Depends-on): Likewise.
1911         * modules/stat (Depends-on): Likewise.
1912         * modules/tmpfile (Depends-on): Likewise.
1913         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1914         since the containing module now depends on the largefile module.
1915         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1916         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1917         off_t is fixed by gnulib.
1918         * doc/posix-functions/freopen.texi: Likewise.
1919         * doc/posix-functions/fseeko.texi: Likewise.
1920         * doc/posix-functions/fstatat.texi: Likewise.
1921         * doc/posix-functions/ftello.texi: Likewise.
1922         * doc/posix-functions/glob.texi: Likewise.
1923         * doc/posix-functions/lseek.texi: Likewise.
1924         * doc/posix-functions/lstat.texi: Likewise.
1925         * doc/posix-functions/mkstemp.texi: Likewise.
1926         * doc/posix-functions/open.texi: Likewise.
1927         * doc/posix-functions/openat.texi: Likewise.
1928         * doc/posix-functions/pread.texi: Likewise.
1929         * doc/posix-functions/pwrite.texi: Likewise.
1930         * doc/posix-functions/scandir.texi: Likewise.
1931         * doc/posix-functions/stat.texi: Likewise.
1932         * doc/posix-functions/tmpfile.texi: Likewise.
1933         * doc/glibc-functions/mkostemp.texi: Likewise.
1934         * doc/glibc-functions/mkostemps.texi: Likewise.
1935         * doc/glibc-functions/mkstemps.texi: Likewise.
1936
1937 2011-07-25  Bruno Haible  <bruno@clisp.org>
1938
1939         fcntl: Move AC_LIBOBJ invocation to module description.
1940         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1941         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1942
1943         fcntl: Remove call-in from fchdir.m4.
1944         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1945         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1946
1947         dup3: Remove potential call-in from fchdir.m4.
1948         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1949         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1950
1951         dup2: Move AC_LIBOBJ invocation to module description.
1952         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1953         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1954         Don't invoke AC_LIBOBJ.
1955         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1956
1957         dup2: Remove call-in from fchdir.m4.
1958         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1959         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1960
1961         fclose: Move AC_LIBOBJ invocation to module description.
1962         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1963         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1964         to 1.
1965         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1966
1967         fclose: Remove call-in from close.m4.
1968         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1969         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1970
1971         close: Move AC_LIBOBJ invocation to module description.
1972         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1973         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1974         1.
1975         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1976
1977         close: Remove call-in from fchdir.m4.
1978         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1979         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1980
1981         open: Move AC_LIBOBJ invocation to module description.
1982         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1983         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1984         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1985
1986         open: Remove call-in from fchdir.m4.
1987         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1988         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1989
1990         fchdir: Start to remove gl_REPLACE_* idiom.
1991         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1992         (gl_FUNC_FCHDIR): Invoke it.
1993
1994 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1995
1996         * lib/ftell.c (ftell): Comment out cast.
1997
1998         close: use gl_REPLACE_FCLOSE only if defined
1999         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
2000         is defined.  The close module doesn't depend on the fclose module
2001         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
2002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
2003         I reproduced the problem with "./gnulib-tool --test close sys_socket".
2004
2005 2011-07-24  Jim Meyering  <meyering@redhat.com>
2006
2007         test-select.h: avoid warning when using gcc's -Wmissing-declarations
2008         * tests/test-select.h (test_function): Declare as "static".
2009
2010 2011-07-24  Bruno Haible  <bruno@clisp.org>
2011
2012         doc: Mention the effects of AC_SYS_LARGEFILE.
2013         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
2014         on this function.
2015         * doc/posix-functions/aio_error.texi: Likewise.
2016         * doc/posix-functions/aio_fsync.texi: Likewise.
2017         * doc/posix-functions/aio_read.texi: Likewise.
2018         * doc/posix-functions/aio_return.texi: Likewise.
2019         * doc/posix-functions/aio_suspend.texi: Likewise.
2020         * doc/posix-functions/aio_write.texi: Likewise.
2021         * doc/posix-functions/fgetpos.texi: Likewise.
2022         * doc/posix-functions/fopen.texi: Likewise.
2023         * doc/posix-functions/freopen.texi: Likewise.
2024         * doc/posix-functions/fsetpos.texi: Likewise.
2025         * doc/posix-functions/fstatvfs.texi: Likewise.
2026         * doc/posix-functions/ftruncate.texi: Likewise.
2027         * doc/posix-functions/ftw.texi: Likewise.
2028         * doc/posix-functions/getrlimit.texi: Likewise.
2029         * doc/posix-functions/glob.texi: Likewise.
2030         * doc/posix-functions/lio_listio.texi: Likewise.
2031         * doc/posix-functions/lockf.texi: Likewise.
2032         * doc/posix-functions/mkstemp.texi: Likewise.
2033         * doc/posix-functions/mmap.texi: Likewise.
2034         * doc/posix-functions/nftw.texi: Likewise.
2035         * doc/posix-functions/openat.texi: Likewise.
2036         * doc/posix-functions/opendir.texi: Likewise.
2037         * doc/posix-functions/posix_fadvise.texi: Likewise.
2038         * doc/posix-functions/posix_fallocate.texi: Likewise.
2039         * doc/posix-functions/pread.texi: Likewise.
2040         * doc/posix-functions/pwrite.texi: Likewise.
2041         * doc/posix-functions/readdir.texi: Likewise.
2042         * doc/posix-functions/readdir_r.texi: Likewise.
2043         * doc/posix-functions/rewinddir.texi: Likewise.
2044         * doc/posix-functions/scandir.texi: Likewise.
2045         * doc/posix-functions/seekdir.texi: Likewise.
2046         * doc/posix-functions/setrlimit.texi: Likewise.
2047         * doc/posix-functions/statvfs.texi: Likewise.
2048         * doc/posix-functions/telldir.texi: Likewise.
2049         * doc/posix-functions/tmpfile.texi: Likewise.
2050         * doc/posix-functions/truncate.texi: Likewise.
2051         * doc/glibc-functions/fallocate.texi: Likewise.
2052         * doc/glibc-functions/fstatfs.texi: Likewise.
2053         * doc/glibc-functions/fts_children.texi: Likewise.
2054         * doc/glibc-functions/fts_read.texi: Likewise.
2055         * doc/glibc-functions/getdirentries.texi: Likewise.
2056         * doc/glibc-functions/mkostemp.texi: Likewise.
2057         * doc/glibc-functions/mkostemps.texi: Likewise.
2058         * doc/glibc-functions/mkstemps.texi: Likewise.
2059         * doc/glibc-functions/preadv.texi: Likewise.
2060         * doc/glibc-functions/pwritev.texi: Likewise.
2061         * doc/glibc-functions/sendfile.texi: Likewise.
2062         * doc/glibc-functions/statfs.texi: Likewise.
2063
2064 2011-07-24  Bruno Haible  <bruno@clisp.org>
2065
2066         doc: Fix typo.
2067         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
2068
2069 2011-07-24  Bruno Haible  <bruno@clisp.org>
2070
2071         doc: Mention fsusage.
2072         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
2073
2074 2011-07-24  Bruno Haible  <bruno@clisp.org>
2075
2076         doc: Mention new glibc headers and functions.
2077         * doc/glibc-headers/gshadow.texi: New file.
2078         * doc/glibc-functions/endsgent.texi: New file.
2079         * doc/glibc-functions/fgetsgent.texi: New file.
2080         * doc/glibc-functions/fgetsgent_r.texi: New file.
2081         * doc/glibc-functions/getsgent.texi: New file.
2082         * doc/glibc-functions/getsgent_r.texi: New file.
2083         * doc/glibc-functions/getsgnam.texi: New file.
2084         * doc/glibc-functions/getsgnam_r.texi: New file.
2085         * doc/glibc-functions/putsgent.texi: New file.
2086         * doc/glibc-functions/setsgent.texi: New file.
2087         * doc/glibc-functions/sgetsgent.texi: New file.
2088         * doc/glibc-functions/sgetsgent_r.texi: New file.
2089         * doc/glibc-functions/malloc_info.texi: New file.
2090         * doc/glibc-functions/preadv.texi: New file.
2091         * doc/glibc-functions/pwritev.texi: New file.
2092         * doc/glibc-functions/register_printf_modifier.texi: New file.
2093         * doc/glibc-functions/register_printf_specifier.texi: New file.
2094         * doc/glibc-functions/register_printf_type.texi: New file.
2095         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
2096         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
2097         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
2098         * doc/glibc-functions/pthread_getname_np.texi: New file.
2099         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
2100         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
2101         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
2102         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
2103         * doc/glibc-functions/pthread_setname_np.texi: New file.
2104         * doc/glibc-functions/pthread_sigqueue.texi: New file.
2105         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
2106         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
2107         * doc/glibc-functions/qsort_r.texi: New file.
2108         * doc/glibc-functions/quick_exit.texi: New file.
2109         * doc/glibc-functions/syncfs.texi: New file.
2110         * doc/gnulib.texi: Include them.
2111         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
2112         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
2113         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
2114         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2115         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2116         * doc/glibc-functions/execvpe.texi: Likewise.
2117
2118 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2119
2120         ftell: don't include <unistd.h>
2121         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
2122         guaranteed to define off_t, and the ftell module depends on the
2123         stdio module.
2124
2125         ftell: do not assume wraparound signed arithmetic
2126         * lib/ftell.c: Include <limits.h>.
2127         (ftell): Don't assume wraparound signed arithmetic.
2128
2129 2011-07-24  Bruno Haible  <bruno@clisp.org>
2130
2131         close: No longer depend on module 'fclose'.
2132         * modules/close (Depends-on): Remove fclose.
2133         * NEWS: Mention the change.
2134         Suggested by Sam Steingold <sds@gnu.org>.
2135
2136 2011-07-24  Bruno Haible  <bruno@clisp.org>
2137
2138         fsusage: Enable large volume support on AIX >= 5.2.
2139         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
2140         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
2141         instead of STAT_STATVFS.
2142         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
2143
2144         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
2145         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
2146         f_blocks field only on MacOS X.
2147
2148         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
2149         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
2150         * modules/fsusage (Depends-on): Add largefile.
2151
2152 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2153
2154         * README: Modernize discussion of signed integers.
2155         Assuming overflow wraparound is no longer safe.
2156         Mention ones' complement and signed magnitude.
2157
2158 2011-07-22  Bruno Haible  <bruno@clisp.org>
2159
2160         select tests, pselect tests: Refactor.
2161         * tests/test-select.h: New file, extracted from tests/test-select.c.
2162         (select_fn): New type.
2163         (test, do_select, do_select_nowait, do_select_wait, test_tty,
2164         test_connect_first, test_accept_first, test_pair, test_socket_pair,
2165         test_pipe): Add my_select argument.
2166         (test_function): Renamed from main. Add my_select argument.
2167         * tests/test-select.c: Move most code to tests/test-select.h. Include
2168         test-select.h.
2169         * modules/select-tests (Files): Add tests/test-select.h.
2170         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
2171         (my_select, main): New functions.
2172         * modules/pselect-tests (Files): Add tests/test-select.h,
2173         tests/macros.h, tests/signature.h.
2174         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
2175         (configure.ac): Check for <sys/wait.h>.
2176
2177 2011-07-22  Bruno Haible  <bruno@clisp.org>
2178
2179         sys_select tests: Check the signature of FD_*.
2180         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
2181         signature tests from here...
2182         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
2183         here.
2184         * modules/sys_select-tests (Files): Add tests/signature.h.
2185
2186 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2187
2188         largefile: new module, replacing large-inode
2189         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
2190         * MODULES.html.sh: Add largefile, remove large-inode.
2191         * modules/largefile, m4/largefile.m4: New files.
2192         * modules/large-inode, m4/large-inode.m4: Remove.
2193
2194         fsusage: port to MacOS X 10.7 with 4 TiB file systems
2195         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
2196         implementations that use only 32 bits to count blocks.
2197         On typical hosts with 1024-byte blocks, this fails with file
2198         systems as small as 4 TiB.  Problem reported by Herb Wartens
2199         <http://debbugs.gnu.org/9140> and this should also fix a similar
2200         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
2201
2202         large-inode: New module
2203         * MODULES.html.sh: Add it.
2204         * modules/large-inode, m4/large-inode.m4: New files.
2205
2206         extensions: Enable extensions on MacOS X 10.5 and later.
2207         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
2208
2209 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
2210
2211         file-has-acl: use acl_extended_file_nofollow if available
2212         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
2213         (acl_extended_file): New macro.
2214         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
2215         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
2216
2217 2011-07-21  Bruno Haible  <bruno@clisp.org>
2218
2219         Declare system functions in a way that works with C++.
2220         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
2221         declare fdopendir as extern "C".
2222         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
2223         declare frexpl as extern "C".
2224         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
2225         declare gai_strerror as extern "C".
2226         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
2227         programs, declare gai_strerror as extern "C".
2228         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
2229         declare getlogin_r as extern "C".
2230         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
2231         as extern "C".
2232         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
2233         declare ldexpl as extern "C".
2234         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
2235         as extern "C".
2236         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
2237         program, declare getmntinfo as extern "C".
2238         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
2239         stpncpy as extern "C".
2240         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
2241         program, declare __xpg_strerror_r as extern "C".
2242         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
2243         strndup as extern "C".
2244         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
2245         declare memset and bzero as extern "C".
2246         Reported by Sam Steingold <sds@gnu.org>.
2247
2248 2011-07-12  Jim Meyering  <meyering@redhat.com>
2249
2250         maint.mk: prohibit inclusion of "verify.h" without use
2251         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
2252
2253 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2254
2255         timer-time: A new module to check for timer_settime()
2256         * m4/timer_time.m4: Check for the posix function.
2257         * modules/timer-time: Add the new module.
2258         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2259         Mention it.
2260
2261 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2262             Bruno Haible  <bruno@clisp.org>
2263
2264         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2265         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2266         not defined, assume POSIX threads and look for pthread_sigmask in
2267         $LIBS, without changing $CPPFLAGS.
2268
2269 2011-07-19  Bruno Haible  <bruno@clisp.org>
2270
2271         strstr: Update cross-compilation guess.
2272         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2273         CPUs, guess no, in view of glibc
2274         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2275         Suggested by Eric Blake. Reported by Reuben Thomas.
2276
2277 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2278
2279         getopt-gnu: suppress core dumps from detection code
2280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2281         to suppress core dumps that may well occur on glibc systems.
2282         * modules/getopt-gnu: Depend on nocrash.
2283
2284 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2285
2286         pthread_sigmask: ensure usleep is declared
2287         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2288         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2289
2290 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2291
2292         doc: Document NonStop portability issues.
2293         * doc/posix-functions/sigaction.texi (sigaction):
2294         * doc/posix-headers/signal.texi (signal.h):
2295         Document NonStop.  See Joachim Schmitz in
2296         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2297
2298 2011-07-15  Bruno Haible  <bruno@clisp.org>
2299
2300         ffsl, ffsll: Avoid unportable behaviour.
2301         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2302
2303 2011-07-15  Bruno Haible  <bruno@clisp.org>
2304
2305         ffs: More tests.
2306         * tests/test-ffs.c (NBITS): New macro.
2307         (main): Add more tests.
2308         * tests/test-ffsl.c (NBITS): New macro.
2309         (main): Add more tests.
2310         * tests/test-ffsll.c (NBITS): New macro.
2311         (main): Add more tests.
2312
2313 2011-07-15  Eric Blake  <eblake@redhat.com>
2314
2315         ffsl, ffsll: new modules
2316         * modules/ffsl: New file.
2317         * modules/ffsll: Likewise.
2318         * m4/ffsl.m4: Likewise.
2319         * m4/ffsll.m4: Likewise.
2320         * lib/ffsl.c: Likewise.
2321         * lib/ffsl.h: Likewise.
2322         * lib/ffsll.c: Likewise.
2323         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2324         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2325         * modules/string (Makefile.am): Substitute witnesses.
2326         * lib/strings.in.h (ffsl, ffsll): Declare.
2327         * modules/ffsl-tests: New test file.
2328         * modules/ffsll-tests: Likewise.
2329         * tests/test-ffsl.c: Likewise.
2330         * tests/test-ffsll.c: Likewise.
2331         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2332         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2333         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2334
2335         ffs: fix m4 prerequisite
2336         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2337
2338         ffs: avoid undefined behavior
2339         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2340         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2341         Reported by Bruno Haible.
2342
2343 2011-07-12  Bruno Haible  <bruno@clisp.org>
2344
2345         pthread_sigmask: Rely on module 'threadlib'.
2346         * modules/pthread_sigmask (Depends-on): Add threadlib.
2347         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2348         is defined.
2349
2350 2011-07-12  Bruno Haible  <bruno@clisp.org>
2351
2352         regex: Depend on module 'strcase'.
2353         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2354
2355 2011-07-12  Jim Meyering  <meyering@redhat.com>
2356
2357         warn-on-use: fix typo in file name
2358         * modules/snippet/warn-on-use (Files): Correct file name:
2359         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2360
2361 2011-07-12  Bruno Haible  <bruno@clisp.org>
2362
2363         strings: Document module.
2364         * doc/posix-headers/strings.texi: Mention module 'strings'.
2365
2366 2011-07-12  Bruno Haible  <bruno@clisp.org>
2367
2368         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2369         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2370         (Files, Makefile.am): Update.
2371         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2372         * modules/stdlib (Depends-on): Update.
2373
2374 2011-07-12  Bruno Haible  <bruno@clisp.org>
2375
2376         * NEWS: Mention the changes.
2377
2378         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2379         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2380         (Files, Makefile.am): Update.
2381         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2382         * modules/arpa_inet (Depends-on): Update.
2383         * modules/ctype (Depends-on): Update.
2384         * modules/dirent (Depends-on): Update.
2385         * modules/fcntl-h (Depends-on): Update.
2386         * modules/glob (Depends-on): Update.
2387         * modules/iconv-h (Depends-on): Update.
2388         * modules/inttypes-incomplete (Depends-on): Update.
2389         * modules/langinfo (Depends-on): Update.
2390         * modules/locale (Depends-on): Update.
2391         * modules/math (Depends-on): Update.
2392         * modules/netdb (Depends-on): Update.
2393         * modules/poll-h (Depends-on): Update.
2394         * modules/pty (Depends-on): Update.
2395         * modules/search (Depends-on): Update.
2396         * modules/signal (Depends-on): Update.
2397         * modules/spawn (Depends-on): Update.
2398         * modules/stdio (Depends-on): Update.
2399         * modules/stdlib (Depends-on): Update.
2400         * modules/string (Depends-on): Update.
2401         * modules/strings (Depends-on): Update.
2402         * modules/sys_file (Depends-on): Update.
2403         * modules/sys_ioctl (Depends-on): Update.
2404         * modules/sys_select (Depends-on): Update.
2405         * modules/sys_socket (Depends-on): Update.
2406         * modules/sys_stat (Depends-on): Update.
2407         * modules/sys_time (Depends-on): Update.
2408         * modules/sys_times (Depends-on): Update.
2409         * modules/sys_utsname (Depends-on): Update.
2410         * modules/sys_wait (Depends-on): Update.
2411         * modules/termios (Depends-on): Update.
2412         * modules/time (Depends-on): Update.
2413         * modules/unistd (Depends-on): Update.
2414         * modules/wchar (Depends-on): Update.
2415         * modules/wctype-h (Depends-on): Update.
2416         * MODULES.html.sh (Support for building libraries and executables):
2417         Update.
2418
2419         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
2420         * modules/snippet/unused-parameter: Renamed from
2421         modules/unused-parameter.
2422         (Files, Makefile.am): Update.
2423         * build-aux/snippet/unused-parameter.h: Renamed from
2424         build-aux/unused-parameter.h.
2425         * modules/selinux-h (Depends-on): Update.
2426         * modules/unistr/base (Depends-on): Update.
2427         * MODULES.html.sh (Core language properties): Update.
2428
2429         Rename module 'link-warning' to 'snippet/link-warning'.
2430         * modules/snippet/link-warning: Renamed from modules/link-warning.
2431         (Files, Makefile.am): Update.
2432         * build-aux/snippet/link-warning.h: Renamed from
2433         build-aux/link-warning.h.
2434         * MODULES.html.sh (Support for building libraries and executables):
2435         Update.
2436
2437         Rename module 'c++defs' to 'snippet/c++defs'.
2438         * modules/snippet/c++defs: Renamed from modules/c++defs.
2439         (Files, Makefile.am): Update.
2440         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
2441         * modules/arpa_inet (Depends-on): Update.
2442         * modules/ctype (Depends-on): Update.
2443         * modules/dirent (Depends-on): Update.
2444         * modules/fcntl-h (Depends-on): Update.
2445         * modules/glob (Depends-on): Update.
2446         * modules/iconv-h (Depends-on): Update.
2447         * modules/langinfo (Depends-on): Update.
2448         * modules/locale (Depends-on): Update.
2449         * modules/math (Depends-on): Update.
2450         * modules/netdb (Depends-on): Update.
2451         * modules/poll-h (Depends-on): Update.
2452         * modules/pty (Depends-on): Update.
2453         * modules/search (Depends-on): Update.
2454         * modules/signal (Depends-on): Update.
2455         * modules/spawn (Depends-on): Update.
2456         * modules/stdio (Depends-on): Update.
2457         * modules/stdlib (Depends-on): Update.
2458         * modules/string (Depends-on): Update.
2459         * modules/strings (Depends-on): Update.
2460         * modules/sys_ioctl (Depends-on): Update.
2461         * modules/sys_select (Depends-on): Update.
2462         * modules/sys_socket (Depends-on): Update.
2463         * modules/sys_stat (Depends-on): Update.
2464         * modules/sys_time (Depends-on): Update.
2465         * modules/sys_wait (Depends-on): Update.
2466         * modules/termios (Depends-on): Update.
2467         * modules/time (Depends-on): Update.
2468         * modules/unistd (Depends-on): Update.
2469         * modules/wchar (Depends-on): Update.
2470         * modules/wctype-h (Depends-on): Update.
2471
2472         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
2473         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
2474         (Files, Makefile.am): Update.
2475         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
2476         * modules/argv-iter (Depends-on): Update.
2477         * modules/arpa_inet (Depends-on): Update.
2478         * modules/dirent (Depends-on): Update.
2479         * modules/fcntl-h (Depends-on): Update.
2480         * modules/fnmatch (Depends-on): Update.
2481         * modules/getopt-posix (Depends-on): Update.
2482         * modules/glob (Depends-on): Update.
2483         * modules/iconv-h (Depends-on): Update.
2484         * modules/inttypes-incomplete (Depends-on): Update.
2485         * modules/locale (Depends-on): Update.
2486         * modules/math (Depends-on): Update.
2487         * modules/netdb (Depends-on): Update.
2488         * modules/search (Depends-on): Update.
2489         * modules/signal (Depends-on): Update.
2490         * modules/spawn (Depends-on): Update.
2491         * modules/stdio (Depends-on): Update.
2492         * modules/stdlib (Depends-on): Update.
2493         * modules/string (Depends-on): Update.
2494         * modules/strings (Depends-on): Update.
2495         * modules/sys_socket (Depends-on): Update.
2496         * modules/sys_stat (Depends-on): Update.
2497         * modules/sys_time (Depends-on): Update.
2498         * modules/sys_times (Depends-on): Update.
2499         * modules/sys_utsname (Depends-on): Update.
2500         * modules/time (Depends-on): Update.
2501         * modules/unistd (Depends-on): Update.
2502         * modules/wchar (Depends-on): Update.
2503         * MODULES.html.sh (Support for building libraries and executables):
2504         Update.
2505
2506 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2507
2508         Improvements on _Noreturn and related modules.
2509
2510         modules/_Exit-tests: test _Noreturn too
2511         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2512         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2513         (main): Use them.
2514
2515         stdnoreturn, stdnoreturn-tests: remove modules
2516         They're not needed here and a bit premature for use elsewhere.  See
2517         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2518         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2519         * tests/test-stdnoreturn.c: Remove files.
2520         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2521         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2522         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2523         and using noreturn.
2524         * modules/openat, modules/sigpipe-die, modules/xalloc:
2525         * modules/xmemdup0, modules/xstrtol:
2526         Remove dependency on stdnoreturn.
2527
2528         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2529         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2530         Reparenthesize to avoid GCC warning.
2531         Support Microsoft's syntax.
2532         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2533
2534         _Noreturn-tests: remove module
2535         * modules/_Noreturn-tests: Remove.
2536         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2537         * tests/test-_Noreturn.c: Remove.
2538         * tests/test-stdnoreturn.c: Merge from the old
2539         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2540
2541 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2542
2543         _Noreturn, stdnoreturn, and related modules.
2544
2545         * top/maint.mk: Adjust to new noreturn support.
2546         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2547         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2548
2549         xalloc: use stdnoreturn.h
2550         * lib/xalloc.h: Include <stdnoreturn.h>.
2551         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2552         * modules/xalloc (Depends-on): Add stdnoreturn.
2553
2554         xstrtol: use stdnoreturn.h
2555         * lib/xstrtol.h: Include <stdnoreturn.h>.
2556         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2557         * modules/xstrtol (Depends-on): Add stdnoreturn.
2558
2559         xmemdup0: use stdnoreturn.h
2560         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2561         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2562         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2563
2564         sigpipe-die: use stdnoreturn.h
2565         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2566         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2567         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2568
2569         openat: use stdnoreturn.h
2570         * lib/openat.h: Include <stdnoreturn.h>.
2571         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2572         * modules/openat (Depends-on): Add stdnoreturn.
2573
2574         * lib/openat-die.c (openat_save_fail): Modernize comment.
2575
2576         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2577
2578         * lib/glthread/thread.h: Modernize comment.
2579
2580         obstack: use _Noreturn
2581         * lib/obstack.c (__attribute__): Remove macro.
2582         (print_and_abort): Use _Noreturn.
2583
2584         c-stack: use _Noreturn
2585         * lib/c-stack.c (die, overflow_handler, segv_handler):
2586         Use _Noreturn rather than __attribute__((noreturn)).
2587
2588         argmatch-tests, exclude_tests: use _Noreturn
2589         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2590         Remove.
2591         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2592
2593         stdlib: use _Noreturn
2594         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2595         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2596         * modules/stdlib (Depends-on): Add _Noreturn.
2597         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2598
2599         stdnoreturn-tests: new module
2600         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2601
2602         stdnoreturn: new module
2603         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2604         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2605
2606         _Noreturn-tests: new module
2607         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2608
2609         _Noreturn: new module
2610         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2611         New section, mentioning it.
2612         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2613
2614         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2615
2616 2011-07-11  Eric Blake  <eblake@redhat.com>
2617
2618         ffs: new module
2619         * modules/ffs: New file.
2620         * m4/ffs.m4: Likewise.
2621         * lib/ffs.c: Likewise.
2622         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2623         * modules/strings (Makefile.am): Substitute witness.
2624         (Depends-on): Add c++defs.
2625         * lib/strings.in.h (ffs): Declare.
2626         * modules/ffs-tests: New test file.
2627         * tests/test-ffs.c: Test new module.
2628         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2629         * doc/posix-functions/ffs.texi (ffs): Likewise.
2630
2631         regex: avoid compiler warning
2632         * lib/regex.c (includes): Include <strings.h>, for use of
2633         strcasecmp in regcomp.c.
2634         Reported by Joachim Schmitz.
2635
2636 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2637
2638         stdint: respect system's intmax_t if INTMAX_MAX
2639         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2640         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2641         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2642         long but int64_t is long long, and where we will clash with the
2643         system intmax_t if we override it.  See
2644         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2645         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2646         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2647         similarly for UINTMAX_C.
2648
2649 2011-07-08  Bruno Haible  <bruno@clisp.org>
2650
2651         pthread_sigmask tests: Avoid a compiler warning.
2652         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2653         non-zero.
2654
2655         sigprocmask tests: A better way to avoid a compiler warning.
2656         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2657         (main): Complain if system() returns non-zero.
2658         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2659
2660 2011-07-08  Bruno Haible  <bruno@clisp.org>
2661
2662         pthread_sigmask: Work around IRIX bug.
2663         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2664         bug.
2665         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2666         there may be unblocked pending signals.
2667         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2668
2669 2011-07-08  Bruno Haible  <bruno@clisp.org>
2670
2671         pthread_sigmask: Work around Cygwin bug.
2672         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2673         bug.
2674         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2675         the system's pthread_sigmask function.
2676         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2677
2678 2011-07-08  Bruno Haible  <bruno@clisp.org>
2679
2680         pthread_sigmask: Work around bug in single-threaded implementation.
2681         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2682         FreeBSD, HP-UX, Solaris bug.
2683         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2684         * lib/pthread_sigmask.c: Include <stddef.h>.
2685         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2686         the system's pthread_sigmask function.
2687         * modules/pthread_sigmask (configure.ac): Invoke
2688         gl_PREREQ_PTHREAD_SIGMASK.
2689         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2690         HP-UX, Solaris.
2691
2692 2011-07-08  Eric Blake  <eblake@redhat.com>
2693
2694         test-sigprocmask: avoid compiler warning
2695         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2696         * tests/test-sigprocmask.c (main): Use it to silence warning.
2697         Reported by Jim Meyering.
2698
2699         test-snprintf: avoid compiler warning
2700         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2701         * tests/test-vsnprintf.c (main): Likewise.
2702         Reported by Jim Meyering.
2703
2704 2011-07-08  Bruno Haible  <bruno@clisp.org>
2705
2706         Tests for module 'pthread_sigmask'.
2707         * modules/pthread_sigmask-tests: New file.
2708         * tests/test-pthread_sigmask1.c: New file, based on
2709         tests/test-sigprocmask.c.
2710         * tests/test-pthread_sigmask2.c: New file.
2711
2712 2011-07-08  Jim Meyering  <meyering@redhat.com>
2713
2714         test-getopt.h: avoid warning about an unused variable
2715         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2716
2717 2011-07-07  Jim Meyering  <meyering@redhat.com>
2718
2719         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2720         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2721         now that it no longer contains leading TABs.
2722         Remove unused "url=FIXME" statement.
2723
2724 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2725
2726         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2727         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2728         When gl_THREADLIB is not in use, assume that the POSIX sematics
2729         are desired.  This is better for Emacs, which uses POSIX semantics
2730         on GNUish and/or POSIXish platforms, and does not use threads at
2731         all otherwise.
2732
2733         pthread_sigmask: fix typo when testing for libraries
2734         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2735         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2736
2737 2011-07-08  Eric Blake  <eblake@redhat.com>
2738
2739         fts: introduce FTS_NOATIME
2740         * lib/fts_.h (FTS_NOATIME): New bit flag.
2741         (FTS_OPTIONMASK): Adjust.
2742         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2743         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2744
2745 2011-07-08  Bruno Haible  <bruno@clisp.org>
2746
2747         Tests for module 'thread'.
2748         * modules/thread-tests: New file.
2749         * tests/test-thread_self.c: New file.
2750         * tests/test-thread_create.cc: New file.
2751
2752 2011-07-08  Bruno Haible  <bruno@clisp.org>
2753
2754         thread: Avoid gcc warnings when using gl_thread_self().
2755         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2756         'void *'.
2757         (gl_thread_self_pointer): Update.
2758
2759 2011-07-07  Bruno Haible  <bruno@clisp.org>
2760
2761         signal-c++-tests: Check declaration of pthread_sigmask.
2762         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2763         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2764         $(LIB_PTHREAD_SIGMASK).
2765
2766 2011-07-07  Bruno Haible  <bruno@clisp.org>
2767
2768         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2769         * lib/signal.in.h (pthread_sigmask): Override if
2770         REPLACE_PTHREAD_SIGMASK is 1.
2771         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2772         REPLACE_PTHREAD_SIGMASK.
2773         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2774         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2775         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2776         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2777         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2778
2779 2011-07-07  Bruno Haible  <bruno@clisp.org>
2780
2781         pthread_sigmask: Ensure declaration in <signal.h>.
2782         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2783         include <pthread.h>.
2784         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2785         problem.
2786
2787 2011-07-07  Bruno Haible  <bruno@clisp.org>
2788
2789         pthread_sigmask: Document the module.
2790         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2791
2792 2011-07-07  Bruno Haible  <bruno@clisp.org>
2793
2794         pthread_sigmask: Follow gnulib conventions.
2795         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2796         gl_PTHREAD_SIGMASK.
2797         * modules/pthread_sigmask (configure.ac): Update.
2798
2799 2011-07-07  Bruno Haible  <bruno@clisp.org>
2800
2801         pthread_sigmask: Make declaration C++ safe.
2802         * lib/signal.in.h: In two special conditions, just do an #include_next.
2803         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2804         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2805         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2806         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2807         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2808         not REPLACE_PTHREAD_MASK.
2809         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2810         not REPLACE_PTHREAD_MASK.
2811         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2812
2813 2011-07-07  Bruno Haible  <bruno@clisp.org>
2814
2815         pthread_sigmask: Fix return value.
2816         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2817         * lib/pthread_sigmask.c: New file.
2818         * modules/pthread_sigmask (Files): Add it.
2819         (configure.ac): Invoke AC_LIBOBJ.
2820
2821 2011-07-07  Eric Blake  <eblake@redhat.com>
2822
2823         getopt: more portable argv creation
2824         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2825         const, use char arrays rather than strings.
2826         Suggested by Paul Eggert.
2827
2828 2011-07-07  Bruno Haible  <bruno@clisp.org>
2829
2830         Tests for module 'sigprocmask'.
2831         * modules/sigprocmask-tests: New file.
2832         * tests/test-sigprocmask.c: New file.
2833
2834 2011-07-07  Bruno Haible  <bruno@clisp.org>
2835
2836         float tests: Tweak.
2837         * tests/test-float.c (main): Tweak skip message.
2838
2839 2011-07-07  Eric Blake  <eblake@redhat.com>
2840
2841         getopt: avoid compiler warning during configure
2842         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2843         assigning string literals to non-const pointer.
2844
2845         getopt-gnu: avoid crash in glibc getopt
2846         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2847         * tests/test-getopt.h (test_getopt): Enhance test.
2848         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2849         * doc/posix-functions/getopt.texi (getopt): Document it.
2850         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2851         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2852         Likewise.
2853
2854 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2855
2856         getopt: handle W; without long options in getopt [BZ #12922]
2857         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2858         but no long options are defined, just return 'W'.
2859
2860 2011-07-07  Bruno Haible  <bruno@clisp.org>
2861
2862         Avoid literal tabs.
2863         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2864         variable containing a tab instead of a literal tab.
2865         Reported by Jim Meyering.
2866
2867 2011-07-07  Bruno Haible  <bruno@clisp.org>
2868
2869         Comments.
2870         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2871
2872 2011-07-06  Bruno Haible  <bruno@clisp.org>
2873
2874         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2875         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2876         <winsock2.h>.
2877         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2878         lib/sys_socket.in.h.
2879         (close, gethostname): Hide declarations from <winsock2.h>.
2880         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2881         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2882         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2883         (select): Don't override if gnulib's <sys/select.h> was already
2884         included.
2885         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2886         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2887         setsockopt, shutdown, select): Tweak indentation.
2888
2889 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2890
2891         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2892         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2893         in an application that does not use the sys_select module.
2894
2895 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2896
2897         poll: do not return 0 on timeout=-1
2898         * lib/poll.c: Loop with yield if no events occured
2899
2900 2011-07-06  Eric Blake  <eblake@redhat.com>
2901
2902         pthread_sigmask: always replace when not using pthread
2903         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2904         replacement when using some threading other than pthread.  Fix
2905         logic bug.
2906
2907 2011-07-06  Bruno Haible  <bruno@clisp.org>
2908
2909         Comments.
2910         * m4/printf.m4: Update comments about mingw.
2911
2912 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2913
2914         sys_select: define sigset_t more portably
2915         * lib/sys_select.in.h: Always include <sys/types.h>, since
2916         we now need sigset_t and mingw defines it there.
2917         Include <signal.h> before split inclusion guard, to avoid
2918         mishaps on Solaris, whose <signal.h> eventually includes us.
2919         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2920         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2921         which come from ...
2922         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2923         gl_CHECK_TYPE_SIGSET_T.
2924         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2925         does the real work.
2926         * modules/sys_select (Depends-on): Add 'signal'.
2927
2928         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2929         Suggested by Bruno Haible.
2930
2931         pselect: Use pthread_sigmask, not sigprocmask.
2932         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2933         multithreaded apps better than sigprocmask does.
2934         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2935         sigprocmask directly.
2936
2937 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2938
2939         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2940         Don't #undef,  since we don't need any underlying pselect.
2941         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2942         (Depends-on): Add select.
2943         (Link): Add $(LIBSOCKET).
2944         These changes suggested by Bruno Haible.
2945
2946         pselect: document better
2947         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2948         * doc/posix-functions/pselect.texi (pselect): Document new module.
2949
2950         pthread_sigmask: new module
2951         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2952         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2953         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2954         This is done only as a macro; I don't know how well that'll
2955         work for C++.  Move <sys/types.h> include before the include_next,
2956         to avoid mishap on Solaris.
2957         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2958         * modules/signal (Makefile.am): Substitute the check's results.
2959         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2960
2961         test-pselect: new module
2962         * modules/pselect-tests, tests/test-pselect.c: New files.
2963         * tests/test-select.c, tests/test-sys_select-c++.cc:
2964         If TEST_PSELECT is defined, test pselect instead of testing select.
2965
2966         * tests/test-sys_select.c (sigset_t): Test for it, too.
2967         Suggested by Bruno Haible.
2968
2969 2011-07-05  Eric Blake  <eblake@redhat.com>
2970
2971         snprintf: guarantee %1$d, for libintl
2972         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2973         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2974         * doc/posix-functions/snprintf.texi (snprintf): Update.
2975         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2976         * tests/test-snprintf.c (main): Enhance test.
2977         * tests/test-vsnprintf.c (main): Likewise.
2978
2979 2011-07-05  Jim Meyering  <meyering@redhat.com>
2980
2981         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2982         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2983         per Bruno's request, to accommodate this idiom (no space after "#")
2984         even when the function is inside an #if block:
2985         char *
2986         gets (char *s)
2987         #undef gets
2988         {
2989           ...
2990         }
2991
2992 2011-07-04  Jim Meyering  <meyering@redhat.com>
2993
2994         maint: indent with spaces, not TABs, and add a rule to check this
2995         * tests/test-userspec.c: Indent with spaces, not TABs.
2996         * tests/test-argp.c: Likewise.
2997         * tests/test-c-stack2.sh: Likewise.
2998         * tests/test-parse-duration.sh: Likewise
2999         * m4/strtod.m4: Likewise.
3000         * m4/alloca.m4: Likewise.
3001         * m4/pselect.m4: Likewise.
3002         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
3003
3004 2011-07-03  Jim Meyering  <meyering@redhat.com>
3005
3006         maint.mk: correct omissions in prohibit_argmatch_without_use check
3007         This rule would mistakenly report that argmatch.h is included without
3008         use even when both the argmatch and invalid_arg macro were used.
3009         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
3010         of argmatch and invalid_arg.
3011
3012 2011-07-03  Bruno Haible  <bruno@clisp.org>
3013
3014         Comments about EINTR.
3015         * lib/safe-read.h: Explain the purpose of this module.
3016         * lib/safe-write.h: Likewise.
3017         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
3018         module.
3019         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
3020         module.
3021         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3022
3023 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
3024
3025         xnanosleep: Rewrite to use new dtotimespec module.
3026         It has the conversion code that used to be in xnanosleep.
3027         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
3028         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
3029         (TIME_T_MAX): Remove.
3030         (xnanosleep): Rewrite in terms of dtotimespec.
3031         * modules/xnanosleep (Depends-on): Add dtotimespec.
3032         Remove intprops, stdbool.
3033
3034         timespec-add, timespec-sub: new modules
3035         * lib/timespec.h (timespec_add, timespec_sub): New decls.
3036         * lib/timespec-add.c, lib/timespec-sub.c:
3037         * modules/timespec-add, modules/timespec-sub: New files.
3038
3039         dtotimespec: new module
3040         * lib/timespec.h (dtotimespec): New decl.
3041         * lib/dtotimespec.c, modules/dtotimespec: New files.
3042
3043         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
3044
3045         pselect: new module
3046         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
3047         (pselect): New decls.
3048         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
3049         since the standard pselect decl uses 'restrict'.
3050         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
3051         HAVE_PSELECT, REPLACE_PSELECT.
3052         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
3053         HAVE_PSELECT, REPLACE_PSELECT.
3054         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
3055
3056         sys_select: don't depend on sys_socket
3057         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
3058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
3059         This fix works on GNU and GNU-like platforms, but has not been tested
3060         on native Windows.
3061         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
3062         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
3063         gl_HEADER_SYS_SOCKET.
3064         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
3065         gl_PREREQ_SYS_H_WINSOCK2.
3066
3067 2011-06-29  Eric Blake  <eblake@redhat.com>
3068
3069         pipe2: fix C89 compile problem
3070         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
3071         Reported by Bruno Haible.
3072
3073         pipe, pipe2: don't corrupt fd on error
3074         * lib/pipe.c (pipe): Leave fd unchanged on error.
3075         * lib/pipe2.c (pipe2): Likewise.
3076         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
3077         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3078
3079 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
3080
3081         mmap-anon: do not use regular expressions inadvertently
3082         * m4/mmap-anon.m4: Remove trailing period from strings sought
3083         in the output.
3084
3085 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3086
3087         nanosleep: fix integer overflow problem
3088         * lib/nanosleep.c (my_usleep): Don't assume signed integer
3089         arithmetic wraps around on overflow.
3090
3091         nanosleep: simplify carrying
3092         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
3093         first call to the underyling nanosleep, not for the last one.
3094         This doesn't fix any bugs, but it simplifies the computation of
3095         the remaining delay.  Found while auditing integer overflow issues.
3096
3097         dup2: remove test for existence of fcntl
3098         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
3099         "#if HAVE_FCNTL", in the configure-time test program.
3100         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
3101         and therefore speeds up "configure" a bit.  Found while
3102         adding the dup2 module to Emacs.
3103
3104 2011-06-24  Eric Blake  <eblake@redhat.com>
3105
3106         maint.mk: enhance useless header checks
3107         * top/maint.mk (_sc_header_without_use): Check both include
3108         styles.
3109         (sc_prohibit_assert_without_use)
3110         (sc_prohibit_close_stream_without_use)
3111         (sc_prohibit_getopt_without_use)
3112         (sc_prohibit_quotearg_without_use)
3113         (sc_prohibit_quote_without_use)
3114         (sc_prohibit_long_options_without_use)
3115         (sc_prohibit_inttostr_without_use)
3116         (sc_prohibit_ignore_value_without_use)
3117         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
3118         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
3119         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
3120         (sc_prohibit_hash_pjw_without_use)
3121         (sc_prohibit_safe_read_without_use)
3122         (sc_prohibit_argmatch_without_use)
3123         (sc_prohibit_canonicalize_without_use)
3124         (sc_prohibit_root_dev_ino_without_use)
3125         (sc_prohibit_openat_without_use)
3126         (sc_prohibit_c_ctype_without_use)
3127         (sc_prohibit_signal_without_use)
3128         (sc_prohibit_stdio--_without_use)
3129         (sc_prohibit_stdio-safer_without_use)
3130         (sc_prohibit_strings_without_use)
3131         (sc_prohibit_intprops_without_use)
3132         (sc_prohibit_stddef_without_use)
3133         (sc_prohibit_xfreopen_without_use): Update clients.
3134
3135 2011-06-24  Jim Meyering  <meyering@redhat.com>
3136
3137         syntax-check: keep one maint.mk rule in sync with its header
3138         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
3139         of the bug Eric has just fixed, with today's commit 25e4c2ec.
3140         I prefer to avoid temporary files here, so use <(...), but that
3141         is not supported by /bin/sh, so...
3142         (SHELL): Define to /bin/bash.
3143
3144 2011-06-24  Eric Blake  <eblake@redhat.com>
3145
3146         maint.mk: update sc_prohibit_intprops_without_use
3147         * top/maint.mk (_intprops_names): Match recent changes.
3148
3149 2011-06-24  Bruno Haible  <bruno@clisp.org>
3150
3151         strerror-override: No-op tweak.
3152         * lib/strerror-override.h (strerror_override): Reorder conditions,
3153         for consistency with lib/strerror-override.c.
3154
3155 2011-06-23  Eric Blake  <eblake@redhat.com>
3156
3157         maint.mk: test further PATH_MAX issues
3158         * top/maint.mk (sc_prohibit_path_max_array): Rename...
3159         (sc_prohibit_path_max_allocation): ...and also test alloca.
3160         Suggested by Jim Meyering.
3161
3162 2011-06-22  Eric Blake  <eblake@redhat.com>
3163
3164         maint.mk: add syntax-check to avoid char[PATH_MAX]
3165         * top/maint.mk (sc_prohibit_path_max_array): New rule.
3166
3167         stat: be robust to PATH_MAX definition
3168         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
3169         * modules/stat (Depends-on): Add verify.
3170
3171         link: work around IRIX bug
3172         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
3173         * lib/link.c (rpl_link): Work around it.
3174         * tests/test-link.h (test_link): Enhance test.
3175         * doc/posix-functions/link.texi (link): Document the bug.
3176
3177         getopt: silence clang warning
3178         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
3179         dereference.
3180         Reported by Gustavo Martin Domato.
3181
3182 2011-06-22  Jim Meyering  <meyering@redhat.com>
3183
3184         bootstrap: do not insert a blank line into each .gitignore file
3185         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
3186
3187 2011-06-21  Eric Blake  <eblake@redhat.com>
3188
3189         perror: test for output mismatch
3190         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
3191         perror on IRIX.
3192
3193         strerror_r: fix OpenBSD behavior on out-of-range
3194         * lib/strerror_r.c (strerror_r): Always use maximal string.
3195         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3196
3197         strerror_r: fix OpenBSD behavior on 0
3198         * lib/strerror-override.c (strerror_override): Also override 0
3199         when needed.
3200         * lib/strerror-override.h (strerror_override): Likewise.
3201         * lib/strerror.c (strerror): Simplify, now that 0 override is done
3202         earlier.
3203         * lib/strerror_r.c (strerror_r): Likewise.
3204         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
3205         behavior...
3206         (gl_FUNC_STRERROR_0): ...into new macro.
3207         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
3208         is overridden.
3209         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
3210         * modules/strerror-override (Files): Add strerror.m4.
3211         (configure.ac): Also provide override for 0 when needed.
3212         * doc/posix-functions/strerror.texi (strerror): Document this.
3213         * doc/posix-functions/perror.texi (perror): Likewise.
3214
3215         perror: adjust array size
3216         * modules/perror (Depends-on): Add strerror-override.
3217         * lib/perror.c (perror): Use it to avoid magic number.
3218
3219         strerror-override: reduce size
3220         * lib/strerror-override.c (strerror_override): Use fewer lines.
3221
3222 2011-06-20  Bruno Haible  <bruno@clisp.org>
3223
3224         pathmax: Ensure correct value for PATH_MAX on HP-UX.
3225         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
3226
3227 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3228
3229         alloca: port to compilers that can optimize like GCC 4.6.0
3230         * lib/alloca.c (find_stack_direction): New signature, taken from
3231         Autoconf git.  This works with GCC 4.6.0.  This code should never
3232         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
3233         be used with other compilers that optimize as well as GCC 4.6.0 does.
3234         (alloca): Adjust to new signature.
3235         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
3236         New macro, which patches Autoconf in a similar way.
3237
3238         c-stack: stop worrying about stack direction
3239         * lib/c-stack.c (find_stack_direction): Remove.
3240         (segv_handler): Don't worry about stack direction growth, as it's
3241         too much of a pain to configure this correctly, given how compilers
3242         are optimizing-away our stack-growth detection code.  Instead, assume
3243         that any access to just before or just after the stack is OK.
3244         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3245         Don't require AC_FUNC_ALLOCA; no longer needed.
3246
3247 2011-06-20  Eric Blake  <eblake@redhat.com>
3248
3249         test-stat: don't allocate PATH_MAX bytes
3250         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
3251         PATH_MAX-sized buffer.
3252         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3253         * modules/stat-tests (Depends-on): Likewise.
3254         * tests/test-fstatat.c (includes): Drop pathmax.h.
3255         * tests/test-stat.c (includes): Likewise.
3256         Reported by Bruno Haible.
3257
3258 2011-06-20  Bruno Haible  <bruno@clisp.org>
3259
3260         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3261         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3262         * lib/float.c: New file.
3263         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3264         REPLACE_FLOAT_LDBL.
3265         * modules/float (Files): Add lib/float.c.
3266         (configure.ac): Invoke AC_LIBOBJ.
3267         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3268
3269 2011-06-20  Bruno Haible  <bruno@clisp.org>
3270
3271         Tests for module 'float'.
3272         * modules/float-tests: New file.
3273         * tests/test-float.c: New file.
3274
3275 2011-06-19  Bruno Haible  <bruno@clisp.org>
3276
3277         isinf: Coding style.
3278         * lib/isinf.c: Use GNU coding style.
3279
3280 2011-06-19  Bruno Haible  <bruno@clisp.org>
3281
3282         linkat test: Avoid test failure on AIX 7.1.
3283         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3284         * tests/test-link.h (test_link): Likewise.
3285
3286 2011-06-19  Bruno Haible  <bruno@clisp.org>
3287
3288         pread test: Avoid test failure on OpenBSD 4.9.
3289         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3290
3291 2011-06-19  Bruno Haible  <bruno@clisp.org>
3292
3293         sprintf-posix: Fix test failure on AIX 7.1.
3294         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3295         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3296         on AIX.
3297         * doc/posix-functions/fprintf.texi: Likewise.
3298         * doc/posix-functions/printf.texi: Likewise.
3299         * doc/posix-functions/snprintf.texi: Likewise.
3300         * doc/posix-functions/sprintf.texi: Likewise.
3301         * doc/posix-functions/vdprintf.texi: Likewise.
3302         * doc/posix-functions/vfprintf.texi: Likewise.
3303         * doc/posix-functions/vprintf.texi: Likewise.
3304         * doc/posix-functions/vsnprintf.texi: Likewise.
3305         * doc/posix-functions/vsprintf.texi: Likewise.
3306
3307 2011-06-19  Bruno Haible  <bruno@clisp.org>
3308
3309         roundl-ieee: Fix test failure on AIX 7.1.
3310         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3311         * doc/posix-functions/roundl.texi: Mention problem with negative
3312         arguments.
3313
3314 2011-06-19  Bruno Haible  <bruno@clisp.org>
3315
3316         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3317         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3318         * doc/posix-functions/round.texi: Mention problem with negative
3319         arguments.
3320         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3321
3322 2011-06-19  Bruno Haible  <bruno@clisp.org>
3323
3324         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3325         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3326         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3327         * doc/posix-functions/roundf.texi: Mention problem with negative
3328         arguments.
3329         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3330
3331 2011-06-19  Bruno Haible  <bruno@clisp.org>
3332
3333         ceilf-ieee: Work around bug on MacOS X 10.5.
3334         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3335
3336         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3337         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3338         IEEE compliant, avoid compiler optimizations.
3339         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3340         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3341         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3342         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3343         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3344         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3345         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3346         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3347         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3348         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3349
3350 2011-06-19  Bruno Haible  <bruno@clisp.org>
3351
3352         ceilf-ieee: Work around bug on AIX 7.1.
3353         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3354         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3355
3356 2011-06-19  Bruno Haible  <bruno@clisp.org>
3357
3358         ceil-ieee: Work around bug on AIX 7.1.
3359         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3360         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3361
3362 2011-06-18  Bruno Haible  <bruno@clisp.org>
3363
3364         fsync test: Avoid test failure on MacOS X and AIX.
3365         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3366         EINVAL.
3367
3368 2011-06-18  Bruno Haible  <bruno@clisp.org>
3369
3370         openat, fdopendir tests: Fix link errors.
3371         * modules/openat-tests (Depends-on): Add progname.
3372         * modules/fdopendir-tests (Depends-on): Likewise.
3373         * tests/test-fchownat.c: Include progname.h.
3374         (main): Call set_program_name.
3375         * tests/test-fstatat.c: Include progname.h.
3376         (main): Call set_program_name.
3377         * tests/test-mkdirat.c: Include progname.h.
3378         (main): Call set_program_name.
3379         * tests/test-openat.c: Include progname.h.
3380         (main): Call set_program_name.
3381         * tests/test-unlinkat.c: Include progname.h.
3382         (main): Call set_program_name.
3383         * tests/test-fdopendir.c: Include progname.h.
3384         (main): Call set_program_name.
3385
3386 2011-06-18  Bruno Haible  <bruno@clisp.org>
3387
3388         Doc update.
3389         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3390         HP-UX.
3391         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3392
3393 2011-06-18  Bruno Haible  <bruno@clisp.org>
3394
3395         getcwd tests: Avoid compilation error on HP-UX 11.31.
3396         * modules/getcwd-tests (Depends-on): Add pathmax.
3397         * tests/test-getcwd.c: Include pathmax.h.
3398
3399 2011-06-18  Bruno Haible  <bruno@clisp.org>
3400
3401         isfinite, isinf: Fix link error on AIX 6 and 7.
3402         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
3403         needed, also test the macro with a 'float' argument.
3404         * m4/isinf.m4 (gl_ISINF): Likewise.
3405
3406 2011-06-18  Bruno Haible  <bruno@clisp.org>
3407
3408         getloadavg: Don't clobber LIBS. Regression from previous commit.
3409         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
3410         AC_CHECK_LIB from here...
3411         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
3412         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
3413         gl_func_getloadavg_done.
3414         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3415
3416 2011-06-18  Bruno Haible  <bruno@clisp.org>
3417
3418         clean-temp: Improve documentation.
3419         * lib/clean-temp.h: Explain better how to use this module.
3420         Reported by John Darrington <john@darrington.wattle.id.au>.
3421
3422 2011-06-17  Bruno Haible  <bruno@clisp.org>
3423
3424         pread, pwrite: Avoid cc warning on AIX.
3425         * lib/unistd.in.h (pread): Undefine before defining as a macro.
3426         (pwrite): Likewise.
3427
3428 2011-06-17  Bruno Haible  <bruno@clisp.org>
3429
3430         spawn-pipe tests: Fix link error.
3431         * tests/test-spawn-pipe-child.c: Undefine fprintf.
3432         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3433
3434 2011-06-17  Bruno Haible  <bruno@clisp.org>
3435
3436         Tests: Remove unnecessary dependency.
3437         * modules/canonicalize-tests (Depends-on): Remove progname.
3438         * modules/chown-tests (Depends-on): Likewise.
3439         * modules/dirname-tests (Depends-on): Likewise.
3440         * modules/fdopendir-tests (Depends-on): Likewise.
3441         * modules/fdutimensat-tests (Depends-on): Likewise.
3442         * modules/hash-tests (Depends-on): Likewise.
3443         * modules/lchown-tests (Depends-on): Likewise.
3444         * modules/linkat-tests (Depends-on): Likewise.
3445         * modules/renameat-tests (Depends-on): Likewise.
3446         * modules/spawn-pipe-tests (Depends-on): Likewise.
3447         * modules/utimensat-tests (Depends-on): Likewise.
3448
3449 2011-06-17  Bruno Haible  <bruno@clisp.org>
3450
3451         spawn-pipe tests: Fix link error.
3452         * tests/test-spawn-pipe-child.c: Undefine fflush.
3453
3454 2011-06-17  Bruno Haible  <bruno@clisp.org>
3455
3456         Fix tests link errors.
3457         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
3458         * modules/chown-tests (Makefile.am): Don't link test-chown with
3459         LIBINTL.
3460         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
3461         LIBINTL.
3462         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
3463         LIBINTL.
3464         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
3465         LIBINTL.
3466
3467 2011-06-16  Bruno Haible  <bruno@clisp.org>
3468
3469         crypto/gc-sha1: Fix recent regression.
3470         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
3471         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
3472
3473         crypto/gc-md5: Fix recent regression.
3474         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
3475
3476         crypto/gc-md4: Fix recent regression.
3477         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
3478         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
3479
3480         crypto/gc-arctwo: Fix recent regression.
3481         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3482         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3483
3484         crypto/gc-rijndael: Fix recent regression.
3485         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3486         (configure.ac): Invoke AC_LIBOBJ here.
3487         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3488         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3489
3490         crypto/gc-hmac-sha1: Fix recent regression.
3491         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3492         (configure.ac): Invoke AC_LIBOBJ here.
3493         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3494         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3495
3496         crypto/gc-hmac-md5: Fix recent regression.
3497         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3498         (configure.ac): Invoke AC_LIBOBJ here.
3499         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3500         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3501
3502         crypto/gc-des: Fix recent regression.
3503         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3504         (configure.ac): Invoke AC_LIBOBJ here.
3505         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3506         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3507
3508         crypto/gc-arcfour: Fix recent regression.
3509         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3510         (configure.ac): Invoke AC_LIBOBJ here.
3511         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3512         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3513
3514 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3515
3516         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3517         After the 2011-05-21 change, this macro requires
3518         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3519         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3520
3521 2011-06-16  Bruno Haible  <bruno@clisp.org>
3522
3523         fprintftime: Move AC_LIBOBJ invocations to module description.
3524         * m4/fprintftime.m4: Remove file.
3525         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3526         (configure.ac): Remove gl_FPRINTFTIME call.
3527         (Makefile.am): Augment lib_SOURCES.
3528         Reported by Jim Meyering.
3529
3530 2011-06-16  Bruno Haible  <bruno@clisp.org>
3531
3532         tmpfile-safer: Finish 2011-05-23 commit.
3533         * m4/stdio-safer.m4: Really remove file.
3534         Reported by Jim Meyering.
3535
3536 2011-06-16  Bruno Haible  <bruno@clisp.org>
3537
3538         syntax-check: Fix typo.
3539         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3540         printf-posix.m4.
3541         Reported by Jim Meyering.
3542
3543 2011-06-13  Jim Meyering  <meyering@redhat.com>
3544
3545         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3546         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3547
3548 2011-05-23  Bruno Haible  <bruno@clisp.org>
3549
3550         yesno: Move AC_LIBOBJ invocations to module description.
3551         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3552         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3553
3554 2011-05-23  Bruno Haible  <bruno@clisp.org>
3555
3556         xstrtol: Move AC_LIBOBJ invocations to module description.
3557         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3558         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3559
3560 2011-05-23  Bruno Haible  <bruno@clisp.org>
3561
3562         xstrtold: Move AC_LIBOBJ invocations to module description.
3563         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3564         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3565
3566 2011-05-23  Bruno Haible  <bruno@clisp.org>
3567
3568         xstrtod: Move AC_LIBOBJ invocations to module description.
3569         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3570         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3571
3572 2011-05-23  Bruno Haible  <bruno@clisp.org>
3573
3574         xnanosleep: Move AC_LIBOBJ invocations to module description.
3575         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3576         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3577
3578 2011-05-23  Bruno Haible  <bruno@clisp.org>
3579
3580         xgetcwd: Move AC_LIBOBJ invocations to module description.
3581         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3582         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3583
3584 2011-05-23  Bruno Haible  <bruno@clisp.org>
3585
3586         xalloc: Move AC_LIBOBJ invocations to module description.
3587         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3588         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3589
3590 2011-05-23  Bruno Haible  <bruno@clisp.org>
3591
3592         write-any-file: Move AC_LIBOBJ invocations to module description.
3593         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3594         invocation.
3595         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3596
3597 2011-05-23  Bruno Haible  <bruno@clisp.org>
3598
3599         utimens: Move AC_LIBOBJ invocations to module description.
3600         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3601         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3602
3603 2011-05-23  Bruno Haible  <bruno@clisp.org>
3604
3605         utimecmp: Move AC_LIBOBJ invocations to module description.
3606         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3607         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3608
3609 2011-05-23  Bruno Haible  <bruno@clisp.org>
3610
3611         userspec: Move AC_LIBOBJ invocations to module description.
3612         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3613         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3614
3615 2011-05-23  Bruno Haible  <bruno@clisp.org>
3616
3617         unlinkdir: Move AC_LIBOBJ invocations to module description.
3618         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3619         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3620
3621 2011-05-23  Bruno Haible  <bruno@clisp.org>
3622
3623         unistd-safer: Move AC_LIBOBJ invocations to module description.
3624         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3625         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3626
3627 2011-05-23  Bruno Haible  <bruno@clisp.org>
3628
3629         tempname: Move AC_LIBOBJ invocations to module description.
3630         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3631         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3632
3633 2011-05-23  Bruno Haible  <bruno@clisp.org>
3634
3635         strftime: Move AC_LIBOBJ invocations to module description.
3636         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3637         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3638
3639 2011-05-23  Bruno Haible  <bruno@clisp.org>
3640
3641         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3642         * m4/stdlib-safer.m4: Remove file.
3643         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3644         (configure.ac): Remove gl_STDLIB_SAFER call.
3645         (Makefile.am): Augment lib_SOURCES.
3646
3647 2011-05-23  Bruno Haible  <bruno@clisp.org>
3648
3649         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3650         * m4/stdio-safer.m4: Remove file.
3651         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3652         (configure.ac): Remove gl_TMPFILE_SAFER call.
3653         (Makefile.am): Augment lib_SOURCES.
3654
3655 2011-05-23  Bruno Haible  <bruno@clisp.org>
3656
3657         popen-safer: Move AC_LIBOBJ invocations to module description.
3658         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3659         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3660         (configure.ac): Remove gl_POPEN_SAFER call.
3661         (Makefile.am): Augment lib_SOURCES.
3662
3663 2011-05-23  Bruno Haible  <bruno@clisp.org>
3664
3665         freopen-safer: Move AC_LIBOBJ invocations to module description.
3666         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3667         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3668         (configure.ac): Remove gl_FREOPEN_SAFER call.
3669         (Makefile.am): Augment lib_SOURCES.
3670
3671 2011-05-23  Bruno Haible  <bruno@clisp.org>
3672
3673         fopen-safer: Move AC_LIBOBJ invocations to module description.
3674         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3675         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3676         (configure.ac): Remove gl_FOPEN_SAFER call.
3677         (Makefile.am): Augment lib_SOURCES.
3678
3679 2011-05-23  Bruno Haible  <bruno@clisp.org>
3680
3681         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3682         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3683         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3684
3685 2011-05-23  Bruno Haible  <bruno@clisp.org>
3686
3687         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3688         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3689         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3690
3691 2011-05-23  Bruno Haible  <bruno@clisp.org>
3692
3693         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3694         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3695         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3696
3697 2011-05-23  Bruno Haible  <bruno@clisp.org>
3698
3699         settime: Move AC_LIBOBJ invocations to module description.
3700         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3701         * modules/settime (Makefile.am): Augment lib_SOURCES.
3702
3703 2011-05-23  Bruno Haible  <bruno@clisp.org>
3704
3705         savedir: Move AC_LIBOBJ invocations to module description.
3706         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3707         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3708
3709 2011-05-23  Bruno Haible  <bruno@clisp.org>
3710
3711         save-cwd: Move AC_LIBOBJ invocations to module description.
3712         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3713         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3714
3715 2011-05-23  Bruno Haible  <bruno@clisp.org>
3716
3717         same: Move AC_LIBOBJ invocations to module description.
3718         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3719         * modules/same (Makefile.am): Augment lib_SOURCES.
3720
3721 2011-05-23  Bruno Haible  <bruno@clisp.org>
3722
3723         safe-write: Move AC_LIBOBJ invocations to module description.
3724         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3725         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3726         instead of gl_SAFE_WRITE.
3727         (Makefile.am): Augment lib_SOURCES.
3728
3729 2011-05-23  Bruno Haible  <bruno@clisp.org>
3730
3731         safe-read: Move AC_LIBOBJ invocations to module description.
3732         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3733         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3734         of gl_SAFE_READ.
3735         (Makefile.am): Augment lib_SOURCES.
3736
3737 2011-05-23  Bruno Haible  <bruno@clisp.org>
3738
3739         safe-alloc: Move AC_LIBOBJ invocations to module description.
3740         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3741         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3742
3743 2011-05-23  Bruno Haible  <bruno@clisp.org>
3744
3745         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3746         * m4/rijndael.m4: Remove file.
3747         * modules/crypto/rijndael (Files): Remove it.
3748         (configure.ac): Remove gl_RIJNDAEL call.
3749         (Makefile.am): Augment lib_SOURCES.
3750
3751 2011-05-23  Bruno Haible  <bruno@clisp.org>
3752
3753         readtokens: Move AC_LIBOBJ invocations to module description.
3754         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3755         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3756
3757 2011-05-23  Bruno Haible  <bruno@clisp.org>
3758
3759         read-file: Move AC_LIBOBJ invocations to module description.
3760         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3761         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3762         of gl_FUNC_READ_FILE.
3763         (Makefile.am): Augment lib_SOURCES.
3764
3765 2011-05-23  Bruno Haible  <bruno@clisp.org>
3766
3767         quotearg: Move AC_LIBOBJ invocations to module description.
3768         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3769         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3770
3771 2011-05-23  Bruno Haible  <bruno@clisp.org>
3772
3773         quote: Move AC_LIBOBJ invocations to module description.
3774         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3775         * modules/quote (Makefile.am): Augment lib_SOURCES.
3776
3777 2011-05-23  Bruno Haible  <bruno@clisp.org>
3778
3779         posixver: Move AC_LIBOBJ invocations to module description.
3780         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3781         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3782
3783 2011-05-23  Bruno Haible  <bruno@clisp.org>
3784
3785         posixtm: Move AC_LIBOBJ invocations to module description.
3786         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3787         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3788
3789 2011-05-23  Bruno Haible  <bruno@clisp.org>
3790
3791         physmem: Move AC_LIBOBJ invocations to module description.
3792         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3793         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3794
3795 2011-05-23  Bruno Haible  <bruno@clisp.org>
3796
3797         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3798         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3799         invocation.
3800         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3801
3802 2011-05-23  Bruno Haible  <bruno@clisp.org>
3803
3804         mpsort: Move AC_LIBOBJ invocations to module description.
3805         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3806         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3807
3808 2011-05-23  Bruno Haible  <bruno@clisp.org>
3809
3810         modechange: Move AC_LIBOBJ invocations to module description.
3811         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3812         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3813
3814 2011-05-23  Bruno Haible  <bruno@clisp.org>
3815
3816         mkdir-p: Move AC_LIBOBJ invocations to module description.
3817         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3818         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3819
3820 2011-05-23  Bruno Haible  <bruno@clisp.org>
3821
3822         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3823         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3824         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3825
3826 2011-05-23  Bruno Haible  <bruno@clisp.org>
3827
3828         mgetgroups: Move AC_LIBOBJ invocations to module description.
3829         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3830         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3831
3832 2011-05-23  Bruno Haible  <bruno@clisp.org>
3833
3834         memxor: Move AC_LIBOBJ invocations to module description.
3835         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3836         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3837
3838 2011-05-23  Bruno Haible  <bruno@clisp.org>
3839
3840         memcoll: Move AC_LIBOBJ invocations to module description.
3841         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3842         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3843
3844 2011-05-23  Bruno Haible  <bruno@clisp.org>
3845
3846         memcasecmp: Move AC_LIBOBJ invocations to module description.
3847         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3848         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3849
3850 2011-05-23  Bruno Haible  <bruno@clisp.org>
3851
3852         crypto/md5: Move AC_LIBOBJ invocations to module description.
3853         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3854         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3855
3856 2011-05-23  Bruno Haible  <bruno@clisp.org>
3857
3858         crypto/md4: Move AC_LIBOBJ invocations to module description.
3859         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3860         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3861
3862 2011-05-23  Bruno Haible  <bruno@clisp.org>
3863
3864         crypto/md2: Move AC_LIBOBJ invocations to module description.
3865         * m4/md2.m4: Remove file.
3866         * modules/crypto/md2 (Files): Remove it.
3867         (configure.ac): Remove gl_MD2 call.
3868         (Makefile.am): Augment lib_SOURCES.
3869
3870 2011-05-23  Bruno Haible  <bruno@clisp.org>
3871
3872         long-options: Move AC_LIBOBJ invocations to module description.
3873         * m4/long-options.m4: Remove file.
3874         * modules/long-options (Files): Remove it.
3875         (configure.ac): Remove gl_LONG_OPTIONS call.
3876         (Makefile.am): Augment lib_SOURCES.
3877
3878 2011-05-23  Bruno Haible  <bruno@clisp.org>
3879
3880         i-ring: Move AC_LIBOBJ invocations to module description.
3881         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3882         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3883
3884 2011-05-23  Bruno Haible  <bruno@clisp.org>
3885
3886         idcache: Move AC_LIBOBJ invocations to module description.
3887         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3888         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3889
3890 2011-05-23  Bruno Haible  <bruno@clisp.org>
3891
3892         human: Move AC_LIBOBJ invocations to module description.
3893         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3894         * modules/human (Makefile.am): Augment lib_SOURCES.
3895
3896 2011-05-23  Bruno Haible  <bruno@clisp.org>
3897
3898         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3899         * m4/hmac-sha1.m4: Remove file.
3900         * modules/crypto/hmac-sha1 (Files): Remove it.
3901         (configure.ac): Remove gl_HMAC_SHA1 call.
3902         (Makefile.am): Augment lib_SOURCES.
3903
3904 2011-05-23  Bruno Haible  <bruno@clisp.org>
3905
3906         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3907         * m4/hmac-md5.m4: Remove file.
3908         * modules/crypto/hmac-md5 (Files): Remove it.
3909         (configure.ac): Remove gl_HMAC_MD5 call.
3910         (Makefile.am): Augment lib_SOURCES.
3911
3912 2011-05-23  Bruno Haible  <bruno@clisp.org>
3913
3914         hash: Move AC_LIBOBJ invocations to module description.
3915         * m4/hash.m4: Remove file.
3916         * modules/hash (Files): Remove it.
3917         (configure.ac): Remove gl_HASH call.
3918         (Makefile.am): Augment lib_SOURCES.
3919
3920 2011-05-23  Bruno Haible  <bruno@clisp.org>
3921
3922         hard-locale: Move AC_LIBOBJ invocations to module description.
3923         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3924         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3925
3926 2011-05-23  Bruno Haible  <bruno@clisp.org>
3927
3928         getugroups: Move AC_LIBOBJ invocations to module description.
3929         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3930         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3931
3932 2011-05-23  Bruno Haible  <bruno@clisp.org>
3933
3934         gettime: Move AC_LIBOBJ invocations to module description.
3935         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3936         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3937
3938 2011-05-23  Bruno Haible  <bruno@clisp.org>
3939
3940         getndelim2: Move AC_LIBOBJ invocations to module description.
3941         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3942         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3943
3944 2011-05-23  Bruno Haible  <bruno@clisp.org>
3945
3946         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3947         * m4/gc-pbkdf2-sha1.m4: Remove file.
3948         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3949         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3950         (Makefile.am): Augment lib_SOURCES.
3951
3952 2011-05-23  Bruno Haible  <bruno@clisp.org>
3953
3954         fts: Move AC_LIBOBJ invocations to module description.
3955         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3956         * modules/fts (configure.ac): ... to here.
3957
3958 2011-05-23  Bruno Haible  <bruno@clisp.org>
3959
3960         file-type: Move AC_LIBOBJ invocations to module description.
3961         * m4/file-type.m4: Remove file.
3962         * modules/file-type (Files): Remove it.
3963         (configure.ac): Remove gl_FILE_TYPE call.
3964         (Makefile.am): Augment lib_SOURCES.
3965
3966 2011-05-23  Bruno Haible  <bruno@clisp.org>
3967
3968         filenamecat*: Respect rules for use of AC_LIBOBJ.
3969         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3970         Remove AC_LIBOBJ invocation.
3971         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3972         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3973
3974 2011-05-23  Bruno Haible  <bruno@clisp.org>
3975
3976         filemode: Move AC_LIBOBJ invocations to module description.
3977         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3978         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3979
3980 2011-05-23  Bruno Haible  <bruno@clisp.org>
3981
3982         openat-safer: Move AC_LIBOBJ invocations to module description.
3983         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3984         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3985
3986 2011-05-23  Bruno Haible  <bruno@clisp.org>
3987
3988         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3989         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3990         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3991
3992 2011-05-23  Bruno Haible  <bruno@clisp.org>
3993
3994         exclude: Move AC_LIBOBJ invocations to module description.
3995         * m4/exclude.m4: Remove file.
3996         * modules/exclude (Files): Remove it.
3997         (configure.ac): Remove gl_EXCLUDE call.
3998         (Makefile.am): Augment lib_SOURCES.
3999
4000 2011-05-23  Bruno Haible  <bruno@clisp.org>
4001
4002         dirname*: Respect rules for use of AC_LIBOBJ.
4003         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
4004         invocations.
4005         * modules/dirname (Makefile.am): Augment lib_SOURCES.
4006         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
4007
4008 2011-05-23  Bruno Haible  <bruno@clisp.org>
4009
4010         dirent-safer: Move AC_LIBOBJ invocations to module description.
4011         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
4012         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
4013
4014 2011-05-23  Bruno Haible  <bruno@clisp.org>
4015
4016         crypto/des: Move AC_LIBOBJ invocations to module description.
4017         * m4/des.m4: Remove file.
4018         * modules/crypto/des (Files): Remove it.
4019         (configure.ac): Remove gl_DES call.
4020         (Makefile.am): Augment lib_SOURCES.
4021
4022 2011-05-23  Bruno Haible  <bruno@clisp.org>
4023
4024         cycle-check: Move AC_LIBOBJ invocations to module description.
4025         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
4026         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
4027
4028 2011-05-23  Bruno Haible  <bruno@clisp.org>
4029
4030         c-strtold: Move AC_LIBOBJ invocations to module description.
4031         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
4032         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
4033
4034 2011-05-23  Bruno Haible  <bruno@clisp.org>
4035
4036         c-strtod: Move AC_LIBOBJ invocations to module description.
4037         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
4038         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
4039
4040 2011-05-23  Bruno Haible  <bruno@clisp.org>
4041
4042         crc: Move AC_LIBOBJ invocations to module description.
4043         * m4/crc.m4: Remove file.
4044         * modules/crc (Files): Remove it.
4045         (configure.ac): Remove gl_CRC call.
4046         (Makefile.am): Augment lib_SOURCES.
4047
4048 2011-05-23  Bruno Haible  <bruno@clisp.org>
4049
4050         close-stream: Move AC_LIBOBJ invocations to module description.
4051         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
4052         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
4053
4054 2011-05-23  Bruno Haible  <bruno@clisp.org>
4055
4056         closeout: Move AC_LIBOBJ invocations to module description.
4057         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
4058         * modules/closeout (Makefile.am): Augment lib_SOURCES.
4059
4060 2011-05-23  Bruno Haible  <bruno@clisp.org>
4061
4062         closein: Move AC_LIBOBJ invocations to module description.
4063         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
4064         * modules/closein (Makefile.am): Augment lib_SOURCES.
4065
4066 2011-05-23  Bruno Haible  <bruno@clisp.org>
4067
4068         cloexec: Move AC_LIBOBJ invocations to module description.
4069         * m4/cloexec.m4: Remove file.
4070         * modules/cloexec (Files): Remove it.
4071         (configure.ac): Remove gl_CLOEXEC call.
4072         (Makefile.am): Augment lib_SOURCES.
4073
4074 2011-05-23  Bruno Haible  <bruno@clisp.org>
4075
4076         check-version: Move AC_LIBOBJ invocations to module description.
4077         * m4/check-version.m4: Remove file.
4078         * modules/check-version (Files): Remove it.
4079         (configure.ac): Remove gl_CHECK_VERSION call.
4080         (Makefile.am): Augment lib_SOURCES.
4081
4082 2011-05-23  Bruno Haible  <bruno@clisp.org>
4083
4084         chdir-safer: Move AC_LIBOBJ invocations to module description.
4085         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
4086         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
4087
4088 2011-05-23  Bruno Haible  <bruno@clisp.org>
4089
4090         canonicalize: Move AC_LIBOBJ invocations to module description.
4091         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
4092         AC_LIBOBJ invocation.
4093         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
4094
4095 2011-05-23  Bruno Haible  <bruno@clisp.org>
4096
4097         canon-host: Move AC_LIBOBJ invocations to module description.
4098         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
4099         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
4100         instead of gl_CANON_HOST.
4101         (Makefile.am): Augment lib_SOURCES.
4102
4103 2011-05-23  Bruno Haible  <bruno@clisp.org>
4104
4105         backupfile: Move AC_LIBOBJ invocations to module description.
4106         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
4107         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
4108
4109 2011-05-23  Bruno Haible  <bruno@clisp.org>
4110
4111         argmatch: Move AC_LIBOBJ invocations to module description.
4112         * m4/argmatch.m4: Remove file.
4113         * modules/argmatch (Files): Remove it.
4114         (configure.ac): Remove gl_ARGMATCH call.
4115         (Makefile.am): Augment lib_SOURCES.
4116
4117 2011-05-23  Bruno Haible  <bruno@clisp.org>
4118
4119         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
4120         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
4121         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
4122
4123 2011-05-23  Bruno Haible  <bruno@clisp.org>
4124
4125         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
4126         * m4/arcfour.m4: Remove file.
4127         * modules/crypto/arcfour (Files): Remove it.
4128         (configure.ac): Remove gl_ARCFOUR call.
4129         (Makefile.am): Augment lib_SOURCES.
4130
4131 2011-05-22  Bruno Haible  <bruno@clisp.org>
4132
4133         write: Move AC_LIBOBJ invocations to module description.
4134         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
4135         * modules/write (configure.ac): ... to here.
4136
4137 2011-05-22  Bruno Haible  <bruno@clisp.org>
4138
4139         wmemset: Move AC_LIBOBJ invocations to module description.
4140         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
4141         here...
4142         * modules/wmemset (configure.ac): ... to here.
4143
4144 2011-05-22  Bruno Haible  <bruno@clisp.org>
4145
4146         wmemmove: Move AC_LIBOBJ invocations to module description.
4147         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
4148         here...
4149         * modules/wmemmove (configure.ac): ... to here.
4150
4151 2011-05-22  Bruno Haible  <bruno@clisp.org>
4152
4153         wmemcpy: Move AC_LIBOBJ invocations to module description.
4154         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
4155         here...
4156         * modules/wmemcpy (configure.ac): ... to here.
4157
4158 2011-05-22  Bruno Haible  <bruno@clisp.org>
4159
4160         wmemcmp: Move AC_LIBOBJ invocations to module description.
4161         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
4162         here...
4163         * modules/wmemcmp (configure.ac): ... to here.
4164
4165 2011-05-22  Bruno Haible  <bruno@clisp.org>
4166
4167         wmemchr: Move AC_LIBOBJ invocations to module description.
4168         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
4169         here...
4170         * modules/wmemchr (configure.ac): ... to here.
4171
4172 2011-05-22  Bruno Haible  <bruno@clisp.org>
4173
4174         wcswidth: Move AC_LIBOBJ invocations to module description.
4175         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
4176         here...
4177         * modules/wcswidth (configure.ac): ... to here.
4178
4179 2011-05-22  Bruno Haible  <bruno@clisp.org>
4180
4181         wcwidth: Respect rules for use of AC_LIBOBJ.
4182         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
4183         invocation from here...
4184         * modules/wcwidth (configure.ac): ... to here.
4185         (Depends-on): Update conditions.
4186
4187 2011-05-22  Bruno Haible  <bruno@clisp.org>
4188
4189         wctype: Move AC_LIBOBJ invocations to module description.
4190         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
4191         invocation from here...
4192         * modules/wctype (configure.ac): ... to here.
4193         (Depends-on): Update conditions.
4194
4195 2011-05-22  Bruno Haible  <bruno@clisp.org>
4196
4197         wctrans: Move AC_LIBOBJ invocations to module description.
4198         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
4199         invocation from here...
4200         * modules/wctrans (configure.ac): ... to here.
4201
4202 2011-05-22  Bruno Haible  <bruno@clisp.org>
4203
4204         wctomb: Move AC_LIBOBJ invocations to module description.
4205         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
4206         invocations from here...
4207         * modules/wctomb (configure.ac): ... to here.
4208
4209 2011-05-22  Bruno Haible  <bruno@clisp.org>
4210
4211         wctob: Move AC_LIBOBJ invocations to module description.
4212         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
4213         gl_PREREQ_WCTOB invocations from here...
4214         * modules/wctob (configure.ac): ... to here.
4215         (Depends-on): Update conditions.
4216
4217 2011-05-22  Bruno Haible  <bruno@clisp.org>
4218
4219         wcsxfrm: Move AC_LIBOBJ invocations to module description.
4220         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
4221         here...
4222         * modules/wcsxfrm (configure.ac): ... to here.
4223
4224 2011-05-22  Bruno Haible  <bruno@clisp.org>
4225
4226         wcstok: Move AC_LIBOBJ invocations to module description.
4227         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
4228         * modules/wcstok (configure.ac): ... to here.
4229
4230 2011-05-22  Bruno Haible  <bruno@clisp.org>
4231
4232         wcsstr: Move AC_LIBOBJ invocations to module description.
4233         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
4234         * modules/wcsstr (configure.ac): ... to here.
4235
4236 2011-05-22  Bruno Haible  <bruno@clisp.org>
4237
4238         wcsspn: Move AC_LIBOBJ invocations to module description.
4239         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
4240         * modules/wcsspn (configure.ac): ... to here.
4241
4242 2011-05-22  Bruno Haible  <bruno@clisp.org>
4243
4244         wcsrtombs: Move AC_LIBOBJ invocations to module description.
4245         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
4246         gl_PREREQ_WCSRTOMBS invocations from here...
4247         * modules/wcsrtombs (configure.ac): ... to here.
4248
4249 2011-05-22  Bruno Haible  <bruno@clisp.org>
4250
4251         wcsrchr: Move AC_LIBOBJ invocations to module description.
4252         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4253         here...
4254         * modules/wcsrchr (configure.ac): ... to here.
4255
4256 2011-05-22  Bruno Haible  <bruno@clisp.org>
4257
4258         wcspbrk: Move AC_LIBOBJ invocations to module description.
4259         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4260         here...
4261         * modules/wcspbrk (configure.ac): ... to here.
4262
4263 2011-05-22  Bruno Haible  <bruno@clisp.org>
4264
4265         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4266         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4267         gl_PREREQ_WCSNRTOMBS invocations from here...
4268         * modules/wcsnrtombs (configure.ac): ... to here.
4269
4270 2011-05-22  Bruno Haible  <bruno@clisp.org>
4271
4272         wcsnlen: Move AC_LIBOBJ invocations to module description.
4273         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4274         here...
4275         * modules/wcsnlen (configure.ac): ... to here.
4276
4277 2011-05-22  Bruno Haible  <bruno@clisp.org>
4278
4279         wcsncpy: Move AC_LIBOBJ invocations to module description.
4280         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4281         here...
4282         * modules/wcsncpy (configure.ac): ... to here.
4283
4284 2011-05-22  Bruno Haible  <bruno@clisp.org>
4285
4286         wcsncmp: Move AC_LIBOBJ invocations to module description.
4287         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4288         here...
4289         * modules/wcsncmp (configure.ac): ... to here.
4290
4291 2011-05-22  Bruno Haible  <bruno@clisp.org>
4292
4293         wcsncat: Move AC_LIBOBJ invocations to module description.
4294         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4295         here...
4296         * modules/wcsncat (configure.ac): ... to here.
4297
4298 2011-05-22  Bruno Haible  <bruno@clisp.org>
4299
4300         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4301         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4302         from here...
4303         * modules/wcsncasecmp (configure.ac): ... to here.
4304
4305 2011-05-22  Bruno Haible  <bruno@clisp.org>
4306
4307         wcslen: Move AC_LIBOBJ invocations to module description.
4308         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4309         * modules/wcslen (configure.ac): ... to here.
4310
4311 2011-05-22  Bruno Haible  <bruno@clisp.org>
4312
4313         wcsdup: Move AC_LIBOBJ invocations to module description.
4314         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4315         * modules/wcsdup (configure.ac): ... to here.
4316
4317 2011-05-22  Bruno Haible  <bruno@clisp.org>
4318
4319         wcscspn: Move AC_LIBOBJ invocations to module description.
4320         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4321         here...
4322         * modules/wcscspn (configure.ac): ... to here.
4323
4324 2011-05-22  Bruno Haible  <bruno@clisp.org>
4325
4326         wcscpy: Move AC_LIBOBJ invocations to module description.
4327         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4328         * modules/wcscpy (configure.ac): ... to here.
4329
4330 2011-05-22  Bruno Haible  <bruno@clisp.org>
4331
4332         wcscoll: Move AC_LIBOBJ invocations to module description.
4333         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4334         here...
4335         * modules/wcscoll (configure.ac): ... to here.
4336
4337 2011-05-22  Bruno Haible  <bruno@clisp.org>
4338
4339         wcscmp: Move AC_LIBOBJ invocations to module description.
4340         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4341         * modules/wcscmp (configure.ac): ... to here.
4342
4343 2011-05-22  Bruno Haible  <bruno@clisp.org>
4344
4345         wcschr: Move AC_LIBOBJ invocations to module description.
4346         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4347         * modules/wcschr (configure.ac): ... to here.
4348
4349 2011-05-22  Bruno Haible  <bruno@clisp.org>
4350
4351         wcscat: Move AC_LIBOBJ invocations to module description.
4352         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4353         * modules/wcscat (configure.ac): ... to here.
4354
4355 2011-05-22  Bruno Haible  <bruno@clisp.org>
4356
4357         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4358         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4359         here...
4360         * modules/wcscasecmp (configure.ac): ... to here.
4361
4362 2011-05-22  Bruno Haible  <bruno@clisp.org>
4363
4364         wcrtomb: Move AC_LIBOBJ invocations to module description.
4365         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4366         invocations from here...
4367         * modules/wcrtomb (configure.ac): ... to here.
4368
4369 2011-05-22  Bruno Haible  <bruno@clisp.org>
4370
4371         wcpncpy: Move AC_LIBOBJ invocations to module description.
4372         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4373         here...
4374         * modules/wcpncpy (configure.ac): ... to here.
4375
4376 2011-05-22  Bruno Haible  <bruno@clisp.org>
4377
4378         wcpcpy: Move AC_LIBOBJ invocations to module description.
4379         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4380         * modules/wcpcpy (configure.ac): ... to here.
4381
4382 2011-05-22  Bruno Haible  <bruno@clisp.org>
4383
4384         waitpid: Move AC_LIBOBJ invocations to module description.
4385         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4386         invocation from here...
4387         * modules/waitpid (configure.ac): ... to here.
4388
4389 2011-05-22  Bruno Haible  <bruno@clisp.org>
4390
4391         utimensat: Move AC_LIBOBJ invocations to module description.
4392         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4393         here...
4394         * modules/utimensat (configure.ac): ... to here.
4395
4396 2011-05-22  Bruno Haible  <bruno@clisp.org>
4397
4398         usleep: Move AC_LIBOBJ invocations to module description.
4399         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
4400         here...
4401         * modules/usleep (configure.ac): ... to here.
4402
4403 2011-05-22  Bruno Haible  <bruno@clisp.org>
4404
4405         unlockpt: Move AC_LIBOBJ invocations to module description.
4406         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
4407         gl_PREREQ_UNLOCKPT invocations from here...
4408         * modules/unlockpt (configure.ac): ... to here.
4409
4410 2011-05-22  Bruno Haible  <bruno@clisp.org>
4411
4412         unlink: Respect rules for use of AC_LIBOBJ.
4413         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
4414         * modules/unlink (configure.ac): ... to here.
4415
4416 2011-05-22  Bruno Haible  <bruno@clisp.org>
4417
4418         uname: Move AC_LIBOBJ invocations to module description.
4419         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
4420         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
4421         here...
4422         * modules/uname (configure.ac): ... to here.
4423
4424 2011-05-22  Bruno Haible  <bruno@clisp.org>
4425
4426         ttyname_r: Move AC_LIBOBJ invocations to module description.
4427         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
4428         gl_PREREQ_TTYNAME_R invocations from here...
4429         * modules/ttyname_r (configure.ac): ... to here.
4430
4431 2011-05-22  Bruno Haible  <bruno@clisp.org>
4432
4433         tsearch: Move AC_LIBOBJ invocations to module description.
4434         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
4435         invocations from here...
4436         * modules/tsearch (configure.ac): ... to here.
4437
4438 2011-05-22  Bruno Haible  <bruno@clisp.org>
4439
4440         towctrans: Move AC_LIBOBJ invocations to module description.
4441         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
4442         AC_LIBOBJ invocation from here...
4443         * modules/towctrans (configure.ac): ... to here.
4444
4445 2011-05-22  Bruno Haible  <bruno@clisp.org>
4446
4447         tmpfile: Move AC_LIBOBJ invocations to module description.
4448         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
4449         invocations from here...
4450         * modules/tmpfile (configure.ac): ... to here.
4451
4452 2011-05-22  Bruno Haible  <bruno@clisp.org>
4453
4454         times: Move AC_LIBOBJ invocations to module description.
4455         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
4456         * modules/times (configure.ac): ... to here.
4457
4458 2011-05-22  Bruno Haible  <bruno@clisp.org>
4459
4460         time_r: Move AC_LIBOBJ invocations to module description.
4461         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
4462         invocations from here...
4463         * modules/time_r (configure.ac): ... to here.
4464
4465 2011-05-22  Bruno Haible  <bruno@clisp.org>
4466
4467         timegm: Move AC_LIBOBJ invocations to module description.
4468         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
4469         invocations from here...
4470         * modules/timegm (configure.ac): ... to here.
4471
4472 2011-05-22  Bruno Haible  <bruno@clisp.org>
4473
4474         tcgetsid: Move AC_LIBOBJ invocations to module description.
4475         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
4476         and gl_PREREQ_TCGETSID invocations from here...
4477         * modules/tcgetsid (configure.ac): ... to here.
4478         (Depends-on): Update conditions.
4479
4480 2011-05-22  Bruno Haible  <bruno@clisp.org>
4481
4482         symlinkat: Move AC_LIBOBJ invocations to module description.
4483         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4484         here...
4485         * modules/symlinkat (configure.ac): ... to here.
4486
4487 2011-05-22  Bruno Haible  <bruno@clisp.org>
4488
4489         symlink: Move AC_LIBOBJ invocations to module description.
4490         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4491         here...
4492         * modules/symlink (configure.ac): ... to here.
4493
4494 2011-05-22  Bruno Haible  <bruno@clisp.org>
4495
4496         strverscmp: Move AC_LIBOBJ invocations to module description.
4497         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4498         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4499         from here...
4500         * modules/strverscmp (configure.ac): ... to here.
4501
4502 2011-05-22  Bruno Haible  <bruno@clisp.org>
4503
4504         strtok_r: Move AC_LIBOBJ invocations to module description.
4505         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4506         and gl_PREREQ_STRTOK_R invocations from here...
4507         * modules/strtok_r (configure.ac): ... to here.
4508         (Depends-on): Update conditions.
4509
4510 2011-05-22  Bruno Haible  <bruno@clisp.org>
4511
4512         strtoumax: Move AC_LIBOBJ invocations to module description.
4513         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4514         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4515         from here...
4516         * modules/strtoumax (configure.ac): ... to here.
4517
4518 2011-05-22  Bruno Haible  <bruno@clisp.org>
4519
4520         strtoimax: Move AC_LIBOBJ invocations to module description.
4521         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4522         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4523         from here...
4524         * modules/strtoimax (configure.ac): ... to here.
4525
4526 2011-05-22  Bruno Haible  <bruno@clisp.org>
4527
4528         strtoull: Move AC_LIBOBJ invocations to module description.
4529         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4530         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4531         from here...
4532         * modules/strtoull (configure.ac): ... to here.
4533
4534 2011-05-22  Bruno Haible  <bruno@clisp.org>
4535
4536         strtoll: Move AC_LIBOBJ invocations to module description.
4537         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4538         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4539         here...
4540         * modules/strtoll (configure.ac): ... to here.
4541
4542 2011-05-22  Bruno Haible  <bruno@clisp.org>
4543
4544         strtoul: Move AC_LIBOBJ invocations to module description.
4545         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4546         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4547         * modules/strtoul (configure.ac): ... to here.
4548
4549 2011-05-22  Bruno Haible  <bruno@clisp.org>
4550
4551         strtol: Move AC_LIBOBJ invocations to module description.
4552         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4553         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4554         * modules/strtol (configure.ac): ... to here.
4555
4556 2011-05-22  Bruno Haible  <bruno@clisp.org>
4557
4558         strtod: Move AC_LIBOBJ invocations to module description.
4559         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4560         invocations from here...
4561         * modules/strtod (configure.ac): ... to here.
4562
4563 2011-05-22  Bruno Haible  <bruno@clisp.org>
4564
4565         strstr*: Move AC_LIBOBJ invocations to module description.
4566         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4567         invocations from here...
4568         * modules/strstr-simple (configure.ac): ... to here.
4569         * modules/strstr (configure.ac): ... and here.
4570
4571 2011-05-22  Bruno Haible  <bruno@clisp.org>
4572
4573         strsignal: Move AC_LIBOBJ invocations to module description.
4574         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4575         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4576         * modules/strsignal (configure.ac): ... to here.
4577         (Depends-on): Update conditions.
4578
4579 2011-05-22  Bruno Haible  <bruno@clisp.org>
4580
4581         strsep: Move AC_LIBOBJ invocations to module description.
4582         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4583         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4584         here...
4585         * modules/strsep (configure.ac): ... to here.
4586
4587 2011-05-22  Bruno Haible  <bruno@clisp.org>
4588
4589         strptime: Move AC_LIBOBJ invocations to module description.
4590         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4591         gl_PREREQ_STRPTIME invocations from here...
4592         * modules/strptime (configure.ac): ... to here.
4593
4594 2011-05-22  Bruno Haible  <bruno@clisp.org>
4595
4596         strpbrk: Move AC_LIBOBJ invocations to module description.
4597         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4598         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4599         here...
4600         * modules/strpbrk (configure.ac): ... to here.
4601
4602 2011-05-22  Bruno Haible  <bruno@clisp.org>
4603
4604         strnlen: Move AC_LIBOBJ invocations to module description.
4605         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4606         invocations from here...
4607         * modules/strnlen (configure.ac): ... to here.
4608
4609 2011-05-22  Bruno Haible  <bruno@clisp.org>
4610
4611         strndup: Move AC_LIBOBJ invocations to module description.
4612         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4613         invocations from here...
4614         * modules/strndup (configure.ac): ... to here.
4615         (Depends-on): Update conditions.
4616
4617 2011-05-22  Bruno Haible  <bruno@clisp.org>
4618
4619         strncat: Move AC_LIBOBJ invocations to module description.
4620         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4621         invocations from here...
4622         * modules/strncat (configure.ac): ... to here.
4623
4624 2011-05-22  Bruno Haible  <bruno@clisp.org>
4625
4626         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4627         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4628         invocations from here...
4629         * modules/strdup (configure.ac): ... to here.
4630         * modules/strdup-posix (configure.ac): ... and here.
4631
4632 2011-05-22  Bruno Haible  <bruno@clisp.org>
4633
4634         strcspn: Move AC_LIBOBJ invocations to module description.
4635         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4636         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4637         here...
4638         * modules/strcspn (configure.ac): ... to here.
4639
4640 2011-05-22  Bruno Haible  <bruno@clisp.org>
4641
4642         strchrnul: Move AC_LIBOBJ invocations to module description.
4643         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4644         gl_PREREQ_STRCHRNUL invocations from here...
4645         * modules/strchrnul (configure.ac): ... to here.
4646
4647 2011-05-22  Bruno Haible  <bruno@clisp.org>
4648
4649         strcasestr*: Move AC_LIBOBJ invocations to module description.
4650         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4651         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4652         * modules/strcasestr-simple (configure.ac): ... to here.
4653         * modules/strcasestr (configure.ac): ... and here.
4654
4655 2011-05-22  Bruno Haible  <bruno@clisp.org>
4656
4657         strcase: Move AC_LIBOBJ invocations to module description.
4658         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4659         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4660         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4661         gl_PREREQ_STRNCASECMP invocations from here...
4662         * modules/strcase (configure.ac): ... to here.
4663
4664 2011-05-22  Bruno Haible  <bruno@clisp.org>
4665
4666         stpncpy: Move AC_LIBOBJ invocations to module description.
4667         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4668         here...
4669         * modules/stpncpy (configure.ac): ... to here.
4670
4671 2011-05-22  Bruno Haible  <bruno@clisp.org>
4672
4673         stpcpy: Move AC_LIBOBJ invocations to module description.
4674         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4675         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4676         here...
4677         * modules/stpcpy (configure.ac): ... to here.
4678
4679 2011-05-21  Bruno Haible  <bruno@clisp.org>
4680
4681         stat: Move AC_LIBOBJ invocations to module description.
4682         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4683         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4684         here...
4685         * modules/stat (configure.ac): ... to here.
4686
4687 2011-05-21  Bruno Haible  <bruno@clisp.org>
4688
4689         sleep: Move AC_LIBOBJ invocations to module description.
4690         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4691         * modules/sleep (configure.ac): ... to here.
4692
4693 2011-05-21  Bruno Haible  <bruno@clisp.org>
4694
4695         signbit: Move AC_LIBOBJ invocations to module description.
4696         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4697         * modules/signbit (configure.ac): ... to here.
4698
4699 2011-05-21  Bruno Haible  <bruno@clisp.org>
4700
4701         sigprocmask: Move AC_LIBOBJ invocations to module description.
4702         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4703         gl_PREREQ_SIGPROMASK invocations from here...
4704         * modules/sigprocmask (configure.ac): ... to here.
4705
4706 2011-05-21  Bruno Haible  <bruno@clisp.org>
4707
4708         sigaction: Move AC_LIBOBJ invocations to module description.
4709         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4710         gl_PREREQ_SIGACTION invocations from here...
4711         * modules/sigaction (configure.ac): ... to here.
4712
4713 2011-05-21  Bruno Haible  <bruno@clisp.org>
4714
4715         sig2str: Move AC_LIBOBJ invocations to module description.
4716         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4717         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4718         here...
4719         * modules/sig2str (configure.ac): ... to here.
4720
4721 2011-05-21  Bruno Haible  <bruno@clisp.org>
4722
4723         setlocale: Move AC_LIBOBJ invocations to module description.
4724         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4725         gl_PREREQ_SETLOCALE invocations from here...
4726         * modules/setlocale (configure.ac): ... to here.
4727
4728 2011-05-21  Bruno Haible  <bruno@clisp.org>
4729
4730         unsetenv: Move AC_LIBOBJ invocations to module description.
4731         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4732         and gl_PREREQ_UNSETENV invocations from here...
4733         * modules/unsetenv (configure.ac): ... to here.
4734         (Depends-on): Update.
4735
4736 2011-05-21  Bruno Haible  <bruno@clisp.org>
4737
4738         setenv: Move AC_LIBOBJ invocations to module description.
4739         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4740         here...
4741         * modules/setenv (configure.ac): ... to here.
4742
4743 2011-05-21  Bruno Haible  <bruno@clisp.org>
4744
4745         selinux-h: Move AC_LIBOBJ invocations to module description.
4746         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4747         AC_LIBOBJ invocation from here...
4748         * modules/selinux-h (configure.ac): ... to here.
4749
4750 2011-05-21  Bruno Haible  <bruno@clisp.org>
4751
4752         select: Respect rules for use of AC_LIBOBJ.
4753         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4754         here...
4755         * modules/select (configure.ac): ... to here.
4756
4757 2011-05-21  Bruno Haible  <bruno@clisp.org>
4758
4759         scandir: Move AC_LIBOBJ invocations to module description.
4760         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4761         invocations from here...
4762         * modules/scandir (configure.ac): ... to here.
4763
4764 2011-05-21  Bruno Haible  <bruno@clisp.org>
4765
4766         rpmatch: Move AC_LIBOBJ invocations to module description.
4767         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4768         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4769         here...
4770         * modules/rpmatch (configure.ac): ... to here.
4771
4772 2011-05-21  Bruno Haible  <bruno@clisp.org>
4773
4774         rmdir: Respect rules for use of AC_LIBOBJ.
4775         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4776         * modules/rmdir (configure.ac): ... to here.
4777
4778 2011-05-21  Bruno Haible  <bruno@clisp.org>
4779
4780         renameat: Move AC_LIBOBJ invocations to module description.
4781         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4782         here...
4783         * modules/renameat (configure.ac): ... to here.
4784
4785 2011-05-21  Bruno Haible  <bruno@clisp.org>
4786
4787         rename: Respect rules for use of AC_LIBOBJ.
4788         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4789         here...
4790         * modules/rename (configure.ac): ... to here.
4791
4792 2011-05-21  Bruno Haible  <bruno@clisp.org>
4793
4794         remove: Move AC_LIBOBJ invocations to module description.
4795         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4796         here...
4797         * modules/remove (configure.ac): ... to here.
4798
4799 2011-05-21  Bruno Haible  <bruno@clisp.org>
4800
4801         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4802         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4803         macro.
4804         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4805         * modules/relocatable-lib (configure.ac): ... to here.
4806         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4807         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4808
4809 2011-05-21  Bruno Haible  <bruno@clisp.org>
4810
4811         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4812         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4813         here...
4814         * modules/relocatable-prog (configure.ac): ... to here.
4815
4816 2011-05-21  Bruno Haible  <bruno@clisp.org>
4817
4818         regex: Move AC_LIBOBJ invocations to module description.
4819         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4820         invocations from here...
4821         * modules/regex (configure.ac): ... to here.
4822
4823 2011-05-21  Bruno Haible  <bruno@clisp.org>
4824
4825         realloc-*: Move AC_LIBOBJ invocations to module description.
4826         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4827         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4828         AC_LIBOBJ invocations from here...
4829         * modules/realloc-gnu (configure.ac): ... to here.
4830         * modules/realloc-posix (configure.ac): ... and here.
4831
4832 2011-05-21  Bruno Haible  <bruno@clisp.org>
4833
4834         readutmp: Move AC_LIBOBJ invocations to module description.
4835         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4836         * modules/readutmp (configure.ac): ... to here.
4837
4838 2011-05-21  Bruno Haible  <bruno@clisp.org>
4839
4840         readlinkat: Move AC_LIBOBJ invocations to module description.
4841         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4842         here...
4843         * modules/readlinkat (configure.ac): ... to here.
4844
4845 2011-05-21  Bruno Haible  <bruno@clisp.org>
4846
4847         readlink: Move AC_LIBOBJ invocations to module description.
4848         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4849         gl_PREREQ_READLINK invocations from here...
4850         * modules/readlink (configure.ac): ... to here.
4851
4852 2011-05-21  Bruno Haible  <bruno@clisp.org>
4853
4854         readline: Move AC_LIBOBJ invocations to module description.
4855         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4856         gl_PREREQ_READLINE invocations from here...
4857         * modules/readline (configure.ac): ... to here.
4858
4859 2011-05-21  Bruno Haible  <bruno@clisp.org>
4860
4861         read: Move AC_LIBOBJ invocations to module description.
4862         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4863         * modules/read (configure.ac): ... to here.
4864
4865 2011-05-21  Bruno Haible  <bruno@clisp.org>
4866
4867         rawmemchr: Move AC_LIBOBJ invocations to module description.
4868         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4869         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4870         from here...
4871         * modules/rawmemchr (configure.ac): ... to here.
4872
4873 2011-05-21  Bruno Haible  <bruno@clisp.org>
4874
4875         random_r: Move AC_LIBOBJ invocations to module description.
4876         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4877         gl_PREREQ_RANDOM_R invocations from here...
4878         * modules/random_r (configure.ac): ... to here.
4879
4880 2011-05-21  Bruno Haible  <bruno@clisp.org>
4881
4882         pwrite: Move AC_LIBOBJ invocations to module description.
4883         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4884         * modules/pwrite (configure.ac): ... to here.
4885
4886 2011-05-21  Bruno Haible  <bruno@clisp.org>
4887
4888         putenv: Move AC_LIBOBJ invocations to module description.
4889         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4890         * modules/putenv (configure.ac): ... to here.
4891
4892 2011-05-21  Bruno Haible  <bruno@clisp.org>
4893
4894         login_tty: Move AC_LIBOBJ invocations to module description.
4895         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4896         * modules/login_tty (configure.ac): ... to here.
4897
4898 2011-05-21  Bruno Haible  <bruno@clisp.org>
4899
4900         openpty: Move AC_LIBOBJ invocations to module description.
4901         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4902         * modules/openpty (configure.ac): ... to here.
4903
4904 2011-05-21  Bruno Haible  <bruno@clisp.org>
4905
4906         forkpty: Move AC_LIBOBJ invocations to module description.
4907         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4908         * modules/forkpty (configure.ac): ... to here.
4909
4910 2011-05-21  Bruno Haible  <bruno@clisp.org>
4911
4912         ptsname: Move AC_LIBOBJ invocations to module description.
4913         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4914         invocations from here...
4915         * modules/ptsname (configure.ac): ... to here.
4916
4917 2011-05-21  Bruno Haible  <bruno@clisp.org>
4918
4919         pread: Move AC_LIBOBJ invocations to module description.
4920         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4921         * modules/pread (configure.ac): ... to here.
4922
4923 2011-05-21  Bruno Haible  <bruno@clisp.org>
4924
4925         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4926         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4927         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4928         * modules/posix_spawn (configure.ac): ... to here.
4929         * modules/posix_spawnp (configure.ac): ... and here.
4930
4931 2011-05-21  Bruno Haible  <bruno@clisp.org>
4932
4933         popen: Move AC_LIBOBJ invocations to module description.
4934         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4935         invocations from here...
4936         * modules/popen (configure.ac): ... to here.
4937
4938 2011-05-21  Bruno Haible  <bruno@clisp.org>
4939
4940         poll: Move AC_LIBOBJ invocations to module description.
4941         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4942         invocations from here...
4943         * modules/poll (configure.ac): ... to here.
4944
4945 2011-05-21  Bruno Haible  <bruno@clisp.org>
4946
4947         pipe-posix: Move AC_LIBOBJ invocations to module description.
4948         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4949         * modules/pipe-posix (configure.ac): ... to here.
4950
4951 2011-05-21  Bruno Haible  <bruno@clisp.org>
4952
4953         openat: Respect rules for use of AC_LIBOBJ.
4954         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4955         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4956         * modules/openat (configure.ac): ... to here.
4957
4958 2011-05-21  Bruno Haible  <bruno@clisp.org>
4959
4960         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4961         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4962         invocation from here...
4963         * modules/obstack-printf (configure.ac): ... to here.
4964         * modules/obstack-printf-posix (configure.ac): ... and here.
4965
4966 2011-05-21  Bruno Haible  <bruno@clisp.org>
4967
4968         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4969         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4970         from here...
4971         * modules/nl_langinfo (configure.ac): ... to here.
4972
4973 2011-05-21  Bruno Haible  <bruno@clisp.org>
4974
4975         nanosleep: Move AC_LIBOBJ invocations to module description.
4976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4977         gl_PREREQ_NANOSLEEP invocations from here...
4978         * modules/nanosleep (configure.ac): ... to here.
4979
4980 2011-05-21  Bruno Haible  <bruno@clisp.org>
4981
4982         mountlist: Move AC_LIBOBJ invocations to module description.
4983         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4984         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4985         * modules/mountlist (configure.ac): ... to here.
4986
4987 2011-05-21  Bruno Haible  <bruno@clisp.org>
4988
4989         mktime: Respect rules for use of AC_LIBOBJ.
4990         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4991         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4992         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4993         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4994         * modules/mktime (configure.ac): ... to here.
4995         * modules/mktime-internal (configure.ac): ... and here.
4996         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4997
4998 2011-05-21  Bruno Haible  <bruno@clisp.org>
4999
5000         mkstemps: Move AC_LIBOBJ invocations to module description.
5001         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
5002         here...
5003         * modules/mkstemps (configure.ac): ... to here.
5004
5005 2011-05-21  Bruno Haible  <bruno@clisp.org>
5006
5007         mkstemp: Move AC_LIBOBJ invocations to module description.
5008         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
5009         gl_PREREQ_MKSTEMP invocations from here...
5010         * modules/mkstemp (configure.ac): ... to here.
5011
5012 2011-05-21  Bruno Haible  <bruno@clisp.org>
5013
5014         mkostemps: Move AC_LIBOBJ invocations to module description.
5015         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
5016         here...
5017         * modules/mkostemps (configure.ac): ... to here.
5018
5019 2011-05-21  Bruno Haible  <bruno@clisp.org>
5020
5021         mkostemp: Move AC_LIBOBJ invocations to module description.
5022         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
5023         gl_PREREQ_MKOSTEMP invocations from here...
5024         * modules/mkostemp (configure.ac): ... to here.
5025
5026 2011-05-21  Bruno Haible  <bruno@clisp.org>
5027
5028         mknod: Move AC_LIBOBJ invocations to module description.
5029         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
5030         * modules/mknod (configure.ac): ... to here.
5031
5032 2011-05-21  Bruno Haible  <bruno@clisp.org>
5033
5034         mkfifoat: Move AC_LIBOBJ invocations to module description.
5035         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
5036         here...
5037         * modules/mkfifoat (configure.ac): ... to here.
5038
5039 2011-05-21  Bruno Haible  <bruno@clisp.org>
5040
5041         mkfifo: Respect rules for use of AC_LIBOBJ.
5042         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
5043         here...
5044         * modules/mkfifo (configure.ac): ... to here.
5045
5046 2011-05-21  Bruno Haible  <bruno@clisp.org>
5047
5048         mkdtemp: Move AC_LIBOBJ invocations to module description.
5049         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
5050         invocations from here...
5051         * modules/mkdtemp (configure.ac): ... to here.
5052
5053 2011-05-21  Bruno Haible  <bruno@clisp.org>
5054
5055         mkdir: Move AC_LIBOBJ invocations to module description.
5056         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
5057         * modules/mkdir (configure.ac): ... to here.
5058
5059 2011-05-21  Bruno Haible  <bruno@clisp.org>
5060
5061         memset: Move AC_LIBOBJ invocations to module description.
5062         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
5063         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
5064         here...
5065         * modules/memset (configure.ac): ... to here.
5066
5067 2011-05-21  Bruno Haible  <bruno@clisp.org>
5068
5069         memrchr: Move AC_LIBOBJ invocations to module description.
5070         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
5071         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
5072         here...
5073         * modules/memrchr (configure.ac): ... to here.
5074
5075 2011-05-21  Bruno Haible  <bruno@clisp.org>
5076
5077         mempcpy: Move AC_LIBOBJ invocations to module description.
5078         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
5079         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
5080         here...
5081         * modules/mempcpy (configure.ac): ... to here.
5082
5083 2011-05-21  Bruno Haible  <bruno@clisp.org>
5084
5085         memmove: Move AC_LIBOBJ invocations to module description.
5086         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
5087         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
5088         here...
5089         * modules/memmove (configure.ac): ... to here.
5090
5091 2011-05-21  Bruno Haible  <bruno@clisp.org>
5092
5093         memmem*: Move AC_LIBOBJ invocations to module description.
5094         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
5095         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
5096         here...
5097         (gl_FUNC_MEMMEM): ... and here...
5098         * modules/memmem-simple (configure.ac): ... to here.
5099         * modules/memmem (configure.ac): ... and here.
5100
5101 2011-05-21  Bruno Haible  <bruno@clisp.org>
5102
5103         memcpy: Move AC_LIBOBJ invocations to module description.
5104         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
5105         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
5106         here...
5107         * modules/memcpy (configure.ac): ... to here.
5108
5109 2011-05-21  Bruno Haible  <bruno@clisp.org>
5110
5111         memcmp: Simplify autoconf macro.
5112         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
5113         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
5114         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
5115
5116 2011-05-21  Bruno Haible  <bruno@clisp.org>
5117
5118         memcmp: Move AC_LIBOBJ invocations to module description.
5119         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
5120         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
5121         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
5122         * modules/memcmp (configure.ac): ... to here.
5123         (Depends-on): Update conditions.
5124
5125 2011-05-21  Bruno Haible  <bruno@clisp.org>
5126
5127         memchr: Respect rules for use of AC_LIBOBJ.
5128         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
5129         invocations from here...
5130         * modules/memchr (configure.ac): ... to here.
5131
5132 2011-05-21  Bruno Haible  <bruno@clisp.org>
5133
5134         mbtowc: Move AC_LIBOBJ invocations to module description.
5135         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
5136         invocations from here...
5137         * modules/mbtowc (configure.ac): ... to here.
5138
5139 2011-05-21  Bruno Haible  <bruno@clisp.org>
5140
5141         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
5142         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
5143         gl_PREREQ_MBSRTOWCS invocations from here...
5144         * modules/mbsrtowcs (configure.ac): ... to here.
5145
5146 2011-05-21  Bruno Haible  <bruno@clisp.org>
5147
5148         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
5149         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
5150         gl_PREREQ_MBSNRTOWCS invocations from here...
5151         * modules/mbsnrtowcs (configure.ac): ... to here.
5152
5153 2011-05-21  Bruno Haible  <bruno@clisp.org>
5154
5155         mbsinit: Move AC_LIBOBJ invocations to module description.
5156         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
5157         invocations from here...
5158         * modules/mbsinit (configure.ac): ... to here.
5159
5160 2011-05-21  Bruno Haible  <bruno@clisp.org>
5161
5162         mbrlen: Move AC_LIBOBJ invocations to module description.
5163         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
5164         invocations from here...
5165         * modules/mbrlen (configure.ac): ... to here.
5166
5167 2011-05-21  Bruno Haible  <bruno@clisp.org>
5168
5169         mbrtowc: Respect rules for use of AC_LIBOBJ.
5170         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
5171         invocations from here...
5172         * modules/mbrtowc (configure.ac): ... to here.
5173
5174 2011-05-21  Bruno Haible  <bruno@clisp.org>
5175
5176         malloc-*: Move AC_LIBOBJ invocations to module description.
5177         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
5178         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
5179         AC_LIBOBJ invocations from here...
5180         * modules/malloc-gnu (configure.ac): ... to here.
5181         * modules/malloc-posix (configure.ac): ... and here.
5182
5183 2011-05-21  Bruno Haible  <bruno@clisp.org>
5184
5185         lstat, openat: Respect rules for use of AC_LIBOBJ.
5186         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
5187         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
5188         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
5189         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
5190         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
5191         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
5192         here.
5193         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5194
5195 2011-05-21  Bruno Haible  <bruno@clisp.org>
5196
5197         lseek: Move AC_LIBOBJ invocations to module description.
5198         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
5199         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5200         * modules/lseek (configure.ac): ... to here.
5201
5202 2011-05-21  Bruno Haible  <bruno@clisp.org>
5203
5204         linkat: Move AC_LIBOBJ invocations to module description.
5205         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
5206         here...
5207         * modules/linkat (configure.ac): ... to here.
5208
5209 2011-05-21  Bruno Haible  <bruno@clisp.org>
5210
5211         link: Respect rules for use of AC_LIBOBJ.
5212         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
5213         * modules/link (configure.ac): ... to here.
5214
5215 2011-05-21  Bruno Haible  <bruno@clisp.org>
5216
5217         lchown: Move AC_LIBOBJ invocations to module description.
5218         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5219         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5220         * modules/lchown (configure.ac): ... to here.
5221
5222 2011-05-21  Bruno Haible  <bruno@clisp.org>
5223
5224         iswctype: Move AC_LIBOBJ invocations to module description.
5225         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
5226         here...
5227         * modules/iswctype (configure.ac): ... to here.
5228
5229 2011-05-21  Bruno Haible  <bruno@clisp.org>
5230
5231         iswblank: Move AC_LIBOBJ invocations to module description.
5232         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
5233         here...
5234         * modules/iswblank (configure.ac): ... to here.
5235
5236 2011-05-21  Bruno Haible  <bruno@clisp.org>
5237
5238         atanl: Move AC_LIBOBJ invocations to module description.
5239         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
5240         * modules/atanl (configure.ac): ... to here.
5241
5242 2011-05-21  Bruno Haible  <bruno@clisp.org>
5243
5244         acosl: Move AC_LIBOBJ invocations to module description.
5245         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
5246         * modules/acosl (configure.ac): ... to here.
5247
5248 2011-05-21  Bruno Haible  <bruno@clisp.org>
5249
5250         asinl: Respect rules for use of AC_LIBOBJ.
5251         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
5252         * modules/asinl (configure.ac): ... to here.
5253
5254 2011-05-21  Bruno Haible  <bruno@clisp.org>
5255
5256         tanl: Move AC_LIBOBJ invocations to module description.
5257         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5258         * modules/tanl (configure.ac): ... to here.
5259
5260 2011-05-21  Bruno Haible  <bruno@clisp.org>
5261
5262         cosl: Move AC_LIBOBJ invocations to module description.
5263         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5264         * modules/cosl (configure.ac): ... to here.
5265
5266 2011-05-21  Bruno Haible  <bruno@clisp.org>
5267
5268         sinl: Move AC_LIBOBJ invocations to module description.
5269         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5270         * modules/sinl (configure.ac): ... to here.
5271
5272 2011-05-21  Bruno Haible  <bruno@clisp.org>
5273
5274         logl: Move AC_LIBOBJ invocations to module description.
5275         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5276         * modules/logl (configure.ac): ... to here.
5277
5278 2011-05-21  Bruno Haible  <bruno@clisp.org>
5279
5280         expl: Move AC_LIBOBJ invocations to module description.
5281         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5282         * modules/expl (configure.ac): ... to here.
5283
5284 2011-05-21  Bruno Haible  <bruno@clisp.org>
5285
5286         roundl: Move AC_LIBOBJ invocations to module description.
5287         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5288         * modules/roundl (configure.ac): ... to here.
5289
5290 2011-05-21  Bruno Haible  <bruno@clisp.org>
5291
5292         round: Move AC_LIBOBJ invocations to module description.
5293         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5294         * modules/round (configure.ac): ... to here.
5295
5296 2011-05-21  Bruno Haible  <bruno@clisp.org>
5297
5298         roundf: Move AC_LIBOBJ invocations to module description.
5299         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5300         * modules/roundf (configure.ac): ... to here.
5301
5302 2011-05-21  Bruno Haible  <bruno@clisp.org>
5303
5304         truncl: Move AC_LIBOBJ invocations to module description.
5305         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5306         * modules/truncl (configure.ac): ... to here.
5307
5308 2011-05-21  Bruno Haible  <bruno@clisp.org>
5309
5310         trunc: Move AC_LIBOBJ invocations to module description.
5311         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5312         * modules/trunc (configure.ac): ... to here.
5313
5314 2011-05-21  Bruno Haible  <bruno@clisp.org>
5315
5316         truncf: Move AC_LIBOBJ invocations to module description.
5317         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5318         * modules/truncf (configure.ac): ... to here.
5319
5320 2011-05-21  Bruno Haible  <bruno@clisp.org>
5321
5322         ceill: Move AC_LIBOBJ invocations to module description.
5323         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5324         * modules/ceill (configure.ac): ... to here.
5325
5326 2011-05-21  Bruno Haible  <bruno@clisp.org>
5327
5328         ceil: Move AC_LIBOBJ invocations to module description.
5329         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5330         * modules/ceil (configure.ac): ... to here.
5331
5332 2011-05-21  Bruno Haible  <bruno@clisp.org>
5333
5334         ceilf: Move AC_LIBOBJ invocations to module description.
5335         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5336         * modules/ceilf (configure.ac): ... to here.
5337
5338 2011-05-21  Bruno Haible  <bruno@clisp.org>
5339
5340         floorl: Respect rules for use of AC_LIBOBJ.
5341         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5342         * modules/floorl (configure.ac): ... to here.
5343
5344 2011-05-21  Bruno Haible  <bruno@clisp.org>
5345
5346         floor: Respect rules for use of AC_LIBOBJ.
5347         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5348         * modules/floor (configure.ac): ... to here.
5349
5350 2011-05-21  Bruno Haible  <bruno@clisp.org>
5351
5352         floorf: Move AC_LIBOBJ invocations to module description.
5353         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5354         * modules/floorf (configure.ac): ... to here.
5355
5356 2011-05-20  Bruno Haible  <bruno@clisp.org>
5357
5358         sqrtl: Respect rules for use of AC_LIBOBJ.
5359         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5360         * modules/sqrtl (configure.ac): ... to here.
5361
5362 2011-05-20  Bruno Haible  <bruno@clisp.org>
5363
5364         ldexpl: Respect rules for use of AC_LIBOBJ.
5365         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5366         * modules/ldexpl (configure.ac): ... to here.
5367
5368 2011-05-20  Bruno Haible  <bruno@clisp.org>
5369
5370         frexpl*: Respect rules for use of AC_LIBOBJ.
5371         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5372         invocation from here...
5373         * modules/frexpl (configure.ac): ... to here.
5374         * modules/frexpl-nolibm (configure.ac): ... and here.
5375
5376 2011-05-20  Bruno Haible  <bruno@clisp.org>
5377
5378         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5379         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5380         invocation from here...
5381         * modules/frexp (configure.ac): ... to here.
5382         * modules/frexp-nolibm (configure.ac): ... and here.
5383
5384 2011-05-20  Bruno Haible  <bruno@clisp.org>
5385
5386         isnan: Respect rules for use of AC_LIBOBJ.
5387         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5388         invocations here.
5389         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5390         REPLACE_ISNAN.
5391         * modules/isnand (configure.ac): Likewise.
5392         * modules/isnanl (configure.ac): Likewise.
5393
5394 2011-05-20  Bruno Haible  <bruno@clisp.org>
5395
5396         isnanl*: Respect rules for use of AC_LIBOBJ.
5397         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5398         invocation from here...
5399         * modules/isnanl (configure.ac): ... to here.
5400         * modules/isnanl-nolibm (configure.ac): ... and here.
5401
5402 2011-05-20  Bruno Haible  <bruno@clisp.org>
5403
5404         isnand*: Move AC_LIBOBJ invocations to module description.
5405         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
5406         invocation from here...
5407         * modules/isnand (configure.ac): ... to here.
5408         * modules/isnand-nolibm (configure.ac): ... and here.
5409
5410 2011-05-20  Bruno Haible  <bruno@clisp.org>
5411
5412         isnanf*: Move AC_LIBOBJ invocations to module description.
5413         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
5414         invocation from here...
5415         * modules/isnanf (configure.ac): ... to here.
5416         * modules/isnanf-nolibm (configure.ac): ... and here.
5417
5418 2011-05-20  Bruno Haible  <bruno@clisp.org>
5419
5420         isnan*: Separate the AC_LIBOBJ invocations.
5421         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
5422         AC_LIBOBJ invocation.
5423         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
5424         here.
5425         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
5426         AC_LIBOBJ invocation.
5427         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
5428         here.
5429         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
5430         AC_LIBOBJ invocation.
5431         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
5432         here.
5433         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
5434
5435 2011-05-08  Bruno Haible  <bruno@clisp.org>
5436
5437         isinf: Move AC_LIBOBJ invocations to module description.
5438         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
5439         * modules/isinf (configure.ac): ... to here.
5440
5441 2011-05-08  Bruno Haible  <bruno@clisp.org>
5442
5443         isfinite: Move AC_LIBOBJ invocations to module description.
5444         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
5445         * modules/isfinite (configure.ac): ... to here.
5446
5447 2011-05-08  Bruno Haible  <bruno@clisp.org>
5448
5449         isblank: Move AC_LIBOBJ invocations to module description.
5450         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
5451         here...
5452         * modules/isblank (configure.ac): ... to here.
5453
5454 2011-05-08  Bruno Haible  <bruno@clisp.org>
5455
5456         isapipe: Move AC_LIBOBJ invocations to module description.
5457         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
5458         gl_PREREQ_ISAPIPE invocations from here...
5459         * modules/isapipe (configure.ac): ... to here.
5460         (Depends-on): Update condition.
5461
5462 2011-05-08  Bruno Haible  <bruno@clisp.org>
5463
5464         ioctl: Move AC_LIBOBJ invocations to module description.
5465         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
5466         invocations from here...
5467         * modules/ioctl (configure.ac): ... to here.
5468         (Depends-on): Update condition.
5469
5470 2011-05-08  Bruno Haible  <bruno@clisp.org>
5471
5472         imaxdiv: Move AC_LIBOBJ invocations to module description.
5473         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
5474         invocations from here...
5475         * modules/imaxdiv (configure.ac): ... to here.
5476
5477 2011-05-08  Bruno Haible  <bruno@clisp.org>
5478
5479         imaxabs: Move AC_LIBOBJ invocations to module description.
5480         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5481         invocations from here...
5482         * modules/imaxabs (configure.ac): ... to here.
5483
5484 2011-05-08  Bruno Haible  <bruno@clisp.org>
5485
5486         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5487         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5488         AC_LIBOBJ invocations from here...
5489         * modules/getaddrinfo (configure.ac): ... to here.
5490         (Depends-on): Add conditions.
5491
5492 2011-05-08  Bruno Haible  <bruno@clisp.org>
5493
5494         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5495         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5496         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5497         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5498         (gl_PREREQ_INET_PTON): ... from here.
5499         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5500         gl_PREREQ_INET_PTON here.
5501         (Depends-on): Update condition.
5502
5503 2011-05-08  Bruno Haible  <bruno@clisp.org>
5504
5505         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5506         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5507         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5508         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5509         (gl_PREREQ_INET_NTOP): ... from here.
5510         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5511         gl_PREREQ_INET_NTOP here.
5512         (Depends-on): Update condition.
5513
5514 2011-05-08  Bruno Haible  <bruno@clisp.org>
5515
5516         iconv_open: Move AC_LIBOBJ invocations to module description.
5517         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5518         AC_LIBOBJ invocations from here...
5519         * modules/iconv_open (configure.ac): ... to here.
5520
5521 2011-05-08  Bruno Haible  <bruno@clisp.org>
5522
5523         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5524         If module 'iconv_open' is among the main modules and module
5525         'iconv_open-utf' is among the tests dependencies, then
5526         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5527         return the special iconv_t values. Therefore iconv() and iconv_close()
5528         must support these special iconv_t values, already in lib, not only in
5529         tests.
5530         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5531         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5532         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5533         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5534         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5535         (Depends-on): Add the dependencies of iconv_open-utf.
5536         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5537         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5538         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5539
5540 2011-05-08  Bruno Haible  <bruno@clisp.org>
5541
5542         group-member: Move AC_LIBOBJ invocations to module description.
5543         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5544         gl_PREREQ_GROUP_MEMBER invocations from here...
5545         * modules/group-member (configure.ac): ... to here.
5546
5547 2011-05-08  Bruno Haible  <bruno@clisp.org>
5548
5549         grantpt: Move AC_LIBOBJ invocations to module description.
5550         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5551         invocations from here...
5552         * modules/grantpt (configure.ac): ... to here.
5553
5554 2011-05-08  Bruno Haible  <bruno@clisp.org>
5555
5556         glob: Move AC_LIBOBJ invocations to module description.
5557         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5558         from here...
5559         * modules/glob (configure.ac): ... to here.
5560
5561 2011-05-08  Bruno Haible  <bruno@clisp.org>
5562
5563         getusershell: Move AC_LIBOBJ invocations to module description.
5564         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5565         Move AC_LIBOBJ invocation from here...
5566         * modules/getusershell (configure.ac): ... to here.
5567         (Depends-on): Update condition.
5568
5569 2011-05-08  Bruno Haible  <bruno@clisp.org>
5570
5571         gettimeofday: Move AC_LIBOBJ invocations to module description.
5572         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5573         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5574         gl_PREREQ_GETTIMEOFDAY invocations from here...
5575         * modules/gettimeofday (configure.ac): ... to here.
5576
5577 2011-05-08  Bruno Haible  <bruno@clisp.org>
5578
5579         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5580         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5581         just gl_FUNC_TZSET.
5582         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5583         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5584         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5585         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5586
5587 2011-05-08  Bruno Haible  <bruno@clisp.org>
5588
5589         getsubopt: Move AC_LIBOBJ invocations to module description.
5590         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5591         gl_PREREQ_GETSUBOPT invocations from here...
5592         * modules/getsubopt (configure.ac): ... to here.
5593
5594 2011-05-08  Bruno Haible  <bruno@clisp.org>
5595
5596         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5597         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5598         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5599         * modules/getpass-gnu (configure.ac): ... to here.
5600
5601 2011-05-08  Bruno Haible  <bruno@clisp.org>
5602
5603         getpass: Move AC_LIBOBJ invocations to module description.
5604         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5605         gl_PREREQ_GETPASS invocations from here...
5606         * modules/getpass (configure.ac): ... to here.
5607
5608 2011-05-08  Bruno Haible  <bruno@clisp.org>
5609
5610         getpagesize: Move AC_LIBOBJ invocations to module description.
5611         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5612         from here...
5613         * modules/getpagesize (configure.ac): ... to here.
5614
5615 2011-05-08  Bruno Haible  <bruno@clisp.org>
5616
5617         getopt: Move AC_LIBOBJ invocations to module description.
5618         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5619         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5620         invocations from here...
5621         * modules/getopt-gnu (configure.ac): ... to here.
5622         * modules/getopt-posix (configure.ac): ... and here.
5623         (Depends-on): Update condition.
5624
5625 2011-05-08  Bruno Haible  <bruno@clisp.org>
5626
5627         getopt, argp: Respect rules for use of AC_LIBOBJ.
5628         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5629         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5630         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5631         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5632
5633 2011-05-08  Bruno Haible  <bruno@clisp.org>
5634
5635         getlogin_r: Move AC_LIBOBJ invocations to module description.
5636         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5637         gl_PREREQ_GETLOGIN_R invocations from here...
5638         * modules/getlogin_r (configure.ac): ... to here.
5639
5640 2011-05-08  Bruno Haible  <bruno@clisp.org>
5641
5642         getlogin: Move AC_LIBOBJ invocations to module description.
5643         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5644         here...
5645         * modules/getlogin (configure.ac): ... to here.
5646
5647 2011-05-08  Bruno Haible  <bruno@clisp.org>
5648
5649         getloadavg: Move AC_LIBOBJ invocations to module description.
5650         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5651         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5652         * modules/getloadavg (configure.ac): ... to here.
5653
5654 2011-05-08  Bruno Haible  <bruno@clisp.org>
5655
5656         gethrxtime: Move AC_LIBOBJ invocations to module description.
5657         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5658         LIB_GETHRXTIME from here...
5659         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5660         invocations from here...
5661         * modules/gethrxtime (configure.ac): ... to here.
5662
5663 2011-05-08  Bruno Haible  <bruno@clisp.org>
5664
5665         gethostname: Move AC_LIBOBJ invocations to module description.
5666         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5667         gl_PREREQ_GETHOSTNAME invocations from here...
5668         * modules/gethostname (configure.ac): ... to here.
5669
5670 2011-05-08  Bruno Haible  <bruno@clisp.org>
5671
5672         getgroups: Move AC_LIBOBJ invocations to module description.
5673         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5674         here...
5675         * modules/getgroups (configure.ac): ... to here.
5676
5677 2011-05-08  Bruno Haible  <bruno@clisp.org>
5678
5679         getdtablesize: Move AC_LIBOBJ invocations to module description.
5680         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5681         invocation from here...
5682         * modules/getdtablesize (configure.ac): ... to here.
5683
5684 2011-05-08  Bruno Haible  <bruno@clisp.org>
5685
5686         getdomainname: Move AC_LIBOBJ invocations to module description.
5687         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5688         gl_PREREQ_GETDOMAINNAME invocations from here...
5689         * modules/getdomainname (configure.ac): ... to here.
5690
5691 2011-05-08  Bruno Haible  <bruno@clisp.org>
5692
5693         getline: Move AC_LIBOBJ invocations to module description.
5694         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5695         invocations from here...
5696         * modules/getline (configure.ac): ... to here.
5697
5698 2011-05-08  Bruno Haible  <bruno@clisp.org>
5699
5700         getline: Simplify.
5701         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5702         It's already handled through the module dependency.
5703
5704 2011-05-08  Bruno Haible  <bruno@clisp.org>
5705
5706         getdelim: Move AC_LIBOBJ invocations to module description.
5707         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5708         and gl_PREREQ_GETDELIM invocations from here...
5709         * modules/getdelim (configure.ac): ... to here.
5710         (Depends-on): Fix condition.
5711
5712 2011-05-08  Bruno Haible  <bruno@clisp.org>
5713
5714         getcwd: Move AC_LIBOBJ invocations to module description.
5715         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5716         invocations from here...
5717         * modules/getcwd (configure.ac): ... to here.
5718
5719 2011-05-08  Bruno Haible  <bruno@clisp.org>
5720
5721         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5722         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5723         here...
5724         * modules/getcwd-lgpl (configure.ac): ... to here.
5725
5726 2011-05-07  Bruno Haible  <bruno@clisp.org>
5727
5728         crypto/gc: Move AC_LIBOBJ invocations to module description.
5729         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5730         * modules/crypto/gc (configure.ac): ... to here.
5731
5732 2011-05-07  Bruno Haible  <bruno@clisp.org>
5733
5734         fwriting: Move AC_LIBOBJ invocations to module description.
5735         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5736         here...
5737         * modules/fwriting (configure.ac): ... to here.
5738
5739 2011-05-07  Bruno Haible  <bruno@clisp.org>
5740
5741         fwritable: Move AC_LIBOBJ invocations to module description.
5742         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5743         here...
5744         * modules/fwritable (configure.ac): ... to here.
5745
5746 2011-05-07  Bruno Haible  <bruno@clisp.org>
5747
5748         futimens: Move AC_LIBOBJ invocations to module description.
5749         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5750         here...
5751         * modules/futimens (configure.ac): ... to here.
5752
5753 2011-05-07  Bruno Haible  <bruno@clisp.org>
5754
5755         ftruncate: Move AC_LIBOBJ invocations to module description.
5756         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5757         gl_PREREQ_FTRUNCATE invocations from here...
5758         * modules/ftruncate (configure.ac): ... to here.
5759
5760 2011-05-07  Bruno Haible  <bruno@clisp.org>
5761
5762         fsync: Move AC_LIBOBJ invocations to module description.
5763         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5764         invocations from here...
5765         * modules/fsync (configure.ac): ... to here.
5766
5767 2011-05-07  Bruno Haible  <bruno@clisp.org>
5768
5769         fsusage: Move AC_LIBOBJ invocations to module description.
5770         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5771         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5772         * modules/fsusage (configure.ac): ... to here.
5773
5774 2011-05-07  Bruno Haible  <bruno@clisp.org>
5775
5776         freopen: Move AC_LIBOBJ invocations to module description.
5777         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5778         invocations from here...
5779         * modules/freopen (configure.ac): ... to here.
5780
5781 2011-05-07  Bruno Haible  <bruno@clisp.org>
5782
5783         free: Move AC_LIBOBJ invocations to module description.
5784         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5785         invocations from here...
5786         * modules/free (configure.ac): ... to here.
5787
5788 2011-05-07  Bruno Haible  <bruno@clisp.org>
5789
5790         freadable: Move AC_LIBOBJ invocations to module description.
5791         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5792         here...
5793         * modules/freadable (configure.ac): ... to here.
5794
5795 2011-05-07  Bruno Haible  <bruno@clisp.org>
5796
5797         fpurge: Move AC_LIBOBJ invocations to module description.
5798         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5799         invocations from here...
5800         * modules/fpurge (configure.ac): ... to here.
5801
5802 2011-05-07  Bruno Haible  <bruno@clisp.org>
5803
5804         fpending: Move AC_LIBOBJ invocations to module description.
5805         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5806         gl_FUNC_FPENDING.
5807         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5808         invocations from here...
5809         * modules/fpending (configure.ac): ... to here.
5810
5811 2011-05-07  Bruno Haible  <bruno@clisp.org>
5812
5813         fopen: Move AC_LIBOBJ invocations to module description.
5814         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5815         invocations from here...
5816         * modules/fopen (configure.ac): ... to here.
5817
5818 2011-05-07  Bruno Haible  <bruno@clisp.org>
5819
5820         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5821         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5822         gl_FUNC_FNMATCH_POSIX.
5823         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5824         invocations from here...
5825         * modules/fnmatch (configure.ac): ... to here.
5826         * modules/fnmatch-gnu (configure.ac): ... and here.
5827
5828 2011-05-07  Bruno Haible  <bruno@clisp.org>
5829
5830         flock: Move AC_LIBOBJ invocations to module description.
5831         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5832         invocations from here...
5833         * modules/flock (configure.ac): ... to here.
5834
5835 2011-05-07  Bruno Haible  <bruno@clisp.org>
5836
5837         fileblocks: Move AC_LIBOBJ invocations to module description.
5838         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5839         gl_PREREQ_FILEBLOCKS invocations from here...
5840         * modules/fileblocks (configure.ac): ... to here.
5841
5842 2011-05-06  Bruno Haible  <bruno@clisp.org>
5843
5844         fflush: Move AC_LIBOBJ invocations to module description.
5845         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5846         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5847         invocations from here...
5848         * modules/fflush (configure.ac): ... to here.
5849
5850 2011-05-06  Bruno Haible  <bruno@clisp.org>
5851
5852         fdopendir: Move AC_LIBOBJ invocations to module description.
5853         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5854         here...
5855         * modules/fdopendir (configure.ac): ... to here.
5856         (Depends-on): Improve conditions.
5857
5858 2011-05-06  Bruno Haible  <bruno@clisp.org>
5859
5860         _Exit: Move AC_LIBOBJ invocations to module description.
5861         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5862         invocations from here...
5863         * modules/_Exit (configure.ac): ... to here.
5864
5865 2011-05-21  Bruno Haible  <bruno@clisp.org>
5866
5867         euidaccess: Respect rules for use of AC_LIBOBJ.
5868         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5869         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5870         from here...
5871         * modules/euidaccess (configure.ac): ... to here.
5872
5873 2011-05-06  Bruno Haible  <bruno@clisp.org>
5874
5875         error: Move AC_LIBOBJ invocations to module description.
5876         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5877         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5878         invocations from here...
5879         * modules/error (configure.ac): ... to here.
5880
5881 2011-05-06  Bruno Haible  <bruno@clisp.org>
5882
5883         duplocale: Move AC_LIBOBJ invocations to module description.
5884         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5885         gl_PREREQ_DUPLOCALE invocations from here...
5886         * modules/duplocale (configure.ac): ... to here.
5887
5888 2011-05-05  Bruno Haible  <bruno@clisp.org>
5889
5890         dirfd: Move AC_LIBOBJ invocations to module description.
5891         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5892         gl_FUNC_DIRFD.
5893         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5894         here...
5895         * modules/dirfd (configure.ac): ... to here.
5896         (Depends-on): Fix condition.
5897
5898 2011-05-05  Bruno Haible  <bruno@clisp.org>
5899
5900         chown: Respect rules for use of AC_LIBOBJ.
5901         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5902         * modules/chown (configure.ac): ... to here.
5903
5904 2011-05-05  Bruno Haible  <bruno@clisp.org>
5905
5906         chdir-long: Move AC_LIBOBJ invocations to module description.
5907         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5908         gl_PREREQ_CHDIR_LONG invocations from here...
5909         * modules/chdir-long (configure.ac): ... to here.
5910
5911 2011-05-05  Bruno Haible  <bruno@clisp.org>
5912
5913         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5914         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5915         from here...
5916         * modules/canonicalize-lgpl (configure.ac): ... to here.
5917
5918 2011-05-05  Bruno Haible  <bruno@clisp.org>
5919
5920         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5921         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5922         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5923         REPLACE_CALLOC.
5924         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5925         * modules/calloc-gnu (configure.ac): Likewise.
5926
5927 2011-05-05  Bruno Haible  <bruno@clisp.org>
5928
5929         btowc: Move AC_LIBOBJ invocations to module description.
5930         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5931         invocations from here...
5932         * modules/btowc (configure.ac): ... to here.
5933
5934 2011-05-21  Bruno Haible  <bruno@clisp.org>
5935
5936         atexit: Move AC_LIBOBJ invocations to module description.
5937         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5938         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5939         here...
5940         * modules/atexit (configure.ac): ... to here.
5941
5942 2011-05-05  Bruno Haible  <bruno@clisp.org>
5943
5944         atoll: Move AC_LIBOBJ invocations to module description.
5945         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5946         invocations from here...
5947         * modules/atoll (configure.ac): ... to here.
5948
5949 2011-05-05  Bruno Haible  <bruno@clisp.org>
5950
5951         argz: Move AC_LIBOBJ invocations to module description.
5952         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5953         * modules/argz (configure.ac): ... to here.
5954
5955 2011-05-05  Bruno Haible  <bruno@clisp.org>
5956
5957         alphasort: Move AC_LIBOBJ invocations to module description.
5958         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5959         gl_PREREQ_ALPHASORT invocations from here...
5960         * modules/alphasort (configure.ac): ... to here.
5961
5962 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5963
5964         verify: new macro verify_expr; verify_true deprecated
5965         * NEWS: Mention this.
5966         * doc/verify.texi (Compile-time Assertions): Document this.
5967         * lib/verify.h (verify_true): Deprecate.
5968         (verify_expr): New macro.
5969         * tests/test-verify.c (function): Test verify_expr.
5970
5971 2011-06-14  Jim Meyering  <meyering@redhat.com>
5972
5973         init.sh: give more portable redirection-related advice in a comment
5974         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5975         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5976         for lots of discussion.  Stefano Lattarini suggested the solution
5977         of putting "9>&2" after the command.  Reported by Bruno Haible.
5978
5979 2011-06-13  Bruno Haible  <bruno@clisp.org>
5980
5981         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5982         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5983         'none'.
5984
5985 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5986
5987         ftoastr: use strtof only if HAVE_STRTOF
5988         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5989         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5990         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5991         * modules/ftoastr (configure.ac): Check for strtof.
5992
5993 2011-06-13  Bruno Haible  <bruno@clisp.org>
5994
5995         gnulib-tool: Addendum to 2011-06-08 commit.
5996         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5997         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5998
5999 2011-06-13  Bruno Haible  <bruno@clisp.org>
6000
6001         fseeko: Provide a non-inline replacement of fseek().
6002         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
6003         * modules/fseeko (Depends-on): Add fseek.
6004         * modules/fseek (License): Change to LGPLv2+.
6005
6006 2011-06-13  Bruno Haible  <bruno@clisp.org>
6007
6008         ftello: Provide a non-inline replacement of ftell().
6009         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
6010         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
6011         not have ftello() (such as on mingw).
6012         * modules/ftello (Depends-on): Add ftell.
6013         * modules/ftell (License): Change to LGPLv2+.
6014
6015 2011-05-07  Bruno Haible  <bruno@clisp.org>
6016
6017         ftell: Move AC_LIBOBJ invocations to module description.
6018         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
6019         * modules/ftell (configure.ac): ... to here.
6020
6021 2011-05-07  Bruno Haible  <bruno@clisp.org>
6022
6023         ftello: Respect rules for use of AC_LIBOBJ.
6024         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
6025         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
6026         here...
6027         * modules/ftello (configure.ac): ... to here.
6028
6029 2011-05-07  Bruno Haible  <bruno@clisp.org>
6030
6031         fseeko: Simplify.
6032         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
6033         (gl_FUNC_FSEEKO): Inline it here.
6034
6035 2011-05-07  Bruno Haible  <bruno@clisp.org>
6036
6037         fseek: Move AC_LIBOBJ invocations to module description.
6038         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
6039         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6040         * modules/fseek (configure.ac): ... to here.
6041
6042 2011-05-07  Bruno Haible  <bruno@clisp.org>
6043
6044         fseek: Respect rules for use of AC_LIBOBJ.
6045         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
6046         here...
6047         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
6048
6049 2011-05-07  Bruno Haible  <bruno@clisp.org>
6050
6051         fseeko: Respect rules for use of AC_LIBOBJ.
6052         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
6053         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
6054         here...
6055         * modules/fseeko (configure.ac): ... to here.
6056
6057 2011-06-13  Bruno Haible  <bruno@clisp.org>
6058
6059         gnulib-tool: Allow comments in the 'Depends-on' section.
6060         * doc/gnulib.texi (Module description): Mention comment syntax in the
6061         Depends-on section.
6062         * gnulib-tool (func_get_dependencies): Filter out comment lines.
6063
6064 2011-06-13  Bruno Haible  <bruno@clisp.org>
6065
6066         file-set.h: guard __attibute__ use, now that it's not always defined
6067         * lib/file-set.h (record_file): Use __attribute__ only with compiler
6068         versions that support it.  This fixes a coreutils build failure with
6069         the vendor cc on HP-UX 11.31.
6070
6071 2011-06-12  Bruno Haible  <bruno@clisp.org>
6072
6073         acl: Add support for HP-UX >= 11.11 JFS ACLs.
6074         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
6075         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
6076         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
6077         (acl, aclsort): New declarations.
6078         (aclv_nontrivial): New declaration.
6079         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
6080         (file_has_acl): Read also the second kind of HP-UX ACLs.
6081         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
6082         kind of HP-UX ACLs if the first kind fails.
6083         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
6084         second kind of HP-UX ACLs.
6085         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
6086         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
6087         agree.
6088         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6089         hpuxjfs.
6090         Handle hpuxjfs.
6091         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6092         hpuxjfs.
6093         Handle hpuxjfs.
6094         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6095         (func_test_same_acls): Use both lsacl and getacl.
6096         Handle hpuxjfs.
6097         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6098         (func_test_same_acls): Use both lsacl and getacl.
6099         Handle hpuxjfs.
6100
6101 2011-06-12  Bruno Haible  <bruno@clisp.org>
6102
6103         acl: Complete the 2010-08-10 fix.
6104         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
6105         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
6106         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
6107         explicitly.
6108         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
6109         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
6110
6111 2011-06-12  Bruno Haible  <bruno@clisp.org>
6112
6113         spawn-pipe tests: Comments.
6114         * tests/test-spawn-pipe-child.c (main): Update comment.
6115         Reported by James Youngman <jay@gnu.org>.
6116
6117 2011-06-11  James Youngman  <jay@gnu.org>
6118
6119         New module 'stat-size'.
6120         * modules/stat-size: New module.  Provides macros for accessing
6121         file size information in instances of struct stat.  Depends on the
6122         fileblocks module because it calls st_blocks.
6123         * lib/stat-size.h: New file, adapted from coreutils' system.h.
6124         * doc/gnulib.texi: Include stat-size.texi.
6125         * doc/stat-size.texi: Documentation for this module.
6126         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
6127         * m4/fileblocks.m4: Mention that stat-size depends on the call to
6128         AC_STRUCT_ST_BLOCKS.
6129
6130 2011-06-09  Bruno Haible  <bruno@clisp.org>
6131
6132         thread: Support pthreads-win32.
6133         * lib/glthread/thread.h (gl_thread_self): Define differently on
6134         pthreads-win32.
6135         (gl_null_thread): New declaration.
6136         (gl_thread_self_pointer): New macro.
6137         * lib/glthread/thread.c (gl_null_thread): New constant.
6138         * tests/test-lock.c: Use gl_thread_self_pointer instead of
6139         gl_thread_self.
6140         * tests/test-tls.c: Likewise.
6141         Suggested by Paul Eggert. Reported by Eric Blake.
6142
6143 2011-06-09  Bruno Haible  <bruno@clisp.org>
6144
6145         thread: Fix confusion between NULL and 0.
6146         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
6147         Reported by Paul Eggert.
6148
6149 2011-06-09  Bruno Haible  <bruno@clisp.org>
6150
6151         spawn-pipe tests: Avoid test failure on HP-UX 11.
6152         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
6153         is closed.
6154
6155 2011-06-09  Bruno Haible  <bruno@clisp.org>
6156
6157         acl tests: Fix compilation error on HP-UX 11.
6158         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
6159
6160 2011-06-09  Bruno Haible  <bruno@clisp.org>
6161
6162         rmdir: Avoid test failure on HP-UX 10.20.
6163         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
6164         EEXIST.
6165
6166 2011-06-08  Eric Blake  <eblake@redhat.com>
6167
6168         perror: fix test on mingw
6169         * modules/perror-tests (Depends-on): Add dup2.
6170
6171         strerror_r-posix: fix on MacOS
6172         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
6173         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
6174         logic bug.
6175         * lib/strerror_r.c (strerror_r): Fix the bug.
6176         * lib/strerror.c (strerror): Likewise.
6177         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6178         problem.
6179         * doc/posix-functions/strerror.texi (strerror): Likewise.
6180         * doc/posix-functions/perror.texi (perror): Likewise.
6181         * tests/test-strerror.c (main): Enhance test.
6182         * tests/test-strerror_r.c (main): Likewise.
6183
6184 2011-06-08  Bruno Haible  <bruno@clisp.org>
6185
6186         gnulib-tool: Better isolation between different gnulib-tool invocations.
6187         * gnulib-tool: New option --witness-c-macro.
6188         (witness_c_macro): New variable.
6189         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
6190         AM_CPPFLAGS define it as a C macro.
6191         (func_emit_tests_Makefile_am): Likewise.
6192         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
6193         read it from there.
6194         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
6195         m4_define, not AC_DEFUN.
6196         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
6197         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
6198         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
6199         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
6200         s|...|...|, to substitute the values of the GNULIB_* module indicator
6201         variables.
6202         * modules/dirent (Makefile.am): Likewise.
6203         * modules/fcntl-h (Makefile.am): Likewise.
6204         * modules/iconv-h (Makefile.am): Likewise.
6205         * modules/langinfo (Makefile.am): Likewise.
6206         * modules/locale (Makefile.am): Likewise.
6207         * modules/math (Makefile.am): Likewise.
6208         * modules/netdb (Makefile.am): Likewise.
6209         * modules/poll-h (Makefile.am): Likewise.
6210         * modules/pty (Makefile.am): Likewise.
6211         * modules/search (Makefile.am): Likewise.
6212         * modules/signal (Makefile.am): Likewise.
6213         * modules/spawn (Makefile.am): Likewise.
6214         * modules/stdio (Makefile.am): Likewise.
6215         * modules/stdlib (Makefile.am): Likewise.
6216         * modules/string (Makefile.am): Likewise.
6217         * modules/sys_ioctl (Makefile.am): Likewise.
6218         * modules/sys_select (Makefile.am): Likewise.
6219         * modules/sys_socket (Makefile.am): Likewise.
6220         * modules/sys_stat (Makefile.am): Likewise.
6221         * modules/sys_times (Makefile.am): Likewise.
6222         * modules/sys_utsname (Makefile.am): Likewise.
6223         * modules/sys_wait (Makefile.am): Likewise.
6224         * modules/termios (Makefile.am): Likewise.
6225         * modules/time (Makefile.am): Likewise.
6226         * modules/unistd (Makefile.am): Likewise.
6227         * modules/wchar (Makefile.am): Likewise.
6228
6229 2011-06-08  Eric Blake  <eblake@redhat.com>
6230
6231         strerror: simplify replacement
6232         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
6233         * modules/strerror (configure.ac): No prereqs needed here...
6234         * modules/strerror-override (configure.ac): ...but this needs it.
6235         (Files): Add file for needed prereq macro.
6236
6237 2011-06-08  Bruno Haible  <bruno@clisp.org>
6238
6239         strerror_r-posix: Tweaks.
6240         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
6241         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
6242         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
6243         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
6244         (gl_FUNC_STRERROR_R): ... to here.
6245         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
6246
6247 2011-06-07  Eric Blake  <eblake@redhat.com>
6248
6249         perror: document fixed bugs
6250         * doc/posix-functions/perror.texi (perror): Document recent
6251         patches.
6252
6253 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6254
6255         stat-time: get_stat_birthtime failure is better-defined
6256         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6257         return a timestamp whose tv_sec and tv_nsec values are both -1.
6258         Previously, the spec said only that the tv_nsec value was negative.
6259         This upward-compatible change simplifies GNU tar a bit.
6260
6261 2011-06-07  Eric Blake  <eblake@redhat.com>
6262
6263         strerror_r-posix: work around cygwin 1.7.9
6264         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6265         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6266         bug without replacing strerror_r.
6267         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6268         strerror_r is buggy, but without requiring strerror_r compilation.
6269         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6270
6271         test-perror: relax test to ignore cygwin bug
6272         * tests/test-perror2.c (main): Relax test on requiring detection
6273         of stream errors, and use unbuffered stream.
6274         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6275         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6276         * doc/posix-functions/fputc.texi (fputc): Likewise.
6277         * doc/posix-functions/fputs.texi (fputs): Likewise.
6278         * doc/posix-functions/fputws.texi (fputws): Likewise.
6279         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6280         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6281         * doc/posix-functions/getopt.texi (getopt): Likewise.
6282         * doc/posix-functions/perror.texi (perror): Likewise.
6283         * doc/posix-functions/printf.texi (printf): Likewise.
6284         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6285         * doc/posix-functions/psignal.texi (psignal): Likewise.
6286         * doc/posix-functions/putc.texi (putc): Likewise.
6287         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6288         Likewise.
6289         * doc/posix-functions/putchar.texi (putchar): Likewise.
6290         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6291         Likewise.
6292         * doc/posix-functions/puts.texi (puts): Likewise.
6293         * doc/posix-functions/putwc.texi (putwc): Likewise.
6294         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6295         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6296         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6297         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6298         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6299         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6300         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6301         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6302
6303 2011-05-22  Bruno Haible  <bruno@clisp.org>
6304
6305         strerror: Move AC_LIBOBJ invocations to module description.
6306         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6307         gl_PREREQ_STRERROR invocations from here...
6308         * modules/strerror (configure.ac): ... to here.
6309
6310 2011-05-21  Bruno Haible  <bruno@clisp.org>
6311
6312         perror: Use common idiom.
6313         * modules/perror (configure.ac): Reorder statements.
6314
6315 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6316
6317         tests: fix usage message in 'mktempd_'
6318         * tests/init.sh (mktempd_): In the usage message, use literal
6319         'mktempd_', not '$ME' (which is even undefined), as the name of
6320         the subroutine.
6321
6322 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6323
6324         tests init: new function 'fatal_', for hard errors
6325         Before this patch, the only way offered by tests/init.sh to
6326         properly signal a hard error was the `framework_failure_'
6327         function.  But the error message issued by that function,
6328         as its name would suggest, refers to a set-up failure in the
6329         testsuite, while hard errors can obviously also be due to
6330         other reasons.  The best way to fix this inconsistency is to
6331         introduce a new function with a more general error message.
6332         * tests/init.sh (fatal_): New function.
6333
6334 2011-06-06  Eric Blake  <eblake@redhat.com>
6335
6336         canonicalize-lgpl: use common idiom
6337         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6338         over newer POSIX -Rf.
6339         Reported by Bruno Haible.
6340
6341         canonicalize-lgpl: work around AIX realpath bug
6342         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6343         * doc/posix-functions/realpath.texi (realpath): Document it.
6344         Reported by Bruno Haible.
6345
6346         strerror: work around FreeBSD bug
6347         * lib/strerror.c (strerror): Special case 0.
6348         Reported by Bruno Haible.
6349
6350         strerror-override: avoid bloating errno module
6351         * modules/errno (Files, configure.ac): Move replacement strings...
6352         * modules/strerror-override: ...to new module.
6353         * modules/strerror (Depends-on): Add strerror-override.
6354         * modules/strerror_r-posix (Depends-on): Likewise.
6355         * MODULES.html.sh: Document new module.
6356         Reported by Bruno Haible.
6357
6358 2011-06-06  Bruno Haible  <bruno@clisp.org>
6359
6360         spawn-pipe tests: Rename program.
6361         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6362         * tests/test-spawn-pipe-child.c: Update comment.
6363         * tests/test-spawn-pipe.sh: Update.
6364         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6365
6366         spawn-pipe tests: Link the child program only against libc.
6367         * tests/test-spawn-pipe-child.c: New file, extracted from
6368         tests/test-spawn-pipe.c.
6369         (main): Expect only one argument.
6370         (is_open): New function, copied from tests/test-pipe.c.
6371         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6372         (child_main): Remove function.
6373         (test_pipe): Pass only one argument to the child program.
6374         (main): Remove child process code. Expect the child program's name as
6375         first argument.
6376         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6377         argument.
6378         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6379         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6380         test-spawn-pipe-child against no libraries.
6381
6382 2011-06-06  Bruno Haible  <bruno@clisp.org>
6383
6384         careadlinkat: Avoid mismatch between ssize_t and int.
6385         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6386         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6387
6388 2011-06-06  Jim Meyering  <meyering@redhat.com>
6389
6390         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6391         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6392         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6393
6394 2011-06-05  Bruno Haible  <bruno@clisp.org>
6395
6396         ansi-c++-opt: Interoperability with libtool.
6397         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
6398         set the variable to "no", not to ":".
6399         * NEWS: Mention the change.
6400
6401 2011-06-05  Bruno Haible  <bruno@clisp.org>
6402
6403         acl: Fix test failure on AIX 7.
6404         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
6405         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
6406
6407 2011-06-05  Bruno Haible  <bruno@clisp.org>
6408
6409         pipe-filter-ii: Fix test failure on AIX and IRIX.
6410         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
6411         with EAGAIN, retry with a smaller buffer size.
6412
6413 2011-06-05  Bruno Haible  <bruno@clisp.org>
6414
6415         localename: Fix link dependencies.
6416         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
6417         * modules/localename-tests (Makefile.am): Link test-localename with
6418         $(LIBTHREAD).
6419
6420 2011-06-05  Bruno Haible  <bruno@clisp.org>
6421
6422         error: Avoid gcc warning.
6423         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
6424
6425 2011-06-05  Bruno Haible  <bruno@clisp.org>
6426
6427         unsetenv: Avoid gcc warning.
6428         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
6429
6430 2011-06-05  Bruno Haible  <bruno@clisp.org>
6431
6432         setenv: Avoid gcc warning.
6433         * lib/setenv.c (setenv): Provide declaration if system lacks it.
6434
6435 2011-06-05  Bruno Haible  <bruno@clisp.org>
6436
6437         sys_select: Ensure memset is declared also on AIX 7.
6438         * lib/sys_select.in.h: Include <string.h> also on AIX.
6439         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6440         self-contained also on AIX 7.1.
6441
6442 2011-06-04  Jim Meyering  <meyering@redhat.com>
6443
6444         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
6445         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
6446         function name, "error".
6447         (_gl_translatable_diag_func_re): New configurable variable.
6448
6449 2011-06-04  Bruno Haible  <bruno@clisp.org>
6450
6451         getopt: Avoid gcc warning.
6452         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
6453
6454 2011-06-04  Bruno Haible  <bruno@clisp.org>
6455
6456         strerror_r: Fix comments.
6457         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
6458         commit.
6459
6460 2011-06-04  Bruno Haible  <bruno@clisp.org>
6461
6462         perror: Fix compilation error.
6463         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
6464         Undefine fprintf, not sprintf.
6465         * modules/perror (Depends-on): Remove intprops, verify.
6466
6467 2011-06-04  Bruno Haible  <bruno@clisp.org>
6468
6469         setlocale: Enable replacement on Cygwin 1.5.
6470         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
6471         Cygwin 1.5.x.
6472         * doc/posix-functions/setlocale.texi: Mention that the problem with the
6473         LC_CTYPE category also exists on Cygwin 1.5.x.
6474
6475 2011-06-04  Bruno Haible  <bruno@clisp.org>
6476
6477         strerror-override: Don't disable symbol renamings.
6478         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
6479         * lib/strerror-override.c: Include config.h.
6480         (strerror_override): Don't undefine.
6481
6482 2011-06-03  Bruno Haible  <bruno@clisp.org>
6483
6484         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6485         * lib/localename.h: Update copyright header.
6486         * lib/localename.c: Likewise.
6487         * lib/relocatable.h: Likewise.
6488         * lib/relocatable.c: Likewise.
6489
6490 2011-06-02  Bruno Haible  <bruno@clisp.org>
6491
6492         doc: Fix a module name.
6493         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6494
6495 2011-06-02  Bruno Haible  <bruno@clisp.org>
6496
6497         pipe2: Remove dependency on 'nonblocking' module.
6498         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6499         O_NONBLOCK is defined by gnulib.
6500         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6501         is zero.
6502         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6503         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6504         defined by gnulib.
6505         (get_nonblocking_flag): New function.
6506         (main): Test O_NONBLOCK flag only if it is nonzero.
6507         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6508
6509 2011-06-03  Jim Meyering  <meyering@redhat.com>
6510
6511         maint: three new prohibit-header-without-use rules
6512         Prohibit use of cloexec.h, posixver.h, same.h without use.
6513         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6514         (sc_prohibit_posixver_without_use): Likewise.
6515         (sc_prohibit_same_without_use): Likewise.
6516
6517 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6518
6519         allocator: 'die' routine is now given requested size
6520         * lib/allocator.h (struct allocator.die): New size arg.
6521         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6522         If the actual problem is an ssize_t limitation, not a size_t or
6523         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6524
6525 2011-06-01  Eric Blake  <eblake@redhat.com>
6526
6527         strerror: drop strerror_r dependency
6528         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6529         * lib/strerror-override.c (strerror_override): ...to new file.
6530         * lib/strerror-override.h: Add prototype.
6531         * lib/strerror-impl.h: Delete.
6532         * lib/strerror.c (strerror): New implementation.
6533         * modules/errno (Files): Add new files.
6534         (configure.ac): Compile new file as appropriate.
6535         * modules/strerror (Files): Drop unused file.
6536         (Depends-on): Drop strerror_r-posix.
6537         * MODULES.html.sh: Document strerror_r-posix.
6538         Requested by Sam Steingold.
6539
6540         perror: call strerror_r directly
6541         * modules/perror (Files): Drop strerror-impl.h.
6542         * lib/perror.c (perror): Use our own stack buffer, rather than
6543         calling a wrapper that uses static storage.
6544         * doc/posix-functions/perror.texi (perror): Document a limitation
6545         of our replacement.
6546
6547         strerror_r: fix includes for FreeBSD
6548         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6549         since we use abort on some platforms.
6550         Reported by Matthias Bolte.
6551
6552 2011-05-31  Bruno Haible  <bruno@clisp.org>
6553
6554         Fix link errors in tests: openat-die uses gettext-h.
6555         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6556         against $(LIBINTL).
6557         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6558         against $(LIBINTL).
6559         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6560         $(LIBINTL).
6561         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6562         against $(LIBINTL).
6563         * modules/linkat-tests (Makefile.am): Link test-linkat against
6564         $(LIBINTL).
6565         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6566         $(LIBINTL).
6567         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6568         against $(LIBINTL).
6569         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6570         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6571         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6572         $(LIBINTL).
6573         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6574         $(LIBINTL).
6575         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6576         $(LIBINTL).
6577         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6578
6579 2011-05-31  Bruno Haible  <bruno@clisp.org>
6580
6581         Fix link errors in tests: wait-process uses gettext-h.
6582         * modules/nonblocking-pipe-tests (Makefile.am): Set
6583         test_nonblocking_pipe_main_LDADD.
6584         * modules/nonblocking-socket-tests (Makefile.am): Link
6585         test-nonblocking-socket-main against $(LIBINTL).
6586         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6587
6588 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6589
6590         assert-h: work around 'verify' incompatibility
6591         * lib/verify.h: Use @...@ directives, not ifdef.
6592         * modules/assert-h (assert.h): Implement the directives.
6593         (assert.h): Substitute the symbol-prefix more consistently.
6594
6595 2011-05-29  Jim Meyering  <meyering@redhat.com>
6596
6597         trim: remove three superfluous assignments
6598         * lib/trim.c (trim2): Remove three superfluous assignments
6599         and correct brace positioning.
6600
6601 2011-05-29  Bruno Haible  <bruno@clisp.org>
6602
6603         wctype-h: Avoid namespace pollution on Solaris 2.6.
6604         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6605         identifiers.
6606         * doc/posix-headers/wctype.texi: Mention the problem.
6607         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6608
6609 2011-05-28  Jim Meyering  <meyering@redhat.com>
6610
6611         parse-datetime.y: accommodate -Wstrict-overflow
6612         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6613         placate -Wstrict-overflow.
6614
6615         trim: avoid a warning from -O2 -Wstrict-overflow
6616         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6617
6618 2011-05-29  Bruno Haible  <bruno@clisp.org>
6619
6620         gnulib-tool: Fix bug in yesterday's commit.
6621         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6622         twice.
6623
6624 2011-05-29  Bruno Haible  <bruno@clisp.org>
6625
6626         Allow multiple gnulib generated include files to be combined.
6627         * gnulib-tool (func_compute_include_guard_prefix): New function.
6628         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6629         ${gl_include_guard_prefix} references.
6630         (func_import, func_create_testdir): Invoke
6631         func_compute_include_guard_prefix.
6632         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6633         * lib/ctype.in.h: Likewise.
6634         * lib/dirent.in.h: Likewise.
6635         * lib/errno.in.h: Likewise.
6636         * lib/fcntl.in.h: Likewise.
6637         * lib/float.in.h: Likewise.
6638         * lib/getopt.in.h: Likewise.
6639         * lib/iconv.in.h: Likewise.
6640         * lib/langinfo.in.h: Likewise.
6641         * lib/locale.in.h: Likewise.
6642         * lib/math.in.h: Likewise.
6643         * lib/netdb.in.h: Likewise.
6644         * lib/netinet_in.in.h: Likewise.
6645         * lib/poll.in.h: Likewise.
6646         * lib/pthread.in.h: Likewise.
6647         * lib/pty.in.h: Likewise.
6648         * lib/sched.in.h: Likewise.
6649         * lib/se-selinux.in.h: Likewise.
6650         * lib/search.in.h: Likewise.
6651         * lib/signal.in.h: Likewise.
6652         * lib/spawn.in.h: Likewise.
6653         * lib/stdarg.in.h: Likewise.
6654         * lib/stddef.in.h: Likewise.
6655         * lib/stdint.in.h: Likewise.
6656         * lib/stdio.in.h: Likewise.
6657         * lib/stdlib.in.h: Likewise.
6658         * lib/string.in.h: Likewise.
6659         * lib/strings.in.h: Likewise.
6660         * lib/sys_file.in.h: Likewise.
6661         * lib/sys_ioctl.in.h: Likewise.
6662         * lib/sys_select.in.h: Likewise.
6663         * lib/sys_socket.in.h: Likewise.
6664         * lib/sys_stat.in.h: Likewise.
6665         * lib/sys_time.in.h: Likewise.
6666         * lib/sys_times.in.h: Likewise.
6667         * lib/sys_uio.in.h: Likewise.
6668         * lib/sys_utsname.in.h: Likewise.
6669         * lib/sys_wait.in.h: Likewise.
6670         * lib/sysexits.in.h: Likewise.
6671         * lib/termios.in.h: Likewise.
6672         * lib/time.in.h: Likewise.
6673         * lib/unistd.in.h: Likewise.
6674         * lib/wchar.in.h: Likewise.
6675         * lib/wctype.in.h: Likewise.
6676         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6677         * modules/ctype (Makefile.am): Likewise.
6678         * modules/dirent (Makefile.am): Likewise.
6679         * modules/errno (Makefile.am): Likewise.
6680         * modules/fcntl-h (Makefile.am): Likewise.
6681         * modules/float (Makefile.am): Likewise.
6682         * modules/getopt-posix (Makefile.am): Likewise.
6683         * modules/iconv-h (Makefile.am): Likewise.
6684         * modules/langinfo (Makefile.am): Likewise.
6685         * modules/locale (Makefile.am): Likewise.
6686         * modules/math (Makefile.am): Likewise.
6687         * modules/netdb (Makefile.am): Likewise.
6688         * modules/netinet_in (Makefile.am): Likewise.
6689         * modules/poll-h (Makefile.am): Likewise.
6690         * modules/pthread (Makefile.am): Likewise.
6691         * modules/pty (Makefile.am): Likewise.
6692         * modules/sched (Makefile.am): Likewise.
6693         * modules/search (Makefile.am): Likewise.
6694         * modules/selinux-h (Makefile.am): Likewise.
6695         * modules/signal (Makefile.am): Likewise.
6696         * modules/spawn (Makefile.am): Likewise.
6697         * modules/stdarg (Makefile.am): Likewise.
6698         * modules/stddef (Makefile.am): Likewise.
6699         * modules/stdint (Makefile.am): Likewise.
6700         * modules/stdio (Makefile.am): Likewise.
6701         * modules/stdlib (Makefile.am): Likewise.
6702         * modules/string (Makefile.am): Likewise.
6703         * modules/strings (Makefile.am): Likewise.
6704         * modules/sys_file (Makefile.am): Likewise.
6705         * modules/sys_ioctl (Makefile.am): Likewise.
6706         * modules/sys_select (Makefile.am): Likewise.
6707         * modules/sys_socket (Makefile.am): Likewise.
6708         * modules/sys_stat (Makefile.am): Likewise.
6709         * modules/sys_time (Makefile.am): Likewise.
6710         * modules/sys_times (Makefile.am): Likewise.
6711         * modules/sys_uio (Makefile.am): Likewise.
6712         * modules/sys_utsname (Makefile.am): Likewise.
6713         * modules/sys_wait (Makefile.am): Likewise.
6714         * modules/sysexits (Makefile.am): Likewise.
6715         * modules/termios (Makefile.am): Likewise.
6716         * modules/time (Makefile.am): Likewise.
6717         * modules/unistd (Makefile.am): Likewise.
6718         * modules/wchar (Makefile.am): Likewise.
6719         * modules/wctype-h (Makefile.am): Likewise.
6720         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6721
6722 2011-05-29  Bruno Haible  <bruno@clisp.org>
6723
6724         assert-h: Allow multiple gnulib generated replacements to coexist.
6725         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6726
6727 2011-05-29  Bruno Haible  <bruno@clisp.org>
6728
6729         argp: Allow coexistence with strerror_r-posix module.
6730         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6731         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6732         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6733         not the glibc signature.
6734
6735 2011-05-28  Bruno Haible  <bruno@clisp.org>
6736
6737         gnulib-tool: Alternative structure of testdirs, similar to --import.
6738         * gnulib-tool: New option --single-configure.
6739         (func_usage): Document it.
6740         (single_configure): New variable.
6741         (func_modules_transitive_closure_separately,
6742         func_modules_transitive_closure_separately,
6743         func_determine_use_libtests, func_modules_add_dummy_separately,
6744         func_modules_to_filelist_separately): New functions, extracted from
6745         func_import.
6746         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6747         (func_import): Use the new functions.
6748         (func_create_testdir): Set final_modules. Handle $single_configure =
6749         true case.
6750
6751 2011-05-28  Bruno Haible  <bruno@clisp.org>
6752
6753         getloadavg: Remove an unreliable safety check.
6754         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6755         getloadavg.c is in place.
6756         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6757         Reported by Sam Steingold <sds@gnu.org>.
6758
6759 2011-05-28  Bruno Haible  <bruno@clisp.org>
6760
6761         doc: Cleanup yet another file produced by texinfo.tex.
6762         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6763
6764 2011-05-28  Bruno Haible  <bruno@clisp.org>
6765
6766         Finish the conditional dependencies mechanism.
6767         * gnulib-tool: New option --no-conditional-dependencies.
6768         (func_usage): Document it. Don't mark --conditional-dependencies as
6769         experimental.
6770         (cond_dependencies): The possible values can now be true, false, empty.
6771         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6772         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6773         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6774
6775 2011-05-28  Bruno Haible  <bruno@clisp.org>
6776
6777         doc: Use a recent texinfo.tex.
6778         * doc/Makefile (tex_opts): New variable.
6779         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6780
6781 2011-05-28  Jim Meyering  <meyering@redhat.com>
6782
6783         intprops.h: adjust comment to match code change
6784         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6785         only once, it *may* have side effects.  Also fix an unrelated typo.
6786         (_GL_INT_SIGNED): Likewise.
6787
6788 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6789
6790         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6791
6792 2011-05-26  Bruno Haible  <bruno@clisp.org>
6793
6794         mbsrchr: Avoid collision with system function on Interix.
6795         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6796         Reported by Markus Duft <mduft@gentoo.org>.
6797
6798 2011-05-15  James Youngman  <jay@gnu.org>
6799
6800         getopt: for ambiguous options, enumerate the possibilities.
6801         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6802         the ambiguous options when an ambiguous prefix is given. This was
6803         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6804         glibc change was
6805         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6806
6807 2011-05-25  Eric Blake  <eblake@redhat.com>
6808
6809         getcwd: work around mingw bug
6810         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6811         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6812         Reported by Matthias Bolte.
6813
6814 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6815
6816         test-intprops: disable -Wtype-limits diagnostics
6817         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6818         diagnostics.  Otherwise, the integer overflow macros generate many
6819         diagnostics.  Reported by Jim Meyering in
6820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6821
6822         intprops: shorten, to pacify gcc -Woverlength-strings
6823         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6824         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6825         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6826         likely to run afoul of C compiler limits for string constant lengths.
6827         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6828
6829 2011-05-24  Eric Blake  <eblake@redhat.com>
6830
6831         docs: document recently fixed glibc printf bug
6832         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6833         * doc/posix-functions/printf.texi (printf): Likewise.
6834         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6835         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6836
6837         closein-tests: convert to init.sh
6838         * modules/closein-tests (Files): Add init.sh
6839         * tests/test-closein.sh Use it.
6840
6841         yesno-tests: convert to init.sh
6842         * modules/yesno-tests (Files): Add init.sh.
6843         * tests/test-yesno.sh: Use it.
6844
6845         atexit-tests: ensure reliable exit status
6846         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6847         Reported by Bruno Haible.
6848
6849 2011-05-24  Bruno Haible  <bruno@clisp.org>
6850
6851         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6852         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6853         gl_PREREQ_STRERROR_R invocations from here...
6854         * modules/strerror_r-posix (configure.ac): ... to here.
6855
6856 2011-05-24  Eric Blake  <eblake@redhat.com>
6857
6858         strerror_r: fix missing header
6859         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6860
6861         strerror_r: fix AIX test failures
6862         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6863         ERANGE failure.
6864
6865         strerror_r: fix Solaris test failures
6866         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6867         failures.
6868         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6869
6870         strerror_r: enforce POSIX recommendations
6871         * lib/strerror_r.c (safe_copy): New helper method.
6872         (strerror_r): Guarantee a non-empty string.
6873         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6874         recent POSIX rulings and to match our strerror guarantees.
6875         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6876
6877 2011-05-24  Jim Meyering  <meyering@redhat.com>
6878
6879         test-perror2.c: avoid warning about unused variable
6880         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6881
6882 2011-05-24  Eric Blake  <eblake@redhat.com>
6883
6884         perror: avoid spurious test failure on HP-UX
6885         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6886
6887         tests: fix logic bug in init.sh
6888         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6889         shell.
6890
6891 2011-05-24  Jim Meyering  <meyering@redhat.com>
6892
6893         utimensat: do not reference an out-of-scope buffer
6894         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6895         declared in an inner scope, yet "times" would be dereferenced outside
6896         the scope in which "ts" was valid.
6897         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6898         of ts[2] "out/up", so that the use of aliased "times" (via
6899         "times = ts;") does not end up referencing an out-of-scope "ts"
6900
6901         opendir-safer.c: don't clobber errno; don't close negative FD
6902         * lib/opendir-safer.c (opendir_safer):
6903         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6904         file descriptor, and more importantly, don't clobber the
6905         offending errno value with EINVAL.  Before, upon failure
6906         of dup_safer, we would pass the negative file descriptor to
6907         fdopendir, which would clobber errno.
6908
6909 2011-05-23  Bruno Haible  <bruno@clisp.org>
6910
6911         idcache: Fix module description.
6912         * modules/idcache (Include): Set to "idcache.h".
6913
6914 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6915
6916         gnulib-tool: fix portability problem with MacOS sed
6917         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6918         before the "}".  Problem reported by Leo in
6919         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6920         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6921         sed_extract_condition1, sed_extract_condition2.
6922
6923 2011-05-23  Bruno Haible  <bruno@clisp.org>
6924
6925         hash: Simplify autoconf macro.
6926         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6927
6928 2011-05-23  Bruno Haible  <bruno@clisp.org>
6929
6930         getugroups: Fix module description.
6931         * modules/getugroups (Include): Set to "getugroups.h".
6932
6933 2011-05-23  Bruno Haible  <bruno@clisp.org>
6934
6935         linkat: Simplify autoconf macro.
6936         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6937
6938 2011-05-23  Bruno Haible  <bruno@clisp.org>
6939             Eric Blake  <eblake@redhat.com>
6940
6941         linkat, renameat: Update dependencies.
6942         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6943         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6944         symlinkat.
6945
6946 2011-05-23  Jim Meyering  <meyering@redhat.com>
6947
6948         maint.mk: more tight_scope improvements
6949         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6950         (_gl_TS_headers): Define only in if-0'd block.
6951         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6952         sometimes we must *not* use it.  Adjust uses accordingly.
6953         (sc_tight_scope): Use much simpler grep-based test to determine
6954         whether we skip this rule.
6955
6956         maint.mk: generalize/improve the tight-scope rule
6957         * top/maint.mk: Emit a warning when the test is skipped.
6958         (_gl_TS_dir): Add $(srcdir)/ prefix.
6959         (_gl_TS_function_match): Simplify, rather than trying
6960         to enumerate common types.  Otherwise, it would fail to match an
6961         "extern unsigned char const *" declaration in idutils.
6962         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6963         a way to support use of that type of macro.
6964         (_gl_TS_var_match): Simplify regexp.
6965         (_gl_TS_obj_files): New configurable variable.
6966         (_gl_TS_headers): Likewise.
6967
6968 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6969
6970         verify: fix bug when gnulib <assert.h> is also included
6971         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6972         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6973         Perhaps there's a better way, but this fixes the immediate problem.
6974         Problem reported by Bruno Haible in
6975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6976
6977 2011-05-22  Bruno Haible  <bruno@clisp.org>
6978
6979         xgetcwd: Simplify autoconf macro.
6980         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6981
6982 2011-05-22  Bruno Haible  <bruno@clisp.org>
6983
6984         New module 'mktime-internal'.
6985         * modules/mktime-internal: New file.
6986         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6987         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6988         mktime_internal as a C macro if libc has __mktime_internal.
6989         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6990         conditions.
6991         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6992
6993 2011-05-22  Bruno Haible  <bruno@clisp.org>
6994
6995         timegm: Correct mktime replacement statements.
6996         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6997         defining mktime as a C macro. This completes a 2009-07-28 commit.
6998
6999 2011-05-22  Bruno Haible  <bruno@clisp.org>
7000
7001         timegm: Simplify autoconf macro.
7002         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
7003
7004 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7005
7006         clock-time: change to LGPLv2+.
7007         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
7008         BSD-like but we have no mark for that; this is good enough for now.
7009
7010 2011-05-21  Bruno Haible  <bruno@clisp.org>
7011
7012         strerror_r: Fix comments.
7013         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
7014
7015 2011-05-21  Bruno Haible  <bruno@clisp.org>
7016
7017         relocatable-prog-wrapper: Fix possible link error.
7018         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
7019         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
7020         (gl_FUNC_SETENV): ... to here.
7021         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
7022         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
7023
7024 2011-05-21  Bruno Haible  <bruno@clisp.org>
7025
7026         relocatable-prog-wrapper: Assume strerror() exists.
7027         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
7028         m4/strerror.m4.
7029         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
7030         * lib/relocwrapper.c: Remove mention of strerror module.
7031         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
7032         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
7033         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
7034         C macro.
7035
7036 2011-05-21  Bruno Haible  <bruno@clisp.org>
7037
7038         select: Simplify replacement idiom.
7039         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
7040         Win32 platforms.
7041         * lib/sys_select.in.h (select): Simplify accordingly.
7042         * modules/select (Depends-on): Likewise.
7043
7044 2011-05-21  Bruno Haible  <bruno@clisp.org>
7045
7046         mkdir-p: Simplify autoconf macro.
7047         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
7048         gl_FUNC_LCHOWN.
7049
7050 2011-05-21  Eric Blake  <eblake@redhat.com>
7051
7052         strerror_r: avoid clobbering strerror on cygwin
7053         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
7054         fall back instead to sys_errlist.
7055         * modules/strerror (configure.ac): Add witness.
7056         * tests/test-strerror_r.c (main): Enhance test.
7057         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7058         * tests/test-perror2.c (main): Free memory before exit.
7059
7060 2011-05-21  Bruno Haible  <bruno@clisp.org>
7061
7062         mkdtemp: Use gnulib naming conventions.
7063         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
7064         * modules/mkdtemp (configure.ac): Update.
7065
7066 2011-05-20  Eric Blake  <eblake@redhat.com>
7067
7068         strerror_r: avoid corrupting errno on Solaris
7069         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
7070         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7071
7072         strerror_r: avoid compiler warning
7073         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
7074
7075         strerror_r: simplify AIX code
7076         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
7077
7078         test-perror: avoid spurious failure on FreeBSD
7079         * modules/perror-tests (Depends-on): Add strerror, now that
7080         strerror_r no longer pulls it in.
7081
7082 2011-05-20  Bruno Haible  <bruno@clisp.org>
7083
7084         strerror_r-posix: Remove unused dependencies.
7085         * modules/strerror_r-posix (Depends-on): Remove strerror.
7086         Reported by Eric Blake.
7087
7088 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7089
7090         intprops: remove assumption about A|B representation
7091         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
7092         is a valid integer if both A and B are.  Although this is true for
7093         all known practical hosts, the C standard doesn't guarantee it,
7094         and the code need not assume it.  Also, this change may work around
7095         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
7096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
7097
7098 2011-05-20  Eric Blake  <eblake@redhat.com>
7099
7100         perror: work around FreeBSD bug
7101         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
7102         is broken.  Move AC_LIBOBJ...
7103         * modules/perror (configure.ac): Here.
7104         * doc/posix-functions/perror.texi (perror): Document this.
7105         * tests/test-perror2.c (main): Enhance test.
7106
7107         test-perror: check for strerror interactions
7108         * tests/macros.h (STREQ): Add macro.
7109         * modules/perror-tests (Files): Add second test.
7110         * tests/test-perror2.c (main): New file.
7111         * doc/posix-functions/perror.texi (perror): Document glibc bug.
7112
7113         test-perror: rewrite to use init script
7114         * modules/perror-tests (Files): Add init.sh.
7115         * tests/test-perror.sh: Use temporary directory.
7116
7117 2011-05-20  Jim Meyering  <meyering@redhat.com>
7118
7119         maint: replace misused "a" with "an"
7120         * doc/intprops.texi: "a integer"
7121         * doc/regex.texi: "a explanation"
7122         * lib/alignof.h: "a object"
7123         * lib/argmatch.h: "a explanation"
7124         * lib/argp-help.c: "a option" and "a OPTION_DOC"
7125         * lib/stdint.in.h: "a integer"
7126         * lib/userspec.c: "a owner"
7127         * doc/gnulib.texi: Fix "a idea", and reword.
7128
7129 2011-05-19  Jim Meyering  <meyering@redhat.com>
7130
7131         maint: correct misuse of "a" and "an"
7132         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
7133         * lib/argp-help.c: "an docum...": s/an/a/
7134         * lib/argp-parse.c: "An vector": s/An/A/
7135         * lib/execute.c: "an native": s/an/a/
7136         * lib/spawn-pipe.c: Likewise.
7137         * lib/gc.h: "an Gc_rc": s/an/a/
7138         * lib/unigbrk.in.h: "an grapheme": s/an/a/
7139         * lib/fts.c: "an stat.st_dev": s/an/a/
7140
7141 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7142
7143         intprops-tests: work around HP-UX 11.23 cc bug with constants
7144         * tests/test-intprops.c (VERIFY): New macro.
7145         (main): Use it, instead of verify, to work around the compiler bug; see
7146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7147
7148         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
7149         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
7150         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
7151         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
7152         (_GL_REMAINDER_OVERFLOW): Use it.
7153
7154         intprops-tests: revert unsigned part of previous change
7155         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
7156         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
7157         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
7158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
7159
7160 2011-05-19  Bruno Haible  <bruno@clisp.org>
7161
7162         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
7163         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
7164         strerror_r() returned without filling the buffer.
7165         Reported by Eric Blake.
7166
7167 2011-05-19  Eric Blake  <eblake@redhat.com>
7168
7169         strerror_r: guarantee unchanged errno
7170         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
7171         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
7172         failure.
7173         * tests/test-strerror_r.c (main): Enhance test.
7174
7175 2011-05-19  Bruno Haible  <bruno@clisp.org>
7176
7177         strerror_r: Reorder #if blocks.
7178         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
7179         for consistency with the previous commit.
7180
7181 2011-05-19  Bruno Haible  <bruno@clisp.org>
7182
7183         perror: Avoid clobbering the strerror buffer when possible.
7184         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
7185         * lib/strerror.c: Include it.
7186         * modules/strerror (Files): Add lib/strerror-impl.h.
7187         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
7188         (my_strerror): New function, defined through lib/strerror-impl.h.
7189         (perror): Use it instead of strerror.
7190         * modules/perror (Files): Add lib/strerror-impl.h.
7191         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
7192
7193 2011-05-19  Eric Blake  <eblake@redhat.com>
7194
7195         strerror_r: fix on newer cygwin
7196         * lib/strerror_r.c (strerror_r): Cygwin now has
7197         __xpg_strerror_r, use it.
7198
7199 2011-05-19  Bruno Haible  <bruno@clisp.org>
7200
7201         strerror_r: Avoid clobbering the strerror buffer when possible.
7202         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
7203         (sys_nerr, sys_errlist): New declarations.
7204         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
7205         HP-UX, native Win32, IRIX, and 32-bit Solaris.
7206         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
7207
7208 2011-05-19  Bruno Haible  <bruno@clisp.org>
7209
7210         strerror_r: Fix test failure on mingw.
7211         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
7212         EXTEND_STRERROR_R.
7213         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
7214         macros from errno.in.h instead.
7215
7216 2011-05-19  Eric Blake  <eblake@redhat.com>
7217
7218         strerror: relax test for Solaris
7219         * tests/test-strerror.c (main): Permit Solaris behavior.
7220         * tests/test-strerror_r.c (main): Likewise.
7221
7222         strerror: enforce POSIX ruling on strerror(0)
7223         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
7224         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7225         * lib/strerror_r.c (rpl_strerror_r): Work around it.
7226         * doc/posix-functions/strerror.texi (strerror): Document it.
7227         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
7228         * tests/test-strerror.c (main): Strengthen test.
7229         * tests/test-strerror_r.c (main): Likewise.
7230
7231 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7232
7233         intprop-tests: port to older and more-pedantic compilers
7234         * modules/intprops-tests (Files): Add tests/macros.h.
7235         * tests/test-intprops.c: Include macros.h.
7236         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
7237         it's no longer documented to expand to an integer constant expression.
7238         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
7239         argument is floating point, as it's no longer documented to expand
7240         to an integer constant expression in that case.
7241         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
7242         compiler bugs reported by Bruno Haible.  See
7243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7244         (U0, U1): New constants, to work around the same bugs.  Also,
7245         in tests, use e.g., "(unsigned int) 39" rather than "39u".
7246
7247         intprops: work around C compiler bugs
7248         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
7249         bug in Sun C 5.11 2010/08/13 and other compilers; see
7250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7251
7252         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7253         * doc/intprops.texi (Integer Type Determination): Fix
7254         documentation for TYPE_IS_INTEGER: it returns an constant
7255         expression, not an integer constant expression.  Fix doc for
7256         TYPE_SIGNED: it returns an integer constant expression only if its
7257         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7258         hardly worth documented that way....)
7259
7260 2011-05-18  Bruno Haible  <bruno@clisp.org>
7261
7262         strerror_r: Avoid clobbering the strerror buffer when possible.
7263         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7264         Handle gnulib defined errno values here. When strerror() returns NULL
7265         or an empty string, return EINVAL.
7266         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7267         gnulib defined errno values here.
7268         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7269
7270 2011-05-18  Eric Blake  <eblake@redhat.com>
7271
7272         fnmatch: avoid compiler warning
7273         * lib/fnmatch_loop.c (FCT): Use correct type.
7274         Reported by Matthias Bolte.
7275
7276 2011-05-13  Jim Meyering  <meyering@redhat.com>
7277
7278         maint.mk: three new prohibit_<HDR>_without_use rules
7279         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7280         (sc_prohibit_stdio-safer_without_use): Likewise.
7281         (sc_prohibit_xfreopen_without_use): Likewise.
7282
7283 2011-05-17  Jim Meyering  <meyering@redhat.com>
7284
7285         announce-gen: fail if the NEWS delta is empty
7286         If there's nothing noteworthy in NEWS, then either you forgot
7287         or you shouldn't be releasing.
7288         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7289
7290 2011-05-17  Pádraig Brady <P@draigBrady.com>
7291
7292         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7293         reserved symbols starting with double underscore from the check.
7294
7295 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7296
7297         intprops: add doc
7298         * doc/intprops.texi: New file, documenting intprops.
7299         * doc/gnulib.texi (Particular Modules): Include it.
7300
7301         verify: add doc to gnulib manual and fix example
7302         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7303         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7304         (Compile-time Assertions): Fix example so it can't overflow.
7305
7306 2011-05-17  Jim Meyering  <meyering@redhat.com>
7307
7308         warnings.m4: don't usurp save_CPPFLAGS variable name
7309         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7310
7311         doc: fix typo
7312         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7313
7314 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7315             Bruno Haible  <bruno@clisp.org>
7316
7317         doc: Tweak recent change.
7318         * README (Portability guidelines): Tweak new text.
7319         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7320         Interix 6.1.
7321
7322 2011-05-16  Eric Blake  <eblake@redhat.com>
7323
7324         inttypes: avoid autoconf warning
7325         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7326         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7327
7328 2011-05-16  Sam Steingold <sds@gnu.org>
7329         and Eric Blake  <eblake@redhat.com>
7330
7331         vc-list-files: accept multiple directory operands
7332         * build-aux/vc-list-files: Iterate over all remaining operands.
7333
7334 2011-05-16  Bruno Haible  <bruno@clisp.org>
7335
7336         Fix confusion regarding deprecated modules.
7337         * modules/calloc (Status, Notice): Mark module as deprecated, not
7338         obsolete.
7339         * modules/fnmatch-posix (Status, Notice): Likewise.
7340         * modules/getdate (Status, Notice): Likewise.
7341         * modules/getopt (Status, Notice): Likewise.
7342         * modules/malloc (Status, Notice): Likewise.
7343         * modules/pipe (Status, Notice): Likewise.
7344         * modules/realloc (Status, Notice): Likewise.
7345         * modules/rename-dest-slash (Status, Notice): Likewise.
7346         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7347         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7348         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7349         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7350         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7351
7352 2011-05-16  Bruno Haible  <bruno@clisp.org>
7353
7354         doc: List the target platforms.
7355         * doc/gnulib-intro.texi (Target Platforms): New section.
7356         * doc/gnulib.texi (Introduction): Update menu.
7357         * README (Portability guidelines): Refer to the new section. Update
7358         statement about oldest supported environment. Remove rationale why
7359         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7360         unportable C89 function.
7361         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7362         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7363
7364 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7365
7366         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7367
7368 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7369
7370         intprops-tests: new module
7371         * modules/intprops-tests, tests/test-intprops.c: New files.
7372
7373         intprops: add safe, portable integer overflow checking
7374         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7375         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7376         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7377         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7378         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7379         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7380         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7381         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7382         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7383         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7384         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7385
7386 2011-05-12  James Youngman  <jay@gnu.org>
7387
7388         Add a test for glibc's Bugzilla bug #12378.
7389         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7390         doesn't allow the literal matching of a lone "[" (which is
7391         required by POSIX).
7392         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7393
7394 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7395
7396         Sync glibc change fixing Bugzilla bug #12378.
7397         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
7398         beginning and fall back to matching as normal character if the
7399         string ends before the matching ']' is found.  This is what POSIX
7400         requires.
7401
7402 2011-05-13  Eric Blake  <eblake@redhat.com>
7403
7404         getcwd-lgpl: relax test for FreeBSD
7405         * doc/posix-functions/getcwd.texi (getcwd): Document portability
7406         issue.
7407         * tests/test-getcwd-lgpl.c (main): Relax test.
7408         Reported by Matthias Bolte.
7409
7410 2011-05-11  Eric Blake  <eblake@redhat.com>
7411
7412         test-fflush: silence compiler warning
7413         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
7414
7415 2011-05-11  Bruno Haible  <bruno@clisp.org>
7416
7417         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
7418         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
7419         * modules/canonicalize (Depends-on): Add 'nocrash'.
7420         * modules/canonicalize-lgpl (Depends-on): Likewise.
7421         * doc/posix-functions/realpath.texi: Update platforms list.
7422         Reported by Ryan Schmidt <ryandesign@macports.org>.
7423
7424 2011-05-11  Bruno Haible  <bruno@clisp.org>
7425
7426         group-member: Declare function in <unistd.h>.
7427         * lib/unistd.in.h (group_member): New declaration.
7428         * lib/group-member.h: Remove file.
7429         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
7430         * tests/test-unistd-c++.cc: Check signature of group_member.
7431         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
7432         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
7433         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
7434         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
7435         HAVE_GROUP_MEMBER.
7436         * modules/group-member (Files): Remove lib/group-member.h.
7437         (Depends-on): Add unistd. Specify conditions.
7438         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7439         (Include): Change to <unistd.h>.
7440         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
7441         HAVE_GROUP_MEMBER.
7442         * NEWS: Mention the change.
7443         * lib/euidaccess.c: Don't include group-member.h.
7444
7445 2011-05-11  Bruno Haible  <bruno@clisp.org>
7446
7447         group-member: Document module.
7448         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
7449         module.
7450
7451 2011-05-11  Bruno Haible  <bruno@clisp.org>
7452
7453         fclose: Fix mistake earlier today.
7454         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
7455
7456 2011-05-11  Eric Blake  <eblake@redhat.com>
7457
7458         fclose: preserve fflush errors
7459         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
7460         Reported by Jim Meyering.
7461
7462         bootstrap: support a prereq of 'rpcgen -' on RHEL5
7463         * build-aux/bootstrap (check_versions): When no specific version
7464         is required, merely check that the app produces an exit status
7465         that indicates its existence.
7466
7467         maint.mk: drop redundant check
7468         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
7469         the same but better.
7470
7471 2011-05-11  Bruno Haible  <bruno@clisp.org>
7472
7473         fclose: Fix possible link error.
7474         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
7475         unregister_shadow_fd. Improve comments.
7476         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
7477         Eric Blake.
7478
7479 2011-05-11  Jim Meyering  <meyering@redhat.com>
7480
7481         maint.mk: improve "can not" detection and generalize rule name
7482         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7483         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7484         Use the same technique as in sc_prohibit_doubled_word, so that
7485         we recognize "can not" also when the words are separated by a newline.
7486         Suggested by Eric Blake.
7487         (perl_filename_lineno_text_): Define.  Factored out of...
7488         (prohibit_doubled_word_): ...here.  Use the new definition.
7489         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7490         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7491         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7492
7493 2011-05-10  Eric Blake  <eblake@redhat.com>
7494
7495         fclose: avoid double close race when possible
7496         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7497         all but WINDOWS_SOCKETS.
7498
7499 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7500
7501         openat: correct new comment
7502         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7503
7504 2011-05-10  Jim Meyering  <meyering@redhat.com>
7505
7506         openat: add comments
7507         * lib/openat-proc.c (openat_proc_name): Add comments,
7508         mostly from Eric Blake.
7509
7510 2011-05-09  Eric Blake  <eblake@redhat.com>
7511
7512         openat: reduce syscalls in first probe of /proc
7513         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7514         be a directory.  Simplify the probe for .. bugs.
7515         * modules/openat (Depends-on): Drop same-inode.
7516         Reported by Bastien ROUCARIES.
7517
7518 2011-05-09  Jim Meyering  <meyering@redhat.com>
7519
7520         maint.mk: change semantics/name of tight_scope variables
7521         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7522         Rename variables to align with semantics that make them more useful.
7523
7524         maint.mk: tweak new rule's name not to impinge
7525         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7526         (sc_tight_scope): Use new rule name rather than $@-0.
7527
7528         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7529         * top/maint.mk (sc_tight_scope): New rule.
7530         (sc_tight_scope-0): New rule, ifdef'd out.
7531         (_gl_TS_dir): Default.
7532         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7533         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7534
7535 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7536
7537         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7538         Haible <bruno@clisp.org>.
7539
7540 2011-05-08  Bruno Haible  <bruno@clisp.org>
7541
7542         Comments.
7543         * m4/isnanf.m4: Add comment.
7544         * m4/isnanl.m4: Likewise.
7545
7546 2011-05-08  Bruno Haible  <bruno@clisp.org>
7547
7548         glob: Remove obsolete macro.
7549         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7550
7551 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7552
7553         intprops: Sun C 5.11 supports __typeof__
7554         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7555         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7556         which is new.
7557         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7558
7559         intprops: switch to usual gnulib indenting and naming
7560         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7561         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7562
7563         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7564
7565 2011-05-08  Jim Meyering  <meyering@redhat.com>
7566
7567         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7568         * top/maint.mk (release-prep): Use make's --no-print-directory
7569         option when generating the announcement.  This eliminates the
7570         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7571         generated announcement template.
7572
7573 2011-05-08  Bruno Haible  <bruno@clisp.org>
7574
7575         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7576         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7577         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7578
7579 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7580
7581         ignore-value, verify: Omit include files from lib_SOURCES.
7582         * modules/ignore-value, modules/verify (Makefile.am):
7583         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7584         that leads Automake to duplicate use of am__objects_... variables
7585         in Makefile.in.  See
7586         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7587
7588 2011-05-07  Bruno Haible  <bruno@clisp.org>
7589
7590         fclose: Simplify autoconf macro.
7591         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7592         defined.
7593
7594 2011-05-07  Bruno Haible  <bruno@clisp.org>
7595
7596         canonicalize-lgpl: Fix autoconf macro ordering bug.
7597         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7598         gl_STDLIB_H_DEFAULTS.
7599
7600 2011-05-06  Eric Blake  <eblake@redhat.com>
7601
7602         maintainer-makefile: make sc_po_check easier to tune
7603         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7604         to probe for strings, such as an alternate location for gnulib.
7605
7606         fclose: guarantee behavior on seekable stdin
7607         * modules/fclose (Depends-on): Add fflush.
7608         * doc/posix-functions/fclose.texi (fclose): Document this.
7609         * tests/test-fclose.c (main): Make test for this unconditional.
7610
7611 2011-05-06  Bruno Haible  <bruno@clisp.org>
7612
7613         fflush, fpurge: Relicense under LGPLv2+.
7614         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7615         * modules/fpurge (License): Likewise.
7616         With permission from Eric Blake and Jim Meyering.
7617         Suggested by Eric Blake.
7618
7619 2011-05-06  Karl Berry  <karl@gnu.org>
7620
7621         * MODULES.html.sh (func_all_modules): remove exit.
7622
7623 2011-05-06  Jim Meyering  <meyering@redhat.com>
7624
7625         maint.mk: use info-gnu@ as the default only for a stable release
7626         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7627         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7628         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7629         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7630
7631 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7632
7633         assert-h: new module, which supports C1X-style static_assert
7634         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7635         * lib/verify.h: Revamp so that this can be copied into assert.h,
7636         while retaining the ability to use it standalone as before.
7637         Rename private identifiers so as not to encroach on the
7638         standard C namespace, since this is now used by assert.h.
7639         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7640         the old verify_true.
7641         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7642         the old verify_true.  Use _GL_VERIFY_TYPE.
7643         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7644         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7645         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7646         defined when this file is copied into the replacement assert.h.
7647         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7648         and _Static_assert is not built in.
7649         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7650         defined, and use the new macros mentioned above.
7651         * doc/posix-headers/assert.texi: Document this.
7652
7653 2011-05-05  Bruno Haible  <bruno@clisp.org>
7654
7655         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7656         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7657         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7658         gl_REPLACE_FCLOSE here.
7659         * modules/fflush (Depends-on): Remove fclose.
7660         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7661         combination with module 'fclose'.
7662
7663 2011-05-05  Bruno Haible  <bruno@clisp.org>
7664
7665         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7666         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7667         gl_FUNC_FFLUSH.
7668         (gl_FUNC_FFLUSH): Use it.
7669         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7670         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7671         gl_REPLACE_FSEEKO here.
7672
7673 2011-05-05  Bruno Haible  <bruno@clisp.org>
7674
7675         tzset: Relicense under LGPL.
7676         * modules/tzset (License): Change to LGPL.
7677         No agreement needed; it's a no-op.
7678
7679         strtoimax, strtoumax: Relicense under LGPL.
7680         * modules/strtoimax (License): Change to LGPL.
7681         * modules/strtoumax (License): Likewise.
7682         With permission from Jim Meyering, Paul Eggert:
7683         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7685
7686         getgroups: Relicense under LGPL.
7687         * modules/getgroups (License): Change to LGPL.
7688         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7692
7693         nanosleep: Relicense under LGPL.
7694         * modules/nanosleep (License): Change to LGPL.
7695         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7696         Haible:
7697         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7700         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7701
7702         futimens: Relicense under LGPL.
7703         * modules/futimens (License): Change to LGPL.
7704         With permission from Eric Blake:
7705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7706
7707         fflush: Relicense under LGPL.
7708         * modules/fflush (License): Change to LGPL.
7709         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7711         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7713
7714         tmpfile: Relicense under LGPL.
7715         * modules/tmpfile (License): Change to LGPL.
7716         With permission from Ben Pfaff:
7717         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7718
7719         isfinite: Relicense under LGPL.
7720         * modules/isfinite (License): Change to LGPL.
7721         With permission from Ben Pfaff, Bruno Haible:
7722         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7724
7725         acosl..tanl: Relicense under LGPL.
7726         * modules/acosl (License): Change to LGPL.
7727         * modules/asinl (License): Likewise.
7728         * modules/atanl (License): Likewise.
7729         * modules/cosl (License): Likewise.
7730         * modules/expl (License): Likewise.
7731         * modules/logl (License): Likewise.
7732         * modules/sinl (License): Likewise.
7733         * modules/sqrtl (License): Likewise.
7734         * modules/tanl (License): Likewise.
7735         Source code originally from glibc and Paolo Bonzini. Agreements:
7736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7737         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7738
7739 2011-05-05  Bruno Haible  <bruno@clisp.org>
7740
7741         signal: Define sighandler_t.
7742         * lib/signal.in.h (sighandler_t): New type.
7743         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7744         whether sighandler_t is defined.
7745         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7746         * modules/signal (Depends-on): Add extensions.
7747         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7748         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7749         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7750
7751 2011-05-05  Eric Blake  <eblake@redhat.com>
7752
7753         maint: remove useless REPLACE_*_H macros
7754         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7755         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7756         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7757         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7758         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7759         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7760         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7761         * m4/btowc.m4: Update callers.
7762         * m4/dirfd.m4: Likewise.
7763         * m4/duplocale.m4: Likewise.
7764         * m4/fchdir.m4: Likewise.
7765         * m4/fdopendir.m4: Likewise.
7766         * m4/inet_ntop.m4: Likewise.
7767         * m4/inet_pton.m4: Likewise.
7768         * m4/ioctl.m4: Likewise.
7769         * m4/mbrlen.m4: Likewise.
7770         * m4/mbrtowc.m4: Likewise.
7771         * m4/mbsinit.m4: Likewise.
7772         * m4/mbsnrtowcs.m4: Likewise.
7773         * m4/mbsrtowcs.m4: Likewise.
7774         * m4/poll.m4: Likewise.
7775         * m4/setlocale.m4: Likewise.
7776         * m4/wcrtomb.m4: Likewise.
7777         * m4/wcsnrtombs.m4: Likewise.
7778         * m4/wcsrtombs.m4: Likewise.
7779         * m4/wctob.m4: Likewise.
7780         * m4/wcwidth.m4: Likewise.
7781         * modules/posix_spawn: Likewise.
7782         * modules/posix_spawn_file_actions_addclose: Likewise.
7783         * modules/posix_spawn_file_actions_adddup2: Likewise.
7784         * modules/posix_spawn_file_actions_addopen: Likewise.
7785         * modules/posix_spawn_file_actions_destroy: Likewise.
7786         * modules/posix_spawn_file_actions_init: Likewise.
7787         * modules/posix_spawnattr_destroy: Likewise.
7788         * modules/posix_spawnattr_getflags: Likewise.
7789         * modules/posix_spawnattr_getpgroup: Likewise.
7790         * modules/posix_spawnattr_getschedparam: Likewise.
7791         * modules/posix_spawnattr_getschedpolicy: Likewise.
7792         * modules/posix_spawnattr_getsigdefault: Likewise.
7793         * modules/posix_spawnattr_getsigmask: Likewise.
7794         * modules/posix_spawnattr_init: Likewise.
7795         * modules/posix_spawnattr_setflags: Likewise.
7796         * modules/posix_spawnattr_setpgroup: Likewise.
7797         * modules/posix_spawnattr_setschedparam: Likewise.
7798         * modules/posix_spawnattr_setschedpolicy: Likewise.
7799         * modules/posix_spawnattr_setsigdefault: Likewise.
7800         * modules/posix_spawnattr_setsigmask: Likewise.
7801         * modules/posix_spawnp: Likewise.
7802
7803 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7804
7805         Add option to do-release-commit-and-tag to specify branch.
7806         * build-aux/do-release-commit-and-tag: Add --branch.
7807
7808 2011-05-03  Bruno Haible  <bruno@clisp.org>
7809
7810         Avoid unnecessary compilation units, through conditional dependencies.
7811         * modules/accept (Depends-on): Add conditions to the dependencies.
7812         * modules/acosl (Depends-on): Likewise.
7813         * modules/argz (Depends-on): Likewise.
7814         * modules/asinl (Depends-on): Likewise.
7815         * modules/atanl (Depends-on): Likewise.
7816         * modules/atoll (Depends-on): Likewise.
7817         * modules/bind (Depends-on): Likewise.
7818         * modules/btowc (Depends-on): Likewise.
7819         * modules/canonicalize-lgpl (Depends-on): Likewise.
7820         * modules/ceil (Depends-on): Likewise.
7821         * modules/ceilf (Depends-on): Likewise.
7822         * modules/ceill (Depends-on): Likewise.
7823         * modules/chdir-long (Depends-on): Likewise.
7824         * modules/chown (Depends-on): Likewise.
7825         * modules/close (Depends-on): Likewise.
7826         * modules/connect (Depends-on): Likewise.
7827         * modules/cosl (Depends-on): Likewise.
7828         * modules/dirfd (Depends-on): Likewise.
7829         * modules/dprintf (Depends-on): Likewise.
7830         * modules/dprintf-posix (Depends-on): Likewise.
7831         * modules/error (Depends-on): Likewise.
7832         * modules/euidaccess (Depends-on): Likewise.
7833         * modules/expl (Depends-on): Likewise.
7834         * modules/faccessat (Depends-on): Likewise.
7835         * modules/fchdir (Depends-on): Likewise.
7836         * modules/fclose (Depends-on): Likewise.
7837         * modules/fcntl (Depends-on): Likewise.
7838         * modules/fdopendir (Depends-on): Likewise.
7839         * modules/fflush (Depends-on): Likewise.
7840         * modules/floor (Depends-on): Likewise.
7841         * modules/floorf (Depends-on): Likewise.
7842         * modules/floorl (Depends-on): Likewise.
7843         * modules/fnmatch (Depends-on): Likewise.
7844         * modules/fopen (Depends-on): Likewise.
7845         * modules/fprintf-posix (Depends-on): Likewise.
7846         * modules/frexp (Depends-on): Likewise.
7847         * modules/frexp-nolibm (Depends-on): Likewise.
7848         * modules/frexpl (Depends-on): Likewise.
7849         * modules/frexpl-nolibm (Depends-on): Likewise.
7850         * modules/fseek (Depends-on): Likewise.
7851         * modules/fsusage (Depends-on): Likewise.
7852         * modules/ftell (Depends-on): Likewise.
7853         * modules/ftello (Depends-on): Likewise.
7854         * modules/futimens (Depends-on): Likewise.
7855         * modules/getcwd (Depends-on): Likewise.
7856         * modules/getcwd-lgpl (Depends-on): Likewise.
7857         * modules/getdelim (Depends-on): Likewise.
7858         * modules/getdomainname (Depends-on): Likewise.
7859         * modules/getgroups (Depends-on): Likewise.
7860         * modules/gethostname (Depends-on): Likewise.
7861         * modules/getline (Depends-on): Likewise.
7862         * modules/getlogin_r (Depends-on): Likewise.
7863         * modules/getopt-posix (Depends-on): Likewise.
7864         * modules/getpeername (Depends-on): Likewise.
7865         * modules/getsockname (Depends-on): Likewise.
7866         * modules/getsockopt (Depends-on): Likewise.
7867         * modules/getsubopt (Depends-on): Likewise.
7868         * modules/getusershell (Depends-on): Likewise.
7869         * modules/glob (Depends-on): Likewise.
7870         * modules/grantpt (Depends-on): Likewise.
7871         * modules/iconv_open (Depends-on): Likewise.
7872         * modules/iconv_open-utf (Depends-on): Likewise.
7873         * modules/inet_ntop (Depends-on): Likewise.
7874         * modules/inet_pton (Depends-on): Likewise.
7875         * modules/ioctl (Depends-on): Likewise.
7876         * modules/isapipe (Depends-on): Likewise.
7877         * modules/isfinite (Depends-on): Likewise.
7878         * modules/isinf (Depends-on): Likewise.
7879         * modules/lchown (Depends-on): Likewise.
7880         * modules/ldexpl (Depends-on): Likewise.
7881         * modules/link (Depends-on): Likewise.
7882         * modules/linkat (Depends-on): Likewise.
7883         * modules/listen (Depends-on): Likewise.
7884         * modules/logl (Depends-on): Likewise.
7885         * modules/lstat (Depends-on): Likewise.
7886         * modules/mbrlen (Depends-on): Likewise.
7887         * modules/mbrtowc (Depends-on): Likewise.
7888         * modules/mbsinit (Depends-on): Likewise.
7889         * modules/mbsnrtowcs (Depends-on): Likewise.
7890         * modules/mbsrtowcs (Depends-on): Likewise.
7891         * modules/mbtowc (Depends-on): Likewise.
7892         * modules/memcmp (Depends-on): Likewise.
7893         * modules/mkdir (Depends-on): Likewise.
7894         * modules/mkdtemp (Depends-on): Likewise.
7895         * modules/mkfifo (Depends-on): Likewise.
7896         * modules/mkfifoat (Depends-on): Likewise.
7897         * modules/mknod (Depends-on): Likewise.
7898         * modules/mkostemp (Depends-on): Likewise.
7899         * modules/mkostemps (Depends-on): Likewise.
7900         * modules/mkstemp (Depends-on): Likewise.
7901         * modules/mkstemps (Depends-on): Likewise.
7902         * modules/mktime (Depends-on): Likewise.
7903         * modules/nanosleep (Depends-on): Likewise.
7904         * modules/open (Depends-on): Likewise.
7905         * modules/openat (Depends-on): Likewise.
7906         * modules/perror (Depends-on): Likewise.
7907         * modules/poll (Depends-on): Likewise.
7908         * modules/popen (Depends-on): Likewise.
7909         * modules/posix_spawn (Depends-on): Likewise.
7910         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7911         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7912         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7913         * modules/posix_spawnp (Depends-on): Likewise.
7914         * modules/pread (Depends-on): Likewise.
7915         * modules/printf-posix (Depends-on): Likewise.
7916         * modules/ptsname (Depends-on): Likewise.
7917         * modules/putenv (Depends-on): Likewise.
7918         * modules/pwrite (Depends-on): Likewise.
7919         * modules/readline (Depends-on): Likewise.
7920         * modules/readlink (Depends-on): Likewise.
7921         * modules/readlinkat (Depends-on): Likewise.
7922         * modules/recv (Depends-on): Likewise.
7923         * modules/recvfrom (Depends-on): Likewise.
7924         * modules/regex (Depends-on): Likewise.
7925         * modules/remove (Depends-on): Likewise.
7926         * modules/rename (Depends-on): Likewise.
7927         * modules/renameat (Depends-on): Likewise.
7928         * modules/rmdir (Depends-on): Likewise.
7929         * modules/round (Depends-on): Likewise.
7930         * modules/roundf (Depends-on): Likewise.
7931         * modules/roundl (Depends-on): Likewise.
7932         * modules/rpmatch (Depends-on): Likewise.
7933         * modules/select (Depends-on): Likewise.
7934         * modules/send (Depends-on): Likewise.
7935         * modules/sendto (Depends-on): Likewise.
7936         * modules/setenv (Depends-on): Likewise.
7937         * modules/setlocale (Depends-on): Likewise.
7938         * modules/setsockopt (Depends-on): Likewise.
7939         * modules/shutdown (Depends-on): Likewise.
7940         * modules/sigaction (Depends-on): Likewise.
7941         * modules/signbit (Depends-on): Likewise.
7942         * modules/sigprocmask (Depends-on): Likewise.
7943         * modules/sinl (Depends-on): Likewise.
7944         * modules/sleep (Depends-on): Likewise.
7945         * modules/snprintf (Depends-on): Likewise.
7946         * modules/snprintf-posix (Depends-on): Likewise.
7947         * modules/socket (Depends-on): Likewise.
7948         * modules/sprintf-posix (Depends-on): Likewise.
7949         * modules/sqrtl (Depends-on): Likewise.
7950         * modules/stat (Depends-on): Likewise.
7951         * modules/strchrnul (Depends-on): Likewise.
7952         * modules/strdup-posix (Depends-on): Likewise.
7953         * modules/strerror (Depends-on): Likewise.
7954         * modules/strerror_r-posix (Depends-on): Likewise.
7955         * modules/strndup (Depends-on): Likewise.
7956         * modules/strnlen (Depends-on): Likewise.
7957         * modules/strptime (Depends-on): Likewise.
7958         * modules/strsep (Depends-on): Likewise.
7959         * modules/strsignal (Depends-on): Likewise.
7960         * modules/strstr-simple (Depends-on): Likewise.
7961         * modules/strtod (Depends-on): Likewise.
7962         * modules/strtoimax (Depends-on): Likewise.
7963         * modules/strtok_r (Depends-on): Likewise.
7964         * modules/strtoumax (Depends-on): Likewise.
7965         * modules/symlink (Depends-on): Likewise.
7966         * modules/symlinkat (Depends-on): Likewise.
7967         * modules/tanl (Depends-on): Likewise.
7968         * modules/tcgetsid (Depends-on): Likewise.
7969         * modules/tmpfile (Depends-on): Likewise.
7970         * modules/trunc (Depends-on): Likewise.
7971         * modules/truncf (Depends-on): Likewise.
7972         * modules/truncl (Depends-on): Likewise.
7973         * modules/uname (Depends-on): Likewise.
7974         * modules/unlink (Depends-on): Likewise.
7975         * modules/unlockpt (Depends-on): Likewise.
7976         * modules/unsetenv (Depends-on): Likewise.
7977         * modules/usleep (Depends-on): Likewise.
7978         * modules/utimensat (Depends-on): Likewise.
7979         * modules/vasprintf (Depends-on): Likewise.
7980         * modules/vdprintf (Depends-on): Likewise.
7981         * modules/vdprintf-posix (Depends-on): Likewise.
7982         * modules/vfprintf-posix (Depends-on): Likewise.
7983         * modules/vprintf-posix (Depends-on): Likewise.
7984         * modules/vsnprintf (Depends-on): Likewise.
7985         * modules/vsnprintf-posix (Depends-on): Likewise.
7986         * modules/vsprintf-posix (Depends-on): Likewise.
7987         * modules/wcrtomb (Depends-on): Likewise.
7988         * modules/wcscasecmp (Depends-on): Likewise.
7989         * modules/wcscspn (Depends-on): Likewise.
7990         * modules/wcsdup (Depends-on): Likewise.
7991         * modules/wcsncasecmp (Depends-on): Likewise.
7992         * modules/wcsnrtombs (Depends-on): Likewise.
7993         * modules/wcspbrk (Depends-on): Likewise.
7994         * modules/wcsrtombs (Depends-on): Likewise.
7995         * modules/wcsspn (Depends-on): Likewise.
7996         * modules/wcsstr (Depends-on): Likewise.
7997         * modules/wcstok (Depends-on): Likewise.
7998         * modules/wcswidth (Depends-on): Likewise.
7999         * modules/wctob (Depends-on): Likewise.
8000         * modules/wctomb (Depends-on): Likewise.
8001         * modules/wctype (Depends-on): Likewise.
8002         * modules/wcwidth (Depends-on): Likewise.
8003         * modules/write (Depends-on): Likewise.
8004
8005 2011-05-03  Bruno Haible  <bruno@clisp.org>
8006
8007         Support for conditional dependencies.
8008         * doc/gnulib.texi (Module description): Document the syntax of
8009         conditional dependencies.
8010         * gnulib-tool: New option --conditional-dependencies.
8011         (func_usage): Document it.
8012         (cond_dependencies): New variable.
8013         (func_get_automake_snippet_conditional,
8014         func_get_automake_snippet_unconditional): New functions, extracted from
8015         func_get_automake_snippet.
8016         (func_get_automake_snippet): Use them.
8017         (sed_first_32_chars): New variable.
8018         (func_module_shellfunc_name): New function.
8019         (func_module_shellvar_name): New function.
8020         (func_module_conditional_name): New function.
8021         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
8022         func_cond_module_condition): New functions.
8023         (func_modules_transitive_closure): Add support for conditional
8024         dependencies.
8025         (func_emit_lib_Makefile_am): For a conditional module, enclose the
8026         conditional automake snippet in an automake conditional.
8027         (func_emit_autoconf_snippets): Emit shell functions that contain the
8028         code for conditional modules.
8029         (func_import, func_create_testdir): Update specification.
8030
8031 2011-05-03  Eric Blake  <eblake@redhat.com>
8032
8033         test-getaddrinfo: report error information
8034         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
8035
8036 2011-05-03  Jim Meyering  <meyering@redhat.com>
8037
8038         bootstrap: avoid build failure when $GZIP is set
8039         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
8040         program name.  If defined at all, it is supposed to list gzip options.
8041         Reported by Alan Curry in http://debbugs.gnu.org/8609
8042
8043 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
8044
8045         readme-release: new module with release instructions
8046         * modules/readme-release: New module.
8047         * top/README-release: New file, from coreutils, grep, diffutils.
8048         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8049
8050 2011-05-02  Eric Blake  <eblake@redhat.com>
8051
8052         fflush: also replace fclose when fixing fflush
8053         * modules/fflush (Depends-on): Add fclose.
8054         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
8055         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
8056         memstreams with no backing fd.
8057         * doc/posix-functions/fclose.texi (fclose): Document the use of
8058         fflush module to fix the bug.
8059         * tests/test-fclose.c (main): Relax test when fclose is used in
8060         isolation.
8061
8062         fclose: add some tests
8063         * modules/fclose-tests: New test module.
8064         * tests/test-fclose.c: New file.
8065         * doc/posix-functions/fclose.texi (fclose): Document the bug.
8066
8067         fclose: reduced dependencies
8068         * modules/fclose (Depends-on): Switch from fflush/fseeko to
8069         simpler lseek.
8070         * lib/fclose.c (rpl_fclose): Likewise.
8071         Reported by Simon Josefsson.
8072
8073         exit: drop remaining clients
8074         * modules/argmatch (Depends-on): Replace exit with stdlib.
8075         * modules/copy-file (Depends-on): Likewise.
8076         * modules/execute (Depends-on): Likewise.
8077         * modules/exitfail (Depends-on): Likewise.
8078         * modules/obstack (Depends-on): Likewise.
8079         * modules/pagealign_alloc (Depends-on): Likewise.
8080         * modules/pipe-filter-gi (Depends-on): Likewise.
8081         * modules/pipe-filter-ii (Depends-on): Likewise.
8082         * modules/savewd (Depends-on): Likewise.
8083         * modules/spawn-pipe (Depends-on): Likewise.
8084         * modules/wait-process (Depends-on): Likewise.
8085         * modules/xsetenv (Depends-on): Likewise.
8086         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
8087         * modules/git-merge-changelog (Depends-on): Likewise.
8088         * modules/long-options (Depends-on): Likewise.
8089         * modules/pt_chown (Depends-on): Likewise.
8090         * modules/sysexits (Depends-on): Likewise.
8091
8092         freading: relax license from LGPLv3+ to LGPLv2+
8093         * modules/freading (License): Relax LGPL version.
8094
8095 2011-05-02  Bruno Haible  <bruno@clisp.org>
8096
8097         fchdir: Remove unused dependencies.
8098         * modules/fchdir (Depends-on): Remove include_next.
8099
8100 2011-05-02  Bruno Haible  <bruno@clisp.org>
8101
8102         gnulib-tool: Refactor.
8103         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
8104         from func_emit_autoconf_snippets.
8105         (func_emit_autoconf_snippets): Use it.
8106
8107 2011-05-02  Simon Josefsson  <simon@josefsson.org>
8108
8109         * NEWS: Document removal of 'exit'.
8110         * modules/exit: Remove file.
8111
8112 2011-05-01  Bruno Haible  <bruno@clisp.org>
8113
8114         Update DEPENDENCIES.
8115         * DEPENDENCIES (gettext): Recommend the newest release.
8116         Reported by Simon Josefsson.
8117
8118 2011-05-01  Bruno Haible  <bruno@clisp.org>
8119
8120         gnulib-tool: Reduce code duplication.
8121         * gnulib-tool (func_emit_autoconf_snippets): New function.
8122         (func_import, func_create_testdir): Use it.
8123
8124 2011-04-30  Eric Blake  <eblake@redhat.com>
8125
8126         fclose: don't fail on non-seekable input stream
8127         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
8128         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
8129         since fflush is allowed to fail in that case.
8130
8131 2011-04-30  Bruno Haible  <bruno@clisp.org>
8132
8133         dup3: cleanup
8134         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
8135
8136 2011-04-30  Bruno Haible  <bruno@clisp.org>
8137
8138         netdb: Make it work in C++ mode.
8139         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
8140         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
8141         module.
8142         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
8143         gl_MODULE_INDICATOR_FOR_TESTS.
8144         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
8145         * modules/netdb-c++-tests: New file.
8146         * tests/test-netdb-c++.cc: New file.
8147
8148 2011-04-30  Bruno Haible  <bruno@clisp.org>
8149
8150         New modules 'vfscanf', 'vscanf'.
8151         * modules/vfscanf: New file.
8152         * modules/vscanf: New file.
8153         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
8154         here.
8155         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
8156         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
8157
8158 2011-04-30  Bruno Haible  <bruno@clisp.org>
8159
8160         passfd: Add comments.
8161         * lib/passfd.c: Add comments about platforms.
8162
8163 2011-04-30  Bruno Haible  <bruno@clisp.org>
8164
8165         sys_uio: Make <sys/uio.h> self-contained.
8166         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
8167         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
8168
8169 2011-04-30  Bruno Haible  <bruno@clisp.org>
8170
8171         sys_socket: Ensure 'struct iovec' definition.
8172         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
8173         <sys/socket.h>.
8174         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
8175
8176 2011-04-30  Bruno Haible  <bruno@clisp.org>
8177
8178         sys_uio: Protect definition of 'struct iovec'.
8179         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
8180         it as a C struct.
8181
8182 2011-04-30  Bruno Haible  <bruno@clisp.org>
8183
8184         manywarnings: fix indentation
8185         * m4/manywarnings.m4: Indent by 2 spaces consistently.
8186
8187 2011-04-30  Pádraig Brady <P@draigBrady.com>
8188
8189         manywarnings: add -Wno-missing-field-initializers if needed.
8190         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
8191         option if it's needed to allow initialization with { 0, }
8192
8193 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
8194
8195         announce-gen: cosmetic improvement
8196         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
8197
8198 2011-04-29  Jim Meyering  <meyering@redhat.com>
8199
8200         vc-list-files: indent with spaces, not TABs
8201         * build-aux/vc-list-files: Convert leading TABs to spaces,
8202         to match the style of most other files in gnulib.
8203
8204         announce-gen: indent with spaces, not TABs
8205         * build-aux/announce-gen: Convert all TABs to spaces, to match
8206         the style of most other files in gnulib.
8207
8208 2011-04-29  Eric Blake  <eblake@redhat.com>
8209
8210         quotearg: avoid uninitialized variable use
8211         * lib/quotearg.c (quoting_options_from_style): Initialize
8212         remaining fields, and ensure that custom styles are only used via
8213         quoting_options rather than quoting_style.
8214
8215 2011-04-29  Jim Meyering  <meyering@redhat.com>
8216
8217         maint.mk: remove unused VC-tag variable
8218         * top/maint.mk (VC-tag): Remove unused variable.
8219
8220 2011-04-29  Bruno Haible  <bruno@clisp.org>
8221
8222         netdb: fix gai_strerror replacements
8223         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
8224         * modules/netdb: Substitute it.
8225
8226 2011-04-29  Jim Meyering  <meyering@redhat.com>
8227
8228         test-getcwd.c: avoid new set-but-not-used warning
8229         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
8230         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
8231         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
8232         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
8233
8234         test-hash.c: avoid a new shadowing warning
8235         * tests/test-hash.c (main): Don't shadow "dup".
8236
8237 2011-04-28  Eric Blake  <eblake@redhat.com>
8238
8239         getaddrinfo: fix gai_strerror signature
8240         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
8241         and work around mingw with UNICODE defined.
8242         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
8243         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
8244         * modules/netdb (Makefile.am): Substitute it.
8245         * lib/netdb.in.h (gai_strerror): Declare replacement.
8246         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
8247         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
8248         the fix.
8249
8250         getsockopt: avoid compiler warning
8251         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
8252         Reported by Matthias Bolte.
8253
8254         tests: drop unused link dependency
8255         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8256         * modules/dirent-safer-tests (Makefile.am): Likewise.
8257         * modules/fdopendir-tests (Makefile.am): Likewise.
8258         * modules/mkfifoat-tests (Makefile.am): Likewise.
8259         * modules/openat-safer-tests (Makefile.am): Likewise.
8260         * modules/openat-tests (Makefile.am): Likewise.
8261         * modules/readlinkat-tests (Makefile.am): Likewise.
8262         * modules/symlinkat-tests (Makefile.am): Likewise.
8263         * modules/linkat-tests (Makefile.am): Likewise.
8264         (Depends-on): Switch to filenamecat-lgpl.
8265         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8266         LIBINTL.
8267         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8268         * tests/test-linkat.c (main): Don't require xalloc.
8269
8270         hash, mgetgroups: drop xalloc dependency
8271         * lib/hash.c (includes): Adjust includes.
8272         * lib/mgetgroups.c (includes): Likewise.
8273         (xgetgroups): Move...
8274         * lib/xgetgroups.c: ...to new file.
8275         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8276         * modules/xgetgroups: New file, split from...
8277         * modules/mgetgroups: ...here.
8278         (Depends-on): Add xalloc-oversized.
8279         * modules/hash (Depends-on): Likewise.
8280         * modules/hash-tests (Depends-on): Drop xalloc.
8281         (test_hash_LDADD): Drop unused library.
8282         * tests/test-hash.c (main): Break xalloc dependency.
8283         (includes): Drop unused include.
8284
8285         xalloc-oversized: new module
8286         * modules/xalloc-oversized: New module.
8287         * modules/xalloc (Depends-on): Add it.
8288         * lib/xalloc.h (xalloc_oversized): Move...
8289         * lib/xalloc-oversized.h: ...into new file.
8290
8291         utimecmp: drop dependency on xmalloc
8292         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8293         due to memory pressure.
8294         * modules/utimecmp (Depends-on): Drop xalloc.
8295
8296 2011-04-27  Eric Blake  <eblake@redhat.com>
8297
8298         getcwd: fix mingw bugs
8299         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8300         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8301         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8302
8303 2011-04-27  Bruno Haible  <bruno@clisp.org>
8304
8305         mkstemps: Ensure declaration on MacOS X 10.5.
8306         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8307         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8308         MacOS X.
8309
8310 2011-04-27  Bruno Haible  <bruno@clisp.org>
8311
8312         mkstemp: More documentation.
8313         * doc/posix-functions/mkstemp.texi: Document header file problem on
8314         MacOS X.
8315
8316 2011-04-27  Bruno Haible  <bruno@clisp.org>
8317
8318         mkstemp: Tweak configure message when cross-compiling.
8319         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8320         result as a guess.
8321
8322 2011-04-27  Bruno Haible  <bruno@clisp.org>
8323
8324         clean-temp: Clarify what it does.
8325         * lib/clean-temp.h: Add more comments.
8326         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8327         module.
8328         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8329         * doc/glibc-functions/mkstemps.texi: Likewise.
8330         * doc/glibc-functions/mkostemps.texi: Likewise.
8331
8332 2011-04-27  Eric Blake  <eblake@redhat.com>
8333
8334         fchdir: avoid extra chdir and fix test
8335         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8336         getcwd-lgpl.
8337         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8338         have to be canonical.
8339         (canonicalize_file_name): Drop unused macro.
8340         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8341
8342         filenamecat-lgpl: fix licence
8343         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8344         when it was first created.
8345
8346         linkat, renameat: add missing dependency
8347         * modules/linkat (Depends-on): Require getcwd-lgpl.
8348         * modules/renameat (Depends-on): Likewise.
8349
8350         tests: reduce dependencies
8351         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8352         * tests/test-renameat.c (main): Likewise.
8353         * modules/linkat-tests (Depends-on): Relax dependency.
8354         * modules/renameat-tests (Depends-on): Likewise.
8355         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8356         dependency explicit.
8357
8358         save-cwd: reduce default dependency
8359         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8360         * lib/save-cwd.c: Update comments.
8361         * NEWS: Document the semantic change.
8362
8363         getcwd: enhance tests
8364         * tests/test-getcwd-lgpl.c: New file, taken from...
8365         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8366         repeat long path stress tests from m4 probe.
8367         * modules/getcwd-lgpl-tests: New module.
8368         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8369         * m4/getcwd-abort-bug.m4: Update comment.
8370         * m4/getcwd-path-max.m4: Likewise.
8371
8372         getcwd-lgpl: new module
8373         * modules/getcwd-lgpl: New module.
8374         * lib/getcwd-lgpl.c: New file.
8375         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8376         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8377         * modules/getcwd (configure.ac): Set C witness.
8378         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8379
8380         getcwd: tweak comments
8381         * m4/getcwd-abort-bug.m4: Fix comments.
8382         * m4/getcwd-path-max.m4: Likewise.
8383         * m4/getcwd.m4: Likewise.
8384
8385 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8386         and Eric Blake  <eblake@redhat.com>
8387
8388         mkstemp: replace if system version uses wrong permissions
8389         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8390         read/write mode bits set in file created by mkstemp.
8391         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8392
8393 2011-04-27  Eric Blake  <eblake@redhat.com>
8394
8395         passfd: avoid compiler warning
8396         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
8397         Reported by Laine Stump.
8398
8399 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
8400
8401         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
8402         required by the NetBSD (and perhaps other 4.4BSD derived) join.
8403
8404 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8405         and Eric Blake  <eblake@redhat.com>
8406
8407         mkstemp: mention clean-temp module
8408         * lib/mkstemp.c: Add comment.
8409         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
8410
8411 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8412
8413         inttypes: also provide default values for 32-bit tests
8414         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
8415         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
8416
8417 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8418
8419         strtoumax: remove dependency on strtoimax
8420         This is like the strtoull change of yesterday.
8421         * modules/strtoumax (Files): Add lib/strtoimax.c.
8422         (Depends-on): Remove strtoimax and add verify.
8423
8424         inttypes-incomplete: new module
8425         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
8426         all but the PRI* and SCN* parts of gl_INTTYPES_H.
8427         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
8428         of gl_INTTYPES_H.
8429         (gl_INTTYPES_H): Rewrite in terms of these new macros.
8430         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
8431         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
8432         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
8433         * modules/strtoumax, modules/xstrtol (Depends-on):
8434         Depend on inttypes-incomplete, not inttypes.
8435         * modules/inttypes-incomplete: New module, containing the contents
8436         of the old modules/inttypes module, except that the Files: section
8437         omits m4/inttypes-pri.m4, and the configure.ac section invokes
8438         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
8439         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
8440         (Depends-on): Depend only on inttypes-incomplete.
8441         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
8442
8443         inttypes: omit now-redundant strtoimax and strtoumax work
8444         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
8445         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
8446
8447         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
8448         This supports apps that need pointers to strtoimax and strtoumax,
8449         and ports to HP-UX 11.00 64.bit, which has macros that expand to
8450         nonexistent functions.  See
8451         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
8452         et seq.
8453         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
8454         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
8455         a macro.
8456         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8457
8458 2011-04-25  Simon Josefsson  <simon@josefsson.org>
8459
8460         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
8461
8462 2011-04-25  Bruno Haible  <bruno@clisp.org>
8463
8464         strtol, strtoul: Mark modules as obsolete.
8465         * modules/strtol (Status, Notice): New sections.
8466         * modules/strtoul (Status, Notice): New sections.
8467
8468 2011-04-25  Bruno Haible  <bruno@clisp.org>
8469
8470         strtod: Remove check for strtod, unless supporting old platforms.
8471         * modules/strtod-obsolete: New file.
8472         * m4/strtod-obsolete.m4: New file.
8473         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
8474         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
8475         * modules/strtod (Depends-on): Add strtod-obsolete.
8476         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
8477
8478 2011-04-25  Bruno Haible  <bruno@clisp.org>
8479
8480         strcase: Make module obsolete.
8481         * modules/strcase (Status, Notice): New sections.
8482
8483 2011-04-25  Bruno Haible  <bruno@clisp.org>
8484
8485         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8486         * modules/dup2-obsolete: New file.
8487         * m4/dup2-obsolete.m4: New file.
8488         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8489         gl_FUNC_DUP2_OBSOLETE is not also defined.
8490         * modules/dup2 (Depends-on): Add dup2-obsolete.
8491         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8492
8493 2011-04-25  Bruno Haible  <bruno@clisp.org>
8494
8495         strnlen: Avoid memchr related link error on old obsolete platforms.
8496         * modules/memchr-obsolete: New file.
8497         * m4/memchr-obsolete.m4: New file.
8498         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8499         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8500         * modules/memchr (Depends-on): Add memchr-obsolete.
8501         * modules/strnlen (Depends-on): Likewise.
8502         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8503
8504 2011-04-25  Jim Meyering  <meyering@redhat.com>
8505
8506         maint.mk: makefile_at_at_check extend and clean up
8507         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8508         in addition to */Makefile.am.
8509         Exempt legitimate uses of @VAR@ notation, e.g.,
8510         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8511         Remove obsolete coreutils-specific comment.
8512         Prompted by discussion here:
8513         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8514
8515 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8516
8517         strtoul: remove dependency on strtol
8518         This is so that 'configure' need not check for strtol merely because
8519         the application needs strtoul.
8520         * modules/strtoul (Files): Add lib/strtol.c.
8521         (Depends-on): Remove strtol.
8522
8523         strtoull: remove dependency on strtoul
8524         This is like the strtoll change.
8525         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8526         (Depends-on): Remove strtoul.
8527
8528         strtoll: remove dependency on strtol
8529         This is so that 'configure' need not check for strtol merely because
8530         the application needs strtoll.
8531         * modules/strtoll (Files): Add lib/strtol.c.
8532         (Depends-on): Remove strtol.
8533
8534 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8535
8536         inttypes: Move some configure check to module 'imaxdiv'.
8537         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8538         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8539         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8540
8541 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8542
8543         inttypes: Move some configure check to module 'imaxabs'.
8544         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8545         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8546         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8547
8548 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8549
8550         inttypes: Remove configure tests that are not needed since 2009-12-31.
8551         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8552         gl_cv_header_working_inttypes_h.
8553
8554 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8555
8556         * modules/strnlen (Depends-on): Remove memchr.
8557         The strnlen implementation doesn't need the memchr module's fixes; see
8558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8559
8560         strtol: remove dependency on wchar
8561         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8562         * modules/strtol (Depends-on): Remove wchar.
8563
8564 2011-04-21  Eric Blake  <eblake@redhat.com>
8565
8566         passfd: fix test regression on Linux
8567         * modules/passfd-tests (configure.ac): Correct socketpair check.
8568
8569         passfd: speed up configure and drop unused code
8570         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8571         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8572         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8573         Instead of probing at configure for unix_scm_rights_bsd44_way,
8574         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8575         check to a struct member probe.
8576         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8577         (sendfd, recvfd): Update preprocessor checks.
8578         * modules/passfd (Files): Reflect rename, and drop unused file.
8579         (Depends-on): Drop unused dependency.
8580
8581         passfd: allow compilation on mingw
8582         * modules/sys_socket (Depends-on): Add sys_uio.
8583         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8584         iovec and a minimal struct msghdr.
8585         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8586         * tests/test-sys_socket.c (main): Enhance test.
8587         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8588         guaranteed to provide what we need.
8589         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8590         * modules/passfd-tests (Depends-on): Add sys_wait.
8591         * tests/test-passfd.c (main): Skip test on mingw, for now.
8592         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8593         partial 'struct msghdr' implementation.
8594
8595         sys_uio: new module
8596         * modules/sys_uio: New module.
8597         * modules/sys_uio-tests: Likewise.
8598         * lib/sys_uio.in.h: New file.
8599         * m4/sys_uio_h.m4: Likewise.
8600         * tests/test-sys_uio.c: Likewise.
8601         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8602         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8603
8604 2011-04-20  Jim Meyering  <meyering@redhat.com>
8605
8606         useless-if-before-free: avoid false-positive
8607         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8608         disjunct so that it too requires a terminating ";".  Without that,
8609         this script would identify as useless one statement from gcc that
8610         was not:
8611           if (aligned_ptr)
8612             free (((void **) aligned_ptr) [-1]);
8613
8614 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8615
8616         doc: update users.txt.
8617         * users.txt: Add barcode.
8618
8619 2011-04-19  Bruno Haible  <bruno@clisp.org>
8620
8621         ioctl: Remove link dependency on native Windows.
8622         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8623         (gl_close_fn, gl_ioctl_fn): New types.
8624         (struct fd_hook): Renamed from struct close_hook. Change type of
8625         private_close_fn field. Add private_ioctl_fn field.
8626         (close_hook_fn): Add parameter for primary close method.
8627         (execute_close_hooks, execute_all_close_hooks): Likewise.
8628         (ioctl_hook_fn): New type.
8629         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8630         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8631         argument.
8632         (unregister_fd_hook): Renamed from unregister_close_hook.
8633         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8634         Don't include <unistd.h>.
8635         (close): Remove undef.
8636         (anchor): Update.
8637         (execute_close_hooks): Add argument for primary close method.
8638         (execute_all_close_hooks): Likewise.
8639         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8640         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8641         argument. Allow each argument to be NULL.
8642         (unregister_fd_hook): Renamed from unregister_close_hook.
8643         * lib/close.c (rpl_close): Pass 'close' function pointer to
8644         execute_all_close_hooks.
8645         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8646         (primary_ioctl): New function.
8647         (ioctl): Don't call ioctlsocket here. Instead, call
8648         execute_all_ioctl_hooks.
8649         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8650         close method.
8651         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8652         (fd_sockets_hook): Renamed from close_sockets_hook.
8653         (gl_sockets_startup, gl_sockets_cleanup): Update.
8654         * modules/fd-hook: Renamed from modules/close-hook. Update.
8655         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8656         * modules/sockets (Depends-on): Likewise.
8657         * modules/ioctl (Depends-on): Add fd-hook.
8658         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8659         GNULIB_SOCKET.
8660
8661 2011-04-19  Bruno Haible  <bruno@clisp.org>
8662
8663         Move the support of O_NONBLOCK in open() to the 'open' module.
8664         * modules/nonblocking (Depends-on): Remove 'open'.
8665         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8666         gl_cv_have_open_O_NONBLOCK.
8667         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8668         O_NONBLOCK support.
8669         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8670
8671 2011-04-17  Bruno Haible  <bruno@clisp.org>
8672
8673         pipe2: Simplify code.
8674         * lib/pipe2.c (pipe2): Reduce code duplication.
8675
8676 2011-04-17  Bruno Haible  <bruno@clisp.org>
8677
8678         nonblocking: Add comment.
8679         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8680
8681 2011-04-17  Bruno Haible  <bruno@clisp.org>
8682
8683         nonblocking: Add tests for sockets.
8684         * tests/test-nonblocking-socket.sh: New file.
8685         * tests/test-nonblocking-socket-main.c: New file.
8686         * tests/test-nonblocking-socket-child.c: New file.
8687         * tests/test-nonblocking-socket.h: New file.
8688         * tests/socket-server.h: New file.
8689         * tests/socket-client.h: New file.
8690         * modules/nonblocking-socket-tests: New file.
8691         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8692
8693 2011-04-17  Bruno Haible  <bruno@clisp.org>
8694
8695         nonblocking: Add tests for pipes.
8696         * tests/test-nonblocking-pipe.sh: New file.
8697         * tests/test-nonblocking-pipe-main.c: New file.
8698         * tests/test-nonblocking-pipe-child.c: New file.
8699         * tests/test-nonblocking-pipe.h: New file.
8700         * tests/test-nonblocking-writer.h: New file.
8701         * tests/test-nonblocking-reader.h: New file.
8702         * tests/test-nonblocking-misc.h: New file.
8703         * modules/nonblocking-pipe-tests: New file.
8704         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8705
8706 2011-04-16  Bruno Haible  <bruno@clisp.org>
8707
8708         gettext: Clarify the needed programmer actions.
8709         * modules/gettext (Notice): New field.
8710         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8711
8712 2011-04-16  Bruno Haible  <bruno@clisp.org>
8713
8714         strchrnul: Tweak last commit.
8715         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8716         bug.
8717         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8718         as in _GL_FUNCDECL_SYS.
8719         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8720         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8721
8722 2011-04-15  Eric Blake  <eblake@redhat.com>
8723
8724         strchrnul: work around cygwin bug
8725         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8726         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8727         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8728         * modules/string (Makefile.am): Substitute it.
8729         * lib/string.in.h (strchrnul): Use it.
8730
8731 2011-04-15  Bruno Haible  <bruno@clisp.org>
8732
8733         Don't require lib/stdio-write.c when only module 'stdio' is used.
8734         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8735         invocation.
8736         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8737
8738 2011-04-14  Bruno Haible  <bruno@clisp.org>
8739
8740         Support non-blocking pipe I/O in read() on native Windows.
8741         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8742         (read): New declaration.
8743         * lib/read.c: New file.
8744         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8745         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8746         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8747         vscanf): New declarations.
8748         * lib/stdio-read.c: New file.
8749         * m4/read.m4: New file.
8750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8751         REPLACE_READ.
8752         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8753         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8754         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8755         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8756         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8757         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8758         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8759         * modules/read: New file.
8760         * modules/nonblocking (Files): Add lib/stdio-read.c.
8761         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8762         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8763         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8764         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8765         * modules/pread (Depends-on): Add read.
8766         * modules/safe-read (Depends-on): Likewise.
8767         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8768         gets, scanf, vfscanf, vscanf): Verify signatures.
8769         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8770         problem with non-blocking pipes.
8771         * doc/posix-functions/fgetc.texi: Likewise.
8772         * doc/posix-functions/fgets.texi: Likewise.
8773         * doc/posix-functions/fread.texi: Likewise.
8774         * doc/posix-functions/fscanf.texi: Likewise.
8775         * doc/posix-functions/getc.texi: Likewise.
8776         * doc/posix-functions/getchar.texi: Likewise.
8777         * doc/posix-functions/gets.texi: Likewise.
8778         * doc/posix-functions/scanf.texi: Likewise.
8779         * doc/posix-functions/vfscanf.texi: Likewise.
8780         * doc/posix-functions/vscanf.texi: Likewise.
8781
8782 2011-04-14  Bruno Haible  <bruno@clisp.org>
8783
8784         Support non-blocking pipe I/O in write() on native Windows.
8785         * lib/write.c (rpl_write): Split a write request that failed merely
8786         because the byte count was larger than the pipe buffer's size.
8787         * doc/posix-functions/write.texi: Mention the problem with large byte
8788         counts.
8789
8790 2011-04-14  Bruno Haible  <bruno@clisp.org>
8791
8792         wchar: Ensure that wchar_t gets defined on uClibc.
8793         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8794         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8795
8796 2011-04-13  Bruno Haible  <bruno@clisp.org>
8797
8798         safe-write, full-read: Avoid unnecessary compilation units.
8799         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8800         (Depends-on): Remove safe-read. Add ssize_t.
8801         * modules/full-read (Files): Add lib/full-write.c.
8802         (Depends-on): Add full-write.
8803
8804 2011-04-13  Bruno Haible  <bruno@clisp.org>
8805
8806         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8807         * modules/pwrite (Depends-on): Add 'write'.
8808
8809 2011-04-13  Bruno Haible  <bruno@clisp.org>
8810
8811         Support non-blocking pipe I/O in write() on native Windows.
8812         * lib/unistd.in.h (write): Enable replacement also if
8813         GNULIB_UNISTD_H_NONBLOCKING is 1.
8814         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8815         (rpl_write): When failing to write on a non-blocking pipe, change
8816         errno from ENOSPC to EAGAIN.
8817         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8818         putchar, puts, vfprintf, vprintf): Enable replacement also if
8819         GNULIB_STDIO_H_NONBLOCKING is 1.
8820         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8821         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8822         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8823         CALL_WITH_SIGPIPE_EMULATION.
8824         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8825         * m4/nonblocking.m4: New file.
8826         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8827         for non-blocking I/O support.
8828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8829         GNULIB_UNISTD_H_NONBLOCKING.
8830         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8831         required for non-blocking I/O support.
8832         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8833         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8834         lib/stdio-write.c, m4/asm-underscore.m4.
8835         (Depends-on): Add stdio, unistd.
8836         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8837         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8838         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8839         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8840         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8841         problem with non-blocking pipes.
8842         * doc/posix-functions/fputc.texi: Likewise.
8843         * doc/posix-functions/fputs.texi: Likewise.
8844         * doc/posix-functions/fwrite.texi: Likewise.
8845         * doc/posix-functions/printf.texi: Likewise.
8846         * doc/posix-functions/putc.texi: Likewise.
8847         * doc/posix-functions/putchar.texi: Likewise.
8848         * doc/posix-functions/puts.texi: Likewise.
8849         * doc/posix-functions/vfprintf.texi: Likewise.
8850         * doc/posix-functions/vprintf.texi: Likewise.
8851         * doc/posix-functions/write.texi: Likewise.
8852
8853 2011-04-10  Jim Meyering  <meyering@redhat.com>
8854
8855         maint.mk: prohibit doubled words
8856         Detect them also when they're separated by a newline.
8857         There are 3 ways to customize it:
8858           - disable the test on a per file basis, as usual with rules using
8859             $(VC_LIST_EXCEPT)
8860           - replace the default doubled-word-selecting regexp (affects all files)
8861           - ignore a particular file-vs-doubled-word match
8862         I nearly used that last one to ignore the "is is" match in
8863         coreutils' NEWS file, since the text was "ls -is is ..."
8864         To do that, I would have added this line to cfg.mk:
8865           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8866         but it would have ignored any "is is" match in NEWS.
8867         Low probability, but still...
8868         Instead, I changed the text, slightly:
8869           -  ls -is is now consistent with ls -lis in ignoring values returned
8870           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8871         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8872         (prohibit_doubled_word_): Define.
8873         (sc_prohibit_doubled_word): New rule.
8874         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8875
8876 2011-04-10  Jim Meyering  <meyering@redhat.com>
8877
8878         maint: fix doubled-word typo in comment
8879         * m4/gethostname.m4: s/is is/it is/
8880         * m4/getdomainname.m4: Likewise.
8881
8882 2011-04-10  Jim Meyering  <meyering@redhat.com>
8883
8884         maint: remove doubled word: s/it it/it/
8885         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8886
8887 2011-04-10  Jim Meyering  <meyering@redhat.com>
8888
8889         maint.mk: remove useless semicolon and backslash
8890         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8891         semicolon and backslash.
8892
8893 2011-04-10  Bruno Haible  <bruno@clisp.org>
8894
8895         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8896         * modules/stdint-tests (Depends-on): Add wchar.
8897
8898 2011-04-10  Jim Meyering  <meyering@redhat.com>
8899
8900         maint: remove doubled words in comments, e.g., s/a a/a/
8901         * lib/strptime.c (day_of_the_week): s/the the/the/
8902         * tests/test-chown.h (test_chown): s/a a/a/
8903
8904         test-chown.h: correct a cast
8905         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8906         when the destination is a stat.st_gid.
8907
8908 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8909
8910         getaddrinfo: Fix test for sa_len member.
8911         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8912         include <sys/types.h> before <sys/socket.h>.
8913
8914 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8915
8916         maint: change "can not" to "cannot"
8917         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8918         boundaries.
8919
8920 2011-04-09  Jim Meyering  <meyering@redhat.com>
8921
8922         maint: change "a a" to "a"
8923         * tests/test-lchown.h (test_lchown): s/a a/a/
8924
8925         maint.mk: prohibit \<the the\>
8926         * top/maint.mk (sc_prohibit_the_the): New rule.
8927
8928         maint: fix "the the" in comment
8929         * lib/count-one-bits.h: s/the the/the/
8930
8931         maint: change "can not" to "cannot"
8932         But do not change the occurrences in maintain.texi or in
8933         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8934         * doc/gnulib-tool.texi: s/can not/cannot/
8935         * doc/posix-functions/accept.texi (accept): Likewise.
8936         * doc/posix-functions/socket.texi (socket): Likewise.
8937         * lib/mbrtowc.c: Likewise.
8938
8939         maint.mk: prohibit use of "can not"
8940         * top/maint.mk (sc_prohibit_can_not): New rule.
8941         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8942
8943 2011-04-09  Bruno Haible  <bruno@clisp.org>
8944
8945         careadlinkat: Guard against misuse of careadlinkatcwd.
8946         * lib/careadlinkat.c: Include <stdlib.h>.
8947         (careadlinkatcwd): Check that the fd argument is as expected.
8948
8949 2011-04-09  Bruno Haible  <bruno@clisp.org>
8950
8951         careadlinkat: Use common coding style.
8952         * lib/careadlinkat.c: Move gnulib includes after system includes.
8953
8954 2011-04-09  Bruno Haible  <bruno@clisp.org>
8955
8956         careadlinkat: Clarify specification.
8957         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8958         (careadlinkatcwd): Add comment.
8959         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8960
8961 2011-04-09  Bruno Haible  <bruno@clisp.org>
8962
8963         areadlinkat: Avoid link error on many platforms.
8964         * modules/areadlinkat (Depends-on): Add areadlink.
8965
8966 2011-04-09  Bruno Haible  <bruno@clisp.org>
8967
8968         allocator, careadlinkat: Fix double-inclusion guard.
8969         * lib/allocator.h: Fix double-inclusion guard.
8970         * lib/careadlinkat.h: Likewise.
8971
8972 2011-04-09  Bruno Haible  <bruno@clisp.org>
8973
8974         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8975         * lib/relocwrapper.c: Update dependencies hierarchy.
8976         * build-aux/install-reloc: Update list of files to be compiled.
8977         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8978         lib/allocator.[hc].
8979
8980 2011-04-08  Eric Blake  <eblake@redhat.com>
8981
8982         strftime: silence gnulib-tool warning
8983         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8984
8985 2011-04-08  Bruno Haible  <bruno@clisp.org>
8986
8987         verify: Fix syntax error with GCC 4.6 in C++ mode.
8988         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8989         (HAVE_STATIC_ASSERT): New macro.
8990         (verify_true, verify): Use 'static_assert' if it is supported and
8991         '_Static_assert' is not supported.
8992
8993 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8994
8995         allocator: New module.
8996         * modules/allocator, lib/allocator.c: New files.
8997         * lib/allocator.h (stdlib_allocator): New decl.
8998         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8999         Remove.  Do not include <stdlib.h>.
9000         (careadlinkat): Use stdlib_allocator instead of rolling our own.
9001         * modules/careadlinkat (Files): Remove lib/allocator.h.
9002         (Depends-on): Add allocator.
9003
9004         stdlib: let modules use system malloc, realloc
9005         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
9006         if !_GL_USE_STDLIB_ALLOC.
9007         (malloc, realloc): Limit this change to a smaller scope.
9008
9009         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
9010         (malloc, realloc): Don't #undef; no longer needed.
9011         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9012         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9013         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9014         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9015         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9016         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9017         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9018         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9019
9020         careadlinkat: rename members to avoid problem
9021         * lib/allocator.h (struct allocator): Rename members from
9022         malloc/realloc to allocate/reallocate, to avoid problems if malloc
9023         and realloc are #define'd.  Reported by Eric Blake in
9024         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
9025         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
9026
9027 2011-04-08  Eric Blake  <eblake@redhat.com>
9028
9029         nonblocking: reduce dependency
9030         * tests/test-nonblocking.c: Only test sockets when in use.
9031         * modules/nonblocking-tests (Depends-on): Drop socket.
9032         (Makefile.am): Link even if sockets are not present.
9033         * modules/pipe2-tests (Makefile.am): Likewise.
9034         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
9035
9036         pipe2: fix O_NONBLOCK support on mingw
9037         * modules/pipe2 (Depends-on): Add nonblocking.
9038         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
9039         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
9040         * tests/test-nonblocking.c (main): Likewise.
9041         * modules/pipe2-tests (Makefile.am): Avoid link failure.
9042
9043         fcntl-h: fix O_ACCMODE on cygwin
9044         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
9045         * lib/fcntl.in.h (O_ACCMODE): Fix it.
9046
9047         pipe-filter: drop O_NONBLOCK workarounds
9048         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
9049         * modules/pipe-filter-ii (Depends-on): Likewise.
9050         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
9051
9052         nonblocking: provide O_NONBLOCK for mingw
9053         * modules/nonblocking (Depends-on): Add open.
9054         (configure.ac): Set new witness macro.
9055         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
9056         * modules/fcntl-h (Makefile.am): Substitute it.
9057         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
9058         nonblocking module is in use.
9059         * lib/nonblocking.c: Adjust portability test.
9060         * lib/open.c (open): Don't let native open see gnulib flag.
9061         * tests/test-fcntl-h.c (main): Enhance test.
9062         * tests/test-open.h (test_open): Likewise.
9063         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
9064
9065         careadlinkat: fix compilation error on mingw
9066         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
9067         within struct allocator.
9068
9069 2011-04-06  Eric Blake  <eblake@redhat.com>
9070
9071         binary-io: relicense under LGPLv2+
9072         * modules/binary-io (License): Relax to LGPLv2+.
9073         Requested for libvirt, and required by pipe2.
9074
9075 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
9076
9077         verify: use _Static_assert if available
9078         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
9079         (verify_true, verify): Use it if available.  This generates better
9080         diagnostics with GCC 4.6.0 and later.
9081
9082 2011-04-05  Bruno Haible  <bruno@clisp.org>
9083
9084         Remove leftover generated .h files after config.status changed.
9085
9086         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
9087         GL_GENERATE_ALLOCA_H.
9088         * modules/alloca-opt (Makefile.am): Remove alloca.h if
9089         GL_GENERATE_ALLOCA_H evaluates to false.
9090
9091         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
9092         GL_GENERATE_ARGZ_H.
9093         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
9094         evaluates to false.
9095
9096         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
9097         GL_GENERATE_BYTESWAP_H.
9098         * modules/byteswap (Makefile.am): Remove byteswap.h if
9099         GL_GENERATE_BYTESWAP_H evaluates to false.
9100
9101         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
9102         GL_GENERATE_ERRNO_H.
9103         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
9104         evaluates to false.
9105
9106         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
9107         GL_GENERATE_FLOAT_H.
9108         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
9109         evaluates to false.
9110
9111         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
9112         GL_GENERATE_FNMATCH_H.
9113         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
9114         GL_GENERATE_FNMATCH_H evaluates to false.
9115
9116         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
9117         GL_GENERATE_GLOB_H.
9118         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
9119         evaluates to false.
9120
9121         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
9122         automake conditional GL_GENERATE_ICONV_H.
9123         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
9124         evaluates to false.
9125
9126         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
9127         GL_GENERATE_NETINET_IN_H.
9128         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
9129         GL_GENERATE_NETINET_IN_H evaluates to false.
9130
9131         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
9132         conditional GL_GENERATE_PTHREAD_H.
9133         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
9134         * modules/pthread (Makefile.am): Remove pthread.h if
9135         GL_GENERATE_PTHREAD_H evaluates to false.
9136
9137         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
9138         GL_GENERATE_SCHED_H.
9139         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
9140         evaluates to false.
9141
9142         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
9143         conditional GL_GENERATE_SELINUX_CONTEXT_H.
9144         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
9145         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
9146
9147         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
9148         GL_GENERATE_STDARG_H.
9149         * modules/stdarg (Makefile.am): Remove stdarg.h if
9150         GL_GENERATE_STDARG_H evaluates to false.
9151
9152         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
9153         GL_GENERATE_STDBOOL_H.
9154         * modules/stdbool (Makefile.am): Remove stdbool.h if
9155         GL_GENERATE_STDBOOL_H evaluates to false.
9156
9157         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
9158         conditional GL_GENERATE_STDDEF_H.
9159         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
9160         * modules/stddef (Makefile.am): Remove stddef.h if
9161         GL_GENERATE_STDDEF_H evaluates to false.
9162
9163         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
9164         GL_GENERATE_STDINT_H.
9165         * modules/stdint (Makefile.am): Remove stdint.h if
9166         GL_GENERATE_STDINT_H evaluates to false.
9167
9168         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
9169         GL_GENERATE_SYSEXITS_H.
9170         * modules/sysexits (Makefile.am): Remove sysexits.h if
9171         GL_GENERATE_SYSEXITS_H evaluates to false.
9172
9173         Reported by Karl Berry and Ralf Wildenhues.
9174
9175 2011-04-05  Bruno Haible  <bruno@clisp.org>
9176
9177         Ensure to rebuild generated .h files when config.status has changed.
9178         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
9179         config.status.
9180         * modules/ctype (Makefile.am): Likewise.
9181         * modules/dirent (Makefile.am): Likewise.
9182         * modules/errno (Makefile.am): Likewise.
9183         * modules/fcntl-h (Makefile.am): Likewise.
9184         * modules/float (Makefile.am): Likewise.
9185         * modules/getopt-posix (Makefile.am): Likewise.
9186         * modules/glob (Makefile.am): Likewise.
9187         * modules/iconv-h (Makefile.am): Likewise.
9188         * modules/inttypes (Makefile.am): Likewise.
9189         * modules/langinfo (Makefile.am): Likewise.
9190         * modules/locale (Makefile.am): Likewise.
9191         * modules/math (Makefile.am): Likewise.
9192         * modules/netdb (Makefile.am): Likewise.
9193         * modules/netinet_in (Makefile.am): Likewise.
9194         * modules/poll-h (Makefile.am): Likewise.
9195         * modules/pthread (Makefile.am): Likewise.
9196         * modules/pty (Makefile.am): Likewise.
9197         * modules/sched (Makefile.am): Likewise.
9198         * modules/search (Makefile.am): Likewise.
9199         * modules/selinux-h (Makefile.am): Likewise.
9200         * modules/signal (Makefile.am): Likewise.
9201         * modules/spawn (Makefile.am): Likewise.
9202         * modules/stdarg (Makefile.am): Likewise.
9203         * modules/stdbool (Makefile.am): Likewise.
9204         * modules/stddef (Makefile.am): Likewise.
9205         * modules/stdint (Makefile.am): Likewise.
9206         * modules/stdio (Makefile.am): Likewise.
9207         * modules/stdlib (Makefile.am): Likewise.
9208         * modules/string (Makefile.am): Likewise.
9209         * modules/strings (Makefile.am): Likewise.
9210         * modules/sys_file (Makefile.am): Likewise.
9211         * modules/sys_ioctl (Makefile.am): Likewise.
9212         * modules/sys_select (Makefile.am): Likewise.
9213         * modules/sys_socket (Makefile.am): Likewise.
9214         * modules/sys_stat (Makefile.am): Likewise.
9215         * modules/sys_time (Makefile.am): Likewise.
9216         * modules/sys_times (Makefile.am): Likewise.
9217         * modules/sys_utsname (Makefile.am): Likewise.
9218         * modules/sys_wait (Makefile.am): Likewise.
9219         * modules/sysexits (Makefile.am): Likewise.
9220         * modules/termios (Makefile.am): Likewise.
9221         * modules/time (Makefile.am): Likewise.
9222         * modules/unistd (Makefile.am): Likewise.
9223         * modules/wchar (Makefile.am): Likewise.
9224         * modules/wctype-h (Makefile.am): Likewise.
9225         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
9226
9227 2011-04-05  Bruno Haible  <bruno@clisp.org>
9228
9229         pipe2: Relicense under LGPLv2+.
9230         * modules/pipe2 (License): Change to LGPLv2+.
9231         Requested by Eric Blake, for libvirt.
9232
9233 2011-04-05  Bruce Korb  <bkorb@gnu.org>
9234
9235         bootstrap: compute gnulib_extra_files after updating build_aux
9236         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
9237         change build_aux or also supply gnulib_extra_files.  Handle correctly.
9238
9239 2011-04-05  Eric Blake  <eblake@redhat.com>
9240
9241         bootstrap: preserve git whitelist item sorting
9242         * build-aux/bootstrap (sort_patterns): New function.
9243         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
9244
9245 2011-04-05  Simon Josefsson  <simon@josefsson.org>
9246
9247         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
9248         sc_space_tab check.
9249
9250 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9251
9252         areadlink, areadlinkat: rewrite in terms of careadlinkat
9253         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9254         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9255         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9256         (malloc, realloc): Remove #undefs.
9257         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9258         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9259         readlink, ssize_t, stdint, unistd.
9260         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9261         areadlink, stdint.
9262
9263         careadlinkat: new module
9264         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9265         * modules/careadlinkat: New files, written by me with
9266         a review and feedback from Ben Pfaff in
9267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9268
9269 2011-04-01  Bruno Haible  <bruno@clisp.org>
9270
9271         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9272         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9273         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9274         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9275         Reported by Bruce Korb <bruce.korb@gmail.com>.
9276
9277 2011-04-01  Bruno Haible  <bruno@clisp.org>
9278
9279         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9280         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9281         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9282         * modules/wcpcpy (Depends-on): Add extensions.
9283         * modules/wcpncpy (Depends-on): Likewise.
9284         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9285         systems.
9286         * doc/posix-functions/wcpncpy.texi: Likewise.
9287         * doc/posix-functions/wcwidth.texi: Likewise.
9288
9289 2011-03-31  Eric Blake  <eblake@redhat.com>
9290
9291         nonblocking: fix mingw test failures
9292         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9293         non-blocking flag on regular file.
9294         (get_nonblocking_flag): Set errno on invalid fd.
9295         * tests/test-nonblocking.c (main): Avoid test failure on
9296         directories if fchdir is not active.
9297         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9298
9299 2011-03-31  Bruno Haible  <bruno@clisp.org>
9300
9301         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9302         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9303         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9304         Reported by Simon Josefsson <simon@josefsson.org>.
9305
9306 2011-03-31  Bruno Haible  <bruno@clisp.org>
9307         and Eric Blake  <eblake@redhat.com>
9308
9309         nonblocking: new module
9310         * modules/nonblocking: New module.
9311         * modules/nonblocking-tests: Likewise.
9312         * lib/nonblocking.h: New file.
9313         * lib/nonblocking.c: Likewise.
9314         * tests/test-nonblocking.c: New test.
9315         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9316
9317 2011-03-30  Bruno Haible  <bruno@clisp.org>
9318
9319         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9320         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9321         instead of 'printf' format for GCC >= 4.4.
9322         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9323         (fprintf, printf, vfprintf, vprintf): Declare with
9324         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9325         the system's vfprintf() function.
9326         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9327
9328 2011-03-30  Eric Blake  <eblake@redhat.com>
9329
9330         passfd: fix scoping bug
9331         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9332         before sendmsg/recvmsg.
9333
9334         passfd: standardize coding conventions
9335         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9336         can be learned at compile time.
9337         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9338         ifdefs.
9339         (sendfd, recvfd): Follow gnulib code conventions.
9340
9341         passfd: fix incorrect sendmsg arguments
9342         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9343         incorrect msg_controllen value.
9344         * modules/passfd-tests (Depends-on): Check for alarm.
9345         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9346         Reported by Bastien ROUCARIES.
9347
9348 2011-03-30  Bruno Haible  <bruno@clisp.org>
9349
9350         c-strcasestr: Relicense under LGPLv2+.
9351         * modules/c-strcasestr (License): Change to LGPLv2+.
9352         Requested by Eric Blake, for libvirt.
9353
9354 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9355
9356         * users.txt: Add libidn2.  Fix libtasn1 link.
9357
9358 2011-03-30  Jim Meyering  <meyering@redhat.com>
9359
9360         tests: readlink* ("",... fails with EINVAL on newer kernels
9361         readlink and readlinkat have typically failed with ENOENT for
9362         the invalid, empty file name,  "".  However, with the advent
9363         of linux-2.6.39, they fail with EINVAL.
9364         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9365         when operating on the empty file name.
9366         * tests/test-readlink.h (test_readlink): Likewise.
9367
9368 2011-03-29  Bruno Haible  <bruno@clisp.org>
9369
9370         Relicense some modules under LGPLv2+, for libidn2.
9371         * modules/array-mergesort (License): Change to LGPLv2+.
9372         * modules/c-strcaseeq (License): Likewise.
9373         * modules/striconveh (License): Likewise.
9374         * modules/striconveha (License): Likewise.
9375         * modules/uniconv/base (License): Likewise.
9376         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9377         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9378         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9379         * modules/unictype/base (License): Likewise.
9380         * modules/unictype/bidiclass-of (License): Likewise.
9381         * modules/unictype/category-M (License): Likewise.
9382         * modules/unictype/category-none (License): Likewise.
9383         * modules/unictype/category-of (License): Likewise.
9384         * modules/unictype/category-test (License): Likewise.
9385         * modules/unictype/category-test-withtable (License): Likewise.
9386         * modules/unictype/combining-class (License): Likewise.
9387         * modules/unictype/joiningtype-of (License): Likewise.
9388         * modules/unictype/scripts (License): Likewise.
9389         * modules/uninorm/base (License): Likewise.
9390         * modules/uninorm/canonical-decomposition (License): Likewise.
9391         * modules/uninorm/composition (License): Likewise.
9392         * modules/uninorm/decompose-internal (License): Likewise.
9393         * modules/uninorm/decomposition-table (License): Likewise.
9394         * modules/uninorm/nfc (License): Likewise.
9395         * modules/uninorm/nfd (License): Likewise.
9396         * modules/uninorm/u32-normalize (License): Likewise.
9397         * modules/unistr/base (License): Likewise.
9398         * modules/unistr/u32-cpy (License): Likewise.
9399         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
9400         * modules/unistr/u32-to-u8 (License): Likewise.
9401         * modules/unistr/u32-uctomb (License): Likewise.
9402         * modules/unistr/u8-check (License): Likewise.
9403         * modules/unistr/u8-mblen (License): Likewise.
9404         * modules/unistr/u8-mbtouc (License): Likewise.
9405         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
9406         * modules/unistr/u8-mbtoucr (License): Likewise.
9407         * modules/unistr/u8-prev (License): Likewise.
9408         * modules/unistr/u8-strlen (License): Likewise.
9409         * modules/unistr/u8-to-u32 (License): Likewise.
9410         * modules/unistr/u8-uctomb (License): Likewise.
9411         * modules/unitypes (License): Likewise.
9412         Requested by Simon Josefsson.
9413
9414 2011-03-29  Simon Josefsson  <simon@josefsson.org>
9415
9416         lib-symbol-visibility: Add a notice.
9417         * modules/lib-symbol-visibility (Notice): New field.
9418
9419 2011-03-29  Bruno Haible  <bruno@clisp.org>
9420
9421         getaddrinfo: Doc fix.
9422         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
9423         section "fixed in Gnulib".
9424
9425 2011-03-28  Simon Josefsson  <simon@josefsson.org>
9426
9427         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
9428         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
9429
9430 2011-03-26  Bruno Haible  <bruno@clisp.org>
9431
9432         unictype/property-byname: Reduce the number of load-time relocations.
9433         * lib/unictype/pr_byname.c: Include <stdlib.h>.
9434         (UC_PROPERTY_INDEX_*): New enumeration values.
9435         (uc_property_byname): Convert an index from the lookup table to an
9436         uc_property_t.
9437         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
9438         values.
9439
9440 2011-03-26  Bruno Haible  <bruno@clisp.org>
9441
9442         unictype/property-byname: Allow omitted word separators and aliases.
9443         * lib/unictype/pr_byname.gperf: Add property names without word
9444         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
9445         for 'space'.
9446
9447 2011-03-26  Bruno Haible  <bruno@clisp.org>
9448
9449         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
9450         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
9451         also hyphens to space.
9452         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
9453         without spaces.
9454         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
9455
9456 2011-03-26  Bruno Haible  <bruno@clisp.org>
9457
9458         unictype/joiningtype-byname: Recognize long names as well.
9459         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
9460         a long name.
9461         * lib/unictype/joiningtype_byname.c: Include <string.h>,
9462         unictype/joiningtype_byname.h.
9463         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
9464         * lib/unictype/joiningtype_byname.gperf: New file.
9465         * modules/unictype/joiningtype-byname (Files): Add
9466         lib/unictype/joiningtype_byname.gperf.
9467         (Depends-on): Add gperf.
9468         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
9469         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
9470         long names.
9471
9472         Tests for module 'unictype/joiningtype-longname'.
9473         * modules/unictype/joiningtype-longname-tests: New file.
9474         * tests/unictype/test-joiningtype_longname.c: New file.
9475
9476         New module 'unictype/joiningtype-longname'.
9477         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
9478         * lib/unictype/joiningtype_longname.c: New file.
9479         * modules/unictype/joiningtype-longname: New file.
9480         * modules/unictype/joiningtype-all (Depends-on): Add
9481         unictype/joiningtype-longname.
9482
9483 2011-03-26  Bruno Haible  <bruno@clisp.org>
9484
9485         unictype/bidiclass-byname: Recognize long names as well.
9486         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9487         name.
9488         * lib/unictype/bidi_byname.c: Include <string.h>,
9489         unictype/bidi_byname.h.
9490         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9491         * lib/unictype/bidi_byname.gperf: New file.
9492         * modules/unictype/bidiclass-byname (Files): Add
9493         lib/unictype/bidi_byname.gperf.
9494         (Depends-on): Add gperf.
9495         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9496         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9497         long names.
9498
9499         Tests for module 'unictype/bidiclass-longname'.
9500         * modules/unictype/bidiclass-longname-tests: New file.
9501         * tests/unictype/test-bidi_longname.c: New file.
9502
9503         New module 'unictype/bidiclass-longname'.
9504         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9505         * lib/unictype/bidi_longname.c: New file.
9506         * modules/unictype/bidiclass-longname: New file.
9507         * modules/unictype/bidiclass-all (Depends-on): Add
9508         unictype/bidiclass-longname.
9509
9510 2011-03-26  Bruno Haible  <bruno@clisp.org>
9511
9512         unictype/bidi*: Rename modules.
9513         * modules/unictype/bidiclass-all: Renamed from
9514         modules/unictype/bidicategory-all.
9515         * modules/unictype/bidiclass-name: Renamed from
9516         modules/unictype/bidiclass-name.
9517         (Description): Update.
9518         * modules/unictype/bidiclass-name-tests: Renamed from
9519         modules/unictype/bidicategory-name-tests.
9520         * modules/unictype/bidiclass-byname: Renamed from
9521         modules/unictype/bidicategory-byname.
9522         (Description): Update.
9523         * modules/unictype/bidiclass-byname-tests: Renamed from
9524         modules/unictype/bidicategory-byname-tests.
9525         * modules/unictype/bidiclass-of: Renamed from
9526         modules/unictype/bidicategory-of.
9527         (Description): Update.
9528         * modules/unictype/bidiclass-of-tests: Renamed from
9529         modules/unictype/bidicategory-of-tests.
9530         * modules/unictype/bidiclass-test: Renamed from
9531         modules/unictype/bidicategory-test.
9532         (Description): Update.
9533         * modules/unictype/bidiclass-test-tests: Renamed from
9534         modules/unictype/bidicategory-test-tests.
9535         * modules/unictype/bidicategory-all: New file, a simple redirection.
9536         * modules/unictype/bidicategory-name: Likewise.
9537         * modules/unictype/bidicategory-byname: Likewise.
9538         * modules/unictype/bidicategory-of: Likewise.
9539         * modules/unictype/bidicategory-test: Likewise.
9540         * modules/unictype/property-bidi-* (Dependencies): Update.
9541         * lib/unictype/bidi_*.c: Update comment.
9542
9543 2011-03-26  Bruno Haible  <bruno@clisp.org>
9544
9545         unictype/bidi*: Rename functions, part 2.
9546         * modules/unictype/bidicategory-name (configure.ac): Update required
9547         libunistring version.
9548         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9549
9550 2011-03-25  Bruno Haible  <bruno@clisp.org>
9551
9552         New module 'unictype/combining-class-all'.
9553         * modules/unictype/combining-class-all: New file.
9554
9555         Tests for module 'unictype/combining-class-byname'.
9556         * modules/unictype/combining-class-byname-tests: New file.
9557         * tests/unictype/test-combiningclass_byname.c: New file.
9558
9559         New module 'unictype/combining-class-byname'.
9560         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9561         * lib/unictype/combiningclass_byname.c: New file.
9562         * lib/unictype/combiningclass_byname.gperf: New file.
9563         * modules/unictype/combining-class-byname: New file.
9564
9565         Tests for module 'unictype/combining-class-longname'.
9566         * modules/unictype/combining-class-longname-tests: New file.
9567         * tests/unictype/test-combiningclass_longname.c: New file.
9568
9569         New module 'unictype/combining-class-longname'.
9570         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9571         * lib/unictype/combiningclass_longname.c: New file.
9572         * modules/unictype/combining-class-longname: New file.
9573
9574         Tests for module 'unictype/combining-class-name'.
9575         * modules/unictype/combining-class-name-tests: New file.
9576         * tests/unictype/test-combiningclass_name.c: New file.
9577
9578         New module 'unictype/combining-class-name'.
9579         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9580         * lib/unictype/combiningclass_name.c: New file.
9581         * modules/unictype/combining-class-name: New file.
9582
9583 2011-03-25  Bruno Haible  <bruno@clisp.org>
9584
9585         unictype/combining-class: Rename source files.
9586         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9587         of unictype/combining.h.
9588         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9589         Update.
9590         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9591         * modules/unictype/combining-class (Description): Fix.
9592         (Files, Makefile.am): Update.
9593         * tests/unictype/test-combiningclass.c: Renamed from
9594         tests/unictype/test-combining.c.
9595         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9596
9597 2011-03-25  Bruno Haible  <bruno@clisp.org>
9598
9599         unictype: Update list of canonical combining classes.
9600         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9601
9602 2011-03-25  Bruno Haible  <bruno@clisp.org>
9603
9604         unictype/category-byname: Recognize long names as well.
9605         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9606         a long name.
9607         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9608         unictype/categ_byname.h.
9609         (UC_CATEGORY_INDEX_*): New enumeration values.
9610         (uc_general_category_byname): Use uc_general_category_lookup and
9611         convert from index to value.
9612         * lib/unictype/categ_byname.gperf: New file.
9613         * modules/unictype/category-byname (Files): Add
9614         lib/unictype/categ_byname.gperf.
9615         (Depends-on): Add gperf.
9616         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9617         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9618         long names.
9619
9620         Tests for module 'unictype/category-longname'.
9621         * modules/unictype/category-longname-tests: New file.
9622         * tests/unictype/test-categ_longname.c: New file.
9623
9624         New module 'unictype/category-longname'.
9625         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9626         * lib/unictype/categ_longname.c: New file.
9627         * modules/unictype/category-longname: New file.
9628         * modules/unictype/category-all (Depends-on): Add it.
9629
9630 2011-03-25  Bruno Haible  <bruno@clisp.org>
9631
9632         Tests for module 'unictype/category-LC'.
9633         * modules/unictype/category-LC-tests: New file.
9634         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9635
9636         New module 'unictype/category-LC'.
9637         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9638         (UC_CATEGORY_LC): New declaration.
9639         (UC_CASED_LETTER): New macro.
9640         * lib/gen-uni-tables.c (is_category_LC): New function.
9641         (output_categories): Also handle category LC.
9642         (UC_CATEGORY_MASK_LC): New enumeration value.
9643         (general_category_byname): Also handle category LC.
9644         * lib/unictype/categ_LC.c: New file.
9645         * lib/unictype/categ_LC.h: New file, automatically generated.
9646         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9647         category LC.
9648         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9649         * modules/unictype/category-LC: New file.
9650         * modules/unictype/category-byname (Depends-on): Add
9651         unictype/category-LC.
9652         * modules/unictype/category-all (Depends-on): Likewise.
9653
9654 2011-03-25  Eric Blake  <eblake@redhat.com>
9655
9656         xmalloc: revert yesterday's regression
9657         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9658         realloc's underlying behavior (allowing allocation of zero-size
9659         objects, especially if malloc-gnu is also in use).
9660
9661 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9662
9663         maint.mk: add missing version to VC-tag
9664         * top/maint.mk: git tag was missing actual tag name; add it.
9665
9666         valgrind: do leak checking, and exit with code 1 on error (not 0)
9667         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9668         to VALGRIND.
9669
9670 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9671
9672         posix-modules: say what it does.
9673         * posix-modules: Add a line to the --help output saying what it does.
9674
9675 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9676
9677         xmalloc: Do not leak if underlying realloc is C99 compatible.
9678         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9679         This avoids a leak on C99-based systems.  See
9680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9681
9682 2011-03-24  Eric Blake  <eblake@redhat.com>
9683
9684         realloc: document portability problem
9685         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9686         passing 0 size to realloc.
9687
9688 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9689
9690         doc: update users.txt
9691         * users.txt: Add cvsps, tmpwatch
9692
9693 2011-03-23  Matt Rice  <ratmice@gmail.com>
9694
9695         doc: update users.txt
9696         * users.txt: Add gdb.
9697
9698 2011-03-23  Jim Meyering  <meyering@redhat.com>
9699
9700         doc: update users.txt
9701         Looking through matches up to the following URL (there are still
9702         several more pages), I found several projects that use gnulib:
9703         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9704         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9705         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9706
9707 2011-03-22  Bruno Haible  <bruno@clisp.org>
9708
9709         unictype/bidi*: Rename functions.
9710         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9711         uc_bidi_class, uc_is_bidi_class): New declarations.
9712         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9713         uc_bidi_category_byname.
9714         (uc_bidi_category_byname): New function.
9715         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9716         u_bidi_category_name.
9717         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9718         (uc_bidi_category_name): New function.
9719         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9720         uc_bidi_category.
9721         (uc_bidi_category): New function.
9722         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9723         uc_is_bidi_category. Invoke uc_bidi_class.
9724         (uc_is_bidi_category): New function.
9725         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9726         instead of uc_bidi_category_byname.
9727         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9728         instead of uc_bidi_category_name.
9729         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9730         uc_bidi_category.
9731         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9732         instead of uc_is_bidi_category.
9733
9734 2011-03-21  Bruno Haible  <bruno@clisp.org>
9735
9736         New module 'unictype/joininggroup-all'.
9737         * modules/unictype/joininggroup-all: New file.
9738
9739         Tests for module 'unictype/joininggroup-of'.
9740         * modules/unictype/joininggroup-of-tests: New file.
9741         * tests/unictype/test-joininggroup_of.c: New file.
9742         * tests/unictype/test-joininggroup_of.h: New file, automatically
9743         generated by gen-uni-tables.
9744
9745         New module 'unictype/joininggroup-of'.
9746         * modules/unictype/joininggroup-of: New file.
9747         * lib/unictype/joininggroup_of.c: New file.
9748         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9749         gen-uni-tables.
9750
9751         Tests for module 'unictype/joininggroup-byname'.
9752         * modules/unictype/joininggroup-byname-tests: New file.
9753         * tests/unictype/test-joininggroup_byname.c: New file.
9754
9755         New module 'unictype/joininggroup-byname'.
9756         * modules/unictype/joininggroup-byname: New file.
9757         * lib/unictype/joininggroup_byname.c: New file.
9758         * lib/unictype/joininggroup_byname.gperf: New file.
9759
9760         Tests for module 'unictype/joininggroup-name'.
9761         * modules/unictype/joininggroup-name-tests: New file.
9762         * tests/unictype/test-joininggroup_name.c: New file.
9763
9764         New module 'unictype/joininggroup-name'.
9765         * modules/unictype/joininggroup-name: New file.
9766         * lib/unictype/joininggroup_name.c: New file.
9767         * lib/unictype/joininggroup_name.h: New file.
9768
9769         New module 'unictype/joiningtype-all'.
9770         * modules/unictype/joiningtype-all: New file.
9771
9772         Tests for module 'unictype/joiningtype-of'.
9773         * modules/unictype/joiningtype-of-tests: New file.
9774         * tests/unictype/test-joiningtype_of.c: New file.
9775         * tests/unictype/test-joiningtype_of.h: New file, automatically
9776         generated by gen-uni-tables.
9777
9778         New module 'unictype/joiningtype-of'.
9779         * modules/unictype/joiningtype-of: New file.
9780         * lib/unictype/joiningtype_of.c: New file.
9781         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9782         gen-uni-tables.
9783
9784         Tests for module 'unictype/joiningtype-byname'.
9785         * modules/unictype/joiningtype-byname-tests: New file.
9786         * tests/unictype/test-joiningtype_byname.c: New file.
9787
9788         New module 'unictype/joiningtype-byname'.
9789         * modules/unictype/joiningtype-byname: New file.
9790         * lib/unictype/joiningtype_byname.c: New file.
9791
9792         Tests for module 'unictype/joiningtype-name'.
9793         * modules/unictype/joiningtype-name-tests: New file.
9794         * tests/unictype/test-joiningtype_name.c: New file.
9795
9796         New module 'unictype/joiningtype-name'.
9797         * modules/unictype/joiningtype-name: New file.
9798         * lib/unictype/joiningtype_name.c: New file.
9799
9800         unictype: Add support for Arabic shaping properties.
9801         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9802         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9803         declarations.
9804         (UC_JOINING_GROUP_*): New enumeration values.
9805         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9806         declarations.
9807         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9808         (unicode_joining_type): New variable.
9809         (UC_JOINING_GROUP_*): New enumeration values.
9810         (unicode_joining_group): New variable.
9811         (fill_arabicshaping, joining_type_as_c_identifier,
9812         output_joining_type_test, output_joining_type,
9813         joining_group_as_c_identifier, output_joining_group_test,
9814         output_joining_group): New functions.
9815         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9816         fill_arabicshaping and output_joining_type_test, output_joining_type,
9817         output_joining_group_test, output_joining_group.
9818         Reported by Simon Josefsson.
9819
9820 2011-03-21  Jim Meyering  <meyering@redhat.com>
9821
9822         strftime: fix a bug in yesterday's change
9823         * lib/strftime.c (add): Accommodate width's initial value of -1.
9824         Otherwise, nstrftime would copy uninitialized data into
9825         the result buffer.
9826
9827 2011-03-21  Jim Meyering  <meyering@redhat.com>
9828
9829         tests: add strftime-tests module
9830         * tests/test-strftime.c: New file.
9831         * modules/strftime-tests: New module.
9832
9833 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9834
9835         strftime: don't assume a byte count fits in 'int'
9836         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9837         found this problem by static analysis, using gcc -Wstrict-overflow
9838         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9839         on an integer overflow having undefined behavior, but it turns out
9840         that the argument is a size, which might not fit in 'int' anyway,
9841
9842 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9843
9844         stdio: don't require ignore_value around fwrite
9845
9846         This patch works around libc bug 11959
9847         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9848         Without this patch, applications must often write
9849         ignore_value (fwrite (...)) even though the ignore_value is
9850         not helpful here.  It's common to write many objects, using
9851         fwrite/printf/etc., and then use ferror to detect output error.
9852
9853         I considered making this patch optional, but decided against it,
9854         because libc is obviously being inconsistent here: there is no
9855         reason libc should insist that user code must inspect fwrite
9856         return's value without also insisting that it inspect printf's,
9857         putchar's, etc.  If user code wants to have a strict style where
9858         all these functions' values are checked (so that ferror need not
9859         be checked), we could add support for that style in a new gnulib
9860         module, but in the meantime it's better to be consistent and to
9861         support common usage.
9862
9863         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9864         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9865         that we are compiling in checking mode, and if not C++, and
9866         if not already wrapping fwrite for some other reason.
9867         (fwrite): #define to rpl_fwrite if the latter is defined.
9868
9869 2011-03-20  Bruno Haible  <bruno@clisp.org>
9870
9871         verror: Fix compilation error introduced on 2011-02-13.
9872         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9873         instead of __attribute__.
9874         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9875
9876 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9877             Bruno Haible  <bruno@clisp.org>
9878
9879         socklen: do not depend on sys_socket
9880         While trying to modify Emacs to use gnulib's socklen module,
9881         I discovered a circular dependency: socklen depends on sys_socket
9882         and vice versa.  Emacs can use socklen, but it does not need
9883         sys_socket because it has its own substitute for sys/socket.h.
9884         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9885         gl_TYPE_SOCKLEN_T.
9886         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9887         gl_PREREQ_SYS_H_SOCKET.
9888         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9889         gl_PREREQ_SYS_H_SOCKET.
9890         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9891         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9892         * modules/socklen (Depends-on): Do not depend on sys_socket.
9893         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9894
9895 2011-03-20  Jim Meyering  <meyering@redhat.com>
9896
9897         maint.mk: sort file names *after* new transformation
9898         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9899         prefix would have led to an unwarranted failure in GNU parted.
9900         Sort after that transformation.
9901
9902 2011-03-19  Jim Meyering  <meyering@redhat.com>
9903
9904         maint.mk: fix po-file syntax-check rule
9905         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9906         Patch by Bruno Haible.
9907
9908 2011-03-19  Bruno Haible  <bruno@clisp.org>
9909
9910         socklen: Update comment.
9911         * m4/socklen.m4: Update comment about platforms.
9912
9913 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9914             Bruno Haible  <bruno@clisp.org>
9915
9916         inet_ntop, inet_pton: Simplify.
9917         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9918         documented to provide socklen_t and we already depend on sys_socket.
9919         * modules/inet_pton (Depends-on): Likewise.
9920         * lib/arpa_inet.in.h: Adjust comment.
9921
9922 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9923             Bruno Haible  <bruno@clisp.org>
9924
9925         netdb: Simplify.
9926         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9927         documented to provide socklen_t and we already depend on sys_socket.
9928         * lib/netdb.in.h: Adjust comment.
9929
9930 2011-03-19  Bruno Haible  <bruno@clisp.org>
9931
9932         sys_socket, netdb: Document problem with socklen_t.
9933         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9934         platforms.
9935         * doc/posix-headers/netdb.texi: Likewise.
9936
9937 2011-03-18  Eric Blake  <eblake@redhat.com>
9938
9939         maint.mk: let po check work in VPATH build
9940         * top/maint.mk (po_file): Allow cfg.mk override.
9941         (sc_po_check): Allow VPATH use.
9942         Reported by Jiri Denemark.
9943
9944 2011-03-16  Jim Meyering  <meyering@redhat.com>
9945
9946         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9947         Before, you would have had to create one .x-sc_ file per rule in order
9948         to exempt offending files.  Now, you may instead use a Make variable --
9949         usually defined in cfg.mk -- whose name identifies the affected rule.
9950         * top/maint.mk (_sc_excl): Define.
9951         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9952         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9953
9954 2011-03-13  Bruno Haible  <bruno@clisp.org>
9955
9956         ignore-value tests: Avoid warnings.
9957         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9958         empty for gcc < 3.4.
9959
9960 2011-03-13  Bruno Haible  <bruno@clisp.org>
9961
9962         passfd: Fix link error on Solaris.
9963         * modules/passfd (Description): Correct.
9964         (Depends-on): Add socketlib.
9965         (Link): New section.
9966         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9967
9968 2011-03-13  Bruno Haible  <bruno@clisp.org>
9969
9970         passfd: Fix link error on AIX 5.2.
9971         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9972
9973 2011-03-13  Bruno Haible  <bruno@clisp.org>
9974
9975         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9976         * lib/sys_socket.in.h: Include <stddef.h>.
9977         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9978         CMSG_FIRSTHDR. Remove unused variable.
9979
9980 2011-03-13  Bruno Haible  <bruno@clisp.org>
9981
9982         passfd: Fix compilation error on OpenBSD.
9983         * lib/passfd.c: Include <sys/uio.h>.
9984
9985 2011-03-13  Bruno Haible  <bruno@clisp.org>
9986
9987         passfd test: Fix warnings.
9988         * tests/test-passfd.c: Include <sys/wait.h>.
9989         (main): Fix typo.
9990
9991 2011-03-13  Bruno Haible  <bruno@clisp.org>
9992
9993         passfd module, part 4, tweaks.
9994         * tests/test-passfd.c: Reorder includes.
9995         (main): Fix perror and printf calls.
9996
9997 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9998
9999         passfd module, part 4.
10000         * modules/passfd-tests: New file.
10001         * tests/test-passfd.c: New file.
10002
10003 2011-03-13  Jim Meyering  <meyering@redhat.com>
10004
10005         Makefile: rely on GNU make; derive syntax-check rule names
10006         Rather than requiring that each sc_ rule be listed as a dependent
10007         of "check", use features of GNU make to derive the list.
10008         * Makefile (syntax-check-rules): Define.
10009         (check): Depend on the new variable, not the hard-coded list.
10010
10011 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
10012             Bruno Haible  <bruno@clisp.org>
10013
10014         passfd module, part 3.
10015         * lib/passfd.h (recvfd): Add a flags argument.
10016         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
10017         (recvfd): Add a flags argument.
10018         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
10019         exists.
10020         * modules/passfd (Depends-on): Add cloexec.
10021         Suggested by Eric Blake.
10022
10023 2011-03-13  Bruno Haible  <bruno@clisp.org>
10024
10025         passfd module, part 2, tweaks.
10026         * modules/passfd (Files): Reorder.
10027         (Depends-on): Remove errno.
10028         (Include): Remove <sys/socket.h>, <sys/un.h>.
10029         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
10030         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
10031         specification header. Include <sys/socket.h> always. Don't include
10032         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
10033         (sendfd): Clarify that it sets errno when it fails.
10034         (recvfd): Fix specification.
10035
10036 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10037
10038         passfd module, part 2.
10039         * modules/passfd: New file.
10040         * lib/passfd.h: New file.
10041         * lib/passfd.c: New file.
10042
10043 2011-03-12  Bruno Haible  <bruno@clisp.org>
10044
10045         wcswidth, mbswidth: Avoid integer overflow.
10046         * lib/wcswidth.c: Include <limits.h>.
10047         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
10048         * lib/mbswidth.c: Include <limits.h>.
10049         (mbsnwidth): Avoid 'int' overflow.
10050         Reported by Jim Meyering.
10051
10052 2011-03-12  Bruno Haible  <bruno@clisp.org>
10053
10054         futimens, utimensat: Avoid endless recursion on Solaris 10.
10055         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
10056         Solaris.
10057         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
10058         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
10059
10060 2011-03-11  Jim Meyering  <meyering@redhat.com>
10061
10062         maint.mk: relax a regexp to accommodate other formatting styles
10063         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
10064         between "ngettext" and the following "(".
10065
10066 2011-03-11  Pádraig Brady <P@draigBrady.com>
10067
10068         maint.mk: suppress a false positive warning
10069         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
10070         diagnostics are marked with ngettext.
10071
10072 2011-03-10  Eric Blake  <eblake@redhat.com>
10073
10074         wchar: add explicit dependencies, for Tru64
10075         * modules/mbmemcasecoll (Depends-on): Add wchar.
10076         * modules/mbtowc (Depends-on): Likewise.
10077         * modules/vasnprintf (Depends-on): Likewise.
10078         * modules/unistdio/u-printf-args (Depends-on): Likewise.
10079         * modules/wctomb (Depends-on): Likewise.
10080         Reported by Peter O'Gorman.
10081
10082 2011-03-08  Bruno Haible  <bruno@clisp.org>
10083
10084         passfd module, part 1, tweaks.
10085         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
10086         Improve indentation. Improve AC_MSG_CHECKING messages.
10087         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
10088         gl_SOCKET_FAMILIES.
10089
10090 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10091
10092         passfd module, part 1.
10093         * m4/afunix.m4: New file.
10094         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
10095         sockets.
10096
10097 2011-03-08  Bruno Haible  <bruno@clisp.org>
10098
10099         regex-quote: New API.
10100         * lib/regex-quote.h: Include <stdbool.h>.
10101         (struct regex_quote_spec): New type.
10102         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10103         New declarations.
10104         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10105         'const struct regex_quote_spec *' argument.
10106         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
10107         (pcre_special): New constant.
10108         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10109         New functions.
10110         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10111         'const struct regex_quote_spec *' argument.
10112         * modules/regex-quote (Depends-on): Add stdbool.
10113         * tests/test-regex-quote.c (check): Update for new API. Add test for
10114         anchored results.
10115         * NEWS: Mention the API change.
10116         Reported by Reuben Thomas and Eric Blake.
10117
10118 2011-03-06  Bruno Haible  <bruno@clisp.org>
10119
10120         regex-quote: Fix creation of POSIX extended regular expressions.
10121         * lib/regex-quote.c (ere_special): Add grouping and alternation
10122         operators.
10123
10124 2011-03-05  Bruno Haible  <bruno@clisp.org>
10125
10126         doc: Improve doc regarding autopoint vs. gnulib.
10127         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
10128         disable autopoint while running autoreconf.
10129         Suggested by Ralf Wildenhues.
10130
10131 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10132
10133         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
10134         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
10135
10136 2011-03-03  Bruce Korb  <bkorb@gnu.org>
10137
10138         parse-duration: remove xalloc.h dependency
10139         * lib/parse-duration.c (parse_period): handle NULL return from
10140         strdup instead of calling xstrdup().
10141         * modules/parse-duration: remove "xalloc" dependency
10142
10143 2011-03-03  Matthew Booth  <mbooth@redhat.com>
10144
10145         bootstrap: honor m4_base when running aclocal
10146         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
10147
10148 2011-03-02  Jim Meyering  <meyering@redhat.com>
10149
10150         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
10151         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
10152         on request from Matt Booth.
10153
10154 2011-03-01  Eric Blake  <eblake@redhat.com>
10155
10156         test-link: work on Hurd
10157         * tests/test-link.h (test_link): Hurd rejects linking directories
10158         with EISDIR instead of the POSIX-mandated EPERM.
10159
10160 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
10161
10162         stdio: simplify by moving files to printf-posix, sigpipe
10163         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
10164         since this symbol is needed only if printf is replaced.
10165         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
10166         Require gl_ASM_SYMBOL_PREFIX.
10167         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
10168         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
10169         (Depends-on): Add 'raise'.
10170         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
10171         * modules/stdio (Files): Remove lib/stdio-write.c,
10172         m4/asm-underscore.m4.
10173         (Depends-on): Remove 'raise'.
10174
10175         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
10176         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
10177         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
10178         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
10179
10180 2011-02-28  Bruno Haible  <bruno@clisp.org>
10181
10182         localcharset: Assume ANSI C behaviour of free().
10183         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
10184         calling free().
10185         Suggested by Simon Josefsson <simon@josefsson.org>.
10186
10187 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
10188             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
10189             Bruno Haible  <bruno@clisp.org>  (tiny change)
10190
10191         On Cygwin, use /proc file system instead of win32 API.
10192         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
10193         Win32 file names.
10194         (DllMain): Simplify by removing Cygwin specific code.
10195         (find_shared_library_fullname): Use Linux specific implementation also
10196         for Cygwin.
10197         (get_shared_library_fullname): Update accordingly.
10198         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
10199         Win32 file names.
10200         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
10201         Cygwin specific code.
10202
10203 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
10204             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
10205
10206         Fix OpenMP flag detection for various Fortran compilers.
10207         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
10208         OpenMP-conditional compilation construct, to force compile
10209         failure with missing OpenMP flag.
10210         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
10211
10212 2011-02-25  Eric Blake  <eblake@redhat.com>
10213
10214         strstr: expand test coverage
10215         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
10216         compilation.
10217         * tests/test-memmem.c (main): Duplicate tests.
10218         * tests/test-strcasestr.c (main): Likewise.
10219         * tests/test-c-strcasestr.c (main): Likewise.
10220
10221 2011-02-25  Jim Meyering  <meyering@redhat.com>
10222
10223         maint.mk: detect missing-NL-at-EOF, too
10224         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
10225         it also detects when a file lacks a newline at EOF.
10226         (require_exactly_one_NL_at_EOF_): Renamed from
10227         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
10228         since people may well have .x-sc_... file names tied to the
10229         existing name.  Suggested by Eric Blake.
10230
10231 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10232
10233         dirname: move m4/dos.m4 functionality into lib/dosname.h
10234
10235         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
10236         extracts symbols from it, puts them into config.h; but it's much
10237         easier to use the symbols directly.  filename.h already does this,
10238         but it disagrees with dos.m4 in some respects.  This patch
10239         introduces a different include file dosname.h that packages up
10240         dos.m4, and then later we can work on merging filename.h and
10241         dosname.h.  Applications that need only the easy-to-configure
10242         symbols should consider including dosname.h rather than dirname.h.
10243         * NEWS: Mention incompatible changes.
10244         * m4/dos.m4: Remove.
10245         * lib/dosname.h, modules/dosname: New files.
10246         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
10247         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
10248         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
10249         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
10250         Include dosname.h, not dirname.h.
10251         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
10252         Include dosname.h, for definitions of symbols like ISSLASH
10253         that used to be in config.h.
10254         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10255         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10256         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10257         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10258         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10259         * modules/rmdir (Files): Likewise.
10260         * modules/stat (Files): Likewise.
10261         * modules/unlink (Files): Likewise.
10262         * modules/dirname-lgpl (Depends-on): Add dosname.
10263         * modules/lstat (Depends-on): Likewise.
10264         * modules/openat (Depends-on): Likewise.
10265         * modules/rmdir (Depends-on): Likewise.
10266         * modules/savewd (Depends-on): Likewise.
10267         * modules/stat (Depends-on): Likewise.
10268         * modules/unlink (Depends-on): Likewise.
10269         * modules/openat (Depends-on): Remove dirname-lgpl.
10270         * modules/savewd (Depends-on): Likewise.
10271         * tests/test-dirname.c: Do not use removed symbols like
10272         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10273         the remaining symbols, e.g., ISSLASH ('\\').
10274
10275 2011-02-25  Eric Blake  <eblake@redhat.com>
10276
10277         strstr: revert patches that introduced bug and pessimization
10278         * lib/str-two-way.h: Add another reference.
10279         (two_way_short_needle, two_way_long_needle): Revert changes from
10280         2011-02-24; they pessimize search speed.
10281         (critical_factorization): Partially revert changes from
10282         2010-06-22; they violate the requirement that the left half of the
10283         needle be smaller than the period of the needle.
10284
10285 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10286
10287         filenamecat: remove unnecessary dependency on dirname-lgpl
10288         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10289         is no direct dependency, just an indirect one via filenamecat-lgpl.
10290
10291         remove: remove unnecessary use of m4/dos.m4
10292         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10293         * modules/remove (FILES): Remove m4/dos.m4.
10294
10295         * lib/openat-proc.c: Don't include dirname.h; not needed.
10296
10297         backupfile: remove unnecessary use of m4/dos.m4
10298         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10299         of its symbols are used by the backupfile code.  backupfile.c does
10300         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10301         for the rare case of programs that want all their backup file
10302         names to live within 8+3 limits, and dos.m4 doesn't address that.
10303         * modules/backupfile (Files): Remove m4/dos.m4.
10304
10305 2011-02-24  Jim Meyering  <meyering@redhat.com>
10306
10307         strstr: fix a bug whereby strstr would mistakenly return NULL
10308         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10309         in period calculation.
10310         (two_way_long_needle): Likewise.
10311         The original problem was reported by Mike Stump in
10312         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10313         Ralf Wildenhues provided the short needle and haystack.
10314         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10315         Add a more involved test to trigger the bug in two_way_long_needle.
10316
10317 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10318
10319         gnulib-tool: remove use of bold display in help screen
10320         * gnulib-tool (func_usage): Do not use bold display anymore in the
10321         help screen.  That was just meant to be a temporary emphasis for a
10322         backward-incompatible change.
10323
10324 2011-02-23  Bruno Haible  <bruno@clisp.org>
10325
10326         Fix misindentation of preprocessor directives.
10327         * lib/argp-namefrob.h: Reindent preprocessor directives.
10328         * lib/getopt_int.h (struct _getopt_data): Likewise.
10329         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10330         * lib/vasnprintf.c (decode_long_double): Likewise.
10331         * tests/test-argmatch.c: Insert blank lines, for clarity.
10332         * tests/test-exclude.c: Likewise.
10333
10334 2011-02-22  Bruno Haible  <bruno@clisp.org>
10335
10336         ioctl: Fix for MacOS X in 64-bit mode.
10337         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10338         value.
10339         Suggested by Eric Blake.
10340         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10341
10342 2011-02-22  Jim Meyering  <meyering@redhat.com>
10343
10344         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10345         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10346         in lib/.
10347
10348 2011-02-22  Eric Blake  <eblake@redhat.com>
10349
10350         maint: avoid any CDPATH issue
10351         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10352
10353         maint: adjust cpp indentation for my modules, as well
10354         * Makefile (sc_cpp_indent_check): Add my name.
10355         * lib/fbufmode.c: Filter through cppi.
10356         * lib/fpurge.c: Likewise.
10357         * lib/freadable.c: Likewise.
10358         * lib/freading.c: Likewise.
10359         * lib/fwritable.c: Likewise.
10360         * lib/fwriting.c: Likewise.
10361         * lib/sigaction.c: Likewise.
10362
10363 2011-02-22  Jim Meyering  <meyering@redhat.com>
10364
10365         maint: adjust cpp indentation to reflect nesting depth
10366         I.e., in a block of code that begins with an unnested "#if",
10367         put one space between the "#" in column 1 and following token.
10368         For example,
10369         -#include <sys/vfs.h>
10370         +# include <sys/vfs.h>
10371         Do this only in .c files that are part of a module I maintain.
10372         * lib/linkat.c: Filter through cppi.
10373         * lib/nanosleep.c: Likewise.
10374         * lib/openat.c: Likewise.
10375         * lib/openat-die.c: Likewise.
10376         * lib/dup3.c: Likewise.
10377         * lib/fchownat.c: Likewise.
10378         * lib/flock.c: Likewise.
10379         * lib/fsync.c: Likewise.
10380         * lib/fts.c: Likewise.
10381         * lib/getpass.c: Likewise.
10382         * lib/gettimeofday.c: Likewise.
10383         * lib/userspec.c: Likewise.
10384         * Makefile (sc_cpp_indent_check): New rule, to check this.
10385
10386 2011-02-22  Bruno Haible  <bruno@clisp.org>
10387
10388         New module 'wctomb'.
10389         * lib/stdlib.in.h (wctomb): New declaration.
10390         * lib/wctomb.c: New file.
10391         * lib/wctomb-impl.h: New file.
10392         * m4/wctomb.m4: New file.
10393         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10394         REPLACE_WCTOMB.
10395         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10396         REPLACE_WCTOMB.
10397         * modules/wctomb: New file.
10398         * tests/test-stdlib-c++.cc: Test signature of wctomb.
10399         * doc/posix-functions/wctomb.texi: Mention the new module.
10400         * modules/wctob (Depends-on): Add wctomb.
10401
10402 2011-02-22  Bruno Haible  <bruno@clisp.org>
10403
10404         New module 'mbtowc'.
10405         * lib/stdlib.in.h (mbtowc): New declaration.
10406         * lib/mbtowc.c: New file.
10407         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
10408         * m4/mbtowc.m4: New file.
10409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
10410         REPLACE_MBTOWC.
10411         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
10412         REPLACE_MBTOWC.
10413         * modules/mbtowc: New file.
10414         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
10415         * doc/posix-functions/mbtowc.texi: Mention the new module.
10416         * modules/btowc (Depends-on): Add mbtowc.
10417
10418 2011-02-22  Bruno Haible  <bruno@clisp.org>
10419
10420         wcrtomb: Add more tests for native Windows platforms.
10421         * tests/test-wcrtomb-w32-1.sh: New file.
10422         * tests/test-wcrtomb-w32-2.sh: New file.
10423         * tests/test-wcrtomb-w32-3.sh: New file.
10424         * tests/test-wcrtomb-w32-4.sh: New file.
10425         * tests/test-wcrtomb-w32-5.sh: New file.
10426         * tests/test-wcrtomb-w32.c: New file.
10427         * modules/wcrtomb-tests (Files): Add them.
10428         (Makefile.am): Arrange to run these tests.
10429         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
10430         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
10431
10432 2011-02-20  Bruno Haible  <bruno@clisp.org>
10433
10434         wcrtomb: Enhance test.
10435         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
10436
10437 2011-02-20  Bruno Haible  <bruno@clisp.org>
10438
10439         mbrtowc: Tiny optimization.
10440         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
10441
10442 2011-02-20  Jim Meyering  <meyering@redhat.com>
10443
10444         test-exclude.c: remove unmatched #endif
10445         * tests/test-exclude.c: Remove stray #endif, left over from
10446         the change of a week ago.
10447
10448 2011-02-19  Jim Meyering  <meyering@redhat.com>
10449
10450         git-version-gen: skip "-dirty" check when appropriate
10451         * build-aux/git-version-gen: Don't run any git commands when the
10452         version string comes from .tarball-version.  Prior to this, we
10453         would run git update-index --refresh even from a just-unpacked
10454         tarball directory, and that could affect a .git/ directory in a
10455         parent of the build directory.  Reported by Mike Frysinger.
10456
10457 2011-02-19  Bruno Haible  <bruno@clisp.org>
10458
10459         unictype/property-byname: Reduce the size of the 'data' segment.
10460         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
10461
10462 2011-02-19  Bruno Haible  <bruno@clisp.org>
10463
10464         unictype/scripts: Reduce the size of the 'data' segment.
10465         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
10466         '%pic'.
10467         * lib/unictype/scripts_byname.gperf: Regenerated.
10468
10469 2011-02-19  Bruno Haible  <bruno@clisp.org>
10470
10471         stdint: Update documentation.
10472         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
10473
10474 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10475
10476         stdint: omit redundant check for wchar.h
10477         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
10478         always tests whether wchar.h exists, so remove the now-redundant test.
10479
10480 2011-02-18  Bruno Haible  <bruno@clisp.org>
10481
10482         stdint: Cut dependency to module 'wchar'.
10483         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10484         include the necessary prerequisites.
10485         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10486         * modules/stdint (Depends-on): Remove wchar.
10487         (Makefile.am): Substitute HAVE_WCHAR_H.
10488         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10489
10490 2011-02-18  Eric Blake  <eblake@redhat.com>
10491
10492         longlong: skip, rather than fail, on cross-compilation
10493         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10494         when cross-compiling; regression from 2011-02-16.
10495
10496 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10497
10498         * NEWS: Mention 2011-02-08 change to stdlib.
10499
10500 2011-02-17  Bruno Haible  <bruno@clisp.org>
10501
10502         getloadavg: Add comments about platforms.
10503         * m4/getloadavg.m4: Add comment.
10504         * lib/getloadavg.c: Likewise.
10505
10506 2011-02-17  Bruno Haible  <bruno@clisp.org>
10507
10508         getloadavg: Fix link error on Solaris 2.6.
10509         * modules/getloadavg (Link): New section.
10510         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10511         linking test-getloadavg.
10512         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10513         getloadavg.
10514
10515 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10516
10517         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10518         It was 'int', but this doesn't match the IRIX 6.5 manual.
10519         Suggested by Bruno Haible in
10520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10521
10522 2011-02-17  Bruno Haible  <bruno@clisp.org>
10523
10524         havelib: Fix comments.
10525         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10526         change.
10527
10528 2011-02-17  Bruno Haible  <bruno@clisp.org>
10529
10530         havelib: Update config.rpath.
10531         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10532
10533 2011-02-17  Bruno Haible  <bruno@clisp.org>
10534
10535         getloadavg test: Add some plausibility checks.
10536         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10537         is improbable.
10538
10539 2011-02-16  Eric Blake  <eblake@redhat.com>
10540
10541         maintainer-makefile: make syntax-check a no-op from tarballs
10542         * top/maint.mk (no-vc-detected): New rule.
10543         (local-checks-available): Use it to avoid hanging if someone tries
10544         'make syntax-check' from a tarball.  Also append to any non-syntax
10545         checks already defined in cfg.mk.
10546
10547 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10548
10549         longlong: tune, particularly for common case of c99
10550
10551         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10552         or running anything if c99, or if unsigned long long int does not
10553         work.  In either case, we know the answer without further tests.
10554         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10555         it at most once, and use its results for both long long int and
10556         unsigned long long int.  This is more likely to be efficient in
10557         the common case where the program wants to check for both long
10558         long int and unsigned long long int.
10559         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10560         since the answer is already known.
10561
10562 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10563
10564         getloadavg: set errno
10565         * lib/getloadavg.c: Set errno when returning -1.  If no other
10566         error number looks appropriate, set it to ENOSYS if the getloadavg
10567         looks like it can't possibly ever work, ENOTSUP otherwise.
10568         Suggested by Bruno Haible in
10569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10570
10571         getloadavg: trim unused parts and speed up 'configure'
10572         * NEWS: Document this.
10573         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10574         always compiled if getloadavg is absent.
10575         Move test code to ...
10576         * tests/test-getloadavg.c: New file, containing previous
10577         contents of test from lib/getloadavg.c.  It also contains
10578         suggestions by Bruno Haible in
10579         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10580         * modules/getloadavg-tests: New file.
10581         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10582         Do tests in the same order as they're needed for getloadavg.c.
10583         Omit setgid-related tests that generate symbols KMEM_GROUP,
10584         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10585         Do only the tests that are needed to see whether the system has
10586         getloadavg, moving the other tests into ...
10587         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10588         NLIST_NAME_UNION; nobody should be using it.  Do not define
10589         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10590         relevant, as the user of this module shouldn't care how getloadavg
10591         is implemented.
10592
10593         getloadavg: omit unused var
10594         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10595
10596 2011-02-15  Jim Meyering  <meyering@redhat.com>
10597
10598         doc: update users.txt
10599         * users.txt: Update iwhd's URL.
10600
10601 2011-02-13  Bruno Haible  <bruno@clisp.org>
10602
10603         Consistent macro naming for macros that use GCC __attribute__.
10604         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10605         _ATTRIBUTE_NONNULL_.
10606         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10607         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10608         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10609         ATTRIBUTE_DEPRECATED.
10610         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10611         ATTRIBUTE_NORETURN.
10612         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10613         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10614         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10615         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10616         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10617         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10618         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10619         ATTRIBUTE_SENTINEL.
10620         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10621         ATTRIBUTE_RETURN_CHECK.
10622         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10623         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10624         ATTRIBUTE_NORETURN.
10625         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10626         Reported by Paul Eggert.
10627
10628 2011-02-13  Bruno Haible  <bruno@clisp.org>
10629
10630         Don't interfere with a program's definition of __attribute__.
10631         * lib/argp.h (__attribute__): Remove definition.
10632         (_GL_ATTRIBUTE_FORMAT): New macro.
10633         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10634         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10635         (_GL_ATTRIBUTE_FORMAT): New macro.
10636         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10637         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10638         GCC 3 or newer.
10639         * lib/error.h (__attribute__): Remove definition.
10640         (_GL_ATTRIBUTE_FORMAT): New macro.
10641         (error, error_at_line): Use it.
10642         * lib/hash.h (__attribute__): Remove definition.
10643         (ATTRIBUTE_WUR): Update definition. Define always.
10644         * lib/openat.h (__attribute__): Remove definition.
10645         (ATTRIBUTE_NORETURN): Update definition. Define always.
10646         * lib/sigpipe-die.h (__attribute__): Remove definition.
10647         (ATTRIBUTE_NORETURN): Update definition. Define always.
10648         * lib/vasnprintf.h (__attribute__): Remove definition.
10649         (_GL_ATTRIBUTE_FORMAT): New macro.
10650         (asnprintf, vasnprintf): Use it.
10651         * lib/xalloc.h (__attribute__): Remove definition.
10652         (ATTRIBUTE_NORETURN): Update definition. Define always.
10653         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10654         * lib/xmemdup0.h (__attribute__): Remove definition.
10655         (ATTRIBUTE_NORETURN): Update definition. Define always.
10656         * lib/xprintf.h (__attribute__): Remove definition.
10657         (_GL_ATTRIBUTE_FORMAT): New macro.
10658         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10659         * lib/xstrtol.h (__attribute__): Remove definition.
10660         (ATTRIBUTE_NORETURN): Update definition. Define always.
10661         * lib/xvasprintf.h (__attribute__): Remove definition.
10662         (_GL_ATTRIBUTE_FORMAT): New macro.
10663         (xasprintf, xvasprintf): Use it.
10664         * tests/test-argmatch.c (__attribute__): Remove definition.
10665         (ATTRIBUTE_NORETURN): Update definition. Define always.
10666         * tests/test-exclude.c (__attribute__): Remove definition.
10667         (ATTRIBUTE_NORETURN): Update definition. Define always.
10668         Reported by Paul Eggert.
10669
10670 2011-02-13  Bruno Haible  <bruno@clisp.org>
10671
10672         mbrtowc: Add more tests for native Windows platforms.
10673         * tests/test-mbrtowc-w32-1.sh: New file.
10674         * tests/test-mbrtowc-w32-2.sh: New file.
10675         * tests/test-mbrtowc-w32-3.sh: New file.
10676         * tests/test-mbrtowc-w32-4.sh: New file.
10677         * tests/test-mbrtowc-w32-5.sh: New file.
10678         * tests/test-mbrtowc-w32.c: New file.
10679         * modules/mbrtowc-tests (Files): Add them.
10680         (Makefile.am): Arrange to run these tests.
10681         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10682         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10683
10684 2011-02-13  Bruno Haible  <bruno@clisp.org>
10685
10686         mbrtowc: Work around native Windows bug.
10687         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10688         guess when no suitable locale for testing was found.
10689         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10690
10691 2011-02-13  Bruno Haible  <bruno@clisp.org>
10692
10693         mbsinit: Work around mingw bug.
10694         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10695         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10696         Windows.
10697         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10698
10699 2011-02-13  Bruno Haible  <bruno@clisp.org>
10700
10701         mbsinit: Don't crash for a NULL argument.
10702         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10703         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10704
10705 2011-02-13  Bruno Haible  <bruno@clisp.org>
10706
10707         Don't interfere with a program's definition of __attribute__.
10708         * lib/stdio.in.h (__attribute__): Remove definition.
10709         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10710         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10711         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10712         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10713         * lib/string.in.h (__attribute__): Remove definition.
10714         Reported by Paul Eggert.
10715
10716 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10717
10718         stdlib: don't get in the way of non-GCC __attribute__
10719         See thread starting at
10720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10721         Revert previous stdlib change, installing the following instead:
10722         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10723         to get in the way of a non-GCC compiler that supports __attribute__.
10724         (_GL_ATTRIBUTE_RETURN): New macro.
10725         (_Exit): Use it instead of __attribute__.
10726
10727 2011-02-12  Bruno Haible  <bruno@clisp.org>
10728
10729         quotearg test: Avoid test failure on mingw.
10730         * tests/test-quotearg.sh: Convert the locale identifier from native
10731         Windows syntax to Unix syntax.
10732
10733 2011-02-12  Bruno Haible  <bruno@clisp.org>
10734
10735         setlocale: Prefer gnulib's override over libintl's override.
10736         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10737         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10738         GNULIB_defined_setlocale is set.
10739
10740 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10741
10742         stdlib: support non-GCC __attribute__
10743
10744         Fix a serious and tricky problem encountered when attempting to
10745         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10746         5.5, but it crashed due to memory corruption on Solaris 10 with
10747         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10748         bits that are otherwise zero.  This tagging is optional inside
10749         Emacs but is preferred and is used when __attribute__ ((__aligned
10750         (8))) works, as it does with both recent-enough GCC and with Sun C
10751         5.11.  However, Sun C 5.11 is not GCC and does not #define
10752         __GNUC__ and __GNUC_MINOR__.
10753
10754         When I added the getloadavg module to Emacs, it brought in
10755         stdlib.in.h, which contained this fragment:
10756
10757            #ifndef __attribute__
10758            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10759            #  define __attribute__(Spec)   /* empty */
10760            # endif
10761            #endif
10762
10763         When files that include <stdlib.h> were compiled with Sun C 5.11,
10764         the above code disabled __attribute__ ((__aligned (8))), which
10765         caused variables to not be properly aligned, which eventually led
10766         to the pointer corruption mentioned above.  (This was a bit hard
10767         to diagnose, unfortunately.)
10768
10769         Several "#define __attribute__(X) /* empty */" code snippets need
10770         to be eradicated from Gnulib to work with non-GCC compilers that
10771         support __attribute__.  The Autoconf way to do this is to test for
10772         each kind of attribute that we want support for, and selectively
10773         enable that in source code.
10774
10775         Fix this problem just for stdlib.h, by adding a test for the
10776         __noreturn__ attribute, and change stdlib.in.h to use that test
10777         when needed.  This technique can be easily generalized to the
10778         other *.in.h files and attributes, and a similar technique can be
10779         used for *.h and *.c files.  This patch is enough to solve the
10780         problem for Emacs + getloadavg, and I thought I'd publish it for
10781         feedback before undertaking further, similar fixes in other
10782         modules.
10783
10784         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10785         because it's not needed for stdlib.h.  It merely substitutes the
10786         value directly into stdlib.h.  We may well need to #define it, or
10787         similar symbols, for other modules, but it's nice to also have an
10788         option to not #define it for applications like Emacs that do not
10789         need it.
10790
10791         * lib/stdlib.in.h (__attribute__): Do not #define.
10792         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10793         be defined only if the _Exit module is also used.
10794         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10796         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10797         platforms.
10798         * modules/_Exit (Files): Add m4/attribute.m4.
10799         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10800         * m4/attribute.m4: New file.
10801
10802 2011-02-12  Bruno Haible  <bruno@clisp.org>
10803
10804         wcsrtombs: Work around bug on native Windows.
10805         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10806         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10807         instead of len.
10808         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10809
10810 2011-02-12  Bruno Haible  <bruno@clisp.org>
10811
10812         mbsrtowcs: Work around bug on native Windows.
10813         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10814         against mingw bug.
10815         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10816
10817 2011-02-12  Bruno Haible  <bruno@clisp.org>
10818
10819         Avoid setlocale bugs in tests.
10820         * modules/btowc (Dependencies): Add setlocale.
10821         * modules/c-strcase (Dependencies): Likewise.
10822         * modules/mbmemcasecmp (Dependencies): Likewise.
10823         * modules/mbmemcasecoll (Dependencies): Likewise.
10824         * modules/mbrtowc (Dependencies): Likewise.
10825         * modules/mbscasecmp (Dependencies): Likewise.
10826         * modules/mbscasestr (Dependencies): Likewise.
10827         * modules/mbschr (Dependencies): Likewise.
10828         * modules/mbscspn (Dependencies): Likewise.
10829         * modules/mbsinit (Dependencies): Likewise.
10830         * modules/mbsncasecmp (Dependencies): Likewise.
10831         * modules/mbsnrtowcs (Dependencies): Likewise.
10832         * modules/mbspbrk (Dependencies): Likewise.
10833         * modules/mbspcasecmp (Dependencies): Likewise.
10834         * modules/mbsrchr (Dependencies): Likewise.
10835         * modules/mbsrtowcs (Dependencies): Likewise.
10836         * modules/mbsspn (Dependencies): Likewise.
10837         * modules/mbsstr (Dependencies): Likewise.
10838         * modules/nl_langinfo (Dependencies): Likewise.
10839         * modules/quotearg (Dependencies): Likewise.
10840         * modules/unicase/locale-language (Dependencies): Likewise.
10841         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10842         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10843         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10844         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10845         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10846         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10847         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10848         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10849         * modules/vasnprintf-posix (Dependencies): Likewise.
10850         * modules/wcrtomb (Dependencies): Likewise.
10851         * modules/wcsnrtombs (Dependencies): Likewise.
10852         * modules/wcsrtombs (Dependencies): Likewise.
10853
10854 2011-02-12  Bruno Haible  <bruno@clisp.org>
10855
10856         setlocale: Workaround native Windows bug.
10857         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10858         succeeds but sets LC_CTYPE to "C", report a failure.
10859         * tests/test-setlocale2.sh: New file.
10860         * tests/test-setlocale2.c: New file.
10861         * modules/setlocale-tests (Files): Add the new files.
10862         (Makefile.am): Enable test-setlocale2.sh test.
10863         * doc/posix-functions/setlocale.texi: Mention workaround.
10864
10865 2011-02-11  Bruno Haible  <bruno@clisp.org>
10866
10867         Tests for module 'setlocale'.
10868         * modules/setlocale-tests: New file.
10869         * tests/test-setlocale1.sh: New file.
10870         * tests/test-setlocale1.c: New file.
10871
10872         New module 'setlocale'.
10873         * lib/locale.in.h (setlocale): New declaration.
10874         * lib/setlocale.c: New file, based on
10875         gettext/gettext-runtime/intl/setlocale.c.
10876         * m4/setlocale.m4: New file.
10877         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10878         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10879         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10880         REPLACE_SETLOCALE.
10881         * modules/setlocale: New file.
10882         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10883         * doc/posix-functions/setlocale.texi: Mention the new module.
10884
10885 2011-02-11  Bruno Haible  <bruno@clisp.org>
10886
10887         Prepare for locale dependent tests on mingw.
10888         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10889         because it has the wrong locale encoding.
10890         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10891         French_France.1252 instead of "fr".
10892         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10893         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10894         because it has the wrong locale encoding.
10895         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10896         native Windows, try Turkish_Turkey.65001.
10897         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10898         Chinese_China.54936.
10899
10900         Prepare for locale dependent tests on mingw.
10901         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10902         differently.
10903         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10904         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10905         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10906         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10907
10908 2011-02-11  Eric Blake  <eblake@redhat.com>
10909
10910         strptime: avoid compiler warnings
10911         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10912         compiler warnings about dead code.
10913         Reported by Daniel P. Berrange.
10914
10915 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10916
10917         doc: update users.txt
10918         * users.txt: Add rcs.
10919
10920 2011-02-10  John W. Eaton  <jwe@gnu.org>
10921
10922         doc: update users.txt
10923         * users.txt: Add octave.
10924
10925 2011-02-10  Jim Meyering  <meyering@redhat.com>
10926
10927         doc: update users.txt
10928         * users.txt: Add iwhd.
10929
10930 2011-02-09  Bruno Haible  <bruno@clisp.org>
10931
10932         gnulib-tool: Make copyright notice adjustment more robust.
10933         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10934         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10935         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10936         License".
10937         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10938
10939 2011-02-06  Bruno Haible  <bruno@clisp.org>
10940
10941         New module 'towctrans'.
10942         * modules/towctrans: New file.
10943         * lib/wctype.in.h (towctrans): New declaration.
10944         * lib/towctrans.c: New file.
10945         * lib/towctrans-impl.h: New file.
10946         * m4/towctrans.m4: New file.
10947         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10948         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10949         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10950         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10951         * doc/posix-functions/towctrans.texi: Mention the new module.
10952
10953 2011-02-06  Bruno Haible  <bruno@clisp.org>
10954
10955         New module 'wctrans'.
10956         * modules/wctrans: New file.
10957         * lib/wctype.in.h (wctrans): New declaration.
10958         * lib/wctrans.c: New file.
10959         * lib/wctrans-impl.h: New file.
10960         * m4/wctrans.m4: New file.
10961         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10962         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10963         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10964         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10965         * doc/posix-functions/wctrans.texi: Mention the new module.
10966
10967 2011-02-06  Bruno Haible  <bruno@clisp.org>
10968
10969         New module 'iswctype'.
10970         * modules/iswctype: New file.
10971         * lib/wctype.in.h (iswctype): New declaration.
10972         * lib/iswctype.c: New file.
10973         * lib/iswctype-impl.h: New file.
10974         * m4/iswctype.m4: New file.
10975         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10976         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10977         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10978         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10979         * doc/posix-functions/iswctype.texi: Mention the new module and the
10980         HP-UX 11.00 problem.
10981
10982 2011-02-06  Bruno Haible  <bruno@clisp.org>
10983
10984         New module 'wctype'.
10985         * modules/wctype: Change to represent the wctype() substitute.
10986         * lib/wctype.in.h (wctype): New declaration.
10987         * lib/wctype.c: New file.
10988         * lib/wctype-impl.h: New file.
10989         * m4/wctype.m4: New file.
10990         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10991         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10992         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10993         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10994         * doc/posix-functions/wctype.texi: Mention the new module and the
10995         HP-UX 11.00 problem.
10996
10997 2011-02-06  Bruno Haible  <bruno@clisp.org>
10998
10999         wctype-h: Ensure wctype_t and wctrans_t are defined.
11000         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
11001         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11002         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11003         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
11004         HAVE_WCTRANS_T.
11005         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
11006
11007 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11008
11009         flock: fix license typo
11010
11011         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
11012         omitted.
11013
11014 2011-02-08  Bruno Haible  <bruno@clisp.org>
11015
11016         Split large sed scripts, for HP-UX sed.
11017         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
11018         to avoid HP-UX limit of 99 commands, in the near future.
11019         * modules/stdlib (Makefile.am): Likewise.
11020         * modules/unistd (Makefile.am): Likewise.
11021         * modules/wchar (Makefile.am): Likewise.
11022         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11023         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
11024         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
11025
11026 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11027             Bruno Haible  <bruno@clisp.org>
11028
11029         stdlib: improve random_r modularization
11030         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
11031         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
11032         you also need the random_r module to get this material right.
11033         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
11034         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
11035         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
11036
11037 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11038
11039         stdlib: don't depend on stdint
11040         * lib/stdlib.in.h: Don't include <stdint.h> merely because
11041         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
11042         be independent of whether stdint.h is needed.
11043         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
11044         here, instead of ...
11045         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
11046         struct random_data should be using the random_r module, not just
11047         the stdlib module (which wouldn't make sense: what package needs
11048         just struct random_data without also needing random_r?).
11049         * modules/stdlib (Depends-on): Remove stdint.
11050
11051         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
11052         See the thread rooted at
11053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
11054         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
11055         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
11056         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
11057         __VMS)); previously it was always included (via fcntl--.h).
11058         (getloadavg): Do not use c_strtod.  Instead, approximate it by
11059         hand; this is good enough for load averages.  Also, do not use
11060         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
11061         flags directly if available and don't bother otherwise.  (Packages
11062         that need the extra reliability should use the modules that define
11063         these flags on older platforms that lack them.)
11064         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
11065         fcntl-safer.
11066
11067 2011-02-08  Jim Meyering  <meyering@redhat.com>
11068
11069         di-set.h, ino-map.h: add multiple-inclusion guard
11070         Technically, the guard is required only for ino-map.h, due to its
11071         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
11072         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
11073         * lib/ino-map.h: Likewise.
11074
11075 2011-02-06  Bruno Haible  <bruno@clisp.org>
11076
11077         iswblank: Ensure declaration on glibc systems.
11078         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
11079         * modules/iswblank (Dependencies): Add 'extensions'.
11080         * doc/posix-functions/iswblank.texi: Document the glibc problem.
11081
11082 2011-02-06  Bruno Haible  <bruno@clisp.org>
11083
11084         New module 'iswblank'.
11085         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
11086         * modules/iswblank: New file.
11087         * modules/wctype-h (Files): Remove lib/iswblank.c.
11088         (Makefile.am): Substitute GNULIB_ISWBLANK.
11089         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
11090         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
11091         (gl_WCTYPE_H_DEFAULTS): New macro.
11092         (gl_WCTYPE_H): Require it. Remove iswblank related code.
11093         * modules/iswblank-tests: New file.
11094         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
11095         * tests/test-wctype-h.c (main): Remove iswblank tests.
11096         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
11097         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
11098         of 'wctype-h'.
11099         * NEWS: Mention the change.
11100         * modules/mbchar (Depends-on): Add iswblank.
11101
11102 2011-02-08  Bruno Haible  <bruno@clisp.org>
11103
11104         di-set tests: Refactor.
11105         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
11106         unnecessary includes.
11107         (ASSERT): Remove macro.
11108         (main): Make C90 compliant by avoiding variable declaration after
11109         statement.
11110         * modules/di-set-tests (Files): Add tests/macros.h.
11111
11112 2011-02-08  Bruno Haible  <bruno@clisp.org>
11113
11114         ino-map tests: Refactor.
11115         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
11116         unnecessary includes.
11117         (ASSERT): Remove macro.
11118         (main): Make C90 compliant by avoiding variable declaration after
11119         statement.
11120         * modules/ino-map-tests (Files): Add tests/macros.h.
11121
11122 2011-02-08  Jim Meyering  <meyering@redhat.com>
11123
11124         di-set: add "const" to a cast
11125         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
11126         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
11127
11128 2011-02-06  Bruno Haible  <bruno@clisp.org>
11129
11130         Rename module 'wctype' to 'wctype-h'.
11131         * modules/wctype-h: Renamed from modules/wctype.
11132         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
11133         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
11134         (Files, Depends-on, Makefile.am): Update.
11135         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
11136         (Files, Makefile.am): Update.
11137         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
11138         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
11139         * doc/posix-headers/wctype.texi: Update.
11140         * doc/posix-functions/iswalnum.texi: Update.
11141         * doc/posix-functions/iswalpha.texi: Update.
11142         * doc/posix-functions/iswblank.texi: Update.
11143         * doc/posix-functions/iswcntrl.texi: Update.
11144         * doc/posix-functions/iswdigit.texi: Update.
11145         * doc/posix-functions/iswgraph.texi: Update.
11146         * doc/posix-functions/iswlower.texi: Update.
11147         * doc/posix-functions/iswprint.texi: Update.
11148         * doc/posix-functions/iswpunct.texi: Update.
11149         * doc/posix-functions/iswspace.texi: Update.
11150         * doc/posix-functions/iswupper.texi: Update.
11151         * doc/posix-functions/iswxdigit.texi: Update.
11152         * doc/posix-functions/towlower.texi: Update.
11153         * doc/posix-functions/towupper.texi: Update.
11154         * NEWS: Mention the change.
11155         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
11156         * modules/mbchar (Dependencies): Likewise.
11157         * modules/mbswidth (Dependencies): Likewise.
11158         * modules/quotearg (Dependencies): Likewise.
11159         * modules/regex (Dependencies): Likewise.
11160         * modules/wcscasecmp (Dependencies): Likewise.
11161         * modules/wcsncasecmp (Dependencies): Likewise.
11162         * modules/wcwidth (Dependencies): Likewise.
11163
11164 2011-02-06  Bruno Haible  <bruno@clisp.org>
11165
11166         New module 'wcswidth'.
11167         * modules/wcswidth: New file.
11168         * lib/wchar.in.h (wcswidth): New declaration.
11169         * lib/wcswidth.c: New file.
11170         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
11171         * m4/wcswidth.m4: New file.
11172         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
11173         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
11174         REPLACE_WCSWIDTH.
11175         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
11176         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
11177         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
11178         * doc/posix-functions/wcswidth.texi: Mention the new module.
11179
11180 2011-02-06  Bruno Haible  <bruno@clisp.org>
11181
11182         New module 'wcstok'.
11183         * modules/wcstok: New file.
11184         * lib/wchar.in.h (wcstok): New declaration.
11185         * lib/wcstok.c: New file.
11186         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
11187         * m4/wcstok.m4: New file.
11188         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
11189         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
11190         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
11191         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
11192         * doc/posix-functions/wcstok.texi: Mention the new module.
11193
11194 2011-02-06  Bruno Haible  <bruno@clisp.org>
11195
11196         New module 'wcsstr'.
11197         * modules/wcsstr: New file.
11198         * lib/wchar.in.h (wcsstr): New declaration.
11199         * lib/wcsstr.c: New file.
11200         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
11201         * m4/wcsstr.m4: New file.
11202         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
11203         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11204         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
11205         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
11206         * doc/posix-functions/wcsstr.texi: Mention the new module.
11207
11208 2011-02-06  Bruno Haible  <bruno@clisp.org>
11209
11210         New module 'wcspbrk'.
11211         * modules/wcspbrk: New file.
11212         * lib/wchar.in.h (wcspbrk): New declaration.
11213         * lib/wcspbrk.c: New file.
11214         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
11215         * m4/wcspbrk.m4: New file.
11216         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
11217         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
11218         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
11219         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
11220         * doc/posix-functions/wcspbrk.texi: Mention the new module.
11221
11222 2011-02-06  Bruno Haible  <bruno@clisp.org>
11223
11224         New module 'wcsspn'.
11225         * modules/wcsspn: New file.
11226         * lib/wchar.in.h (wcsspn): New declaration.
11227         * lib/wcsspn.c: New file.
11228         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
11229         * m4/wcsspn.m4: New file.
11230         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
11231         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
11232         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
11233         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
11234         * doc/posix-functions/wcsspn.texi: Mention the new module.
11235
11236 2011-02-06  Bruno Haible  <bruno@clisp.org>
11237
11238         New module 'wcscspn'.
11239         * modules/wcscspn: New file.
11240         * lib/wchar.in.h (wcscspn): New declaration.
11241         * lib/wcscspn.c: New file.
11242         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
11243         * m4/wcscspn.m4: New file.
11244         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
11245         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
11246         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
11247         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
11248         * doc/posix-functions/wcscspn.texi: Mention the new module.
11249
11250 2011-02-06  Bruno Haible  <bruno@clisp.org>
11251
11252         New module 'wcsrchr'.
11253         * modules/wcsrchr: New file.
11254         * lib/wchar.in.h (wcsrchr): New declaration.
11255         * lib/wcsrchr.c: New file.
11256         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11257         * m4/wcsrchr.m4: New file.
11258         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11259         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11260         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11261         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11262         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11263
11264 2011-02-06  Bruno Haible  <bruno@clisp.org>
11265
11266         New module 'wcschr'.
11267         * modules/wcschr: New file.
11268         * lib/wchar.in.h (wcschr): New declaration.
11269         * lib/wcschr.c: New file.
11270         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11271         * m4/wcschr.m4: New file.
11272         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11273         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11274         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11275         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11276         * doc/posix-functions/wcschr.texi: Mention the new module.
11277
11278 2011-02-06  Bruno Haible  <bruno@clisp.org>
11279
11280         New module 'wcsdup'.
11281         * modules/wcsdup: New file.
11282         * lib/wchar.in.h (wcsdup): New declaration.
11283         * lib/wcsdup.c: New file.
11284         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11285         * m4/wcsdup.m4: New file.
11286         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11287         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11288         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11289         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11290         * doc/posix-functions/wcsdup.texi: Mention the new module.
11291
11292 2011-02-06  Bruno Haible  <bruno@clisp.org>
11293
11294         New module 'wcsxfrm'.
11295         * modules/wcsxfrm: New file.
11296         * lib/wchar.in.h (wcsxfrm): New declaration.
11297         * lib/wcsxfrm.c: New file.
11298         * lib/wcsxfrm-impl.h: New file.
11299         * m4/wcsxfrm.m4: New file.
11300         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11301         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11302         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11303         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11304         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11305
11306 2011-02-06  Bruno Haible  <bruno@clisp.org>
11307
11308         New module 'wcscoll'.
11309         * modules/wcscoll: New file.
11310         * lib/wchar.in.h (wcscoll): New declaration.
11311         * lib/wcscoll.c: New file.
11312         * lib/wcscoll-impl.h: New file.
11313         * m4/wcscoll.m4: New file.
11314         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11315         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11316         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11317         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11318         * doc/posix-functions/wcscoll.texi: Mention the new module.
11319
11320 2011-02-06  Bruno Haible  <bruno@clisp.org>
11321
11322         New module 'wcsncasecmp'.
11323         * modules/wcsncasecmp: New file.
11324         * lib/wchar.in.h (wcsncasecmp): New declaration.
11325         * lib/wcsncasecmp.c: New file.
11326         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11327         * m4/wcsncasecmp.m4: New file.
11328         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11329         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11330         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11331         HAVE_WCSNCASECMP.
11332         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11333         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11334
11335 2011-02-06  Bruno Haible  <bruno@clisp.org>
11336
11337         New module 'wcscasecmp'.
11338         * modules/wcscasecmp: New file.
11339         * lib/wchar.in.h (wcscasecmp): New declaration.
11340         * lib/wcscasecmp.c: New file.
11341         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11342         * m4/wcscasecmp.m4: New file.
11343         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11344         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11345         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11346         HAVE_WCSCASECMP.
11347         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11348         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11349
11350 2011-02-05  Bruno Haible  <bruno@clisp.org>
11351
11352         New module 'wcsncmp'.
11353         * modules/wcsncmp: New file.
11354         * lib/wchar.in.h (wcsncmp): New declaration.
11355         * lib/wcsncmp.c: New file.
11356         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11357         * m4/wcsncmp.m4: New file.
11358         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11359         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11360         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11361         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11362         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11363
11364 2011-02-05  Bruno Haible  <bruno@clisp.org>
11365
11366         New module 'wcscmp'.
11367         * modules/wcscmp: New file.
11368         * lib/wchar.in.h (wcscmp): New declaration.
11369         * lib/wcscmp.c: New file.
11370         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11371         * m4/wcscmp.m4: New file.
11372         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11373         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11374         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11375         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11376         * doc/posix-functions/wcscmp.texi: Mention the new module.
11377
11378 2011-02-05  Bruno Haible  <bruno@clisp.org>
11379
11380         New module 'wcsncat'.
11381         * modules/wcsncat: New file.
11382         * lib/wchar.in.h (wcsncat): New declaration.
11383         * lib/wcsncat.c: New file.
11384         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11385         * m4/wcsncat.m4: New file.
11386         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11387         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11388         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11389         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11390         * doc/posix-functions/wcsncat.texi: Mention the new module.
11391
11392 2011-02-05  Bruno Haible  <bruno@clisp.org>
11393
11394         New module 'wcscat'.
11395         * modules/wcscat: New file.
11396         * lib/wchar.in.h (wcscat): New declaration.
11397         * lib/wcscat.c: New file.
11398         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
11399         * m4/wcscat.m4: New file.
11400         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
11401         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
11402         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
11403         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
11404         * doc/posix-functions/wcscat.texi: Mention the new module.
11405
11406 2011-02-05  Bruno Haible  <bruno@clisp.org>
11407
11408         New module 'wcpncpy'.
11409         * modules/wcpncpy: New file.
11410         * lib/wchar.in.h (wcpncpy): New declaration.
11411         * lib/wcpncpy.c: New file.
11412         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
11413         * m4/wcpncpy.m4: New file.
11414         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
11415         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
11416         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
11417         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
11418         * doc/posix-functions/wcpncpy.texi: Mention the new module.
11419
11420 2011-02-05  Bruno Haible  <bruno@clisp.org>
11421
11422         New module 'wcsncpy'.
11423         * modules/wcsncpy: New file.
11424         * lib/wchar.in.h (wcsncpy): New declaration.
11425         * lib/wcsncpy.c: New file.
11426         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
11427         * m4/wcsncpy.m4: New file.
11428         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
11429         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
11430         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
11431         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
11432         * doc/posix-functions/wcsncpy.texi: Mention the new module.
11433
11434 2011-02-05  Bruno Haible  <bruno@clisp.org>
11435
11436         New module 'wcpcpy'.
11437         * modules/wcpcpy: New file.
11438         * lib/wchar.in.h (wcpcpy): New declaration.
11439         * lib/wcpcpy.c: New file.
11440         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
11441         * m4/wcpcpy.m4: New file.
11442         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
11443         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
11444         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
11445         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
11446         * doc/posix-functions/wcpcpy.texi: Mention the new module.
11447
11448 2011-02-05  Bruno Haible  <bruno@clisp.org>
11449
11450         New module 'wcscpy'.
11451         * modules/wcscpy: New file.
11452         * lib/wchar.in.h (wcscpy): New declaration.
11453         * lib/wcscpy.c: New file.
11454         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
11455         * m4/wcscpy.m4: New file.
11456         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
11457         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
11458         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
11459         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
11460         * doc/posix-functions/wcscpy.texi: Mention the new module.
11461
11462 2011-02-05  Bruno Haible  <bruno@clisp.org>
11463
11464         New module 'wcsnlen'.
11465         * modules/wcsnlen: New file.
11466         * lib/wchar.in.h (wcsnlen): New declaration.
11467         * lib/wcsnlen.c: New file.
11468         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
11469         * m4/wcsnlen.m4: New file.
11470         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
11471         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
11472         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
11473         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
11474         * doc/posix-functions/wcsnlen.texi: Mention the new module.
11475
11476 2011-02-05  Bruno Haible  <bruno@clisp.org>
11477
11478         New module 'wcslen'.
11479         * modules/wcslen: New file.
11480         * lib/wchar.in.h (wcslen): New declaration.
11481         * lib/wcslen.c: New file.
11482         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11483         * m4/wcslen.m4: New file.
11484         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11485         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11486         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11487         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11488         * doc/posix-functions/wcslen.texi: Mention the new module.
11489
11490 2011-02-05  Bruno Haible  <bruno@clisp.org>
11491
11492         New module 'wmemset'.
11493         * modules/wmemset: New file.
11494         * lib/wchar.in.h (wmemset): New declaration.
11495         * lib/wmemset.c: New file.
11496         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11497         * m4/wmemset.m4: New file.
11498         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11499         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11500         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11501         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11502         * doc/posix-functions/wmemset.texi: Mention the new module.
11503
11504 2011-02-05  Bruno Haible  <bruno@clisp.org>
11505
11506         New module 'wmemmove'.
11507         * modules/wmemmove: New file.
11508         * lib/wchar.in.h (wmemmove): New declaration.
11509         * lib/wmemmove.c: New file.
11510         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11511         * m4/wmemmove.m4: New file.
11512         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11513         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11514         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11515         HAVE_WMEMMOVE.
11516         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11517         * doc/posix-functions/wmemmove.texi: Mention the new module.
11518
11519 2011-02-05  Bruno Haible  <bruno@clisp.org>
11520
11521         New module 'wmemcpy'.
11522         * modules/wmemcpy: New file.
11523         * lib/wchar.in.h (wmemcpy): New declaration.
11524         * lib/wmemcpy.c: New file.
11525         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11526         * m4/wmemcpy.m4: New file.
11527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11529         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11530         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11531         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11532
11533 2011-02-05  Bruno Haible  <bruno@clisp.org>
11534
11535         New module 'wmemcmp'.
11536         * modules/wmemcmp: New file.
11537         * lib/wchar.in.h (wmemcmp): New declaration.
11538         * lib/wmemcmp.c: New file.
11539         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11540         * m4/wmemcmp.m4: New file.
11541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11543         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11544         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11545         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11546
11547 2011-02-07  Jim Meyering  <meyering@redhat.com>
11548
11549         di-set, ino-map: new modules, from coreutils
11550         * lib/di-set.c: New file.
11551         * lib/di-set.h: Likewise.
11552         * lib/ino-map.c: Likewise.
11553         * lib/ino-map.h: Likewise.
11554         * modules/di-set: Likewise.
11555         * modules/di-set-tests: Likewise.
11556         * modules/ino-map: Likewise.
11557         * modules/ino-map-tests: Likewise.
11558         * tests/test-di-set.c: Likewise.
11559         * tests/test-ino-map.c: Likewise.
11560
11561 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11562
11563         getloadavg: merge minor changes from Emacs
11564
11565         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11566         (getloadavg): Use memset, not bzero.
11567
11568         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11569         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11570         clash (bug#86).
11571
11572 2010-11-14  Bruno Haible  <bruno@clisp.org>
11573
11574         Allow multiple gnulib generated replacements to coexist.
11575         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11576         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11577         * lib/langinfo.in.h (nl_item): Likewise.
11578         * lib/math.in.h (_NaN, NAN): Likewise.
11579         * lib/netdb.in.h (struct addrinfo): Likewise.
11580         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11581         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11582         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11583         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11584         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11585         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11586         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11587         pthread_mutexattr_init, pthread_mutexattr_settype,
11588         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11589         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11590         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11591         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11592         * lib/sched.in.h (struct sched_param): Likewise.
11593         * lib/se-selinux.in.h (security_class_t, security_context_t,
11594         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11595         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11596         lsetfilecon, fsetfilecon, security_check_context,
11597         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11598         Likewise.
11599         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11600         Likewise.
11601         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11602         _gl_function_taking_int_returning_void_t, union sigval,
11603         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11604         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11605         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11606         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11607         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11608         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11609         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11610         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11611         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11612         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11613         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11614         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11615         socklen_t, rpl_fd_isset): Likewise.
11616         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11617         * lib/sys_time.in.h (struct timeval): Likewise.
11618         * lib/sys_times.in.h (struct tms): Likewise.
11619         * lib/sys_utsname.in.h (struct utsname):
11620         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11621         * lib/unistd.in.h (getpagesize): Likewise.
11622         * lib/wchar.in.h (mbstate_t): Likewise.
11623         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11624         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11625         towlower, towupper): Likewise.
11626         Reported by Sam Steingold <sds@gnu.org>.
11627
11628 2011-02-05  Eric Blake  <eblake@redhat.com>
11629
11630         unsetenv: work around Haiku issues
11631         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11632         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11633
11634 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11635
11636         libposix: avoid calling error() within libposix
11637         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11638         is defined.
11639
11640 2011-02-05  Eric Blake  <eblake@redhat.com>
11641
11642         strerror_r-posix: port to cygwin
11643         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11644         implementation.
11645         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11646         * tests/test-strerror_r.c (main): Fix test.
11647         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11648         issue.
11649
11650 2011-02-05  Bruno Haible  <bruno@clisp.org>
11651
11652         New module 'wmemchr'.
11653         * modules/wmemchr: New file.
11654         * lib/wchar.in.h (wmemchr): New declaration.
11655         * lib/wmemchr.c: New file.
11656         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11657         * m4/wmemchr.m4: New file.
11658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11660         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11661         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11662         * doc/posix-functions/wmemchr.texi: Mention the new module.
11663
11664 2011-02-04  Eric Blake  <eblake@redhat.com>
11665
11666         fdopendir: detect FreeBSD bug
11667         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11668         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11669
11670 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11671
11672         stdbool: do not define HAVE_STDBOOL_H
11673         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11674         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11675         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11676         imported from the latest Autoconf git.  It was motivated by Emacs,
11677         which uses gnulib but does not need HAVE_STDBOOL_H.
11678
11679 2011-02-04  Bruno Haible  <bruno@clisp.org>
11680
11681         wcsnrtombs: Prepare for new module wwcsnrtombs.
11682         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11683         * lib/wcsnrtombs.c: Include it.
11684         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11685
11686         wcsrtombs: Prepare for new module wwcsrtombs.
11687         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11688         * lib/wcsrtombs.c: Include it.
11689         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11690
11691         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11692         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11693         * lib/mbsnrtowcs.c: Include it.
11694         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11695
11696         mbsrtowcs: Prepare for new module mbsrtowwcs.
11697         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11698         * lib/mbsrtowcs.c: Include it.
11699         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11700
11701 2011-02-04  Bruno Haible  <bruno@clisp.org>
11702
11703         vasnprintf: Reduce use of malloc for small format strings.
11704         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11705         (arguments): Add room for the first 7 arguments.
11706         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11707         (char_directives, u8_directives, u16_directives, u32_directives): Add
11708         room for the first 7 directives.
11709         * lib/printf-parse.c: Include <string.h>.
11710         (PRINTF_PARSE): Change memory handling code so that it uses the first
11711         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11712         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11713         Reported by Pádraig Brady <P@draigbrady.com>.
11714
11715 2011-01-31  Eric Blake  <eblake@redhat.com>
11716
11717         dup2: work around Haiku bug
11718         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11719         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11720         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11721         * tests/test-dup2.c (main): Enhance test.
11722
11723 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11724
11725         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11726         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11727         declared by eglibc 2.11.2.
11728         * lib/stdio.in.h: Likewise.
11729
11730 2011-01-31  Eric Blake  <eblake@redhat.com>
11731
11732         ignore-value: add missing test dependency
11733         * tests/test-ignore-value.c: Revert previous change; stdio.h
11734         provides off_t.
11735         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11736
11737 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11738
11739         mktime: clarify long_int width checking
11740         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11741         the top level, to make it clearer that the assumption about
11742         long_int width is being checked.  See
11743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11744
11745 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11746
11747         ignore-value: Fix self-test.
11748         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11749
11750 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11751
11752         TYPE_MAXIMUM: avoid theoretically undefined behavior
11753         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11754         negative number, which the C Standard says has undefined behavior.
11755         In practice this is not a problem, but might as well do it by the book.
11756         Reported by Rich Felker and Eric Blake; see
11757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11758         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11759         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11760         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11761         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11762         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11763         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11764
11765         mktime: #undef mktime before #defining it
11766         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11767
11768         mktime: systematically normalize tm_isdst comparisons
11769         * lib/mktime.c (isdst_differ): New function.
11770         (__mktime_internal): Use it systematically for all isdst comparisons.
11771         This completes the fix for libc BZ #6723, and removes the need for
11772         normalizing tm_isdst.  See
11773         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11774         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11775
11776         mktime: fix some integer overflow issues and sidestep the rest
11777
11778         This was prompted by a bug report by Benjamin Lindner for MinGW
11779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11780         His bug is due to signed integer overflow (0 - INT_MIN), and I
11781         I scanned through mktime.c looking for other integer overflow
11782         problems, fixing all the bugs I found.
11783
11784         Although the C Standard says the resulting code is still not safe
11785         in the presence of integer overflow, in practice it should be good
11786         enough for all real-world two's-complement implementations, except
11787         for debugging environments that deliberately trap on integer
11788         overflow (e.g., gcc -ftrapv).
11789
11790         * lib/mktime.c (WRAPV): New macro.
11791         (SHR): Also check that long_int and time_t shift right in the
11792         usual way, before using the fast-but-unportable method.
11793         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11794         used.  The code already assumed two's complement, so there's
11795         no need to test for alternatives.  All uses removed.
11796         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11797         the C standard.  Problem reported by Rich Felker in
11798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11799         (twos_complement_arithmetic): Also check long_int and time_t.
11800         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11801         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11802         (__mktime_internal): Avoid integer overflow with unary subtraction
11803         in two instances where -1 - X is an adequate replacement for -X,
11804         since the calculations are approximate.
11805
11806 2011-01-29  Eric Blake  <eblake@redhat.com>
11807
11808         mktime: avoid infinite loop
11809         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11810         type; behavior is still undefined but portable to all known targets.
11811         Reported by Rich Felker.
11812
11813 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11814
11815         rename, unlink, same-inode: Relicense.
11816         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11817         * modules/unlink (License): Likewise.
11818         * modules/same-inode (License): Likewise.
11819
11820 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11821
11822         mktime: avoid problems on NetBSD 5 / i386
11823         * lib/mktime.c (long_int): New type.  This works around a problem
11824         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11825         but time_t is 64 bits, and where I expect the existing code is
11826         wrong in some cases.
11827         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11828         (ydhms_diff): Bring back the compile-time check for wide-enough
11829         year and yday.
11830
11831         mktime: fix misspelling in comment
11832         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11833         This merges all recent glibc changes of importance.
11834
11835 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11836
11837         move-if-change: cope with concurrent mv of identical file.
11838         * build-aux/move-if-change (CMPPROG): Accept environment
11839         variable as an override for `cmp'.
11840         (usage): Document CMPPROG.
11841         Adjust comparison to drop stdout.  Cope with failure of mv if
11842         the target file exists and is identical to the source, for
11843         parallel builds.
11844         Report from H.J. Lu against binutils in PR binutils/12283.
11845
11846 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11847
11848         * users.txt: Mention sharutils.
11849
11850 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11851
11852         * users.txt: Mention OATH Toolkit.
11853
11854 2011-01-27  Bruno Haible  <bruno@clisp.org>
11855
11856         Prepare for supporting FreeBSD 10.
11857         * build-aux/config.libpath: Remove handling of freebsd1*.
11858
11859 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11860
11861         Prepare for supporting FreeBSD 10.
11862         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11863         match FreeBSD 10.0.
11864
11865 2011-01-27  Bruno Haible  <bruno@clisp.org>
11866
11867         vma-iter, get-rusage-as: Add OpenBSD support.
11868         * modules/vma-iter (configure.ac): Test for mquery.
11869         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11870         * lib/vma-iter.c: Include <sys/mman.h>.
11871         (vma_iterate): Add an implementation based on mquery().
11872         * lib/resource-ext.h (get_rusage_as): Update comments.
11873         * lib/get-rusage-as.c: Likewise.
11874         * lib/get-rusage-data.c: Likewise.
11875
11876 2011-01-26  Karl Berry  <karl@gnu.org>
11877
11878         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11879         variables to make it easier to override the makeinfo program used.
11880
11881 2011-01-26  Eric Blake  <eblake@redhat.com>
11882
11883         fcntl: work around Haiku F_DUPFD bugs
11884         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11885         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11886         cloexec bit on duplication.
11887         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11888
11889 2011-01-26  Bruno Haible  <bruno@clisp.org>
11890
11891         Enable memory leak tests on AIX.
11892         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11893         * tests/test-fprintf-posix3.c (main): Likewise.
11894
11895 2011-01-26  Bruno Haible  <bruno@clisp.org>
11896
11897         Tests for module 'get-rusage-data'.
11898         * modules/get-rusage-data-tests: New file.
11899         * tests/test-get-rusage-data.c: New file.
11900
11901         New module 'get-rusage-data'.
11902         * lib/resource-ext.h (get_rusage_data): New declaration.
11903         * lib/get-rusage-data.c: New file.
11904         * modules/get-rusage-data: New file.
11905
11906 2011-01-25  Bruno Haible  <bruno@clisp.org>
11907
11908         get-rusage-as: Allow for easier testing.
11909         * lib/resource-ext.h (get_rusage_as): Add comment.
11910         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11911         (main): New function for interactive testing.
11912
11913 2011-01-25  Bruno Haible  <bruno@clisp.org>
11914
11915         vma-iter: Treat Haiku like BeOS.
11916         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11917         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11918
11919 2011-01-25  Eric Blake  <eblake@redhat.com>
11920
11921         c-stack: fix regression on cygwin when libsigsegv is present
11922         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11923
11924 2011-01-24  Bruno Haible  <bruno@clisp.org>
11925
11926         vma-iter: Avoid empty intervals.
11927         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11928         on an empty interval.
11929
11930 2011-01-24  Jim Meyering  <meyering@redhat.com>
11931
11932         u64: remove unnecessary #include
11933         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11934
11935 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11936
11937         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11938         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11939
11940 2011-01-23  Bruno Haible  <bruno@clisp.org>
11941
11942         New module 'vma-iter'.
11943         * lib/vma-iter.h: New file.
11944         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11945         * modules/vma-iter: New file.
11946         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11947         for get_rusage_as_via_iterator.
11948         (vma_iterate_callback): New function.
11949         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11950         * modules/get-rusage-as (Depends-on): Add vma-iter.
11951
11952 2011-01-23  Bruno Haible  <bruno@clisp.org>
11953
11954         uninorm: Tweak includes.
11955         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11956         Reported by Jim Meyering.
11957
11958 2011-01-23  Bruno Haible  <bruno@clisp.org>
11959
11960         get-rusage-as: Improve on NetBSD.
11961         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11962         /proc, like on FreeBSD.
11963
11964 2011-01-23  Jim Meyering  <meyering@redhat.com>
11965
11966         xreadlink.h: remove unnecessary #include
11967         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11968
11969         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11970         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11971
11972 2011-01-23  Bruno Haible  <bruno@clisp.org>
11973
11974         get-rusage-as: Fix bug.
11975         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11976         original limit when aborting the first loop.
11977
11978 2011-01-23  Bruno Haible  <bruno@clisp.org>
11979
11980         wctype: Ensure valid C syntax.
11981         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11982         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11983
11984 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11985
11986         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11987         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11988         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11989         as they are needed only for configure's test case.
11990         This removes two unnecessary symbols from config.h.
11991
11992         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11993         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11994         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11995         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11996         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11997         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11998         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11999         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12000         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12001         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12002         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12003         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12004         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12005         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12006         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12007         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12008         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12009         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12010
12011 2011-01-21  Eric Blake  <eblake@redhat.com>
12012
12013         maintainer-makefile: work with older git for submodule check
12014         * top/maint.mk (public-submodule-commit): Rewrite to avoid
12015         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
12016         Reported by Matthias Bolte.
12017
12018         bootstrap: minor portability fixes
12019         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
12020         (usage): Omit leading capital and trailing . on help phrases, per
12021         GNU Coding Standards.
12022         (check_versions, top level): Prefix messages with script name.
12023
12024 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
12025
12026         bootstrap: support --no-git option
12027         * build-aux/bootstrap: Add --no-git option, to be used when
12028         --gnulib-srcdir points to the exact desired checkout.
12029
12030 2011-01-21  Eric Blake  <eblake@redhat.com>
12031
12032         strerror_r-posix: work with glibc 2.13
12033         * lib/strerror_r.c (strerror_r): Fix return type.
12034
12035 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12036             Bruno Haible  <bruno@clisp.org>
12037
12038         uN_strstr: New unit tests.
12039         * modules/unistr/u8-strstr-tests: New file.
12040         * modules/unistr/u16-strstr-tests: New file.
12041         * modules/unistr/u32-strstr-tests: New file.
12042         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
12043         * tests/unistr/test-u8-strstr.c: New file.
12044         * tests/unistr/test-u16-strstr.c: New file.
12045         * tests/unistr/test-u32-strstr.c: New file.
12046
12047 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12048             Bruno Haible  <bruno@clisp.org>
12049
12050         Make uN_strstr functions O(n) worst-case.
12051         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
12052         16-bit and 32-bit unit cases, use the unibyte algorithm from
12053         lib/mbsstr.c.
12054         * lib/unistr/u8-strstr.c: Include <string.h>.
12055         (UNIT_IS_UINT8_T): New macro.
12056         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
12057         (U_STRLEN, U_STRNLEN): New macros.
12058         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
12059         (U_STRLEN, U_STRNLEN): New macros.
12060         * modules/unistr/u8-strstr (Depends-on): Add strstr.
12061         (configure.ac): Update required libunistring version.
12062         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
12063         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
12064         malloca.
12065         (configure.ac): Update required libunistring version.
12066         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
12067         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
12068         malloca.
12069         (configure.ac): Update required libunistring version.
12070
12071 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12072             Bruno Haible  <bruno@clisp.org>
12073
12074         Prepare for faster uN_strstr functions.
12075         * lib/str-kmp.h: Support definable UNITs.
12076         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
12077         needle_len argument.
12078         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
12079         * lib/mbscasestr.c (mbscasestr): Likewise.
12080
12081 2011-01-21  Pádraig Brady <P@draigBrady.com>
12082
12083         malloca-tests: make faster by unsetting MALLOC_PERTURB_
12084         * tests/test-malloca.c (main): Unset the environment variable
12085         to greatly speed up the test.
12086         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
12087         * modules/malloca-tests: Depend on unsetenv.
12088
12089 2011-01-21  Pádraig Brady <P@draigBrady.com>
12090
12091         ignore-value: remove stdint dependency
12092         * lib/ignore-value.h: Remove <stdint.h>
12093         * modules/ignore-value: Remove stdint dependency.
12094
12095 2011-01-21  Jim Meyering  <meyering@redhat.com>
12096
12097         maint.mk: adjust variable name to be consistent with other gl_ vars
12098         * top/maint.mk (gl_public_submodule_commit): Rename the variable
12099         to be lower case.
12100
12101 2011-01-20  Jim Meyering  <meyering@redhat.com>
12102
12103         maint.mk: make "check" depend on public-submodule-commit by default
12104         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
12105
12106 2011-01-20  Bruno Haible  <bruno@clisp.org>
12107
12108         mbfile, mbiter: Complete change from 2008-12-21.
12109         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
12110         * m4/mbiter.m4 (gl_MBITER): Likewise.
12111
12112 2011-01-20  Jim Meyering  <meyering@redhat.com>
12113
12114         init.sh: insert space between each function name and "()"
12115         * tests/init.sh: Make it a little easier to see that a function's
12116         name is "warn_", and not "warn" when looking at the first part of
12117         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
12118
12119 2011-01-20  Jim Meyering  <meyering@redhat.com>
12120
12121         mountlist: clean up code formatting
12122         * lib/mountlist.c (read_file_system_list): Split a long line,
12123         correct bracing style, use NULL in place of "(struct statfs *)0",
12124         don't parenthesize return value, add spaces around "=" and after
12125         ";-in-for-stmt".
12126
12127 2011-01-14  Markus Duft <mduft@gentoo.org>
12128
12129         mountlist: add support for Interix
12130         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
12131         Apply statvfs to all entries of /dev/fs.
12132         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
12133         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
12134
12135 2011-01-20  Jim Meyering  <meyering@redhat.com>
12136
12137         maint.mk: improve the public-submodule-commit rule
12138         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
12139         to suppress printing of its commands... unless V=1.
12140         Add git submodule's --quiet option to suppress printing of e.g.,
12141         "Entering gnulib" output.
12142         "cd" into $(srcdir) before running git submodule.
12143
12144 2011-01-20  Bruno Haible  <bruno@clisp.org>
12145
12146         include_next: Fix bug introduced on 2011-01-18.
12147         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
12148         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
12149         ac_cv_header_... variable if the second argument is not 'check'.
12150         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
12151         gl_NEXT_HEADERS_INTERNAL.
12152
12153 2011-01-20  Bruno Haible  <bruno@clisp.org>
12154
12155         Allow the user to avoid the GNULIB_TEST_* macros.
12156         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
12157         Suggested by Paul Eggert.
12158
12159 2011-01-14  Jim Meyering  <meyering@redhat.com>
12160
12161         bootstrap: avoid failure when there is no .gitmodules file
12162         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
12163         has been assigned to, even when its value is the empty string.
12164         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
12165         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
12166         Reported by John W. Eaton <jwe@gnu.org>.
12167
12168 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12169
12170         assume <ctype.h>, ..., <time.h> exist
12171         For years gnulib has been assuming the existence of the headers
12172         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
12173         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
12174         them, since they don't appear to be needed.
12175         * README (Portability guidelines): Document this.
12176         * lib/flock.c: Assume <fcntl.h> exists.
12177         * lib/regex_internal.h: Assume <locale.h> exists.
12178         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
12179         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
12180         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
12181         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
12182         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
12183         * m4/regex.m4 (gl_REGEX): Likewise.
12184         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
12185         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
12186         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
12187         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
12188         * tests/test-argp.c: Likewise.
12189         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
12190
12191         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
12192         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
12193         AA_APPLE_UNIVERSAL_BUILD.  See
12194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
12195         * NEWS: Document this.
12196
12197 2011-01-19  Eric Blake  <eblake@redhat.com>
12198
12199         c-stack: assume stack overflow if SA_SIGINFO unsupported
12200         * lib/c-stack.c (SIGACTION_WORKS): Rename...
12201         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
12202         sigaction will work.
12203         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
12204         behavior match Linux.
12205         * tests/test-c-stack.c (main): Prefer NULL for pointers.
12206
12207         stdbool-tests: accomodate Haiku
12208         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
12209
12210         binary-io: fix O_TEXT on Haiku
12211         * modules/binary-io (Depends-on): Add fcntl-h.
12212         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
12213         than blindly undefining O_TEXT.
12214         Reported by Scott McCreary.
12215
12216 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12217
12218         include_next: do not check for standard headers like stddef.h
12219
12220         I found this problem when modifying Emacs to use gnulib.
12221         I noticed that it added HAVE_STDDEF_H to config.h, even though
12222         gnulib always assumes <stddef.h> exists as per README and this
12223         symbol is unnecessary.
12224         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
12225         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
12226         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12227         faster for headers like stddef.h that are known to exist.
12228         (gl_CHECK_NEXT_HEADERS): Use it.
12229         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
12230         rather than gl_CHECK_NEXT_HEADERS.
12231         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
12232         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
12233
12234 2011-01-18  Eric Blake  <eblake@redhat.com>
12235
12236         ansi-c++-opt: skip C++ dependency style if C++ is unused
12237         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
12238         tests when we know C++ compilation is not desired.
12239         Reported by Scott McCreary.
12240
12241 2011-01-18  Bruno Haible  <bruno@clisp.org>
12242
12243         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
12244         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
12245         (main): Perform test also when getrlimit and setrlimit don't exist or
12246         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
12247         limiting the address space size using setrlimit, compare the address
12248         space size before and after the the test.
12249         * tests/test-dprintf-posix2.c: Likewise.
12250         * tests/test-fprintf-posix3.sh: Update skip messages.
12251         * tests/test-dprintf-posix2.sh: Likewise.
12252         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12253         * modules/dprintf-posix-tests (Depends-on): Likewise.
12254         Reported by Bruce Korb <bkorb@gnu.org> and
12255         Gary V. Vaughan <gary@gnu.org>.
12256
12257 2011-01-18  Bruno Haible  <bruno@clisp.org>
12258
12259         get-rusage-as: Improvement for Cygwin.
12260         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12261         areas that are merely reserved.
12262
12263 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12264
12265         strftime: remove dependencies on multibyte modules
12266
12267         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12268         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12269         only if __osf__ is defined, and I suspect OSF doesn't need these
12270         other modules.  If my guess is wrong, we'll need to come up with a
12271         variant of strftime that doesn't need the multibyte modules.
12272
12273         I discovered this problem when attempting modify Emacs to use the
12274         strftime module.  With the previous gnulib, this caused Emacs to
12275         need 31 new files, ranging from lib/config.charset to
12276         m4/wint_t.m4.  This was overkill and I expect would be offputting
12277         to the Emacs maintainers.  After this change, only 6 new files are
12278         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12279         stdbool.m4, and tm_gmtoff.m4.
12280
12281         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12282         Suggested by Bruno Haible in
12283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12284         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12285         and do not check for wchar.h.
12286         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12287         (Depends-on): Remove mbrlen, mbsinit, wchar.
12288
12289 2011-01-18  Bruno Haible  <bruno@clisp.org>
12290
12291         Tests for module 'get-rusage-as'.
12292         * modules/get-rusage-as-tests: New file.
12293         * tests/test-get-rusage-as.c: New file.
12294
12295         New module 'get-rusage-as'.
12296         * modules/get-rusage-as: New file.
12297         * lib/resource-ext.h: New file.
12298         * lib/get-rusage-as.c: New file.
12299
12300 2011-01-17  Eric Blake  <eblake@redhat.com>
12301
12302         sigaction: relax license from LGPLv3+ to LGPLv2+
12303         * modules/sigaction (License): Relax to LGPLv2+.
12304
12305 2011-01-14  Bruno Haible  <bruno@clisp.org>
12306
12307         filemode: Make function declarations usable in C++ mode.
12308         * lib/filemode.h: Enclose function declarations in extern "C" block.
12309         Reported by John W. Eaton <jwe@gnu.org>.
12310
12311 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12312
12313         save-cwd: no longer include "xgetcwd.h"
12314         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12315         This avoids a compilation failure in projects that use save-cwd
12316         without also using the xgetcwd module.
12317
12318 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12319
12320         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12321         This is so that a program like Emacs, which needs only dtoastr,
12322         does not have to bother with distributing and compiling ftoastr
12323         and ldtoastr.
12324         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12325         * modules/dtoastr, modules/ldtoastr: New files.
12326         * modules/ftoastr: Now works just for 'float'.
12327         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12328         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12329         dtoastr.c, ldtoastr.c.
12330
12331 2011-01-11  Jim Meyering  <meyering@redhat.com>
12332
12333         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12334         There is no need to work around the lack of the fchdir function,
12335         since gnulib can now provide a replacement when required.
12336         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12337         * modules/save-cwd (Depends-on): Add fchdir.
12338
12339 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12340
12341         openat, save-cwd: avoid xmalloc
12342
12343         This removes a direct (but undocumented) dependency of openat on
12344         xalloc, along with an indirect dependency via save-cwd.  It also
12345         removes a dependency of save-cwd on xgetcwd, and thereby
12346         indirectly on xalloc.  This change causes the openat substitute
12347         to fall back on save_cwd when memory is tight, and for save_cwd to
12348         fail instead of dying when memory is tight, but that's good enough.
12349         Problem and initial idea for fix reported by Bastien Roucaries in
12350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12351
12352         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12353         xalloc.h (for xmalloc).
12354         (openat_proc_name): Use malloc, not xmalloc.
12355         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12356         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12357
12358         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12359         This avoids heap allocation for file names whose lengths are in
12360         the range 512..1023, with the upper bound increasing to at most
12361         4031 depending on the platform's PATH_MAX.  (We do not want
12362         pathmax.h here as it might supply a non-constant PATH_MAX.)
12363         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12364         Perhaps they should be moved to malloca.h?
12365         (OPENAT_BUFFER_SIZE): Use them.
12366
12367 2011-01-10  Bruno Haible  <bruno@clisp.org>
12368
12369         doc: Update users.txt.
12370         * users.txt: Add recutils.
12371
12372 2011-01-09  Karl Berry  <karl@gnu.org>
12373
12374         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12375
12376         * doc/configmake.texi: New file.
12377         * doc/gnulib.texi: Include it.
12378         * modules/configmake: Move documentation from here.
12379
12380 2011-01-09  Bruno Haible  <bruno@clisp.org>
12381
12382         Update to Unicode 6.0.0.
12383         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12384         (get_lbp): Update for Unicode 6.0.0.
12385         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12386         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12387         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12388         U+11001, U+11038..U+11046. Remove U+06DE.
12389         (uc_width): Fix bounds of planes.
12390         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12391         lib/uniwidth/width.c.
12392         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12393         trailing whitespace removed.
12394         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12395         without comments, but with the original copyright notice.
12396         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
12397         * lib/unicase/ignorable.h: Likewise.
12398         * lib/unicase/tocasefold.h: Likewise.
12399         * lib/unicase/tolower.h: Likewise.
12400         * lib/unicase/totitle.h: Likewise.
12401         * lib/unicase/toupper.h: Likewise.
12402         * lib/unictype/bidi_of.h: Likewise.
12403         * lib/unictype/blocks.h: Likewise.
12404         * lib/unictype/categ_C.h: Likewise.
12405         * lib/unictype/categ_Cn.h: Likewise.
12406         * lib/unictype/categ_L.h: Likewise.
12407         * lib/unictype/categ_Ll.h: Likewise.
12408         * lib/unictype/categ_Lm.h: Likewise.
12409         * lib/unictype/categ_Lo.h: Likewise.
12410         * lib/unictype/categ_Lu.h: Likewise.
12411         * lib/unictype/categ_M.h: Likewise.
12412         * lib/unictype/categ_Mc.h: Likewise.
12413         * lib/unictype/categ_Me.h: Likewise.
12414         * lib/unictype/categ_Mn.h: Likewise.
12415         * lib/unictype/categ_N.h: Likewise.
12416         * lib/unictype/categ_Nd.h: Likewise.
12417         * lib/unictype/categ_No.h: Likewise.
12418         * lib/unictype/categ_P.h: Likewise.
12419         * lib/unictype/categ_Po.h: Likewise.
12420         * lib/unictype/categ_S.h: Likewise.
12421         * lib/unictype/categ_Sc.h: Likewise.
12422         * lib/unictype/categ_Sk.h: Likewise.
12423         * lib/unictype/categ_Sm.h: Likewise.
12424         * lib/unictype/categ_So.h: Likewise.
12425         * lib/unictype/categ_of.h: Likewise.
12426         * lib/unictype/combining.h: Likewise.
12427         * lib/unictype/ctype_alnum.h: Likewise.
12428         * lib/unictype/ctype_alpha.h: Likewise.
12429         * lib/unictype/ctype_graph.h: Likewise.
12430         * lib/unictype/ctype_lower.h: Likewise.
12431         * lib/unictype/ctype_print.h: Likewise.
12432         * lib/unictype/ctype_punct.h: Likewise.
12433         * lib/unictype/ctype_upper.h: Likewise.
12434         * lib/unictype/decdigit.h: Likewise.
12435         * lib/unictype/digit.h: Likewise.
12436         * lib/unictype/numeric.h: Likewise.
12437         * lib/unictype/pr_alphabetic.h: Likewise.
12438         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12439         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12440         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12441         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12442         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12443         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12444         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12445         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12446         * lib/unictype/pr_case_ignorable.h: Likewise.
12447         * lib/unictype/pr_cased.h: Likewise.
12448         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
12449         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
12450         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
12451         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
12452         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
12453         * lib/unictype/pr_combining.h: Likewise.
12454         * lib/unictype/pr_composite.h: Likewise.
12455         * lib/unictype/pr_currency_symbol.h: Likewise.
12456         * lib/unictype/pr_decimal_digit.h: Likewise.
12457         * lib/unictype/pr_deprecated.h: Likewise.
12458         * lib/unictype/pr_format_control.h: Likewise.
12459         * lib/unictype/pr_grapheme_base.h: Likewise.
12460         * lib/unictype/pr_grapheme_extend.h: Likewise.
12461         * lib/unictype/pr_grapheme_link.h: Likewise.
12462         * lib/unictype/pr_id_continue.h: Likewise.
12463         * lib/unictype/pr_id_start.h: Likewise.
12464         * lib/unictype/pr_ideographic.h: Likewise.
12465         * lib/unictype/pr_lowercase.h: Likewise.
12466         * lib/unictype/pr_math.h: Likewise.
12467         * lib/unictype/pr_numeric.h: Likewise.
12468         * lib/unictype/pr_other_alphabetic.h: Likewise.
12469         * lib/unictype/pr_other_id_continue.h: Likewise.
12470         * lib/unictype/pr_other_math.h: Likewise.
12471         * lib/unictype/pr_punctuation.h: Likewise.
12472         * lib/unictype/pr_sentence_terminal.h: Likewise.
12473         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12474         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12475         * lib/unictype/pr_unified_ideograph.h: Likewise.
12476         * lib/unictype/pr_uppercase.h: Likewise.
12477         * lib/unictype/pr_xid_continue.h: Likewise.
12478         * lib/unictype/pr_xid_start.h: Likewise.
12479         * lib/unictype/scripts.h: Likewise.
12480         * lib/unictype/scripts_byname.gperf: Likewise.
12481         * lib/unictype/sy_java_ident.h: Likewise.
12482         * lib/unigbrk/gbrkprop.h: Likewise.
12483         * lib/unilbrk/lbrkprop1.h: Likewise.
12484         * lib/unilbrk/lbrkprop2.h: Likewise.
12485         * lib/uninorm/decomposition-table2.h: Likewise.
12486         * lib/uniwbrk/wbrkprop.h: Likewise.
12487         * tests/unicase/test-cased.c: Likewise.
12488         * tests/unicase/test-ignorable.c: Likewise.
12489         * tests/unicase/test-uc_tolower.c: Likewise.
12490         * tests/unicase/test-uc_totitle.c: Likewise.
12491         * tests/unicase/test-uc_toupper.c: Likewise.
12492         * tests/unictype/test-categ_C.c: Likewise.
12493         * tests/unictype/test-categ_Cn.c: Likewise.
12494         * tests/unictype/test-categ_L.c: Likewise.
12495         * tests/unictype/test-categ_Ll.c: Likewise.
12496         * tests/unictype/test-categ_Lm.c: Likewise.
12497         * tests/unictype/test-categ_Lo.c: Likewise.
12498         * tests/unictype/test-categ_Lu.c: Likewise.
12499         * tests/unictype/test-categ_M.c: Likewise.
12500         * tests/unictype/test-categ_Mc.c: Likewise.
12501         * tests/unictype/test-categ_Me.c: Likewise.
12502         * tests/unictype/test-categ_Mn.c: Likewise.
12503         * tests/unictype/test-categ_N.c: Likewise.
12504         * tests/unictype/test-categ_Nd.c: Likewise.
12505         * tests/unictype/test-categ_No.c: Likewise.
12506         * tests/unictype/test-categ_P.c: Likewise.
12507         * tests/unictype/test-categ_Po.c: Likewise.
12508         * tests/unictype/test-categ_S.c: Likewise.
12509         * tests/unictype/test-categ_Sc.c: Likewise.
12510         * tests/unictype/test-categ_Sk.c: Likewise.
12511         * tests/unictype/test-categ_Sm.c: Likewise.
12512         * tests/unictype/test-categ_So.c: Likewise.
12513         * tests/unictype/test-ctype_alnum.c: Likewise.
12514         * tests/unictype/test-ctype_alpha.c: Likewise.
12515         * tests/unictype/test-ctype_graph.c: Likewise.
12516         * tests/unictype/test-ctype_lower.c: Likewise.
12517         * tests/unictype/test-ctype_print.c: Likewise.
12518         * tests/unictype/test-ctype_punct.c: Likewise.
12519         * tests/unictype/test-ctype_upper.c: Likewise.
12520         * tests/unictype/test-decdigit.h: Likewise.
12521         * tests/unictype/test-digit.h: Likewise.
12522         * tests/unictype/test-numeric.h: Likewise.
12523         * tests/unictype/test-pr_alphabetic.c: Likewise.
12524         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12525         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12526         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12527         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12528         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12529         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12530         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12531         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12532         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12533         * tests/unictype/test-pr_cased.c: Likewise.
12534         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12535         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12536         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12537         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12538         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12539         * tests/unictype/test-pr_combining.c: Likewise.
12540         * tests/unictype/test-pr_composite.c: Likewise.
12541         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12542         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12543         * tests/unictype/test-pr_deprecated.c: Likewise.
12544         * tests/unictype/test-pr_format_control.c: Likewise.
12545         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12546         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12547         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12548         * tests/unictype/test-pr_id_continue.c: Likewise.
12549         * tests/unictype/test-pr_id_start.c: Likewise.
12550         * tests/unictype/test-pr_ideographic.c: Likewise.
12551         * tests/unictype/test-pr_lowercase.c: Likewise.
12552         * tests/unictype/test-pr_math.c: Likewise.
12553         * tests/unictype/test-pr_numeric.c: Likewise.
12554         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12555         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12556         * tests/unictype/test-pr_other_math.c: Likewise.
12557         * tests/unictype/test-pr_punctuation.c: Likewise.
12558         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12559         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12560         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12561         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12562         * tests/unictype/test-pr_uppercase.c: Likewise.
12563         * tests/unictype/test-pr_xid_continue.c: Likewise.
12564         * tests/unictype/test-pr_xid_start.c: Likewise.
12565         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12566         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12567         changes.
12568         * lib/unictype/categ_Cc.h: Likewise.
12569         * lib/unictype/categ_Cf.h: Likewise.
12570         * lib/unictype/categ_Co.h: Likewise.
12571         * lib/unictype/categ_Cs.h: Likewise.
12572         * lib/unictype/categ_Lt.h: Likewise.
12573         * lib/unictype/categ_Nl.h: Likewise.
12574         * lib/unictype/categ_Pc.h: Likewise.
12575         * lib/unictype/categ_Pd.h: Likewise.
12576         * lib/unictype/categ_Pe.h: Likewise.
12577         * lib/unictype/categ_Pf.h: Likewise.
12578         * lib/unictype/categ_Pi.h: Likewise.
12579         * lib/unictype/categ_Ps.h: Likewise.
12580         * lib/unictype/categ_Z.h: Likewise.
12581         * lib/unictype/categ_Zl.h: Likewise.
12582         * lib/unictype/categ_Zp.h: Likewise.
12583         * lib/unictype/categ_Zs.h: Likewise.
12584         * lib/unictype/ctype_blank.h: Likewise.
12585         * lib/unictype/ctype_cntrl.h: Likewise.
12586         * lib/unictype/ctype_digit.h: Likewise.
12587         * lib/unictype/ctype_space.h: Likewise.
12588         * lib/unictype/ctype_xdigit.h: Likewise.
12589         * lib/unictype/mirror.h: Likewise.
12590         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12591         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12592         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12593         * lib/unictype/pr_bidi_control.h: Likewise.
12594         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12595         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12596         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12597         * lib/unictype/pr_bidi_pdf.h: Likewise.
12598         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12599         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12600         * lib/unictype/pr_dash.h: Likewise.
12601         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12602         * lib/unictype/pr_diacritic.h: Likewise.
12603         * lib/unictype/pr_extender.h: Likewise.
12604         * lib/unictype/pr_hex_digit.h: Likewise.
12605         * lib/unictype/pr_hyphen.h: Likewise.
12606         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12607         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12608         * lib/unictype/pr_ignorable_control.h: Likewise.
12609         * lib/unictype/pr_iso_control.h: Likewise.
12610         * lib/unictype/pr_join_control.h: Likewise.
12611         * lib/unictype/pr_left_of_pair.h: Likewise.
12612         * lib/unictype/pr_line_separator.h: Likewise.
12613         * lib/unictype/pr_logical_order_exception.h: Likewise.
12614         * lib/unictype/pr_non_break.h: Likewise.
12615         * lib/unictype/pr_not_a_character.h: Likewise.
12616         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12617         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12618         * lib/unictype/pr_other_id_start.h: Likewise.
12619         * lib/unictype/pr_other_lowercase.h: Likewise.
12620         * lib/unictype/pr_other_uppercase.h: Likewise.
12621         * lib/unictype/pr_paired_punctuation.h: Likewise.
12622         * lib/unictype/pr_paragraph_separator.h: Likewise.
12623         * lib/unictype/pr_pattern_syntax.h: Likewise.
12624         * lib/unictype/pr_pattern_white_space.h: Likewise.
12625         * lib/unictype/pr_private_use.h: Likewise.
12626         * lib/unictype/pr_quotation_mark.h: Likewise.
12627         * lib/unictype/pr_radical.h: Likewise.
12628         * lib/unictype/pr_soft_dotted.h: Likewise.
12629         * lib/unictype/pr_space.h: Likewise.
12630         * lib/unictype/pr_titlecase.h: Likewise.
12631         * lib/unictype/pr_variation_selector.h: Likewise.
12632         * lib/unictype/pr_white_space.h: Likewise.
12633         * lib/unictype/pr_zero_width.h: Likewise.
12634         * lib/unictype/sy_c_ident.h: Likewise.
12635         * lib/unictype/sy_c_whitespace.h: Likewise.
12636         * lib/unictype/sy_java_whitespace.h: Likewise.
12637         * lib/uninorm/composition-table.gperf: Likewise.
12638         * lib/uninorm/decomposition-table1.h: Likewise.
12639         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12640         LB8.
12641         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12642         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12643         * modules/unictype/*: Bump version number of expected libunistring
12644         version.
12645
12646 2011-01-09  Bruno Haible  <bruno@clisp.org>
12647
12648         Update to Unicode 5.2.0.
12649         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12650         trailing whitespace removed.
12651
12652 2011-01-09  Bruno Haible  <bruno@clisp.org>
12653
12654         New Unicode character properties, from Unicode 5.2.0.
12655         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12656         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12657         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12658         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12659         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12660         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12661         uc_is_property_cased, uc_is_property_case_ignorable,
12662         uc_is_property_changes_when_lowercased,
12663         uc_is_property_changes_when_uppercased,
12664         uc_is_property_changes_when_titlecased,
12665         uc_is_property_changes_when_casefolded,
12666         uc_is_property_changes_when_casemapped): New declarations.
12667         * lib/unictype/pr_byname.gperf: Add the new properties.
12668         * modules/unictype/property-byname (Depends-on): Depend on the new
12669         properties modules.
12670         * modules/unictype/property-all (Depends-on): Likewise.
12671         * MODULES.html.sh (Unicode string functions): Add
12672         unictype/property-case-ignorable, unictype/property-cased,
12673         unictype/property-changes-when-casefolded,
12674         unictype/property-changes-when-casemapped,
12675         unictype/property-changes-when-lowercased,
12676         unictype/property-changes-when-titlecased,
12677         unictype/property-changes-when-uppercased.
12678
12679         New module 'unictype/property-changes-when-casemapped'.
12680         * modules/unictype/property-changes-when-casemapped: New file.
12681         * lib/unictype/pr_changes_when_casemapped.c: New file.
12682         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12683         generated by gen-uni-tables.
12684         * modules/unictype/property-changes-when-casemapped-tests: New file.
12685         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12686         automatically generated by gen-uni-tables.
12687
12688         New module 'unictype/property-changes-when-casefolded'.
12689         * modules/unictype/property-changes-when-casefolded: New file.
12690         * lib/unictype/pr_changes_when_casefolded.c: New file.
12691         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12692         generated by gen-uni-tables.
12693         * modules/unictype/property-changes-when-casefolded-tests: New file.
12694         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12695         automatically generated by gen-uni-tables.
12696
12697         New module 'unictype/property-changes-when-titlecased'.
12698         * modules/unictype/property-changes-when-titlecased: New file.
12699         * lib/unictype/pr_changes_when_titlecased.c: New file.
12700         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12701         generated by gen-uni-tables.
12702         * modules/unictype/property-changes-when-titlecased-tests: New file.
12703         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12704         automatically generated by gen-uni-tables.
12705
12706         New module 'unictype/property-changes-when-uppercased'.
12707         * modules/unictype/property-changes-when-uppercased: New file.
12708         * lib/unictype/pr_changes_when_uppercased.c: New file.
12709         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12710         generated by gen-uni-tables.
12711         * modules/unictype/property-changes-when-uppercased-tests: New file.
12712         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12713         automatically generated by gen-uni-tables.
12714
12715         New module 'unictype/property-changes-when-lowercased'.
12716         * modules/unictype/property-changes-when-lowercased: New file.
12717         * lib/unictype/pr_changes_when_lowercased.c: New file.
12718         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12719         generated by gen-uni-tables.
12720         * modules/unictype/property-changes-when-lowercased-tests: New file.
12721         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12722         automatically generated by gen-uni-tables.
12723
12724         New module 'unictype/property-case-ignorable'.
12725         * modules/unictype/property-case-ignorable: New file.
12726         * lib/unictype/pr_case_ignorable.c: New file.
12727         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12728         by gen-uni-tables.
12729         * modules/unictype/property-case-ignorable-tests: New file.
12730         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12731         generated by gen-uni-tables.
12732
12733         New module 'unictype/property-cased'.
12734         * modules/unictype/property-cased: New file.
12735         * lib/unictype/pr_cased.c: New file.
12736         * lib/unictype/pr_cased.h: New file, automatically generated by
12737         gen-uni-tables.
12738         * modules/unictype/property-cased-tests: New file.
12739         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12740         gen-uni-tables.
12741
12742 2011-01-09  Bruno Haible  <bruno@clisp.org>
12743
12744         Update to Unicode 5.2.0.
12745         * lib/gen-uni-tables.c (output_predicate, output_category,
12746         output_combclass, output_bidi_category, output_decimal_digit_test,
12747         output_decimal_digit, output_digit_test, output_digit,
12748         output_numeric_test, output_numeric, output_mirror, output_scripts,
12749         output_scripts_byname, output_blocks, output_ident_category): Fix
12750         comment header.
12751         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12752         get_wbp.
12753         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12754         items.
12755         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12756         Changes_When_Lowercased, Changes_When_Uppercased,
12757         Changes_When_Titlecased, Changes_When_Casefolded,
12758         Changes_When_Casemapped.
12759         (is_property_alphabetic, is_property_default_ignorable_code_point):
12760         Update for Unicode 5.2.0.
12761         (is_property_cased, is_property_case_ignorable,
12762         is_property_changes_when_lowercased,
12763         is_property_changes_when_uppercased,
12764         is_property_changes_when_titlecased,
12765         is_property_changes_when_casefolded,
12766         is_property_changes_when_casemapped): New functions.
12767         (output_properties): Output also the properties cased, case_ignorable,
12768         changes_when_lowercased, changes_when_uppercased,
12769         changes_when_titlecased, changes_when_casefolded,
12770         changes_when_casemapped.
12771         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12772         Unicode TR#11 revision 17 -> 19.
12773         (LBP_CP): New enumeration value.
12774         (LBP_*): Adjust values accordingly.
12775         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12776         TR#14 revision 22 -> 24.
12777         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12778         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12779         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12780         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12781         is_WBP_MIDLETTER.
12782         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12783         the code1 and code2 of each composition rule.
12784         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12785         * lib/unicase/ignorable.h: Likewise.
12786         * lib/unicase/tocasefold.h: Likewise.
12787         * lib/unicase/tolower.h: Likewise.
12788         * lib/unicase/totitle.h: Likewise.
12789         * lib/unicase/toupper.h: Likewise.
12790         * lib/unictype/bidi_of.h: Likewise.
12791         * lib/unictype/blocks.h: Likewise.
12792         * lib/unictype/categ_C.h: Likewise.
12793         * lib/unictype/categ_Cf.h: Likewise.
12794         * lib/unictype/categ_Cn.h: Likewise.
12795         * lib/unictype/categ_L.h: Likewise.
12796         * lib/unictype/categ_Ll.h: Likewise.
12797         * lib/unictype/categ_Lm.h: Likewise.
12798         * lib/unictype/categ_Lo.h: Likewise.
12799         * lib/unictype/categ_Lu.h: Likewise.
12800         * lib/unictype/categ_M.h: Likewise.
12801         * lib/unictype/categ_Mc.h: Likewise.
12802         * lib/unictype/categ_Mn.h: Likewise.
12803         * lib/unictype/categ_N.h: Likewise.
12804         * lib/unictype/categ_Nd.h: Likewise.
12805         * lib/unictype/categ_Nl.h: Likewise.
12806         * lib/unictype/categ_No.h: Likewise.
12807         * lib/unictype/categ_P.h: Likewise.
12808         * lib/unictype/categ_Pd.h: Likewise.
12809         * lib/unictype/categ_Po.h: Likewise.
12810         * lib/unictype/categ_S.h: Likewise.
12811         * lib/unictype/categ_Sc.h: Likewise.
12812         * lib/unictype/categ_So.h: Likewise.
12813         * lib/unictype/categ_of.h: Likewise.
12814         * lib/unictype/combining.h: Likewise.
12815         * lib/unictype/ctype_alnum.h: Likewise.
12816         * lib/unictype/ctype_alpha.h: Likewise.
12817         * lib/unictype/ctype_graph.h: Likewise.
12818         * lib/unictype/ctype_lower.h: Likewise.
12819         * lib/unictype/ctype_print.h: Likewise.
12820         * lib/unictype/ctype_punct.h: Likewise.
12821         * lib/unictype/ctype_upper.h: Likewise.
12822         * lib/unictype/decdigit.h: Likewise.
12823         * lib/unictype/digit.h: Likewise.
12824         * lib/unictype/numeric.h: Likewise.
12825         * lib/unictype/pr_alphabetic.h: Likewise.
12826         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12827         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12828         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12829         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12830         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12831         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12832         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12833         * lib/unictype/pr_combining.h: Likewise.
12834         * lib/unictype/pr_composite.h: Likewise.
12835         * lib/unictype/pr_currency_symbol.h: Likewise.
12836         * lib/unictype/pr_dash.h: Likewise.
12837         * lib/unictype/pr_decimal_digit.h: Likewise.
12838         * lib/unictype/pr_deprecated.h: Likewise.
12839         * lib/unictype/pr_diacritic.h: Likewise.
12840         * lib/unictype/pr_extender.h: Likewise.
12841         * lib/unictype/pr_grapheme_base.h: Likewise.
12842         * lib/unictype/pr_grapheme_extend.h: Likewise.
12843         * lib/unictype/pr_grapheme_link.h: Likewise.
12844         * lib/unictype/pr_id_continue.h: Likewise.
12845         * lib/unictype/pr_id_start.h: Likewise.
12846         * lib/unictype/pr_ideographic.h: Likewise.
12847         * lib/unictype/pr_ignorable_control.h: Likewise.
12848         * lib/unictype/pr_logical_order_exception.h: Likewise.
12849         * lib/unictype/pr_lowercase.h: Likewise.
12850         * lib/unictype/pr_numeric.h: Likewise.
12851         * lib/unictype/pr_other_alphabetic.h: Likewise.
12852         * lib/unictype/pr_punctuation.h: Likewise.
12853         * lib/unictype/pr_sentence_terminal.h: Likewise.
12854         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12855         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12856         * lib/unictype/pr_unified_ideograph.h: Likewise.
12857         * lib/unictype/pr_uppercase.h: Likewise.
12858         * lib/unictype/pr_xid_continue.h: Likewise.
12859         * lib/unictype/pr_xid_start.h: Likewise.
12860         * lib/unictype/pr_zero_width.h: Likewise.
12861         * lib/unictype/scripts.h: Likewise.
12862         * lib/unictype/scripts_byname.gperf: Likewise.
12863         * lib/unictype/sy_java_ident.h: Likewise.
12864         * lib/unigbrk/gbrkprop.h: Likewise.
12865         * lib/unilbrk/lbrkprop1.h: Likewise.
12866         * lib/unilbrk/lbrkprop2.h: Likewise.
12867         * lib/unilbrk/lbrktables.h: Likewise.
12868         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12869         LBP_CP. Implement rule LB30.
12870         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12871         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12872         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12873         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12874         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12875         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12876         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12877         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12878         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12879         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12880         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12881         bits instead of 16 bits in the code1 and code2 of each composition
12882         rule.
12883         (uc_composition): Update for Unicode 5.2.0.
12884         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12885         * lib/uninorm/decomposition-table2.h: Likewise.
12886         * lib/uniwbrk/wbrkprop.h: Likewise.
12887         * tests/unicase/test-cased.c: Likewise.
12888         * tests/unicase/test-ignorable.c: Likewise.
12889         * tests/unicase/test-uc_tolower.c: Likewise.
12890         * tests/unicase/test-uc_totitle.c: Likewise.
12891         * tests/unicase/test-uc_toupper.c: Likewise.
12892         * tests/unictype/test-categ_C.c: Likewise.
12893         * tests/unictype/test-categ_Cf.c: Likewise.
12894         * tests/unictype/test-categ_Cn.c: Likewise.
12895         * tests/unictype/test-categ_L.c: Likewise.
12896         * tests/unictype/test-categ_Ll.c: Likewise.
12897         * tests/unictype/test-categ_Lm.c: Likewise.
12898         * tests/unictype/test-categ_Lo.c: Likewise.
12899         * tests/unictype/test-categ_Lu.c: Likewise.
12900         * tests/unictype/test-categ_M.c: Likewise.
12901         * tests/unictype/test-categ_Mc.c: Likewise.
12902         * tests/unictype/test-categ_Mn.c: Likewise.
12903         * tests/unictype/test-categ_N.c: Likewise.
12904         * tests/unictype/test-categ_Nd.c: Likewise.
12905         * tests/unictype/test-categ_Nl.c: Likewise.
12906         * tests/unictype/test-categ_No.c: Likewise.
12907         * tests/unictype/test-categ_P.c: Likewise.
12908         * tests/unictype/test-categ_Pd.c: Likewise.
12909         * tests/unictype/test-categ_Po.c: Likewise.
12910         * tests/unictype/test-categ_S.c: Likewise.
12911         * tests/unictype/test-categ_Sc.c: Likewise.
12912         * tests/unictype/test-categ_So.c: Likewise.
12913         * tests/unictype/test-ctype_alnum.c: Likewise.
12914         * tests/unictype/test-ctype_alpha.c: Likewise.
12915         * tests/unictype/test-ctype_graph.c: Likewise.
12916         * tests/unictype/test-ctype_lower.c: Likewise.
12917         * tests/unictype/test-ctype_print.c: Likewise.
12918         * tests/unictype/test-ctype_punct.c: Likewise.
12919         * tests/unictype/test-ctype_upper.c: Likewise.
12920         * tests/unictype/test-decdigit.h: Likewise.
12921         * tests/unictype/test-digit.h: Likewise.
12922         * tests/unictype/test-numeric.h: Likewise.
12923         * tests/unictype/test-pr_alphabetic.c: Likewise.
12924         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12925         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12926         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12927         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12928         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12929         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12930         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12931         * tests/unictype/test-pr_combining.c: Likewise.
12932         * tests/unictype/test-pr_composite.c: Likewise.
12933         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12934         * tests/unictype/test-pr_dash.c: Likewise.
12935         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12936         * tests/unictype/test-pr_deprecated.c: Likewise.
12937         * tests/unictype/test-pr_diacritic.c: Likewise.
12938         * tests/unictype/test-pr_extender.c: Likewise.
12939         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12940         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12941         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12942         * tests/unictype/test-pr_id_continue.c: Likewise.
12943         * tests/unictype/test-pr_id_start.c: Likewise.
12944         * tests/unictype/test-pr_ideographic.c: Likewise.
12945         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12946         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12947         * tests/unictype/test-pr_lowercase.c: Likewise.
12948         * tests/unictype/test-pr_numeric.c: Likewise.
12949         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12950         * tests/unictype/test-pr_punctuation.c: Likewise.
12951         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12952         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12953         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12954         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12955         * tests/unictype/test-pr_uppercase.c: Likewise.
12956         * tests/unictype/test-pr_xid_continue.c: Likewise.
12957         * tests/unictype/test-pr_xid_start.c: Likewise.
12958         * tests/unictype/test-pr_zero_width.c: Likewise.
12959         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12960         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12961         changed behaviour: line breaking is now disallowed between a letter
12962         or '=' and '('.
12963         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12964         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12965         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12966         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12967         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12968         lib/uniwidth/width.c.
12969         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12970         without comments, but with the original copyright notice.
12971         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12972         changes.
12973         * lib/unictype/categ_Cc.h: Likewise.
12974         * lib/unictype/categ_Co.h: Likewise.
12975         * lib/unictype/categ_Cs.h: Likewise.
12976         * lib/unictype/categ_Lt.h: Likewise.
12977         * lib/unictype/categ_Me.h: Likewise.
12978         * lib/unictype/categ_Pc.h: Likewise.
12979         * lib/unictype/categ_Pe.h: Likewise.
12980         * lib/unictype/categ_Pf.h: Likewise.
12981         * lib/unictype/categ_Pi.h: Likewise.
12982         * lib/unictype/categ_Ps.h: Likewise.
12983         * lib/unictype/categ_Sk.h: Likewise.
12984         * lib/unictype/categ_Sm.h: Likewise.
12985         * lib/unictype/categ_Z.h: Likewise.
12986         * lib/unictype/categ_Zl.h: Likewise.
12987         * lib/unictype/categ_Zp.h: Likewise.
12988         * lib/unictype/categ_Zs.h: Likewise.
12989         * lib/unictype/ctype_blank.h: Likewise.
12990         * lib/unictype/ctype_cntrl.h: Likewise.
12991         * lib/unictype/ctype_digit.h: Likewise.
12992         * lib/unictype/ctype_space.h: Likewise.
12993         * lib/unictype/ctype_xdigit.h: Likewise.
12994         * lib/unictype/mirror.h: Likewise.
12995         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12996         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12997         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12998         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12999         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13000         * lib/unictype/pr_bidi_control.h: Likewise.
13001         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13002         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13003         * lib/unictype/pr_bidi_pdf.h: Likewise.
13004         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13005         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13006         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13007         * lib/unictype/pr_format_control.h: Likewise.
13008         * lib/unictype/pr_hex_digit.h: Likewise.
13009         * lib/unictype/pr_hyphen.h: Likewise.
13010         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13011         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13012         * lib/unictype/pr_iso_control.h: Likewise.
13013         * lib/unictype/pr_join_control.h: Likewise.
13014         * lib/unictype/pr_left_of_pair.h: Likewise.
13015         * lib/unictype/pr_line_separator.h: Likewise.
13016         * lib/unictype/pr_math.h: Likewise.
13017         * lib/unictype/pr_non_break.h: Likewise.
13018         * lib/unictype/pr_not_a_character.h: Likewise.
13019         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13020         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13021         * lib/unictype/pr_other_id_continue.h: Likewise.
13022         * lib/unictype/pr_other_id_start.h: Likewise.
13023         * lib/unictype/pr_other_lowercase.h: Likewise.
13024         * lib/unictype/pr_other_math.h: Likewise.
13025         * lib/unictype/pr_other_uppercase.h: Likewise.
13026         * lib/unictype/pr_paired_punctuation.h: Likewise.
13027         * lib/unictype/pr_paragraph_separator.h: Likewise.
13028         * lib/unictype/pr_pattern_syntax.h: Likewise.
13029         * lib/unictype/pr_pattern_white_space.h: Likewise.
13030         * lib/unictype/pr_private_use.h: Likewise.
13031         * lib/unictype/pr_quotation_mark.h: Likewise.
13032         * lib/unictype/pr_radical.h: Likewise.
13033         * lib/unictype/pr_soft_dotted.h: Likewise.
13034         * lib/unictype/pr_space.h: Likewise.
13035         * lib/unictype/pr_titlecase.h: Likewise.
13036         * lib/unictype/pr_variation_selector.h: Likewise.
13037         * lib/unictype/pr_white_space.h: Likewise.
13038         * lib/unictype/sy_c_ident.h: Likewise.
13039         * lib/unictype/sy_c_whitespace.h: Likewise.
13040         * lib/unictype/sy_java_whitespace.h: Likewise.
13041         * modules/uni*/*: Bump version number of expected libunistring version.
13042         Reported by Simon Josefsson.
13043
13044 2011-01-09  Karl Heuer  <kwzh@gnu.org>
13045
13046         useless-if-before-free: fix typo in --help and make the internal,
13047         automatic version date update process work once again.
13048         --help output contained a NUL character instead of the
13049         backslash-zero that was intended.  Also, the "must lie within
13050         the first 8 lines" line is on line 9, and hence not getting
13051         automatically updated.
13052         * build-aux/useless-if-before-free: Fix the former by adding a
13053         backslash, and the latter by condensing the three lines of what-it-does
13054         to a single line, leaving one line of slack for the future.
13055
13056 2011-01-09  Bruno Haible  <bruno@clisp.org>
13057
13058         uniwidth/width: Fix width of U+1D173..U+1D17A.
13059         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
13060         symbolic_width, output_width_property_test): New functions.
13061         (main): Invoke output_nonspacing_property, output_width_property_test.
13062         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
13063         U+1D173..U+1D17A.
13064         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
13065         1.
13066         * modules/uniwidth/*: Bump version number of expected libunistring
13067         version.
13068         * modules/unilbrk/*: Likewise.
13069
13070 2011-01-08  Bruno Haible  <bruno@clisp.org>
13071
13072         uninorm tests: Preserve copyright of Unicode data file.
13073         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
13074         Mention modifications.
13075
13076 2011-01-08  Bruno Haible  <bruno@clisp.org>
13077
13078         gen-uni-tables: Prepare for Unicode 5.2.0.
13079         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
13080         (debug_output_lbp, output_lbp): Update.
13081
13082 2011-01-08  Bruno Haible  <bruno@clisp.org>
13083
13084         unilbrk: Clarify gen-uni-tables.c code.
13085         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
13086         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
13087         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
13088
13089 2011-01-07  Bruno Haible  <bruno@clisp.org>
13090
13091         strtod: Restore errno when successfully parsing Infinity or NaN.
13092         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
13093         restore the original errno.
13094
13095 2011-01-07  Bruno Haible  <bruno@clisp.org>
13096
13097         remove test: Avoid failure on HP-UX 11.
13098         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
13099
13100 2011-01-07  Bruno Haible  <bruno@clisp.org>
13101
13102         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
13103         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
13104         error code.
13105
13106 2011-01-07  Pádraig Brady <P@draigBrady.com>
13107
13108         ignore-value: fixup comments, and add Eric Blake
13109         as an author since he rewrote the macros.
13110         * lib/ignore-value.h (ignore_value):  State that
13111         we now support aggregates.  Also specify exactly
13112         when the GCC warn_unused_result feature was added.
13113
13114 2011-01-06  Eric Blake  <eblake@redhat.com>
13115
13116         ignore-value: support aggregate types
13117         * lib/ignore-value.h (ignore_value): Provide separate gcc
13118         definition.
13119         * modules/ignore-value-tests: New test module.
13120         * tests/test-ignore-value.c: New test.
13121
13122         maint.mk: improve sc_prohibit_strcmp regex
13123         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
13124         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
13125         definition of STRNEQ.
13126
13127         signal: work around Haiku issue with SIGBUS
13128         * lib/siglist.h: Add comment.
13129         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
13130         strsignal's favoring of SIGSEGV.
13131         * tests/test-signal.c (main): Avoid test failure.
13132         * doc/posix-headers/signal.texi (signal.h): Document the issue.
13133         Reported by Scott McCreary.
13134
13135         maint.mk: add pre-release check to ensure submodule commits are public
13136         * top/maint.mk (public-submodule-commit): New rule.
13137         (submodule-checks): New variable.
13138         (alpha beta stable): Depend on the variable.
13139
13140 2011-01-05  Pádraig Brady <P@draigBrady.com>
13141         and Jim Meyering  <meyering@redhat.com>
13142
13143         ignore-value: make ignore_value more generic; deprecate ignore_ptr
13144         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
13145         (ATTRIBUTE_DEPRECATED): Define.
13146         (_ignore_case): New function.
13147         (ignore_value): New macro, to replace the old function.
13148         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
13149         * modules/ignore-value (Depends-on): Add stdint.
13150
13151 2011-01-04  Eric Blake  <eblake@redhat.com>
13152
13153         doc: regenerate INSTALL
13154         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
13155         @firstparagraphindent support, now that autoconf dropped it.
13156         (INSTALL_PRELUDE): Reinstate old macro.
13157         * doc/install.texi: Resync from autoconf.
13158         * doc/INSTALL: Reflect recent autoconf update.
13159         * doc/INSTALL.ISO: Likewise.
13160         * doc/INSTALL.UTF-8: Likewise.
13161         Reported by Karl Berry.
13162
13163 2011-01-04  Bruce Korb  <address@hidden>
13164
13165         git-version-gen: avoid a sub-shell
13166         * build-aux/git-version-gen: Redirect stderr in `...` via
13167         "exec 2>...", rather than via an added sub-shell.
13168
13169 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
13170
13171         git-version-gen: use (...) rather than sh -c '...'
13172         * build-aux/git-version-gen: Rather than hard-coding a shell's name
13173         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
13174
13175 2011-01-03  Jim Meyering  <meyering@redhat.com>
13176
13177         git-version-gen: convert leading TABs to spaces
13178         * build-aux/git-version-gen: Expand leading TABs.
13179
13180         git-version-gen: handle failed "git rev-list"
13181         * build-aux/git-version-gen: Rather than leaking a "fatal" error
13182         from git and proceeding as if it had succeeded but printed no SHA1
13183         checksums, suppress the diagnostic and handle the failure.
13184         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
13185
13186         git-version-gen: include command name in one more diagnostic
13187         * build-aux/git-version-gen: When the required .tarball-version file
13188         was missing or unreadable, you might see the diagnostic from "cat",
13189         but no trace of the name of the invoking script.  Now, you still see
13190         the diagnostic from cat, but also get one from "git-version-gen: ".
13191         Inspired by a patch from Bruce Korb.
13192
13193         update-copyright: adjust test to match changed code
13194         * tests/test-update-copyright.sh: Change test's expected output
13195         to match new actual output.
13196
13197 2011-01-02  Bruno Haible  <bruno@clisp.org>
13198
13199         getlogin_r: Avoid test failure on HP-UX 11.
13200         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
13201         ERANGE when the second argument is zero.
13202         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
13203         portability problem.
13204
13205 2011-01-02  Bruce Korb  <bkorb@gnu.org>
13206
13207         * build-aux/update-copyright: doc Simon's changes
13208
13209 2011-01-02  Simon Josefsson  <simon@josefsson.org>
13210
13211         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
13212         environment variable.
13213
13214 2011-01-02  Bruno Haible  <bruno@clisp.org>
13215
13216         unigbrk: Avoid gcc warnings.
13217         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
13218         unused variable.
13219         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
13220         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
13221         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
13222         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
13223         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
13224         Change type of first argument to 'const char *'.
13225         (main): Remove unused variable.
13226         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
13227         type of first argument to 'const char *'.
13228         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
13229         Likewise.
13230         (main): Change type of variable 's'.
13231         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
13232         to 'int'.
13233
13234 2011-01-02  Bruno Haible  <bruno@clisp.org>
13235
13236         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
13237         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
13238         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
13239         bug.
13240         * lib/pwrite.c: Undo 2010-12-31 patch.
13241         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
13242
13243 2011-01-02  Bruno Haible  <bruno@clisp.org>
13244
13245         pread: Fix test whether it works.
13246         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
13247
13248 2011-01-02  Bruno Haible  <bruno@clisp.org>
13249
13250         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
13251         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
13252         ends in "6". Don't require a specific month name. Try also the locale
13253         names found on HP-UX 11 and Solaris 7.
13254
13255 2011-01-02  Bruno Haible  <bruno@clisp.org>
13256
13257         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13258         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13259         C linkage.
13260         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13261
13262 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13263
13264         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13265         for consistency, since the "cluster" term is not used elsewhere.
13266         * lib/unigbrk.in.h: Update name.
13267         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13268         * lib/unigbrk/u16-grapheme-next.c: Update name.
13269         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13270         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13271         * lib/unigbrk/u32-grapheme-next.c: Update name.
13272         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13273         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13274         * lib/unigbrk/u8-grapheme-next.c: Update name.
13275         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13276         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13277         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13278         Suggested by Bruno Haible.
13279
13280 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13281
13282         Remove module 'u8-grapheme-len' as too redundant with
13283         'u8-grapheme-next'.
13284         * modules/unigbrk/u8-grapheme-len: Delete file.
13285         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13286         * lib/unigbrk.in.h: Remove prototype for deleted function.
13287         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13288         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13289
13290         Remove module 'u16-grapheme-len' as too redundant with
13291         'u16-grapheme-next'.
13292         * modules/unigbrk/u16-grapheme-len: Delete file.
13293         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13294         * lib/unigbrk.in.h: Remove prototype for deleted function.
13295         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13296         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13297
13298         Remove module 'u32-grapheme-len' as too redundant with
13299         'u32-grapheme-next'.
13300         * modules/unigbrk/u32-grapheme-len: Delete file.
13301         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13302         * lib/unigbrk.in.h: Remove prototype for deleted function.
13303         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13304         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13305
13306         Suggested by Bruno Haible.
13307
13308 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13309
13310         * unigbrk.in.h: Fix typo: "ben" => "been".
13311         Reported by Bruno Haible.
13312
13313 2011-01-01  Jim Meyering  <meyering@redhat.com>
13314
13315         maint: update almost all copyright ranges to include 2011
13316         Run the new "make update-copyright" rule.
13317
13318 2011-01-01  Jim Meyering  <meyering@redhat.com>
13319
13320         maint: update-copyright: exempt doc/INSTALL*
13321         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13322         since they are generated.  Suggested by Bruno Haible.
13323
13324 2011-01-01  Jim Meyering  <meyering@redhat.com>
13325
13326         maint: refine the update-copyright rule
13327         * Makefile (update-copyright): Also exclude any file that includes
13328         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13329         code that merely generates the comment.
13330
13331 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13332
13333         New module 'u8-grapheme-len'.
13334         * modules/unigbrk/u8-grapheme-len: New file.
13335         * modules/unigbrk/u8-grapheme-len-tests: New file.
13336         * lib/unigbrk.in.h: Add prototype for new function.
13337         * lib/unigbrk/u8-grapheme-len.c: New file.
13338         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13339
13340         New module 'u16-grapheme-len'.
13341         * modules/unigbrk/u16-grapheme-len: New file.
13342         * modules/unigbrk/u16-grapheme-len-tests: New file.
13343         * lib/unigbrk.in.h: Add prototype for new function.
13344         * lib/unigbrk/u16-grapheme-len.c: New file.
13345         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13346
13347         New module 'u32-grapheme-len'.
13348         * modules/unigbrk/u32-grapheme-len: New file.
13349         * modules/unigbrk/u32-grapheme-len-tests: New file.
13350         * lib/unigbrk.in.h: Add prototype for new function.
13351         * lib/unigbrk/u32-grapheme-len.c: New file.
13352         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13353
13354         New module 'u8-grapheme-next'.
13355         * modules/unigbrk/u8-grapheme-next: New file.
13356         * modules/unigbrk/u8-grapheme-next-tests: New file.
13357         * lib/unigbrk.in.h: Add prototype for new function.
13358         * lib/unigbrk/u8-grapheme-next.c: New file.
13359         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13360
13361         New module 'u16-grapheme-next'.
13362         * modules/unigbrk/u16-grapheme-next: New file.
13363         * modules/unigbrk/u16-grapheme-next-tests: New file.
13364         * lib/unigbrk.in.h: Add prototype for new function.
13365         * lib/unigbrk/u16-grapheme-next.c: New file.
13366         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13367
13368         New module 'u32-grapheme-next'.
13369         * modules/unigbrk/u32-grapheme-next: New file.
13370         * modules/unigbrk/u32-grapheme-next-tests: New file.
13371         * lib/unigbrk.in.h: Add prototype for new function.
13372         * lib/unigbrk/u32-grapheme-next.c: New file.
13373         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13374
13375         New module 'u8-grapheme-prev'.
13376         * modules/unigbrk/u8-grapheme-prev: New file.
13377         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13378         * lib/unigbrk.in.h: Add prototype for new function.
13379         * lib/unigbrk/u8-grapheme-prev.c: New file.
13380         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13381
13382         New module 'u16-grapheme-prev'.
13383         * modules/unigbrk/u16-grapheme-prev: New file.
13384         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13385         * lib/unigbrk.in.h: Add prototype for new function.
13386         * lib/unigbrk/u16-grapheme-prev.c: New file.
13387         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13388
13389         New module 'u32-grapheme-prev'.
13390         * modules/unigbrk/u32-grapheme-prev: New file.
13391         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13392         * lib/unigbrk.in.h: Add prototype for new function.
13393         * lib/unigbrk/u32-grapheme-prev.c: New file.
13394         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13395
13396         New module 'u8-grapheme-breaks'.
13397         * modules/unigbrk/u8-grapheme-breaks: New file.
13398         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
13399         * lib/unigbrk.in.h: Add prototype for new function.
13400         * lib/unigbrk/u8-grapheme-breaks.c: New file.
13401         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
13402
13403         New module 'u16-grapheme-breaks'.
13404         * modules/unigbrk/u16-grapheme-breaks: New file.
13405         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
13406         * lib/unigbrk.in.h: Add prototype for new function.
13407         * lib/unigbrk/u16-grapheme-breaks.c: New file.
13408         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
13409
13410         New module 'u32-grapheme-breaks'.
13411         * modules/unigbrk/u32-grapheme-breaks: New file.
13412         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
13413         * lib/unigbrk.in.h: Add prototype for new function.
13414         * lib/unigbrk/u32-grapheme-breaks.c: New file.
13415         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
13416
13417         New module 'ulc-grapheme-breaks'.
13418         * modules/unigbrk/ulc-grapheme-breaks: New file.
13419         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
13420         * m4/locale-ar.m4: New file.
13421         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
13422         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
13423         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
13424
13425 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13426
13427         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
13428         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
13429         modified how this file was generated before I initially submitted
13430         the module, but failed to regenerate it.  This meant that several
13431         of the level2 entries were wrong.
13432         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
13433         Remove the division-by-2 that is folded into the table now that
13434         gbrkprop.h has been regenerated properly.  Now -1 entries are
13435         handled correctly.
13436
13437         New module 'unigbrk/uc-gbrk-prop-tests'.
13438         * modules/unigbrk/uc-gbrk-prop-tests: New file.
13439         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
13440         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
13441         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
13442
13443 2011-01-01  Bruno Haible  <bruno@clisp.org>
13444
13445         Avoid use of hexadecimal escapes.
13446         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
13447         instead of hexadecimal escapes.
13448
13449 2011-01-01  Jim Meyering  <meyering@redhat.com>
13450
13451         maint: new rule to update copyright year ranges
13452         * Makefile (update-copyright): New rule.
13453
13454         maint: indent with TABs in Makefile
13455         * Makefile: Expand leading sequences of spaces to TABs
13456
13457         version-etc: update the copyright year it reports
13458         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
13459
13460 2010-12-31  Bruno Haible  <bruno@clisp.org>
13461
13462         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
13463         * lib/isfinite.c (zerof, zerod, zerol): New variables.
13464         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
13465         zero.
13466
13467 2010-12-31  Bruno Haible  <bruno@clisp.org>
13468
13469         pwrite: Work around HP-UX 11.11 bug.
13470         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
13471         works and set REPLACE_PWRITE if not.
13472         * lib/pwrite.c (pwrite): Add an implementation that uses the system
13473         function.
13474         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
13475
13476 2010-12-31  Bruno Haible  <bruno@clisp.org>
13477
13478         pread: Work around HP-UX 11 bugs.
13479         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13480         and set REPLACE_PREAD if not.
13481         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13482
13483 2010-12-31  Eric Blake  <eblake@redhat.com>
13484
13485         nl_langinfo: fix YESEXPR on Irix 6.5
13486         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13487         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13488         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13489         it.
13490
13491 2010-12-31  Bruno Haible  <bruno@clisp.org>
13492
13493         iconv: Document HP-UX 11 bug.
13494         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13495
13496 2010-12-31  Bruno Haible  <bruno@clisp.org>
13497
13498         ldexpl: Fix link error on HP-UX 11.
13499         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13500         LDEXPL_LIBM, using $ISNANL_LIBM.
13501
13502 2010-12-31  Eric Blake  <eblake@redhat.com>
13503
13504         ftello: avoid compilation failure with SunStudio c89
13505         * lib/ftello.c (ftello): Use lseek, not llseek.
13506
13507         tests: avoid failing coreutils tests on cygwin
13508         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13509         (create_exe_shims_): Return 0 when skipping.
13510
13511 2010-12-31  Bruno Haible  <bruno@clisp.org>
13512
13513         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13514         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13515
13516 2010-12-31  Bruno Haible  <bruno@clisp.org>
13517
13518         waitpid: Fix link error in C++ mode.
13519         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13520
13521 2010-12-31  Bruno Haible  <bruno@clisp.org>
13522
13523         isnan: Use GCC built-ins when possible.
13524         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13525         __builtin_isnan.
13526         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13527         (isnan): Define using GCC built-ins for GCC >= 4.0.
13528
13529 2010-12-31  Bruno Haible  <bruno@clisp.org>
13530
13531         isnand: Fix mistake.
13532         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13533         __builtin_isnand.
13534
13535 2010-12-31  Bruno Haible  <bruno@clisp.org>
13536
13537         open: Avoid C++ error on HP-UX 11.
13538         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13539
13540 2010-12-31  Bruno Haible  <bruno@clisp.org>
13541
13542         time_r: Add missing declarations on HP-UX 11.
13543         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13544         instead of HAVE_LOCALTIME_R.
13545         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13546         HAVE_LOCALTIME_R always.
13547         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13548         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13549         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13550         HAVE_LOCALTIME_R.
13551         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13552         * doc/posix-functions/localtime_r.texi: Likewise.
13553
13554 2010-12-29  Eric Blake  <eblake@redhat.com>
13555
13556         mountlist: tweak previous commit
13557         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13558         Reported by Paul Eggert.
13559
13560         mountlist: fix local drive detection on cygwin
13561         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13562         that works for cygwin.
13563
13564 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13565
13566         ftoastr, snprintf: ftoastr + snprintf module
13567         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13568         since the snprintf module now should be good enough here.
13569         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13570         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13571         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13572         GNULIB_SNPRINTF only for the test directory, and the latter
13573         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13574         seems to suffice by itself.
13575
13576 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13577
13578         alloca: one step towards thread-safety
13579         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13580         need for a static variable.  All callers changed.  This does not
13581         make the alloca replacement thread-safe, but it's one step.
13582
13583         tests: minor indenting change
13584         * tests/init.sh: Sync from coreutils housekeeping patch
13585         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13586         to keep lines within 80 columns.
13587
13588 2010-12-28  Jim Meyering  <meyering@redhat.com>
13589
13590         regex: don't infloop on persistent failing calloc
13591         * lib/regexec.c (build_trtable): Return failure indication upon
13592         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13593         In glibc, this was fixed for version 2.13:
13594         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13595
13596 2010-12-28  Bruno Haible  <bruno@clisp.org>
13597             Paul Eggert <eggert@cs.ucla.edu>
13598
13599         linkat: Make implementation robust against system behaviour variations.
13600         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13601         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13602         way, and to -2 if it needs a generic runtime test.
13603         * lib/linkat.c (solaris_optimized_link_immediate,
13604         solaris_optimized_link_follow): New functions.
13605         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13606         (check_same_link): Use it.
13607
13608 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13609
13610         New module 'unigbrk/base'.
13611         * modules/unigbrk/base: New file.
13612         * lib/unigbrk.in.h: New file.
13613
13614         New module 'unigbrk/uc-gbrk-prop'.
13615         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13616         * modules/unigbrk/uc-gbrk-prop: New file.
13617         * lib/unigbrk/gbrkprop.h: New file.
13618         * lib/unigbrk/uc-gbrk-prop.c: New file.
13619
13620         New module 'unigbrk/uc-is-grapheme-break'.
13621         * modules/unigbrk/uc-is-grapheme-break: New file.
13622         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13623         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13624         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13625         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13626         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13627
13628         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13629
13630 2010-12-27  Bruno Haible  <bruno@clisp.org>
13631
13632         linkat test: Avoid failure on Solaris 11 2010-11.
13633         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13634
13635 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13636
13637         utimens: work around glibc rounding bug on more platforms
13638         * lib/utimens.c (fdutimens): Work around rounding bug even if
13639         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13640         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13641
13642 2010-12-27  Bruno Haible  <bruno@clisp.org>
13643
13644         select tests: Improve comments.
13645         * tests/test-select.c (do_select): Add comments.
13646
13647 2010-12-27  Bruno Haible  <bruno@clisp.org>
13648
13649         select tests: Safer way of handling timeout.
13650         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13651         at every invocation.
13652
13653 2010-12-27  Bruno Haible  <bruno@clisp.org>
13654
13655         select tests: Use 'bool' where appropriate.
13656         * tests/test-select.c (connect_to_socket): Change argument type to
13657         'bool'.
13658
13659 2010-12-27  Bruno Haible  <bruno@clisp.org>
13660
13661         select tests: Use existing modules.
13662         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13663         (configure.ac): Don't test for unistd.h.
13664         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13665         declared in <unistd.h>.
13666
13667 2010-12-27  Bruno Haible  <bruno@clisp.org>
13668
13669         mbrtowc: Work around a Solaris 7 bug.
13670         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13671         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13672         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13673         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13674         MBRTOWC_NULL_ARG1_BUG.
13675         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13676         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13677         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13678         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13679
13680 2010-12-27  Jim Meyering  <meyering@redhat.com>
13681
13682         read-file.c: tweak syntax
13683         * lib/read-file.c (fread_file): Remove space after "*" in function
13684         definitions.
13685
13686 2010-12-27  Bruno Haible  <bruno@clisp.org>
13687
13688         times test: Avoid gcc warnings on OSF/1.
13689         * tests/test-times.c (main): Cast printf arguments from clock_t to
13690         'long int'.
13691
13692 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13693
13694         utimens: work around glibc rounding bug on older Linux kernels
13695         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13696         on Linux with a glibc whose utimes might not work, then work
13697         around a longstanding glibc bug involving rounding rather than
13698         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13699         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13700
13701 2010-12-26  Bruno Haible  <bruno@clisp.org>
13702
13703         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13704         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13705         _GL_CXXALIAS_SYS.
13706         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13707
13708 2010-12-26  Bruno Haible  <bruno@clisp.org>
13709
13710         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13711         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13712         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13713         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13714         looking for the declaration.
13715         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13716         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13717         problem.
13718         * doc/posix-functions/inet_pton.texi: Likewise.
13719
13720 2010-12-26  Bruno Haible  <bruno@clisp.org>
13721
13722         arpa_inet: Use the common idioms with C++ support.
13723         * lib/arpa_inet.in.h: Include c++defs.h.
13724         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13725         support.
13726         * modules/arpa_inet (Depends-on): Add c++defs.
13727         (Makefile.am): Substitute the contents of c++defs.h.
13728         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13729         * modules/arpa_inet-c++-tests: New file.
13730         * tests/test-arpa_inet-c++.cc: New file.
13731
13732 2010-12-25  Bruno Haible  <bruno@clisp.org>
13733
13734         Fix more C++ link errors on Solaris 8.
13735         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13736         $(LIB_EACCESS).
13737         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13738         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13739         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13740         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13741         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13742
13743 2010-12-25  Bruno Haible  <bruno@clisp.org>
13744
13745         printf-posix: Fix link error when a non-GCC compiler is used.
13746         * lib/stdio.in.h (printf): When not using GCC, override printf
13747         correctly.
13748         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13749
13750 2010-12-25  Bruno Haible  <bruno@clisp.org>
13751
13752         strerror_r-posix: Update doc.
13753         * doc/posix-functions/strerror_r.texi: Update doc about the return
13754         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13755
13756 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13757
13758         utimens: simplify the logic of the previous change
13759         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13760         This should not affect whether the test succeeds or fails.
13761
13762         utimens: configure better on hosts with NFS clock skew
13763         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13764         uses the clock of the local host.  It might use the clock of the
13765         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13766         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13767
13768 2010-12-25  Bruno Haible  <bruno@clisp.org>
13769
13770         ptsname test: Avoid failure on Solaris.
13771         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13772         open a pseudo-terminal; don't use BSD-style ptys.
13773         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13774
13775 2010-12-25  Bruno Haible  <bruno@clisp.org>
13776
13777         ptsname: Avoid ERANGE failure on some systems.
13778         * lib/ptsname.c (buffer): Increase size.
13779
13780 2010-12-25  Bruno Haible  <bruno@clisp.org>
13781
13782         rename, renameat: Avoid test failures at NFS mounted locations.
13783         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13784         so that subsequent mkdir calls succeed.
13785
13786 2010-12-25  Bruno Haible  <bruno@clisp.org>
13787
13788         iswblank: Fix C++ link error on Solaris 8.
13789         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13790         _GL_FUNCDECL_SYS.
13791
13792 2010-12-25  Bruno Haible  <bruno@clisp.org>
13793
13794         unistd: Fix C++ link error on Solaris 8.
13795         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13796
13797 2010-12-25  Bruno Haible  <bruno@clisp.org>
13798
13799         readlink doc: Mention an old glibc bug.
13800         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13801
13802 2010-12-25  Bruno Haible  <bruno@clisp.org>
13803
13804         fcntl-h: Fix for use of C++ on glibc systems.
13805         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13806         also on glibc systems in C++ mode.
13807         Reported by Gary V. Vaughan <gary@gnu.org>.
13808
13809 2010-12-25  Bruno Haible  <bruno@clisp.org>
13810
13811         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13812         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13813
13814 2010-12-25  Bruno Haible  <bruno@clisp.org>
13815
13816         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13817         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13818         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13819         test whether truncl works according to ISO C 99 with IEC 60559.
13820         * m4/truncl-ieee.m4: New file.
13821         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13822         m4/signbit.m4.
13823         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13824
13825 2010-12-25  Bruno Haible  <bruno@clisp.org>
13826
13827         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13828         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13829         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13830         test whether ceill works according to ISO C 99 with IEC 60559.
13831         * m4/ceill-ieee.m4: New file.
13832         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13833         m4/signbit.m4.
13834         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13835
13836 2010-12-25  Bruno Haible  <bruno@clisp.org>
13837
13838         Ensure all prerequisites of <wchar.h> are included.
13839         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13840         before <wchar.h>.
13841         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13842         gl_MBRLEN_NUL_RETVAL): Likewise.
13843         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13844         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13845         AC_FUNC_MBRTOWC): Likewise.
13846         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13847         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13848         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13849         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13850         Likewise.
13851         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13852         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13853         (gl_WCHAR_H): Improve comments.
13854         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13855
13856 2010-12-25  Bruno Haible  <bruno@clisp.org>
13857
13858         strtok_r: Fix C syntax error in autoconf macro.
13859         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13860         characters in test program.
13861
13862 2010-12-24  Bruno Haible  <bruno@clisp.org>
13863
13864         ceil, trunc, round: Fix gcc warnings.
13865         * lib/ceil.c (MIN): Undefine before redefining.
13866         * lib/trunc.c (MIN): Likewise.
13867         * lib/round.c (MIN): Likewise.
13868         Include <math.h> first.
13869
13870 2010-12-24  Bruno Haible  <bruno@clisp.org>
13871
13872         select tests: Avoid failures on OSF/1 5.1.
13873         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13874         failure of closing the last socket; it may fail with ECONNRESET.
13875
13876 2010-12-24  Eric Blake  <eblake@redhat.com>
13877
13878         stdint: avoid HP-UX 10.20 preprocessor bug
13879         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13880         than #if.
13881         * tests/test-floor2.c (main): Likewise.
13882         Reported by Peter O'Gorman.
13883
13884         pipe: make obsoletion transition easier
13885         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13886         * modules/pipe (Files): Include revived file.
13887         (Include): Drop reference, to mirror getdate's behavior.
13888
13889 2010-12-24  Bruno Haible  <bruno@clisp.org>
13890
13891         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13892         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13893         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13894         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13895
13896 2010-12-24  Bruno Haible  <bruno@clisp.org>
13897
13898         gethostname: Ensure declaration on NonStop Kernel.
13899         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13900         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13901
13902 2010-12-24  Bruno Haible  <bruno@clisp.org>
13903
13904         sys_select: Ensure all necessary types on NonStop Kernel.
13905         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13906         include <sys/time.h>.
13907         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13908         NonStop Kernel.
13909         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13910
13911 2010-12-24  Bruno Haible  <bruno@clisp.org>
13912
13913         sys_select: Remove unneeded include.
13914         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13915         have <sys/select.h>.
13916
13917 2010-12-24  Bruno Haible  <bruno@clisp.org>
13918
13919         gethostname: Provide a fallback for HOST_NAME_MAX.
13920         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13921         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13922         instead.
13923         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13924
13925 2010-12-24  Bruno Haible  <bruno@clisp.org>
13926
13927         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13928         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13929         (SA_RESTART): Likewise.
13930         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13931
13932 2010-12-24  Bruno Haible  <bruno@clisp.org>
13933
13934         signal: Define NSIG.
13935         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13936         * tests/test-signal.c (nsig): New variable.
13937         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13938
13939 2010-12-24  Bruno Haible  <bruno@clisp.org>
13940
13941         rename, renameat: Avoid test failures on OSF/1 5.1.
13942         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13943         alternative error codes.
13944         * tests/test-renameat.c (main): Likewise.
13945
13946 2010-12-24  Bruno Haible  <bruno@clisp.org>
13947
13948         *printf: Detect large precisions bug on Solaris 10/SPARC.
13949         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13950         by Paul Eggert.
13951         * tests/test-snprintf-posix.h (test_function): Add this test code here
13952         too.
13953         * tests/test-sprintf-posix.h (test_function): Likewise.
13954         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13955         * tests/test-vasprintf-posix.c (test_function): Likewise.
13956         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13957         around by gnulib.
13958         * doc/posix-functions/printf.texi: Likewise.
13959         * doc/posix-functions/snprintf.texi: Likewise.
13960         * doc/posix-functions/sprintf.texi: Likewise.
13961         * doc/posix-functions/vfprintf.texi: Likewise.
13962         * doc/posix-functions/vprintf.texi: Likewise.
13963         * doc/posix-functions/vsnprintf.texi: Likewise.
13964         * doc/posix-functions/vsprintf.texi: Likewise.
13965         * doc/posix-functions/dprintf.texi: Undo last commit.
13966         * doc/posix-functions/vdprintf.texi: Likewise.
13967
13968 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13969
13970         tests: port test-fdutimensat.c to Solaris 8
13971         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13972         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13973         On Solaris 8, it fails with errno == ENOSYS, because there is no
13974         futimens (so it can't use the fd), and there is no lutimens (so it
13975         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13976
13977         vsnprintf: make more consistent with snprintf; doc fixes
13978
13979         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13980         the byte count return problem was promoted from the snprintf-posix
13981         to the snprintf module.
13982         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13983         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13984         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13985         * tests/test-snprintf.c (main): Check the byte count returned.
13986         * tests/test-vsnprintf.c (main): Likewise.
13987
13988 2010-12-23  Eric Blake  <eblake@redhat.com>
13989
13990         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13991         * modules/sigpipe (License): Relax license.
13992
13993 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13994
13995         doc: document Solaris printf bug with large float precisions
13996         * doc/posix-functions/dprintf.texi (dprintf):
13997         * doc/posix-functions/fprintf.texi (fprintf):
13998         * doc/posix-functions/printf.texi (printf):
13999         * doc/posix-functions/snprintf.texi (snprintf):
14000         * doc/posix-functions/sprintf.texi (sprintf):
14001         * doc/posix-functions/vdprintf.texi (vdprintf):
14002         * doc/posix-functions/vfprintf.texi (vfprintf):
14003         * doc/posix-functions/vprintf.texi (vprintf):
14004         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14005         * doc/posix-functions/vsprintf.texi (vsprintf):
14006         Mention that these functions mishandle large floating point
14007         precisions on Solaris 10.  The same bug is also present in Solaris
14008         8, and I assume earlier.  This causes "cd gnulib-tests; make
14009         check" to fail on Solaris 8 (and I assume, later) when building
14010         the latest coreutils, in test-vasprintf-posix's call to
14011         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
14012         the wide flavors (e.g., wprintf) so this patch just updates the
14013         documentation for the narrow ones.
14014
14015         test-posixtm.c: add two tests
14016         * tests/test-posixtm.c: Add two tests, to highlight the
14017         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
14018         around this bug; this is merely to document it.
14019
14020 2010-12-22  Bruno Haible  <bruno@clisp.org>
14021
14022         getlogin_r: Work around portability problem on OSF/1.
14023         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
14024         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
14025         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
14026         test for a truncated result.
14027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
14028         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
14029         * modules/getlogin_r (Depends-on): Add memchr.
14030         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
14031
14032 2010-12-22  Bruno Haible  <bruno@clisp.org>
14033
14034         ptsname: Avoid test failure on OSF/1 5.1.
14035         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
14036         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
14037         (same_slave): New function.
14038         (main): Use it to compare ptsname's result with the expected file name.
14039
14040 2010-12-22  Bruno Haible  <bruno@clisp.org>
14041
14042         Port extended stdio modules to HP NonStop Kernel.
14043         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
14044         macros.
14045         * lib/fbufmode.c: Update comments.
14046         * lib/fflush.c: Likewise.
14047         * lib/fpurge.c: Likewise.
14048         * lib/freadable.c: Likewise.
14049         * lib/freadahead.c: Likewise.
14050         * lib/freading.c: Likewise.
14051         * lib/freadptr.c: Likewise.
14052         * lib/freadseek.c: Likewise.
14053         * lib/fseeko.c: Likewise.
14054         * lib/fseterr.c: Likewise.
14055         * lib/fwritable.c: Likewise.
14056         * lib/fwriting.c: Likewise.
14057         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14058
14059 2010-12-22  Bruno Haible  <bruno@clisp.org>
14060
14061         ttyname_r: Work around bug on OSF/1 5.1.
14062         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
14063         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
14064         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
14065         present.
14066         * lib/ttyname_r.c (ttyname_r): Update comments.
14067
14068 2010-12-22  Bruno Haible  <bruno@clisp.org>
14069
14070         round: Implement result sign according to IEEE 754.
14071         * lib/round.c (MIN, MINUS_ZERO): New macros.
14072         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
14073         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
14074         * tests/test-round-ieee.c (main): Likewise.
14075         * tests/test-roundl-ieee.c (main): Likewise.
14076
14077         trunc: Implement result sign according to IEEE 754.
14078         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
14079         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
14080         * tests/test-trunc2.c: Include minus-zero.h.
14081         (MINUS_ZERO): New macro.
14082         (trunc_reference): Keep in sync with lib/trunc.c.
14083         * tests/test-truncf2.c: Include minus-zero.h.
14084         (MINUS_ZERO): New macro.
14085         (truncf_reference): Keep in sync with lib/trunc.c.
14086         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
14087         * tests/test-trunc-ieee.c (main): Likewise.
14088         * tests/test-truncl-ieee.c (main): Likewise.
14089
14090         ceil: Implement result sign according to IEEE 754.
14091         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
14092         (FUNC): Return -0.0 for -1 < x < 0.
14093         * tests/test-ceil2.c: Include minus-zero.h.
14094         (MINUS_ZERO): New macro.
14095         (ceil_reference): Keep in sync with lib/ceil.c.
14096         * tests/test-ceilf2.c: Include minus-zero.h.
14097         (MINUS_ZERO): New macro.
14098         (ceilf_reference): Keep in sync with lib/ceil.c.
14099         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
14100         * tests/test-ceil-ieee.c (main): Likewise.
14101         * tests/test-ceill-ieee.c (main): Likewise.
14102
14103         floor: Implement result sign according to IEEE 754.
14104         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
14105         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
14106         * tests/test-floorf2.c (floorf_reference): Likewise.
14107         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
14108         * tests/test-floor-ieee.c (main): Likewise.
14109         * tests/test-floorl-ieee.c (main): Likewise.
14110
14111 2010-12-22  Bruno Haible  <bruno@clisp.org>
14112
14113         getaddrinfo: Update doc.
14114         * doc/posix-functions/gai_strerror.texi: Return type is also different
14115         on AIX and HP-UX.
14116
14117 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14118
14119         getaddrinfo, inet_ntop: Update doc for Solaris.
14120         * doc/posix-functions/gai_strerror.texi: Return type is also an
14121         issue on Solaris 9 and earlier.
14122         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
14123         on Solaris 10 and earlier.
14124
14125 2010-12-21  Bruno Haible  <bruno@clisp.org>
14126
14127         New module 'roundl-ieee'.
14128         * modules/roundl-ieee: New file.
14129         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
14130         test whether roundl works according to ISO C 99 with IEC 60559.
14131         * m4/roundl-ieee.m4: New file.
14132         * modules/roundl-ieee-tests: New file.
14133         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
14134         * tests/test-roundl.c (main): Remove signbit tests.
14135         * modules/roundl-tests (Depends-on): Remove signbit.
14136         * doc/posix-functions/roundl.texi: Mention the new module.
14137
14138 2010-12-21  Bruno Haible  <bruno@clisp.org>
14139
14140         New module 'truncl-ieee'.
14141         * modules/truncl-ieee: New file.
14142         * modules/truncl-ieee-tests: New file.
14143         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
14144         * tests/test-truncl.c (main): Remove signbit tests.
14145         * modules/truncl-tests (Depends-on): Remove signbit.
14146         * doc/posix-functions/truncl.texi: Mention the new module.
14147
14148 2010-12-21  Bruno Haible  <bruno@clisp.org>
14149
14150         New module 'ceill-ieee'.
14151         * modules/ceill-ieee: New file.
14152         * modules/ceill-ieee-tests: New file.
14153         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
14154         * tests/test-ceill.c (main): Remove signbit tests.
14155         * modules/ceill-tests (Depends-on): Remove signbit.
14156         * doc/posix-functions/ceill.texi: Mention the new module.
14157
14158 2010-12-21  Bruno Haible  <bruno@clisp.org>
14159
14160         New module 'floorl-ieee'.
14161         * modules/floorl-ieee: New file.
14162         * modules/floorl-ieee-tests: New file.
14163         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
14164         * tests/test-floorl.c (main): Remove signbit tests.
14165         * modules/floorl-tests (Depends-on): Remove signbit.
14166         * doc/posix-functions/floorl.texi: Mention the new module.
14167
14168 2010-12-21  Bruno Haible  <bruno@clisp.org>
14169
14170         New module 'round-ieee'.
14171         * modules/round-ieee: New file.
14172         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
14173         whether round works according to ISO C 99 with IEC 60559.
14174         * m4/round-ieee.m4: New file.
14175         * modules/round-ieee-tests: New file.
14176         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
14177         * tests/test-round1.c (main): Remove signbit tests.
14178         * modules/round-tests (Depends-on): Remove 'signbit'.
14179         * doc/posix-functions/round.texi: Mention the new module.
14180
14181 2010-12-21  Bruno Haible  <bruno@clisp.org>
14182
14183         New module 'trunc-ieee'.
14184         * modules/trunc-ieee: New file.
14185         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
14186         whether trunc works according to ISO C 99 with IEC 60559.
14187         * m4/trunc-ieee.m4: New file.
14188         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
14189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
14190         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
14191         * modules/trunc-ieee-tests: New file.
14192         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
14193         * tests/test-trunc1.c (main): Remove signbit tests.
14194         * modules/trunc-tests (Depends-on): Remove 'signbit'.
14195         * doc/posix-functions/trunc.texi: Mention the new module.
14196
14197 2010-12-21  Bruno Haible  <bruno@clisp.org>
14198
14199         New module 'ceil-ieee'.
14200         * modules/ceil-ieee: New file.
14201         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
14202         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
14203         ISO C 99 with IEC 60559.
14204         * m4/ceil-ieee.m4: New file.
14205         * modules/ceil (Files): Add lib/ceil.c.
14206         (Depends-on): Add 'float'.
14207         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14208         * lib/math.in.h (ceil): New declaration.
14209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
14210         REPLACE_CEIL.
14211         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
14212         * modules/ceil-ieee-tests: New file.
14213         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
14214         * tests/test-math-c++.cc: Check the signature of 'ceil'.
14215         * doc/posix-functions/ceil.texi: Mention the new module.
14216
14217 2010-12-21  Bruno Haible  <bruno@clisp.org>
14218
14219         New module 'floor-ieee'.
14220         * modules/floor-ieee: New file.
14221         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
14222         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
14223         ISO C 99 with IEC 60559.
14224         * m4/floor-ieee.m4: New file.
14225         * modules/floor (Files): Add lib/floor.c.
14226         (Depends-on): Add 'float'.
14227         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14228         * lib/math.in.h (floor): New declaration.
14229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
14230         REPLACE_FLOOR.
14231         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
14232         * modules/floor-ieee-tests: New file.
14233         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
14234         * tests/test-math-c++.cc: Check the signature of 'floor'.
14235         * doc/posix-functions/floor.texi: Mention the new module.
14236
14237 2010-12-21  Bruno Haible  <bruno@clisp.org>
14238
14239         New module 'roundf-ieee'.
14240         * modules/roundf-ieee: New file.
14241         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
14242         test whether roundf works according to ISO C 99 with IEC 60559.
14243         * m4/roundf-ieee.m4: New file.
14244         * modules/roundf-ieee-tests: New file.
14245         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
14246         * tests/test-roundf1.c (main): Remove signbit tests.
14247         * modules/roundf-tests (Depends-on): Remove 'signbit'.
14248         * doc/posix-functions/roundf.texi: Mention the new module.
14249
14250 2010-12-21  Bruno Haible  <bruno@clisp.org>
14251
14252         New module 'truncf-ieee'.
14253         * modules/truncf-ieee: New file.
14254         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14255         test whether truncf works according to ISO C 99 with IEC 60559.
14256         * m4/truncf-ieee.m4: New file.
14257         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14259         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14260         * modules/truncf-ieee-tests: New file.
14261         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14262         * tests/test-truncf1.c (main): Remove signbit tests.
14263         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14264         * doc/posix-functions/truncf.texi: Mention the new module.
14265
14266 2010-12-21  Bruno Haible  <bruno@clisp.org>
14267
14268         New module 'ceilf-ieee'.
14269         * modules/ceilf-ieee: New file.
14270         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14271         test whether ceilf works according to ISO C 99 with IEC 60559.
14272         * m4/ceilf-ieee.m4: New file.
14273         * modules/ceilf-ieee-tests: New file.
14274         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14275         * tests/test-ceilf1.c (main): Remove signbit tests.
14276         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14277         * doc/posix-functions/ceilf.texi: Mention the new module.
14278
14279 2010-12-21  Bruno Haible  <bruno@clisp.org>
14280
14281         New module 'floorf-ieee'.
14282         * modules/floorf-ieee: New file.
14283         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14284         test whether floorf works according to ISO C 99 with IEC 60559.
14285         * m4/floorf-ieee.m4: New file.
14286         * modules/floorf-ieee-tests: New file.
14287         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14288         * tests/test-floorf1.c (main): Remove signbit tests.
14289         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14290         * doc/posix-functions/floorf.texi: Mention the new module.
14291
14292 2010-12-21  Bruno Haible  <bruno@clisp.org>
14293
14294         Support for minus zero in autoconf macros.
14295         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14296         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14297         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14298         * tests/minus-zero.h: Update comments.
14299
14300 2010-12-21  Bruno Haible  <bruno@clisp.org>
14301
14302         Tests for module 'ceil'.
14303         * modules/ceil-tests: New file.
14304         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14305         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14306
14307 2010-12-21  Bruno Haible  <bruno@clisp.org>
14308
14309         Tests for module 'floor'.
14310         * modules/floor-tests: New file.
14311         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14312         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14313
14314 2010-12-21  Bruno Haible  <bruno@clisp.org>
14315
14316         math: Fix indentation.
14317         * lib/math.in.h (floorf): Fix indentation.
14318
14319 2010-12-21  Bruno Haible  <bruno@clisp.org>
14320
14321         Fix cross-compilation guesses on Solaris.
14322         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14323         not match "solaris2.10".
14324         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14325         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14326         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14327
14328 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14329
14330         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14331         This fixes a problem observed with the latest coreutils snapshot
14332         that caused a test to fail on Solaris 8.  src/csplit.c's call
14333         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14334         earlier, instead of returning the number of bytes that would have
14335         been generated; this causes csplit to incorrectly report memory
14336         exhaustion.
14337         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14338         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14339         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14340         comments to match.
14341         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14342         Fix typo in matching older versions of Solaris: "solaris2.10"
14343         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14344         only for guessing while cross-compiling.
14345         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14346
14347 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14348
14349         ftoastr: fix comment again
14350         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14351         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14352         Also, simplify example a bit by using flags = 0.
14353
14354 2010-12-20  Bruno Haible  <bruno@clisp.org>
14355
14356         round*, trunc*: Update documentation regarding glibc.
14357         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14358         * doc/posix-functions/round.texi: Likewise.
14359         * doc/posix-functions/roundl.texi: Likewise.
14360         * doc/posix-functions/truncf.texi: Likewise.
14361         * doc/posix-functions/trunc.texi: Likewise.
14362         * doc/posix-functions/truncl.texi: Likewise.
14363
14364 2010-12-20  Bruno Haible  <bruno@clisp.org>
14365
14366         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14367         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14368         * doc/posix-functions/round.texi: Likewise.
14369         * doc/posix-functions/roundl.texi: Likewise.
14370
14371 2010-12-20  Bruno Haible  <bruno@clisp.org>
14372
14373         ttyname_r: Add missing declaration on HP-UX 11.
14374         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14375         HAVE_TTYNAME_R.
14376         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14377         declared. Set HAVE_TTYNAME_R always.
14378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14379         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14380         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14381         HAVE_TTYNAME_R.
14382         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14383
14384 2010-12-20  Bruno Haible  <bruno@clisp.org>
14385
14386         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14387         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14388         * doc/posix-functions/getlogin_r.texi: Likewise.
14389         * tests/test-getlogin.c: Include <errno.h>.
14390         (main): Avoid test failure on HP-UX 11.11.
14391         * tests/test-getlogin_r.c (main): Likewise.
14392
14393 2010-12-20  Bruno Haible  <bruno@clisp.org>
14394
14395         getlogin_r: Add missing declaration on HP-UX 11.
14396         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
14397         declared also when it exists as a function.
14398         * doc/posix-functions/getlogin_r.texi: Document this workaround.
14399
14400 2010-12-20  Bruno Haible  <bruno@clisp.org>
14401
14402         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
14403         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
14404         through wcrtomb.
14405
14406 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14407
14408         ftoastr: fix comment
14409         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14410         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
14411
14412 2010-12-19  Bruno Haible  <bruno@clisp.org>
14413
14414         isnan: Ensure it is a macro.
14415         * lib/math.in.h (isnan): Define as a macro if not already a macro.
14416         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
14417         Solaris.
14418
14419 2010-12-19  Bruno Haible  <bruno@clisp.org>
14420
14421         ldexpl test: Fix link error on OSF/1 5.1.
14422         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
14423
14424 2010-12-19  Bruno Haible  <bruno@clisp.org>
14425
14426         wctype: Make it work in C++ mode on OSF/1 5.1.
14427         * lib/wctype.in.h (iswblank): Declare but not define here.
14428         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
14429         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
14430         * modules/wctype (Files): Add lib/iswblank.c.
14431
14432 2010-12-19  Bruno Haible  <bruno@clisp.org>
14433
14434         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
14435         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
14436         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
14437
14438 2010-12-19  Bruno Haible  <bruno@clisp.org>
14439
14440         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
14441         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
14442         _POSIX_PII_SOCKET.
14443         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
14444         * doc/posix-functions/recvfrom.texi: Likewise.
14445         * doc/posix-functions/send.texi: Likewise.
14446         * doc/posix-functions/sendto.texi: Likewise.
14447
14448 2010-12-19  Bruno Haible  <bruno@clisp.org>
14449
14450         tcgetsid: Add missing declaration on OSF/1 5.1.
14451         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
14452         HAVE_TCGETSID.
14453         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
14454         Don't set HAVE_TCGETSID.
14455         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
14456         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
14457         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
14458         HAVE_TCGETSID.
14459         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
14460
14461 2010-12-19  Bruno Haible  <bruno@clisp.org>
14462
14463         stdio: Fix problem with popen() declaration on OSF/1 5.1.
14464         * lib/stdio.in.h: During the include_next statement, let recursive
14465         includes of this file include only the system header file.
14466
14467 2010-12-19  Bruno Haible  <bruno@clisp.org>
14468
14469         iconv_open: Fix regression from 2010-12-04.
14470         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
14471         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
14472
14473 2010-12-19  Bruno Haible  <bruno@clisp.org>
14474
14475         stdbool test: Avoid a gcc warning.
14476         * tests/test-stdbool.c (main): Fail if e1 is false.
14477         Reported by Jim Meyering.
14478
14479 2010-12-19  Jim Meyering  <meyering@redhat.com>
14480
14481         setenv: restore to working order
14482         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14483         mistakenly removed.
14484         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14485         HAVE_SETENV.
14486         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14487         HAVE_SETENV.
14488
14489 2010-12-19  Bruno Haible  <bruno@clisp.org>
14490
14491         Document some different function declarations on OSF/1 5.1.
14492         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14493         * doc/posix-functions/inet_ntop.texi: Likewise.
14494         * doc/posix-functions/gethostname.texi: Likewise.
14495         * lib/unistd.in.h (gethostname): Update comment.
14496
14497 2010-12-19  Bruno Haible  <bruno@clisp.org>
14498
14499         doc: Mention vasprintf-posix module.
14500         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14501         the 'vasprintf-posix' module.
14502         * doc/glibc-functions/vasprintf.texi: Likewise.
14503
14504 2010-12-19  Bruno Haible  <bruno@clisp.org>
14505
14506         unsetenv: Add missing declaration on OSF/1 5.1.
14507         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14508         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14509         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14511         not HAVE_UNSETENV.
14512         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14513         HAVE_UNSETENV.
14514         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14515
14516 2010-12-19  Bruno Haible  <bruno@clisp.org>
14517
14518         setenv: Add missing declaration on OSF/1 5.1.
14519         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14520         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14521         declared. Don't set HAVE_SETENV.
14522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14523         not HAVE_SETENV.
14524         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14525         HAVE_SETENV.
14526         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14527
14528 2010-12-19  Bruno Haible  <bruno@clisp.org>
14529
14530         nl_langinfo tests: Avoid gcc warning.
14531         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14532
14533 2010-12-19  Bruno Haible  <bruno@clisp.org>
14534
14535         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14536         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14537         _GL_CXXALIAS_SYS.
14538
14539 2010-12-19  Bruno Haible  <bruno@clisp.org>
14540
14541         stdbool: Relax test.
14542         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14543         address to 'bool' work in static initializer, for compilers other than
14544         GCC.
14545
14546 2010-12-19  Bruno Haible  <bruno@clisp.org>
14547
14548         ftello: Add missing declaration on OSF/1 5.1.
14549         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14550         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14552         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14553         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14554
14555 2010-12-19  Bruno Haible  <bruno@clisp.org>
14556
14557         fseeko: Add missing declaration on OSF/1 5.1.
14558         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14559         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14561         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14562         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14563
14564 2010-12-19  Bruno Haible  <bruno@clisp.org>
14565
14566         fchdir: Add missing declaration on OSF/1 5.1.
14567         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14568         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14570         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14571         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14572
14573 2010-12-19  Bruno Haible  <bruno@clisp.org>
14574
14575         relocatable-prog-wrapper: Separate from relocatable-prog.
14576         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14577         uninstall-relocwrapper rule here.
14578         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14579         Reported by Ian Beckwith <ianb@erislabs.net>.
14580
14581 2010-12-19  Bruno Haible  <bruno@clisp.org>
14582
14583         unistr/u8-mbsnlen: Add missing dependency.
14584         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14585         Reported by Ian Beckwith <ianb@erislabs.net>.
14586
14587 2010-12-19  Bruno Haible  <bruno@clisp.org>
14588
14589         iconv: Make it possible again to use this module without 'iconv-h'.
14590         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14591         if it is not defined.
14592         Reported by Ian Beckwith <ianb@erislabs.net>.
14593
14594 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14595
14596         acl: port to Solaris 8 when copying from tmpfs to ufs
14597         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14598         error number.  Problem observed on Solaris 8 with latest
14599         coreutils, with "mv A B", where A is on a tmpfs file system and B
14600         is on a ufs file system.  This caused coreutils' mv/part-symlink
14601         test to fail.
14602
14603         tests: set fail=0 at start
14604         * tests/init.sh (setup_): Move fail=0 initialization here ...
14605         (mktempd_): ... from here, so that tests can rely on fail being
14606         set to 0 initially.  This fixes a problem in coreutils; see:
14607         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14608
14609 2010-12-18  Bruno Haible  <bruno@clisp.org>
14610
14611         memmem-simple: Stylistic changes.
14612         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14613         Fix preprocessor directive indentation.
14614
14615 2010-12-15  Pádraig Brady <P@draigBrady.com>
14616
14617         memmem, memmem-simple: reorganize and expand empty needle check
14618         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14619         functional checks to memmem-simple so that one has a fully functional
14620         memmem by using just this module.
14621         Restrict the performance only check to the memmem module.
14622         Also expand the empty needle check to ensure the correct
14623         pointer is returned, not just a non NULL pointer.
14624         * doc/glibc-functions/memmem.texi: Rearrange the portability
14625         documentation to correlate with the rearranged checks.
14626         Clarify exactly how the memmem and memmem-simple modules
14627         relate to each other.
14628
14629 2010-12-15  Pádraig Brady <P@draigBrady.com>
14630             Bruno Haible  <bruno@clisp.org>
14631
14632         Improve cross-compilation guesses for uClibc.
14633         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14634         that uClibc does not have the glibc bug.
14635         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14636         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14637
14638 2010-12-14  Eric Blake  <eblake@redhat.com>
14639
14640         configmake: provide fallbacks for oldest supported autotools
14641         * m4/configmake.m4: New file.
14642         * modules/configmake (Files): Ship it.
14643         (configure.ac): Use it to guarantee fallbacks.
14644
14645 2010-12-13  Pádraig Brady <P@draigBrady.com>
14646
14647         read-file: Improve handling of large files
14648         * lib/read-file.c (fread_file): Minimize realloc()s
14649         for regular files, and better manage sizes around SIZE_MAX.
14650
14651 2010-12-13  Eric Blake  <eblake@redhat.com>
14652
14653         cloexec, fcntl: relax license
14654         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14655         consent from all contributors.
14656         * modules/fcntl (License): Likewise.
14657
14658 2010-12-10  Bruno Haible  <bruno@clisp.org>
14659
14660         Tests for module 'pipe-posix'.
14661         * modules/pipe-posix-tests: New file.
14662         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14663
14664 2010-12-10  Bruno Haible  <bruno@clisp.org>
14665
14666         pipe-posix: Make it work in C++ mode.
14667         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14668         (pipe): Use common idiom, not a macro definition.
14669         * lib/pipe.c: New file.
14670         * m4/pipe.m4: New file.
14671         * modules/pipe-posix (Description): Enhance.
14672         (Files): Add lib/pipe.c, m4/pipe.m4.
14673         (configure.ac): Invoke gl_FUNC_PIPE.
14674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14675         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14676         * tests/test-unistd-c++.cc: Check the signature of pipe.
14677
14678 2010-12-10  Bruno Haible  <bruno@clisp.org>
14679
14680         Rename module 'pipe' to 'spawn-pipe'.
14681         * modules/spawn-pipe: New file, renamed from modules/pipe.
14682         (Files, configure.ac, Makefile.am): Update.
14683         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14684         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14685         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14686         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14687         "spawn-pipe.h" instead of "pipe.h".
14688         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14689         to gl_SPAWN_PIPE.
14690         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14691         (Files, Makefile.am): Update.
14692         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14693         Update.
14694         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14695         Include "spawn-pipe.h" instead of "pipe.h".
14696         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14697         * lib/javacomp.c: Likewise.
14698         * lib/javaversion.c: Likewise.
14699         * lib/pipe-filter-gi.c: Likewise.
14700         * lib/pipe-filter-ii.c: Likewise.
14701         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14702         * modules/javacomp (Depends-on): Likewise.
14703         * modules/javaversion (Depends-on): Likewise.
14704         * modules/pipe-filter-gi (Depends-on): Likewise.
14705         * modules/pipe-filter-ii (Depends-on): Likewise.
14706         * MODULES.html.sh (Executing programs): Update.
14707         * NEWS: Mention the change.
14708
14709 2010-12-10  Eric Blake  <eblake@redhat.com>
14710
14711         pipe-posix: new module
14712         * modules/pipe-posix: New file.
14713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14714         (gl_UNISTD_H): Check for declaration.
14715         * modules/unistd (Makefile.am): Substitute it.
14716         * lib/unistd.in.h (pipe): Provide it for mingw.
14717         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14718         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14719
14720 2010-12-07  Bruno Haible  <bruno@clisp.org>
14721
14722         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14723         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14724         u8_strcmp_gnu.
14725         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14726
14727 2010-12-06  Bruno Haible  <bruno@clisp.org>
14728
14729         Update internal documentation.
14730         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14731
14732 2010-12-04  Bruno Haible  <bruno@clisp.org>
14733
14734         Put more information about failed tests into the test return codes.
14735         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14736         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14737         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14738         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14739         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14740         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14741         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14742         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14743         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14744         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14745         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14746         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14747         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14748         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14749         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14750         returns a bit mask.
14751         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14752         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14753         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14754         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14755         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14756         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14757         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14758         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14759         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14760         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14761         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14762         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14763         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14764         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14765         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14766         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14767         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14768         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14769         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14770         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14771         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14772         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14773         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14774         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14775         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14776         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14777         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14778         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14779         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14780         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14781         gl_PRINTF_PRECISION): Likewise.
14782         * m4/regex.m4 (gl_REGEX): Likewise.
14783         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14784         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14785         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14786         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14787         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14788         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14789         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14790         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14791         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14792         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14793         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14794         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14795         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14796         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14797         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14798         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14799         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14800         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14801         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14802         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14803         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14804         enumerated value.
14805         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14806
14807 2010-12-04  Bruno Haible  <bruno@clisp.org>
14808
14809         Update for Solaris 11 2010-11.
14810         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14811         Express, released in November 2010.
14812
14813 2010-12-04  Bruno Haible  <bruno@clisp.org>
14814
14815         nproc: Relax license.
14816         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14817         and Paul Eggert.
14818         Requested by Ludovic Courtès <ludo@gnu.org>.
14819
14820 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14821
14822         utimecmp: fine-grained src to nearby coarse-grained dest
14823
14824         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14825         and the source is on a file system with higher-resolution time
14826         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14827         not work, and the time stamps are close together, the algorithm to
14828         determine the exact resolution from the read-back mtime was buggy:
14829         it had a "!=" where it should have had an "==".  This bug has been
14830         in the code ever since it was introduced to gnulib.
14831         Problem reported by Dan Jacobson in
14832         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14833
14834 2010-11-30  Bruno Haible  <bruno@clisp.org>
14835
14836         strerror_r-posix: Fix autoconf test.
14837         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14838
14839 2010-11-28  Bruno Haible  <bruno@clisp.org>
14840             Paul Eggert  <eggert@cs.ucla.edu>
14841
14842         Tests for module 'getdomainname'.
14843         * modules/getdomainname-tests: New file.
14844         * tests/test-getdomainname.c: New file, based on
14845         tests/test-gethostname.c.
14846
14847 2010-11-28  Bruno Haible  <bruno@clisp.org>
14848             Paul Eggert  <eggert@cs.ucla.edu>
14849
14850         getdomainname: Use the system function when possible.
14851         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14852         (getdomainname): Replace if needed. Provide the declaration if it is
14853         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14854         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14855         (getdomainname): When the system has getdomainname, call the system
14856         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14857         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14858         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14859         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14860         the function if its second argument is of type 'int' or if it is found
14861         in libnsl.
14862         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14863         <sys/systeminfo.h> and sysinfo().
14864         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14866         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14867         HAVE_GETDOMAINNAME.
14868         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14869         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14870         * doc/glibc-functions/getdomainname.texi: Document the problems with
14871         the getdomainname declaration.
14872
14873 2010-11-28  Bruno Haible  <bruno@clisp.org>
14874
14875         sys_socket: Ensure ss_family field on AIX.
14876         * lib/sys_socket.in.h (ss_family): New macro definition.
14877         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14878         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14879         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14880         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14881         * modules/sys_socket (Makefile.am): Substitute
14882         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14883         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14884
14885 2010-11-27  Bruno Haible  <bruno@clisp.org>
14886
14887         readline: Improve configure output.
14888         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14889         "checking for readline..." result understandable.
14890
14891 2010-11-27  Bruno Haible  <bruno@clisp.org>
14892
14893         *printf-posix: Detect a bug on Solaris 10/x86.
14894         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14895         for floating-point output.
14896         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14897         directive.
14898         * tests/test-snprintf-posix.h (test_function): Likewise.
14899         * tests/test-sprintf-posix.h (test_function): Likewise.
14900         * tests/test-vasprintf-posix.c (test_function): Likewise.
14901         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14902         * doc/posix-functions/printf.texi: Likewise.
14903         * doc/posix-functions/snprintf.texi: Likewise.
14904         * doc/posix-functions/sprintf.texi: Likewise.
14905         * doc/posix-functions/vfprintf.texi: Likewise.
14906         * doc/posix-functions/vprintf.texi: Likewise.
14907         * doc/posix-functions/vsnprintf.texi: Likewise.
14908         * doc/posix-functions/vsprintf.texi: Likewise.
14909         * doc/glibc-functions/obstack_printf.texi: Likewise.
14910         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14911
14912 2010-11-27  Bruno Haible  <bruno@clisp.org>
14913
14914         Fix link error when module libunistring-optional is in use.
14915         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14916         * modules/striconveha-tests (Makefile.am): Likewise.
14917
14918 2010-11-27  Bruno Haible  <bruno@clisp.org>
14919
14920         regex: Mention link dependencies.
14921         * modules/regex (Link): New section.
14922         * modules/rpmatch (Link): Likewise.
14923         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14924
14925 2010-11-27  Bruno Haible  <bruno@clisp.org>
14926
14927         ftoastr: Fix compilation error on Solaris.
14928         * lib/ftoastr.c: Include <config.h>.
14929
14930 2010-11-27  Bruno Haible  <bruno@clisp.org>
14931
14932         getloadavg: Update documentation.
14933         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14934
14935 2010-11-27  Bruno Haible  <bruno@clisp.org>
14936
14937         sys_socket: Fix test whether the functions are declared.
14938         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14939         not <sys/select.h>.
14940
14941 2010-11-27  Bruno Haible  <bruno@clisp.org>
14942
14943         getpass: Make sure to get system declaration on some platforms.
14944         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14945         gl_USE_SYSTEM_EXTENSIONS.
14946         * modules/getpass (Depends-on): Add extensions.
14947
14948 2010-11-26  Bruno Haible  <bruno@clisp.org>
14949
14950         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14951         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14952         'iconv' module is present.
14953         (ICONV_CONST): New macro.
14954         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14955         ICONV_CONST.
14956         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14957         set ICONV_CONST.
14958         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14959         here.
14960         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14961         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14962         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14963         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14964         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14965         present.
14966
14967 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14968
14969         ftoastr: comment fix
14970         * lib/ftoastr.c: "little" -> "little or no" in comment
14971
14972 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14973
14974         stdint: port to GCC 4.3 + OSX + Octave
14975         On this platform, stdint.h is buggy and defines int64_t to long
14976         long int.  The replacement defined it to long int, causing
14977         problems with C++ style name mangling.  Instead, trust the system
14978         definition if INT64_MAX is defined, and likewise for the unsigned
14979         variant.   Problem reported by Jarno Rajahalme in
14980         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14981         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14982         and don't mess with int64_t and INT64_MAX in this case.
14983         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14984
14985 2010-11-24  Bruno Haible  <bruno@clisp.org>
14986
14987         doc: Corrections regarding MacOS X 10.4 and 10.5.
14988         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14989         MacOS X.
14990         Reported by Simon Josefsson.
14991
14992 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14993
14994         Uninstall ".bin" files installed by relocwrapper.
14995         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14996         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14997         unless it is already there.
14998
14999 2010-11-21  Bruno Haible  <bruno@clisp.org>
15000
15001         Update for NetBSD 5.0.
15002         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15003         NetBSD; the test fails on NetBSD 5.0.
15004         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15005         about NetBSD.
15006
15007 2010-11-21  Bruno Haible  <bruno@clisp.org>
15008
15009         Update for HP-UX 11.23 and HP-UX 11.31.
15010         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
15011         HP-UX.
15012
15013 2010-11-21  Bruno Haible  <bruno@clisp.org>
15014
15015         Update for MacOS X 10.5.
15016         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15017         MacOS X; the test fails on MacOS X 10.5.8.
15018         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15019         about MacOS X.
15020
15021 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
15022
15023         bootstrap: add bootstrap_sync option.
15024         See discussion at
15025         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
15026         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
15027         * build-aux/bootstrap: Accept --bootstrap-sync to update
15028         bootstrap if it is not identical to the local gnulib's
15029         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
15030         enable this by default.  Accept --no-bootstrap-sync to disable
15031         it.
15032
15033 2010-11-20  Bruno Haible  <bruno@clisp.org>
15034
15035         Ensure that <features.h> is included before __GLIBC__ is tested.
15036         * lib/printf-parse.h: Include <features.h>.
15037         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
15038         Reported by Mike Frysinger <vapier@gentoo.org>.
15039
15040         Ensure that <features.h> is included before __GLIBC__ is tested.
15041         * lib/wchar.in.h: Include <features.h>.
15042         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
15043         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
15044         Reported by Mike Frysinger <vapier@gentoo.org>.
15045
15046         Ensure that <features.h> is included before __GLIBC__ is tested.
15047         * lib/arpa_inet.in.h: Include <features.h>.
15048         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
15049         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
15050         Reported by Mike Frysinger <vapier@gentoo.org>.
15051
15052         Ensure that <features.h> is included before __GLIBC__ is tested.
15053         * build-aux/link-warning.h: Include <features.h>.
15054         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
15055         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
15056         Reported by Mike Frysinger <vapier@gentoo.org>.
15057
15058         Ensure that <features.h> is included before __GLIBC__ is tested.
15059         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
15060         Reported by Mike Frysinger <vapier@gentoo.org>.
15061
15062 2010-11-20  Bruno Haible  <bruno@clisp.org>
15063
15064         memmem: Fix autoconf test.
15065         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
15066
15067 2010-11-20  Bruno Haible  <bruno@clisp.org>
15068
15069         Port to uClibc.
15070         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
15071         * lib/fcntl.in.h: Likewise.
15072         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
15073         * lib/mbrtowc.c (mbrtowc): Likewise.
15074         * lib/relocatable.c (find_shared_library_fullname): Likewise.
15075         * lib/strerror_r.c: Likewise.
15076         * lib/unistr/u8-strnlen.c: Likewise.
15077         * lib/vasnprintf.c (decimal_point_char): Likewise.
15078         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15079         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15080         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15081         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15082         * tests/test-sigaction.c (handler, main): Likewise.
15083         * lib/freading.h: Treat uClibc like a non-glibc platform.
15084         * lib/freading.c: Likewise.
15085         * lib/gettext.h: Likewise.
15086         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
15087         Likewise.
15088         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
15089         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15090         * lib/propername.c (proper_name_utf8): Likewise.
15091         * lib/spawn.in.h: Likewise.
15092         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
15093         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
15094         mem_cd_iconveh_internal): Likewise.
15095         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
15096         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15097         strstr, strcasestr): Likewise.
15098         * lib/unicodeio.c (unicode_to_mb): Likewise.
15099         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
15100         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
15101         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
15102         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
15103         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
15104         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
15105         * lib/unistr/u8-stpncpy.c: Likewise.
15106         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15107         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
15108         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15109         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15110         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15111         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
15112         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
15113         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
15114         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15115         Likewise.
15116         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15117         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15118         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15119         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15120         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15121         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15122         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15123         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15124         * tests/test-getopt.h (OPTIND_MIN): Likewise.
15125         * tests/test-striconveha.c (main): Likewise.
15126         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15127         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
15128         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
15129         * doc/posix-functions/getline.texi: Likewise.
15130         Reported by Mike Frysinger <vapier@gentoo.org>.
15131
15132 2010-11-20  Bruno Haible  <bruno@clisp.org>
15133
15134         nproc: Fix condition.
15135         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
15136         HAVE_PTHREAD_AFFINITY_NP.
15137
15138 2010-11-20  Bruno Haible  <bruno@clisp.org>
15139
15140         Fix a comment.
15141         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
15142
15143 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
15144
15145         ftoastr: don't assume snprintf
15146         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
15147         Implement a subset of snprintf here, by using sprintf safely.
15148         * modules/ftoastr (Depends-on): Remove snprintf.
15149
15150 2010-11-19  Jim Meyering  <meyering@redhat.com>
15151
15152         test-rename.h: fix compilation failure
15153         * tests/test-rename.h (test_rename): Add omitted "}".
15154
15155 2010-11-17  Jim Meyering  <meyering@redhat.com>
15156
15157         maint.mk: add a URL discussing the no-@acronym policy
15158         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
15159
15160 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
15161
15162         ftoastr: depend on snprintf, improve comments
15163         * lib/ftoastr.c: Also mention Loitsch's draft.
15164         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
15165         needed in the current implementation, but it might simplify
15166         speeding up the code later.
15167         * modules/ftoastr: Depend on snprintf; this improves portability.
15168         Suggested by Bruno Haible in the same email.
15169
15170         ftoastr: port to hosts lacking strtof and strtold
15171         Problem reported by Bruno Haible in
15172         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
15173         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15174         environment and strtold (and presumably strtof) are not available.
15175         * modules/ftoastr (Files): Add m4/c-strtod.m4.
15176         (configure.ac): Require gl_C99_STRTOLD.
15177
15178 2010-11-18  Bruno Haible  <bruno@clisp.org>
15179
15180         c-strtold: Avoid link error on AIX 7.
15181         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
15182         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
15183         (gl_C_STRTOLD): Test whether strtold_l exists.
15184         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15185
15186 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15187
15188         intprops: new macro INT_BITS_STRLEN_BOUND
15189         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
15190         ftoastr.h.  This exposes an internal of intprops.h that was formerly
15191         not exposed.  Also, it uses a slightly tighter bound than before;
15192         though this makes no practical difference, we might as well be as
15193         tight as we easily can.
15194
15195         ftoastr: new module, for lossless conversion of floats to short strings
15196         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
15197         * modules/ftoastr: New files.
15198
15199 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15200
15201         bootstrap: port to Solaris sed
15202         * build-aux/bootstrap (get_version): Port to Solaris sed.
15203         See Ralf Wildenhues's note in
15204         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
15205
15206 2010-11-14  Jim Meyering  <meyering@redhat.com>
15207
15208         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
15209         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
15210         and move definition closer to sole use.
15211
15212 2010-11-13  Jim Meyering  <meyering@redhat.com>
15213
15214         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
15215         Now we require at least autoconf-2.59, which means the work-around
15216         is no longer needed.
15217         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
15218         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15219         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15220         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
15221         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15222
15223 2010-11-13  Bruno Haible  <bruno@clisp.org>
15224
15225         rename, renameat: Avoid test failures at NFS mounted locations.
15226         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
15227         functions.
15228         (test_rename): Use assert_nonexistent.
15229         * tests/test-rename.c: Include <dirent.h>.
15230         * tests/test-renameat.c: Likewise.
15231         Reported by Gary V. Vaughan <gary@gnu.org>.
15232
15233         rename, renameat: Document Linux bug with NFS
15234         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
15235         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
15236         * doc/posix-functions/renameat.texi: Likewise.
15237         Suggested by Eric Blake.
15238
15239 2010-11-13  Bruno Haible  <bruno@clisp.org>
15240
15241         rename test: Add comments.
15242         * tests/test-rename.h (test_rename): Add structure and comments.
15243
15244 2010-11-13  Eric Blake  <eblake@redhat.com>
15245
15246         maintainer-makefile: cover a few more files
15247         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
15248         scripts generated within C files, for libvirt.
15249
15250 2010-11-13  Bruno Haible  <bruno@clisp.org>
15251
15252         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15253         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15254         character, return the number of bytes that belong together, not always
15255         1.
15256         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15257         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15258         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15259         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15260         number of bytes of an invalid character.
15261         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15262         (main): Invoke it.
15263         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15264         results.
15265         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15266         malformed byte sequences.
15267         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15268         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15269         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15270         Reported by Ben Pfaff and Paolo Bonzini.
15271
15272 2010-11-13  Bruno Haible  <bruno@clisp.org>
15273
15274         openat: Work around glibc bug with fchownat() and empty file names.
15275         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15276         (gl_FUNC_FCHOWNAT): Invoke it.
15277         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15278         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15279         Reported by Gary V. Vaughan <gary@gnu.org>.
15280
15281 2010-11-13  Bruno Haible  <bruno@clisp.org>
15282
15283         openat: Ensure autoconf macro ordering.
15284         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15285         gl_USE_SYSTEM_EXTENSIONS.
15286         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15287
15288 2010-11-13  Bruno Haible  <bruno@clisp.org>
15289
15290         Update comments.
15291         * lib/unistr/u8-check.c: Update file name in comments.
15292         * lib/unistr/u8-mblen.c: Likewise.
15293         * lib/unistr/u8-prev.c: Likewise.
15294         * lib/unistr/u8-strmblen.c: Likewise.
15295         * lib/unistr/u8-strmbtouc.c: Likewise.
15296
15297 2010-11-13  Jim Meyering  <meyering@redhat.com>
15298
15299         tests: avoid test failure on Solaris 10 due to lack of PATH export
15300         * tests/test-update-copyright.sh: Don't forget to export PATH.
15301
15302         init.sh: ensure that IFS is defined, just in case...
15303         * tests/init.sh (setup_): Ensure that IFS is defined,
15304         so that saving and restoring it works as expected.  This
15305         appears to be useful at least for an old version of dash
15306         from a long time ago (RH 6).  See here for details:
15307         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15308
15309         maint.mk: tighten "test a == b" check
15310         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15311         test to files that contain something like #!/bin/sh.
15312         Without this, coreutils would get two false positives in
15313         the comments of C source files.
15314
15315 2010-11-12  Eric Blake  <eblake@redhat.com>
15316
15317         bootstrap: fix typo in previous attempt
15318         * build-aux/bootstrap (buildreq): Correct the grouping.
15319         Reported by Paul Eggert.
15320
15321         maintainer-makefile: prohibit test x == x
15322         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15323         Based on a report by Matthias Bolte.
15324
15325         bootstrap: allow FreeBSD gzip
15326         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15327         which has no '.' and goes to stderr.
15328         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15329         Reported by Matthias Bolte.
15330
15331         maintainer-makefile: check for i18n setup
15332         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15333         will likely work.
15334
15335 2010-11-12  Bruno Haible  <bruno@clisp.org>
15336
15337         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15338         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15339         * lib/nanosleep.c (nanosleep): Likewise.
15340
15341 2010-11-11  Bruno Haible  <bruno@clisp.org>
15342
15343         fcntl-h: Fix for use of C++ on glibc systems.
15344         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15345         also on glibc systems in C++ mode.
15346         Reported by Gary V. Vaughan <gary@gnu.org>.
15347
15348 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15349
15350         mknod: avoid false failure with dash
15351         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15352
15353 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15354
15355         unlink: Fix "is it should" typo in diagnostic.
15356         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15357         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15358
15359 2010-11-11  Bruno Haible  <bruno@clisp.org>
15360
15361         Tests for module 'strerror_r-posix'.
15362         * modules/strerror_r-posix-tests: New file.
15363         * tests/test-strerror_r.c: New file.
15364         * tests/test-string-c++.cc: Check the signature of strerror_r.
15365
15366         New module 'strerror_r-posix'.
15367         * lib/string.in.h (strerror_r): New declaration.
15368         * lib/strerror_r.c: New file.
15369         * m4/strerror_r.m4: New file.
15370         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15371         of strerror_r.
15372         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15373         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15374         * modules/strerror_r-posix: New file.
15375         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15376         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15377         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15378         portability problems.
15379
15380 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15381
15382         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15383         line is also considered for output. Quoted function name in shell
15384         command, so temporary files for functions like MyClass::operator()
15385         are removed correctly without errors.
15386
15387 2010-11-09  Bruno Haible  <bruno@clisp.org>
15388
15389         * doc/posix-functions/strerror.texi: List more failing platforms.
15390
15391         * doc/posix-functions/strerror.texi: Add a comment.
15392
15393 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15394
15395         fdopendir: fix bug on MacOS X when low on file descriptors
15396
15397         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
15398         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
15399         All callers changed.
15400         (fdopendir): Invoke save_cwd at the top level, not after using
15401         multiple dup() calls to use up file descriptors.  Then retry
15402         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15403         less than the maximum number of open file descriptors, because
15404         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
15405         on Mac OS X 10.6.4 for tar 1.24
15406         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
15407         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
15408         and for tar 1.25
15409         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
15410
15411 2010-11-07  Bruno Haible  <bruno@clisp.org>
15412
15413         vasnprintf: Support I flag on glibc systems.
15414         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
15415         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
15416         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
15417         snprintf function.
15418         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
15419         glibc systems.
15420         * tests/test-vasnprintf-posix3.c: New file.
15421         * modules/vasnprintf-posix-tests (Files): Add it.
15422         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
15423
15424 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15425
15426         [html] Fix copy/paste bug: Use unique name for compiler warnings.
15427         * MODULES.html.sh: For compiler warnings, use name
15428         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
15429
15430 2010-11-05  Eric Blake  <eblake@redhat.com>
15431
15432         ceil, floor: avoid spurious failure with icc
15433         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
15434         [denormals-as-zero] when optimizing without -mieee-fp option.
15435         * tests/test-floorf2.c (floorf_reference): Likewise.
15436         * tests/test-ceilf1.c (dummy): New function.
15437         (main): Use it to outsmart icc's optimization.
15438         * tests/test-floorf1.c (dummy, main): Likewise.
15439
15440         tests: require working signbit
15441         * modules/ceilf-tests (Depends-on): Add signbit.
15442         * modules/ceill-tests (Depends-on): Likewise.
15443         * modules/floorf-tests (Depends-on): Likewise.
15444         * modules/floorl-tests (Depends-on): Likewise.
15445         * modules/round-tests (Depends-on): Likewise.
15446         * modules/roundf-tests (Depends-on): Likewise.
15447         * modules/roundl-tests (Depends-on): Likewise.
15448         * modules/trunc-tests (Depends-on): Likewise.
15449         * modules/truncf-tests (Depends-on): Likewise.
15450         * modules/truncl-tests (Depends-on): Likewise.
15451
15452         strtod: work around icc bug
15453         * lib/strtod.c (minus_zero): Define to working value.
15454         (strtod): Use it to avoid icc bug.
15455
15456         copysign: enhance tests
15457         * modules/copysign-tests (Files): Add minus-zero.h.
15458         * tests/test-copysign.c (main): Also test zeros.
15459
15460 2010-11-04  Eric Blake  <eblake@redhat.com>
15461
15462         ceil, floor, round, trunc: enhance tests of -0
15463         * tests/test-ceilf1.c (main): Ensure correct sign of result.
15464         * tests/test-ceill.c (main): Likewise.
15465         * tests/test-floorf1.c (main): Likewise.
15466         * tests/test-floorl.c (main): Likewise.
15467         * tests/test-round1.c (main): Likewise.
15468         * tests/test-roundf1.c (main): Likewise.
15469         * tests/test-roundl.c (main): Likewise.
15470         * tests/test-trunc1.c (main): Likewise.
15471         * tests/test-truncf1.c (main): Likewise.
15472         * tests/test-truncl.c (main): Likewise.
15473
15474 2010-11-04  Eric Blake  <eblake@redhat.com>
15475
15476         frexp, tests: work around ICC bug with -zero
15477         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
15478         works with more compilers.
15479         * tests/minus-zero.h: New file.
15480         * modules/ceilf-tests (Files): Include it.
15481         * modules/ceill-tests (Files): Likewise.
15482         * modules/floorf-tests (Files): Likewise.
15483         * modules/floorl-tests (Files): Likewise.
15484         * modules/frexp-nolibm-tests (Files): Likewise.
15485         * modules/frexp-tests (Files): Likewise.
15486         * modules/frexpl-nolibm-tests (Files): Likewise.
15487         * modules/frexpl-tests (Files): Likewise.
15488         * modules/isnan-tests (Files): Likewise.
15489         * modules/isnand-nolibm-tests (Files): Likewise.
15490         * modules/isnand-tests (Files): Likewise.
15491         * modules/isnanf-nolibm-tests (Files): Likewise.
15492         * modules/isnanf-tests (Files): Likewise.
15493         * modules/isnanl-nolibm-tests (Files): Likewise.
15494         * modules/isnanl-tests (Files): Likewise.
15495         * modules/round-tests (Files): Likewise.
15496         * modules/roundf-tests (Files): Likewise.
15497         * modules/roundl-tests (Files): Likewise.
15498         * modules/ldexpl-tests (Files): Likewise.
15499         * modules/signbit-tests (Files): Likewise.
15500         * modules/snprintf-posix-tests (Files): Likewise.
15501         * modules/sprintf-posix-tests (Files): Likewise.
15502         * modules/strtod-tests (Files): Likewise.
15503         * modules/trunc-tests (Files): Likewise.
15504         * modules/truncf-tests (Files): Likewise.
15505         * modules/truncl-tests (Files): Likewise.
15506         * modules/vsnprintf-posix-tests (Files): Likewise.
15507         * modules/vsprintf-posix-tests (Files): Likewise.
15508         * modules/vasnprintf-posix-tests (Files): Likewise.
15509         * modules/vasprintf-posix-tests (Files): Likewise.
15510         * tests/test-ceilf1.c (main): Use it.
15511         * tests/test-ceill.c (main): Likewise.
15512         * tests/test-floorf1.c (main): Likewise.
15513         * tests/test-floorl.c (main): Likewise.
15514         * tests/test-frexp.c (main): Likewise.
15515         * tests/test-frexpl.c (main): Likewise.
15516         * tests/test-isnan.c (main): Likewise.
15517         * tests/test-isnand.h (main): Likewise.
15518         * tests/test-isnanf.h (main): Likewise.
15519         * tests/test-isnanl.h (main): Likewise.
15520         * tests/test-ldexpl.c (main): Likewise.
15521         * tests/test-round.c (main): Likewise.
15522         * tests/test-roundf.c (main): Likewise.
15523         * tests/test-roundl.c (main): Likewise.
15524         * tests/test-signbit.c (test_signbitf, test_signbitd)
15525         (test_signbitl): Likewise.
15526         * tests/test-snprintf-posix.h (test_function): Likewise.
15527         * tests/test-sprintf-posix.h (test_function): Likewise.
15528         * tests/test-strtod.c (main): Likewise.
15529         * tests/test-trunc1.c (main): Likewise.
15530         * tests/test-truncf1.c (main): Likewise.
15531         * tests/test-truncl.c (main): Likewise.
15532
15533         isnanl: work around icc bug
15534         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15535
15536 2010-11-03  Eric Blake  <eblake@redhat.com>
15537
15538         tests: fix compiler warnings
15539         * tests/test-getopt.h (test_getopt): Fix condition.
15540         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15541         * tests/test-pipe2.c (main): Likewise.
15542         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15543
15544         utimens: fix broken m4 test
15545         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15546
15547 2010-10-28  Bruno Haible  <bruno@clisp.org>
15548
15549         posix_spawn*, getdtablesize: Relax license.
15550         * modules/posix_spawn (License): Change to LGPLv2+.
15551         * modules/posix_spawnp (License): Likewise.
15552         * modules/posix_spawn-internal (License): Likewise.
15553         * modules/posix_spawnattr_init (License): Likewise.
15554         * modules/posix_spawnattr_getflags (License): Likewise.
15555         * modules/posix_spawnattr_setflags (License): Likewise.
15556         * modules/posix_spawnattr_getpgroup (License): Likewise.
15557         * modules/posix_spawnattr_setpgroup (License): Likewise.
15558         * modules/posix_spawnattr_getschedparam (License): Likewise.
15559         * modules/posix_spawnattr_setschedparam (License): Likewise.
15560         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15561         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15562         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15563         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15564         * modules/posix_spawnattr_getsigmask (License): Likewise.
15565         * modules/posix_spawnattr_setsigmask (License): Likewise.
15566         * modules/posix_spawnattr_destroy (License): Likewise.
15567         * modules/posix_spawn_file_actions_init (License): Likewise.
15568         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15569         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15570         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15571         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15572         * modules/getdtablesize (License): Likewise.
15573         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15574
15575 2010-10-26  Bruno Haible  <bruno@clisp.org>
15576
15577         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15578         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15579         Cygwin and mingw.
15580         Suggested by Eric Blake.
15581
15582 2010-10-26  Bruno Haible  <bruno@clisp.org>
15583
15584         stdio: Work around compilation error due to renameat() on Solaris 10.
15585         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15586         * lib/renameat.c: Don't include <unistd.h> here.
15587         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15588         Reported by Paul Eggert and Eric Blake.
15589
15590 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15591
15592         renameat: port to Solaris 10, which declares renameat in unistd.h
15593
15594         * lib/renameat.c: Include unistd.h before stdio.h, because
15595         Solaris 10 declares renameat in unistd.h.  Problem encountered
15596         when building GNU tar 1.24 on Solaris 10.
15597
15598 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15599
15600         fdopendir: fix C89 compilation
15601         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15602         compilers.
15603
15604 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15605
15606         inttostr: simplify by removing unnecessary redundancy
15607         * lib/anytostr.c: Don't include verify.h.
15608         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15609         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15610         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15611         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15612         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15613         Likewise.
15614         * modules/inttostr (Depends-on): Remove 'verify'.
15615
15616 2010-10-23  Bruno Haible  <bruno@clisp.org>
15617
15618         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15619         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15620         Reported by Eric Blake.
15621
15622 2010-10-23  Bruno Haible  <bruno@clisp.org>
15623
15624         Tests: Fix LOCALE_JA on MirBSD 10.
15625         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15626         to an UTF-8 locale.
15627         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15628         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15629         Reported by Eric Blake.
15630
15631 2010-10-21  Bruno Haible  <bruno@clisp.org>
15632
15633         nl_langinfo test: Avoid test failure on NetBSD 5.
15634         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15635         Reported by Eric Blake.
15636
15637 2010-10-21  Eric Blake  <eblake@redhat.com>
15638
15639         c-stack: work around libsigsegv 2.8 bug
15640         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15641         overflow on at least PowerPC64.
15642
15643 2010-10-17  Bruno Haible  <bruno@clisp.org>
15644
15645         userspec: Drop redundant file.
15646         * modules/userspec (Files): Remove lib/inttostr.h.
15647
15648 2010-10-17  Bruno Haible  <bruno@clisp.org>
15649
15650         nl_langinfo tests: Silence some warnings.
15651         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15652         Reported by Jim Meyering.
15653
15654 2010-10-17  Bruno Haible  <bruno@clisp.org>
15655
15656         Make use of GCC's attribute __alloc_size__.
15657         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15658         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15659         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15660         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15661         __alloc_size__.
15662         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15663         Suggested by Jim Meyering.
15664
15665 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15666
15667         bootstrap: anchor .gitignore entries.
15668         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15669         with...
15670         (insert_vc_ignore): ... this new function, which prepends `/' to
15671         all .gitignore entries before passing them to
15672         insert_sorted_if_absent.
15673
15674 2010-10-16  Bruno Haible  <bruno@clisp.org>
15675
15676         nextafter: Fix configure check.
15677         * modules/nextafter (configure.ac): Correct expected prototype.
15678
15679 2010-10-16  Bruno Haible  <bruno@clisp.org>
15680
15681         termios: Update documentation.
15682         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15683
15684 2010-10-16  Bruno Haible  <bruno@clisp.org>
15685
15686         tests: Make them compile with TinyCC.
15687         * tests/test-strstr.c (main): Remove parentheses around array
15688         initializer.
15689
15690 2010-10-15  Eric Blake  <eblake@redhat.com>
15691
15692         ignore-value: make header idempotent
15693         * lib/ignore-value.h: Add double-inclusion guards.
15694         Reported by Stefan Berger.
15695
15696 2010-10-15  Jim Meyering  <meyering@redhat.com>
15697
15698         GNUmakefile: handle "stable" target, not "major"
15699         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15700         lists in maint.mk and announce-gen.  Without this, "make stable"
15701         would fail to ensure that $(VERSION) is up to date.
15702
15703 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15704
15705         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15706         & co.
15707
15708 2010-10-14  Bruno Haible  <bruno@clisp.org>
15709
15710         vasnprintf: Don't set errno to 0.
15711         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15712         block that sets it to 0.
15713         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15714
15715 2010-10-14  Bruno Haible  <bruno@clisp.org>
15716
15717         socketlib: Fix.
15718         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15719         gl_PREREQ_SYS_H_WINSOCK2.
15720         Reported by Ian Beckwith <ianb@erislabs.net>.
15721
15722 2010-10-13  Jim Meyering  <meyering@redhat.com>
15723
15724         test-select-stdin.c: avoid warn_unused_result warnings
15725         * tests/test-select-stdin.c: Include "macros.h".
15726         ASSERT that read and fflush succeed.
15727
15728 2010-10-13  Jim Meyering  <meyering@redhat.com>
15729
15730         git-version-gen: do require git-VC'd files in cwd
15731         * build-aux/git-version-gen: Reject a git version string
15732         if there are no commits associated with the current directory.
15733         This avoids an unlikely false-positive (unrelated dir whose parent
15734         repository also contains a tag matching v*), as pointed out
15735         by Giuseppe Scrivano in
15736         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15737
15738 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15739
15740         argv-iter: omit nonconforming declaration
15741         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15742         enum arg_iter_err declaration, which doesn't conform to C99.
15743         Solaris 10 cc warns about this.
15744
15745 2010-10-13  Eric Blake  <eblake@redhat.com>
15746
15747         termios: fix compilation on mingw
15748         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15749         (gl_TERMIOS_H): Adjust it on mingw.
15750         * modules/termios (Makefile.am): Substitute new key.
15751         * lib/termios.in.h (includes): Make include_next conditional.
15752         * doc/posix-headers/termios.texi (termios.h): Update
15753         documentation.
15754         Reported by Daniel P. Berrange.
15755
15756 2010-10-13  Jim Meyering  <meyering@redhat.com>
15757
15758         git-version-gen: don't require that .git/ be in the current dir
15759         * build-aux/git-version-gen: Adjust this script so that it works
15760         when run from any working directory beneath the top-level .git/-
15761         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15762         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15763
15764         test-select: avoid warn_unused_result warnings
15765         * tests/test-select.c: Include "macros.h".
15766         ASSERT that each call to read, write, and pipe succeeds.
15767         While not technically required, also check each "close".
15768         * modules/select-tests (Files): Add tests/macros.h.
15769
15770         test-symlinkat: remove declaration of unused local
15771         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15772
15773         test-inttostr: avoid shadowing warnings
15774         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15775         and use malloc rather than the stack for the same reason as
15776         mentioned in the comment justifying the other allocation.
15777
15778 2010-10-11  Bruno Haible  <bruno@clisp.org>
15779
15780         stdlib: Allow multiple gnulib generated replacements to coexist.
15781         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15782         Reported by Sam Steingold <sds@gnu.org>.
15783
15784 2010-10-11  Jim Meyering  <meyering@redhat.com>
15785
15786         fix a documentation typo
15787         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15788
15789 2010-10-11  Eric Blake  <eblake@redhat.com>
15790
15791         futimens: work around Solaris 11 bug
15792         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15793         * tests/test-futimens.h (test_futimens): Enhance, rather than
15794         weaken test.
15795         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15796
15797 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15798
15799         Indentation.
15800         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15801         higher-level operators more to the left.
15802
15803 2010-10-11  Jim Meyering  <meyering@redhat.com>
15804
15805         test-futimens: avoid unwarranted test failure on Solaris 5.11
15806         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15807         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15808         because it tries to dereference the NULL name argument.
15809
15810 2010-10-11  Bruno Haible  <bruno@clisp.org>
15811
15812         Indentation.
15813         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15814         indentation.
15815
15816 2010-10-11  Jim Meyering  <meyering@redhat.com>
15817
15818         spawn.in.h: make indentation consistent with parentheses
15819         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15820         Make indentation consistent with parentheses.
15821
15822 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15823
15824         Fix mismatched parens in previous commit
15825         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15826         parens.
15827
15828 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15829
15830         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15831
15832         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15833         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15834         * lib/malloca.c: Include "verify.h".
15835         (verify1): Remove, replacing with a verify call.
15836         * lib/relocwrapper.c (verify1): Likewise.
15837         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15838         Likewise.
15839         * modules/malloca (Depends-on): Add 'verify'.
15840         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15841         * modules/vasnprintf (Depends-on): Add 'verify'.
15842         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15843         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15844         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15845         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15846         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15847         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15848         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15849
15850         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15851
15852         Formerly the style was sometimes 2*X - 1, because the C standard
15853         was wrongly thought to disallow ?: in integral constant expressions.
15854         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15855         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15856         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15857         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15858         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15859         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15860         verify that time_t cannot be floating.
15861
15862 2010-10-08  Eric Blake  <eblake@redhat.com>
15863
15864         time: enforce recent POSIX ruling that time_t is integral
15865         * lib/time.in.h (__time_t_must_be_integral): Detect any
15866         problematic systems, allowing the rest of gnulib to assume POSIX.
15867
15868 2010-10-08  Jim Meyering  <meyering@redhat.com>
15869
15870         fdopendir: fix a bug on systems lacking openat and /proc support
15871         OpenBSD 4.7 is one such system.  The most noticeable effect was
15872         failure of any application making nontrivial use of fts: rm, du,
15873         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15874           ./rm: traversal failed: `a': Bad file descriptor
15875         Debugging that, you see that even though FD 6 was closed just
15876         prior to the opendir call in fd_clone_opendir, its resulting
15877         dir->dd_fd was 8, rather than the expected value of 6:
15878
15879         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15880         93                close (fd);
15881         (gdb) n
15882         94                dir = fd_clone_opendir (dupfd);
15883         (gdb) n
15884         95                saved_errno = errno;
15885         (gdb) p dir->dd_fd
15886         $11 = 8
15887
15888         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15889         The problem is that on OpenBSD, fd_clone_opendir has to resort
15890         to using the old-style save/restore CWD mechanism, due to its
15891         lack of openat/proc support, and *that* would steal the FD (6)
15892         that opendir was supposed to use.
15893
15894         The fix is to squirrel away the desired FD so that save_cwd uses a
15895         different one, and then free the dest FD right before calling opendir.
15896         That guarantees opendir will use the required file descriptor.
15897
15898         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15899
15900 2010-10-08  Bruno Haible  <bruno@clisp.org>
15901
15902         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15903         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15904
15905 2010-10-08  Bruno Haible  <bruno@clisp.org>
15906
15907         nanosleep: Make replacement POSIX compliant.
15908         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15909         is out of range.
15910         Reported by Jim Meyering.
15911
15912 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15913
15914         bootstrap: add hook for altering gnulib.mk, for Bison
15915         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15916         the Bison bootstrapping process can rewrite file names and variables
15917         in this file before later parts of 'bootstrap' use the file.
15918         Bison wants to include lib/gnulib.mk from the top-level makefile,
15919         so it needs the file names in this file to be relative to the top
15920         level, not relative to lib; plus it needs variable names to be
15921         rewritten.
15922         (slurp): Use the new function.
15923
15924         bootstrap: reformat for readability
15925         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15926
15927 2010-10-08  Eric Blake  <eblake@redhat.com>
15928
15929         docs: update cygwin progress
15930         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15931         1.7.7.
15932         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15933         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15934         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15935         * doc/posix-functions/carg.texi (carg): Likewise.
15936         * doc/posix-functions/cargf.texi (cargf): Likewise.
15937         * doc/posix-functions/casin.texi (casin): Likewise.
15938         * doc/posix-functions/casinf.texi (casinf): Likewise.
15939         * doc/posix-functions/casinh.texi (casinh): Likewise.
15940         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15941         * doc/posix-functions/catan.texi (catan): Likewise.
15942         * doc/posix-functions/catanf.texi (catanf): Likewise.
15943         * doc/posix-functions/catanh.texi (catanh): Likewise.
15944         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15945         * doc/posix-functions/ccos.texi (ccos): Likewise.
15946         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15947         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15948         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15949         * doc/posix-functions/cexp.texi (cexp): Likewise.
15950         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15951         * doc/posix-functions/cimag.texi (cimag): Likewise.
15952         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15953         * doc/posix-functions/clog.texi (clog): Likewise.
15954         * doc/posix-functions/clogf.texi (clogf): Likewise.
15955         * doc/posix-functions/conj.texi (conj): Likewise.
15956         * doc/posix-functions/conjf.texi (conjf): Likewise.
15957         * doc/posix-functions/cpow.texi (cpow): Likewise.
15958         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15959         * doc/posix-functions/cproj.texi (cproj): Likewise.
15960         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15961         * doc/posix-functions/creal.texi (creal): Likewise.
15962         * doc/posix-functions/crealf.texi (crealf): Likewise.
15963         * doc/posix-functions/csin.texi (csin): Likewise.
15964         * doc/posix-functions/csinf.texi (csinf): Likewise.
15965         * doc/posix-functions/csinh.texi (csinh): Likewise.
15966         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15967         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15968         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15969         * doc/posix-functions/ctan.texi (ctan): Likewise.
15970         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15971         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15972         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15973         * doc/posix-headers/complex.texi (complex.h): Likewise.
15974
15975 2010-10-07  Jim Meyering  <meyering@redhat.com>
15976
15977         parse-datetime: avoid compilation failure on OpenBSD 4.7
15978         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15979         This works around a compilation failure on OpenBSD 4.7:
15980         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15981
15982 2010-10-07  Eric Blake  <eblake@redhat.com>
15983
15984         docs: update cygwin progress
15985         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15986         1.7.6.
15987         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15988         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15989         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15990         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15991         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15992         Likewise.
15993         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15994         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15995         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15996         Likewise.
15997         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15998         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15999         Likewise.
16000         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
16001         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
16002         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
16003         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
16004         Likewise.
16005         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
16006         Likewise.
16007         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
16008
16009         docs: update parse-datetime history
16010         * doc/parse-datetime.texi (Authors of parse_datetime): Better
16011         documentation of this function's history and alternatives.
16012
16013         cygwin: use more robust version check
16014         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
16015         exclude an eventual cygwin 1.9.1.
16016         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16017         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16018         (gl_FUNC_STRCASESTR): Likewise.
16019         Reported by Bruno Haible.
16020
16021 2010-10-06  Bruno Haible  <bruno@clisp.org>
16022
16023         string, sys_select: Avoid #including large headers unless necessary.
16024         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
16025         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
16026         OSF/1, BeOS, Haiku.
16027         Reported by Jim Meyering.
16028
16029 2010-10-05  Eric Blake  <eblake@redhat.com>
16030
16031         memmem, strstr, strcasestr: fix bug with long periodic needle
16032         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
16033         periodic needle having false positive.
16034         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
16035         and cygwin 1.7.7.
16036         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
16037         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16038         (gl_FUNC_STRCASESTR): Likewise.
16039         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16040         * tests/test-memmem.c (main): Expose the bug.
16041         * tests/test-strcasestr.c (main): Likewise.
16042         * tests/test-strstr.c (main): Likewise.
16043         * tests/test-c-strcasestr.c (main): Likewise.
16044         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
16045         * doc/posix-functions/strstr.texi (strstr): Likewise.
16046         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16047         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
16048
16049 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16050
16051         parse-datetime: do some more renaming
16052         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
16053         parse_datetime, not get_date.  Mention the renaming.
16054         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
16055         in comments.
16056         * m4/bison.m4: Likewise.
16057
16058 2010-10-05  Eric Blake  <eblake@redhat.com>
16059
16060         parse-datetime: better name than get_date
16061         * NEWS: Reword the deprecation notice.
16062         * modules/get_date: Rename to modules/parse-datetime.
16063         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
16064         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
16065         * lib/get_date.y: Rename to lib/parse-datetime.y.
16066         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
16067         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
16068         * doc/getdate.texi: Provide fallback wrapper.
16069         * lib/getdate.h: Move guts, and wrap...
16070         * lib/parse-datetime.h: ...new file.
16071         * lib/parse-datetime.y (get_date): Rename...
16072         (parse_datetime): ...to this.
16073         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
16074         (gl_PARSE_DATETIME): ...to this.
16075         * doc/posix-functions/getdate.texi (get_date): Provide fallback
16076         documentation.
16077         * modules/getdate (Files): Provide fallback docs and header.
16078         (Notice, Depends-on): Update references.
16079         * tests/test-parse-datetime.c: Likewise.
16080         * DEPENDENCIES: Likewise.
16081         * MODULES.html.sh (Date and time <time.h>): Likewise.
16082         * doc/parse-datetime.texi (Date input formats)
16083         (Authors of parse_datetime): Likewise.
16084         * modules/parse-datetime (Files, configure.ac, Makefile.am)
16085         (Include): Likewise.
16086         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
16087         * gnulib-tool: Likewise.
16088         * m4/bison.m4 (gl_BISON): Likewise.
16089         Suggested by Bruno Haible.
16090
16091 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16092
16093         more ports to Solaris tr, which needs [] around ranges
16094         * gnulib-tool: Solaris tr needs [] around ranges.
16095         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16096         * tests/test-pipe-filter-gi1.c (main): Likewise.
16097         * tests/test-pipe-filter-ii1.c (main): Likewise.
16098
16099 2010-10-05  Eric Blake  <eblake@redhat.com>
16100
16101         bootstrap: fix Solaris regression
16102         * build-aux/bootstrap (check_versions): Solaris tr still needs []
16103         around ranges.
16104         Reported by Pádraig Brady.
16105
16106         bootstrap: work with pkg-config
16107         * build-aux/bootstrap (check_versions): Also transliterate - in
16108         prerequisite name.
16109         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
16110         prerequisites that were already found, to avoid confusion.
16111         Reported by Justin Clift.
16112
16113         faccessat: remove unused wrappers
16114         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
16115         presence of these wrappers dragged in -lgen on Solaris.
16116         Reported by Clemens Brogi; fix suggested by Paul Eggert.
16117
16118 2010-10-05  Jim Meyering  <meyering@redhat.com>
16119
16120         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
16121         * Makefile (sc_pragma_columns): New syntax-check rule.
16122
16123 2010-10-04  Bruno Haible  <bruno@clisp.org>
16124
16125         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
16126         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
16127         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
16128         Reported by Bruce Korb and Eric Blake.
16129
16130 2010-10-04  Bruno Haible  <bruno@clisp.org>
16131
16132         threadlib: Make option --with-libpth-prefix work.
16133         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
16134         use $LIBPTH, not just -lpth.
16135
16136 2010-10-04  Bruno Haible  <bruno@clisp.org>
16137
16138         Avoid line length limitation from HP NonStop system header files.
16139         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
16140         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
16141         * lib/ctype.in.h: Likewise.
16142         * lib/dirent.in.h: Likewise.
16143         * lib/errno.in.h: Likewise.
16144         * lib/fcntl.in.h: Likewise.
16145         * lib/float.in.h: Likewise.
16146         * lib/getopt.in.h: Likewise.
16147         * lib/iconv.in.h: Likewise.
16148         * lib/inttypes.in.h: Likewise.
16149         * lib/langinfo.in.h: Likewise.
16150         * lib/locale.in.h: Likewise.
16151         * lib/math.in.h: Likewise.
16152         * lib/netdb.in.h: Likewise.
16153         * lib/netinet_in.in.h: Likewise.
16154         * lib/poll.in.h: Likewise.
16155         * lib/pthread.in.h: Likewise.
16156         * lib/pty.in.h: Likewise.
16157         * lib/sched.in.h: Likewise.
16158         * lib/se-selinux.in.h: Likewise.
16159         * lib/search.in.h: Likewise.
16160         * lib/signal.in.h: Likewise.
16161         * lib/spawn.in.h: Likewise.
16162         * lib/stdarg.in.h: Likewise.
16163         * lib/stddef.in.h: Likewise.
16164         * lib/stdint.in.h: Likewise.
16165         * lib/stdio.in.h: Likewise.
16166         * lib/stdlib.in.h: Likewise.
16167         * lib/string.in.h: Likewise.
16168         * lib/strings.in.h: Likewise.
16169         * lib/sys_file.in.h: Likewise.
16170         * lib/sys_ioctl.in.h: Likewise.
16171         * lib/sys_select.in.h: Likewise.
16172         * lib/sys_socket.in.h: Likewise.
16173         * lib/sys_stat.in.h: Likewise.
16174         * lib/sys_time.in.h: Likewise.
16175         * lib/sys_times.in.h: Likewise.
16176         * lib/sys_utsname.in.h: Likewise.
16177         * lib/sys_wait.in.h: Likewise.
16178         * lib/sysexits.in.h: Likewise.
16179         * lib/termios.in.h: Likewise.
16180         * lib/time.in.h: Likewise.
16181         * lib/unistd.in.h: Likewise.
16182         * lib/wchar.in.h: Likewise.
16183         * lib/wctype.in.h: Likewise.
16184         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
16185         * modules/ctype (Makefile.am): Likewise.
16186         * modules/dirent (Makefile.am): Likewise.
16187         * modules/errno (Makefile.am): Likewise.
16188         * modules/fcntl-h (Makefile.am): Likewise.
16189         * modules/float (Makefile.am): Likewise.
16190         * modules/getopt-posix (Makefile.am): Likewise.
16191         * modules/iconv-h (Makefile.am): Likewise.
16192         * modules/inttypes (Makefile.am): Likewise.
16193         * modules/langinfo (Makefile.am): Likewise.
16194         * modules/locale (Makefile.am): Likewise.
16195         * modules/math (Makefile.am): Likewise.
16196         * modules/netdb (Makefile.am): Likewise.
16197         * modules/netinet_in (Makefile.am): Likewise.
16198         * modules/poll-h (Makefile.am): Likewise.
16199         * modules/pthread (Makefile.am): Likewise.
16200         * modules/pty (Makefile.am): Likewise.
16201         * modules/sched (Makefile.am): Likewise.
16202         * modules/search (Makefile.am): Likewise.
16203         * modules/selinux-h (Makefile.am): Likewise.
16204         * modules/signal (Makefile.am): Likewise.
16205         * modules/spawn (Makefile.am): Likewise.
16206         * modules/stdarg (Makefile.am): Likewise.
16207         * modules/stddef (Makefile.am): Likewise.
16208         * modules/stdint (Makefile.am): Likewise.
16209         * modules/stdio (Makefile.am): Likewise.
16210         * modules/stdlib (Makefile.am): Likewise.
16211         * modules/string (Makefile.am): Likewise.
16212         * modules/strings (Makefile.am): Likewise.
16213         * modules/sys_file (Makefile.am): Likewise.
16214         * modules/sys_ioctl (Makefile.am): Likewise.
16215         * modules/sys_select (Makefile.am): Likewise.
16216         * modules/sys_socket (Makefile.am): Likewise.
16217         * modules/sys_stat (Makefile.am): Likewise.
16218         * modules/sys_time (Makefile.am): Likewise.
16219         * modules/sys_times (Makefile.am): Likewise.
16220         * modules/sys_utsname (Makefile.am): Likewise.
16221         * modules/sys_wait (Makefile.am): Likewise.
16222         * modules/sysexits (Makefile.am): Likewise.
16223         * modules/termios (Makefile.am): Likewise.
16224         * modules/time (Makefile.am): Likewise.
16225         * modules/unistd (Makefile.am): Likewise.
16226         * modules/wchar (Makefile.am): Likewise.
16227         * modules/wctype (Makefile.am): Likewise.
16228
16229 2010-10-04  Bruno Haible  <bruno@clisp.org>
16230
16231         read-file tests: Avoid a test failure on NonStop Kernel.
16232         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
16233         a regular file.
16234         Reported by Joachim Schmitz <schmitz@hp.com>.
16235
16236 2010-10-03  Bruno Haible  <bruno@clisp.org>
16237
16238         gnulib-tool: Fixes for --create-testdir with --libtool.
16239         * gnulib-tool (func_get_automake_snippet): Don't augment
16240         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
16241         an executable.
16242         (func_create_testdir): Handle module 'alloca' like func_import.
16243         Reported by Bruce Korb <bruce.korb@gmail.com>.
16244
16245 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16246
16247         Avoid some lines longer than 80 characters.
16248         * lib/stdint.in.h: Break long comment lines.
16249         * lib/math.in.h: Likewise.
16250         (_GL_NUM_UINT_WORDS): New macro, for readability.
16251         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
16252         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16253         * lib/stdlib.in.h: Likewise.
16254         * lib/spawn.in.h: Likewise.
16255         * lib/sys_socket.in.h: Update an URL.
16256         * lib/sys_stat.in.h: Break long line.
16257
16258 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16259
16260         Improve pmccabe2html.
16261         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16262         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16263         when the sources change. Remove the line in the HTML about "Used
16264         ranges" (which implied that there might be other unused ranges),
16265         rename "Resume" to "Summary" (easier to understand for more users).
16266         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16267         styles, and some unnecessary blank lines.
16268
16269 2010-10-03  Bruno Haible  <bruno@clisp.org>
16270             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16271
16272         acl: Add support for ACLs on NonStop Kernel.
16273         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16274         Check whether the function aclsort() exists.
16275         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16276         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16277         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16278         (acl_nontrivial [HAVE_ACLSORT]: New function.
16279         (file_has_acl): Implement for NonStop Kernel.
16280         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16281         (qset_acl): Implement for NonStop Kernel.
16282         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16283         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16284         (main): Implement for NonStop Kernel.
16285         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16286         Kernel. Handle this flavor.
16287         * tests/test-set-mode-acl.sh: Likewise.
16288         * tests/test-copy-acl.sh: Likewise.
16289         * tests/test-copy-file.sh: Likewise.
16290
16291 2010-10-03  Bruno Haible  <bruno@clisp.org>
16292
16293         Info about ACLs on NonStop Kernel.
16294         * doc/acl-resources.txt: Add info about NonStop Kernel.
16295         References by Joachim Schmitz <schmitz@hp.com>.
16296
16297 2010-10-02  Bruno Haible  <bruno@clisp.org>
16298
16299         Define missing EDQUOT on NonStop Kernel.
16300         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16301         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16302         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16303         missing.
16304         * doc/posix-headers/errno.texi: Mention the NSK bug.
16305         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16306         Reported by Joachim Schmitz <schmitz@hp.com>.
16307
16308 2010-10-02  Bruno Haible  <bruno@clisp.org>
16309
16310         Update doc for POSIX:2008.
16311         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16312         Update URL of POSIX specification.
16313
16314 2010-10-02  Bruno Haible  <bruno@clisp.org>
16315
16316         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16317         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16318         from gnulib, not from Automake.
16319
16320 2010-10-02  Bruno Haible  <bruno@clisp.org>
16321
16322         New module 'system-posix'.
16323         * modules/system-posix: New file.
16324         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16325         module is present.
16326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16327         GNULIB_SYSTEM_POSIX.
16328         * modules/stdlib (Depends-on): Remove sys_wait.
16329         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16330         * doc/posix-functions/system.texi: Mention the new module.
16331         * doc/posix-headers/stdlib.texi: Likewise.
16332         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16333         define test_sys_wait_macros to a no-op.
16334         Reported by Sam Steingold <sds@gnu.org>.
16335
16336 2010-09-30  Bruno Haible  <bruno@clisp.org>
16337
16338         More renaming from 'getdate' to 'get_date'.
16339         * doc/get_date.texi: Renamed from doc/getdate.texi.
16340         * modules/get_date (Files): Update.
16341         * MODULES.html.sh (Date and time <time.h>): Update.
16342         * DEPENDENCIES: Update.
16343         * gnulib-tool: Update comment.
16344         * m4/bison.m4 (gl_BISON): Likewise.
16345         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16346
16347 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16348
16349         bootstrap: support ACLOCAL_FLAGS during aclocal
16350         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16351         can add additional -I dir for third-party .m4 files.
16352
16353 2010-09-30  Eric Blake  <eblake@redhat.com>
16354
16355         bootstrap: use glibtoolize on MacOS
16356         * build-aux/bootstrap (check_versions): Convert libtool into
16357         libtoolize.
16358         (tool search): Move libtool check earlier, and look for
16359         glibtoolize for MacOS.
16360         (gnulib_tool_options): Auto-add --libtool when appropriate.
16361         Reported by Justin Clift.
16362
16363         poll: fix typo that broke test on MacOS
16364         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16365         Reported by Justin Clift.
16366
16367         getdate: rename to get_date
16368         Note: getdate.h is not renamed, to minimize client impact.
16369         * modules/getdate: Mark obsolete.  Move old contents...
16370         * modules/get_date: ...to new module name.
16371         * modules/getdate-tests: Move...
16372         * modules/get_date-tests: ...here.
16373         * m4/getdate.m4: Move...
16374         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16375         * lib/getdate.y: Move...
16376         * lib/get_date.y: ...here.
16377         * tests/test-getdate.c: Move...
16378         * tests/test-get_date.c: ...here.
16379         * doc/posix-functions/getdate.texi (getdate): Update name.
16380         * NEWS: Mention the change.
16381
16382 2010-09-29  Bruno Haible  <bruno@clisp.org>
16383
16384         Separate the module 'waitpid' from the module 'sys_wait'.
16385         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16386         present.
16387         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16388         gl_MODULE_INDICATOR_FOR_TESTS.
16389         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16390         * modules/sys_wait (Depends-on): Remove waitpid.
16391         (Makefile.am): Substitute GNULIB_WAITPID.
16392         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16393         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16394         signature only if the 'waitpid' module is present.
16395         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16396         * NEWS: Mention the change.
16397         * modules/grantpt (Depends-on): Add waitpid.
16398         * modules/wait-process (Depends-on): Likewise.
16399
16400 2010-09-29  Bruno Haible  <bruno@clisp.org>
16401
16402         More tests for module 'sys_wait'.
16403         * modules/sys_wait-c++-tests: New file.
16404         * tests/test-sys_wait-c++.cc: New file.
16405         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
16406         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16407
16408 2010-09-29  Bruno Haible  <bruno@clisp.org>
16409
16410         New module 'waitpid'.
16411         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
16412         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
16413         Don't include <process.h>.
16414         (waitpid): Declare only, using modern idiom.
16415         * m4/waitpid.m4: New file.
16416         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
16417         * modules/waitpid: New file.
16418         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
16419         (Makefile.am): Update.
16420         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16421
16422 2010-09-28  Bruno Haible  <bruno@clisp.org>
16423
16424         poll: Assume ANSI C.
16425         * lib/poll.c (poll): Use an ANSI C declaration.
16426
16427 2010-09-28  Bruno Haible  <bruno@clisp.org>
16428
16429         poll-h: Create poll.h on all platforms.
16430         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
16431         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
16432         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
16433         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
16434         (gl_REPLACE_POLL_H): Don't set POLL_H.
16435         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
16436         * modules/poll-h (Depends-on): Add include_next.
16437         (Makefile.am): Create poll.h unconditionally. Substitute also
16438         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
16439
16440 2010-09-28  Bruno Haible  <bruno@clisp.org>
16441
16442         Tests for module 'poll-h'.
16443         * modules/poll-h-c++-tests: New file.
16444         * tests/test-poll-h-c++.cc: New file.
16445
16446         Tests for module 'poll-h'.
16447         * modules/poll-h-tests: New file.
16448         * tests/test-poll-h.c: New file.
16449
16450 2010-09-28  Bruno Haible  <bruno@clisp.org>
16451
16452         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
16453         * modules/poll-h (Depends-on): Add 'extensions'.
16454
16455 2010-09-28  Bruno Haible  <bruno@clisp.org>
16456
16457         New module 'poll-h'.
16458         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16459         (poll): Use modern idiom.
16460         * modules/poll-h: New file.
16461         * modules/poll (Files): Remove lib/poll.in.h.
16462         (Depends-on): Add poll-h.
16463         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
16464         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
16465         * m4/poll_h.m4: New file.
16466         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
16467         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
16468         and invoke gl_REPLACE_POLL_H.
16469         * lib/poll.c: Use common idiom.
16470         * tests/test-poll.c: Likewise.
16471         * doc/posix-headers/poll.texi: Mention the poll-h module.
16472         Suggested by Eric Blake.
16473
16474 2010-09-26  Bruno Haible  <bruno@clisp.org>
16475
16476         sys_wait: Implement WSTOPSIG.
16477         * lib/sys_wait.in.h (WSTOPSIG): New macro.
16478         Reported by Simon Josefsson.
16479
16480 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16481
16482         stdlib, sys_wait: Avoid compilation error on mingw.
16483         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16484
16485 2010-09-26  Bruno Haible  <bruno@clisp.org>
16486
16487         stdlib tests: Avoid code duplication.
16488         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16489         * modules/sys_wait-tests (Files): Likewise.
16490         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16491         * tests/test-stdlib.c: Include test-sys_wait.h.
16492         (main): Invoke test_sys_wait_macros.
16493         * tests/test-sys_wait.c: Include test-sys_wait.h.
16494         (main): Invoke test_sys_wait_macros.
16495
16496 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16497
16498         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16499         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16500         sure Windows sockets are working before calling getaddrinfo.
16501         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16502         * doc/gnulib.texi (Windows sockets): Fix typo.
16503
16504 2010-09-25  Bruno Haible  <bruno@clisp.org>
16505
16506         Tests for module 'regex-quote'.
16507         * modules/regex-quote-tests: New file.
16508         * tests/test-regex-quote.c: New file.
16509
16510         New module 'regex-quote'.
16511         * lib/regex-quote.h: New file.
16512         * lib/regex-quote.c: New file.
16513         * modules/regex-quote: New file.
16514         Suggested by Reuben Thomas <rrt@sc3d.org>.
16515
16516 2010-09-24  Bruno Haible  <bruno@clisp.org>
16517
16518         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16519         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16520
16521 2010-09-23  Bruno Haible  <bruno@clisp.org>
16522
16523         setenv: Relax license.
16524         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16525         Blake.
16526         Requested by Eric Blake.
16527
16528 2010-09-22  Bruno Haible  <bruno@clisp.org>
16529
16530         termios: Relax license.
16531         * modules/termios (License): Change to LGPLv2+.
16532         Requested by Eric Blake.
16533
16534 2010-09-22  Bruno Haible  <bruno@clisp.org>
16535
16536         threadlib: Allow the package to change the default to 'no'.
16537         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16538         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16539         Reported by Paul Eggert.
16540
16541 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16542             Bruno Haible  <bruno@clisp.org>
16543
16544         Fix endless loop in mbmemcasecoll.
16545         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16546         byte.
16547         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16548
16549 2010-09-22  Bruno Haible  <bruno@clisp.org>
16550
16551         Tests for module 'memcoll'.
16552         * modules/memcoll-tests: New file.
16553         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16554
16555         memcoll, xmemcoll: Clarify size vs. length.
16556         * modules/memcoll.c (memcoll0): Clarify specification.
16557         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16558         passed to collate_error.
16559
16560 2010-09-22  Bruno Haible  <bruno@clisp.org>
16561
16562         Tests for module 'memcasecmp'.
16563         * modules/memcasecmp-tests: New file.
16564         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16565
16566 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16567
16568         * lib/pthread.in.h: Add split double-inclusion guard, and include
16569         system <pthread.h> if there is one.  Use @@-style as in other
16570         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16571         pthread.h doesn't.
16572         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16573         (pthread_mutexattr_settype, pthread_mutex_trylock):
16574         New static inline functions, if there's no system <pthread.h>.
16575         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16576         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16577         Approximate with mutexes if the system lacks spinlocks, as in
16578         MacOS.
16579         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16580         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16581         @@-style.  Check for spinlocks separately.
16582         (gl_PTHREAD_DEFAULTS): New macro.
16583         * modules/pthread: Redo to use a more typical style for in.h files.
16584
16585 2010-09-21  Eric Blake  <eblake@redhat.com>
16586
16587         net_if: enhance tests
16588         * tests/test-net_if.c (main): Move signature checks earlier.
16589         Print failures to stderr.
16590         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16591         Document the bug that we do not yet fix.
16592
16593 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16594
16595         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16596         about gnulib, not GSS.
16597
16598 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16599
16600         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16601         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16602         for Emacs.
16603         * build-aux/pmccabe2html: Make Makefile.am example code more
16604         cut-and-paste friendly.
16605
16606 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16607
16608         * tests/test-net_if.c: New file.
16609         * modules/net_if-tests: New file.
16610
16611 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16612
16613         pthread: add pthread_spin_destroy
16614         * lib/pthread.in.h (pthread_spin_destroy): New function.
16615
16616 2010-09-19  Bruno Haible  <bruno@clisp.org>
16617
16618         gnulib-tool: Fix --help output.
16619         * gnulib-tool (func_usage): Fix help message.
16620         Reported by Reuben Thomas <rrt@sc3d.org>.
16621
16622 2010-09-18  Jim Meyering  <meyering@redhat.com>
16623
16624         maint.mk: avoid unexpanded \n in two diagnostics
16625         * top/maint.mk (sc_prohibit_always_true_header_tests):
16626         Don't use a literal \n in a halt=... assignment.  It would not be
16627         expanded, and the two \n bytes would appear in the diagnostic output
16628         rather than the desired newline.  Use halt=$$(printf ... instead.
16629         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16630
16631 2010-09-18  Bruno Haible  <bruno@clisp.org>
16632
16633         netinet_in: Doc tweak.
16634         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16635         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16636
16637 2010-09-18  Jim Meyering  <meyering@redhat.com>
16638
16639         init.sh: correct an outdated comment
16640         * tests/init.sh (create_exe_shims_):  s/function/alias/
16641
16642         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16643         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16644         a file named "*.exe" is removed between the glob expansion and the
16645         processing of that oddly named file.
16646
16647 2010-09-17  Eric Blake  <eblake@redhat.com>
16648
16649         mirbsd: add some more support
16650         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16651         in BSD family.
16652         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16653         devices as OpenBSD.
16654         * m4/host-os.m4 (mirbsd): Add MirBSD.
16655
16656         tests: fix unportable assumption on sys/wait.h
16657         * tests/test-sys_wait.c (main): Relax test.
16658         * tests/test-stdlib.c (main): Likewise.
16659
16660         init.sh: accomodate directory with no .exes
16661         * tests/init.sh: Accomodate directory containing only scripts.
16662
16663         tests: avoid compiler warning
16664         * tests/test-stdlib.c (main): Use the variable.
16665
16666         fdutimens, fdutimensat: update signature, again
16667         * lib/utimens.h (gl_futimens): Delete, and move signature...
16668         (fdutimens): ...here.
16669         (fdutimensat): Rearrange signature.
16670         (lutimensat): Rename variable for clarity.
16671         * lib/fdutimensat.c (fdutimensat): Update signature.
16672         * lib/utimens.c (fdutimens): Likewise.
16673         (gl_futimens): Delete.
16674         (utimens, lutimens): Update callers.
16675         * lib/futimens.c (futimens): Likewise.
16676         * tests/test-fdutimensat.c: Likewise.
16677         * tests/test-utimens.c: Likewise.
16678         * tests/test-futimens.h: Update comment.
16679         * NEWS: Mention this.
16680         Suggested by Paul Eggert.
16681
16682 2010-09-17  Bruno Haible  <bruno@clisp.org>
16683
16684         Take over the maintenance of some older macros from Autoconf.
16685         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16686         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16687         GNU Autoconf.
16688         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16689         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16690
16691 2010-09-17  Eric Blake  <eblake@redhat.com>
16692
16693         fdutimensat: drop atflag validation
16694         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16695         with valid fd, to close a race scenario where futimens is
16696         unsupported and FILE was replaced by a symlink.
16697         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16698         accordingly.
16699         Suggested by Paul Eggert.
16700
16701 2010-09-16  Bruno Haible  <bruno@clisp.org>
16702
16703         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16704         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16705
16706 2010-09-16  Bruno Haible  <bruno@clisp.org>
16707
16708         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16709         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16710         login_tty exists.
16711         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16712
16713 2010-09-16  Bruno Haible  <bruno@clisp.org>
16714
16715         login_tty: Make the replacement code work on BSD systems.
16716         * lib/login_tty.c: Include <sys/ioctl.h>.
16717         (login_tty): Use ioctl TIOCSCTTY when available.
16718         * modules/login_tty (Depends-on): Add sys_ioctl.
16719         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16720
16721 2010-09-16  Bruno Haible  <bruno@clisp.org>
16722
16723         login_tty: Stricter unit test.
16724         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16725         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16726         and tcgetsid() after login_tty.
16727         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16728
16729 2010-09-16  Bruno Haible  <bruno@clisp.org>
16730
16731         New module 'tcgetsid'.
16732         * lib/tcgetsid.c: New file.
16733         * m4/tcgetsid.m4: New file.
16734         * modules/tcgetsid: New file.
16735         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16736         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16737         GNULIB_TCGETSID, HAVE_TCGETSID.
16738         * lib/termios.in.h: Include <sys/types.h>.
16739         (tcgetsid): New declaration.
16740         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16741         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16742         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16743         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16744
16745 2010-09-16  Bruno Haible  <bruno@clisp.org>
16746
16747         Tests for module 'termios'.
16748         * modules/termios-c++-tests: New file.
16749         * modules/termios-tests: New file.
16750         * tests/test-termios-c++.cc: New file.
16751         * tests/test-termios.c: New file.
16752
16753         New module 'termios'.
16754         * modules/termios: New file.
16755         * lib/termios.in.h: New file.
16756         * m4/termios_h.m4: New file.
16757         * doc/posix-headers/termios.texi: Mention the new module.
16758
16759 2010-09-16  Eric Blake  <eblake@redhat.com>
16760
16761         fdutimensat: add an atflag parameter
16762         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16763         * lib/utimens.h (fdutimensat): Update prototype.
16764         * tests/test-fdutimensat.c: Adjust test to match.
16765         * NEWS: Document the change.
16766         Suggested by Paul Eggert.
16767
16768 2010-09-16  Bruno Haible  <bruno@clisp.org>
16769
16770         Fix typos in comments.
16771         * lib/striconveh.h: Fix typo in comment.
16772         * lib/login_tty.c (login_tty): Likewise.
16773
16774 2010-09-15  Bruno Haible  <bruno@clisp.org>
16775
16776         stdlib: clarify MirBSD WEXITSTATUS bug
16777         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16778         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16779
16780 2010-09-15  Eric Blake  <eblake@redhat.com>
16781
16782         stdlib: work around MirBSD WEXITSTATUS bug
16783         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16784         * modules/stdlib (Depends-on): Add sys_wait.
16785         * tests/test-sys_wait.c (main): Enhance test.
16786         * tests/test-stdlib.c (main): Likewise.
16787         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16788
16789         docs: mention MacOS issue with WEXITSTATUS(constant)
16790         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16791         issue.
16792         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16793
16794         strnlen: add tests
16795         * modules/strnlen-tests: New file.
16796         * tests/test-strnlen.c: Likewise.
16797
16798 2010-09-14  Bruno Haible  <bruno@clisp.org>
16799
16800         unistr/base: Avoid link errors when module 'libunistring' is also used.
16801         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16802         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16803         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16804         Declare also when HAVE_LIBUNISTRING is set.
16805         Reported by Pádraig Brady <P@draigbrady.com>.
16806
16807 2010-09-14  Eric Blake  <eblake@redhat.com>
16808
16809         test-rawmemchr: make more robust
16810         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16811         (Depends-on, configure.ac): Add needed prerequisites to use it.
16812         * modules/memchr-tests (Files, Depends-on, configure.ac):
16813         Likewise, to avoid implicit reliance on memchr module prereqs.
16814         * tests/test-memchr.c (main): Ensure proper masking.
16815         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16816         reads.
16817
16818         memchr: detect glibc Alpha bug
16819         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16820         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16821         Alpha.
16822         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16823         * tests/test-memchr.c (main): Enhance test.
16824         Reported by Nelson H. F. Beebe.
16825
16826 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16827
16828         fts, getcwd, glob: audit for dirfd returning -1
16829         * lib/fts.c (opendir): Remove #define; no longer used.
16830         (opendirat): New arg PDIR_FD.  All callers changed.
16831         (fts_build, _opendir2): Use new opendirat to avoid the need for
16832         dirfd, or for checking whether dirfd returns a negative value.
16833         Don't use opendir; always use openat followed by fdopendir.
16834         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16835         it.
16836         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16837         returns -1 here.
16838         * modules/fts (Depends-on): Remove dirfd.
16839         * modules/getcwd (Depends-on): Likewise.
16840
16841 2010-09-13  Eric Blake  <eblake@redhat.com>
16842
16843         float: fix broken MirBSD header
16844         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16845         * doc/posix-headers/float.texi (float.h): Document it.
16846
16847 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16848
16849         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16850         * lib/fts.c (opendirat): New arg extra_flags.
16851         (__opendir2): Use it to avoid following symlinks when opening
16852         a directory, if symlinks are not supposed to be followed.  See
16853         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16854
16855         fdopendir: preserve argument fd before returning
16856         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16857         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16858         (fdopendir): Use them, arranging for FD to be open to the same
16859         directory that it was when it started.  (It might be temporarily
16860         closed while fdopendir is running, so this not thread- or
16861         signal-safe.)  Be careful to do the right thing even when file
16862         descriptors are scarce and dup fails with errno == EMFILE.  See
16863         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16864
16865 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16866
16867         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16868         * NEWS: Document change.
16869         * m4/regex.m4: Disable test for regoff_t size.
16870
16871 2010-09-13  Jim Meyering  <meyering@redhat.com>
16872
16873         fts: don't operate on an invalid file descriptor after failed dup
16874         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16875         negative file descriptor.
16876
16877 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16878
16879         savedir: add streamsavedir, deprecate fdsavedir
16880         * NEWS: Mention deprecation of fdsavedir.
16881         * lib/savedir.c (streamsavedir): New extern function, whose name
16882         ends in "savedir" to be consistent with the others.  This differs
16883         from savedirstream in that it doesn't close its argument.  The
16884         next version of GNU tar will use this instead of fdsavedir, to
16885         avoid some race conditions and conserve file descriptors.
16886         (savedirstream): Reimplement as a wrapper around streamsavedir.
16887         (fdsavedir): Add a comment deprecating this function.  As far as
16888         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16889         * lib/savedir.h (streamsavedir): New decl.
16890         (fdsavedir): Add a comment deprecating this.
16891
16892 2010-09-10  Bruno Haible  <bruno@clisp.org>
16893
16894         langinfo: Fix last commit.
16895         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16896         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16897         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16898
16899 2010-09-10  Bruno Haible  <bruno@clisp.org>
16900
16901         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16902         * lib/progreloc.c (O_EXEC): Define fallback.
16903
16904 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16905
16906         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16907         * NEWS: Document recent changes to fcntl-h.
16908         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16909         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16910         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16911         Similarly for O_SEARCH; this last was already true, but not documented.
16912         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16913         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16914         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16915         Likewise.
16916         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16917         is zero, not whether it is defined.
16918         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16919         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16920         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16921
16922 2010-09-10  Bruno Haible  <bruno@clisp.org>
16923
16924         langinfo, nl_langinfo: Fix for IRIX 5.3.
16925         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16926         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16927         HAVE_LANGINFO_YESEXPR.
16928         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16929         HAVE_LANGINFO_YESEXPR.
16930         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16931         HAVE_LANGINFO_T_FMT_AMPM is 0.
16932         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16933         HAVE_LANGINFO_YESEXPR is 0.
16934         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16935         NOEXPR.
16936         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16937         * doc/posix-functions/nl_langinfo.texi: Likewise.
16938         Reported by Eric Blake.
16939
16940 2010-09-10  Bruno Haible  <bruno@clisp.org>
16941
16942         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16943         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16944         on FreeBSD 8.0 and OpenBSD 4.6.
16945         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16946         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16947         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16948         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16949         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16950         ac_includes_default.
16951         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16952
16953 2010-09-09  Eric Blake  <eblake@redhat.com>
16954
16955         strsignal: work around NetBSD bug
16956         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16957         * lib/string.in.h (includes): Likewise.
16958         * doc/posix-functions/strsignal.texi (strsignal): Document the
16959         bug.
16960         Reported by Nelson H. F. Beebe.
16961
16962         gnulib-tool: work with NetBSD /bin/sh
16963         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16964         (func_get_description, func_get_comment, func_get_status)
16965         (func_get_notice, func_get_applicability, func_get_filelist)
16966         (func_get_dependencies, func_get_autoconf_early_snippet)
16967         (func_get_autoconf_snippet, func_get_automake_snippet)
16968         (func_get_include_directive, func_get_link_directive)
16969         (func_get_license, func_get_maintainer, func_import): Avoid
16970         shell syntax errors from parsing syntax extensions.
16971
16972 2010-09-09  Bruno Haible  <bruno@clisp.org>
16973
16974         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16975         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16976         a reliable way to determine whether the 'alias' command works.
16977
16978 2010-09-08  Jim Meyering  <meyering@redhat.com>
16979
16980         init.sh: penalize a set-x-impaired shell; don't disqualify it
16981         * tests/init.sh: Too many shells corrupt application stderr when
16982         you set -x, so we can't afford to disqualify them, since at least
16983         on Irix-6.5, that would disqualify all bourne shells.
16984         Instead, use a two-pass approach.
16985         On the first pass, try to find a shell that meets the stricter
16986         condition that set -x does not corrupt stderr.
16987         If no shell meets the stricter condition, retest each candidate
16988         shell, but without that extra condition.  Finally, when
16989         VERBOSE=yes is requested and set -x might cause trouble, simply
16990         issue a warning and refrain from enabling debug output.
16991
16992 2010-09-08  Eric Blake  <eblake@redhat.com>
16993
16994         unsetenv: fix OpenBSD bug
16995         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16996         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16997         documentation.
16998         Reported by Jim Meyering.
16999
17000         strtod: work around IRIX 6.5 bug
17001         * lib/strtod.c (strtod): Reparse number on shorter string if
17002         exponent parse was invalid.
17003         * tests/test-strtod.c (main): Add check for "0x1p 2".
17004         Reported by Tom G. Christensen.
17005
17006         getopt: optimize previous patch
17007         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
17008         empty variable.  Speed up awk script.
17009         Reported by Paolo Bonzini.
17010
17011 2010-09-08  Jim Meyering  <meyering@redhat.com>
17012
17013         test.sh: disqualify shells for which set -x corrupts stderr
17014         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
17015         and OpenBSD 4.7.  They make it so with "set -x", environment settings
17016         appear in stderr output.  For example, this command:
17017             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
17018         prints "P=1" on those two systems:
17019
17020 2010-09-08  Bruno Haible  <bruno@clisp.org>
17021
17022         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17023         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
17024         commands, because some shells ignore redirections when there is an
17025         error in the command lookup.
17026         Reported by Eric Blake.
17027
17028 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
17029
17030         * lib/regex.h: Fix a mention of `regex_compile' (should be
17031         `re_compile_pattern').
17032         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
17033         (re_set_registers): Correct name of parameter in comment.
17034
17035         * doc/regex.texi: Add documentation for missing syntax flags.
17036         Remove commented-out documentation of defunct syntax option
17037         RE_NO_EMPTY_ALTS.
17038         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
17039         Add documentation of re_set_registers.
17040         Document trick to re-use a pattern buffer by setting fastmap manually.
17041         Update documentation of struct re_pattern_buffer per public members.
17042         Uncomment documentation of equivalence class operators and
17043         collating symbol operators, since they are now implemented,
17044         Explain leftmost-longest matching in relation to alternatives.
17045         Tidy documentation of substring matching.
17046         Remove POSIX documentation, which is done better in
17047         glibc, and refer the reader there. Keep BSD API documentation, as
17048         that is not readily available elsewhere.
17049
17050 2010-09-07  Eric Blake  <eblake@redhat.com>
17051
17052         getopt: handle POSIXLY_CORRECT set but not exported
17053         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
17054         export state of POSIXLY_CORRECT, due to bash set -o posix.
17055         Reported by Dustin J. Mitchell.
17056
17057 2010-09-05  Bruno Haible  <bruno@clisp.org>
17058
17059         gnulib-tool: Highlight the changed options.
17060         * gnulib-tool (func_usage): Display the --import, --add-import,
17061         --remove-import explanations in bold font.
17062
17063 2010-09-06  Karl Berry  <karl@gnu.org>
17064
17065         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
17066
17067 2010-09-05  Bruno Haible  <bruno@clisp.org>
17068
17069         uniwidth/width: Update comment.
17070         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
17071         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
17072
17073 2010-09-05  Bruno Haible  <bruno@clisp.org>
17074
17075         isinf, isnan: Relax license.
17076         * modules/isinf (License): Change from GPL to LGPL, with consent from
17077         Ben Pfaff.
17078         * modules/isnan (License): Likewise.
17079         Requested by Ludovic Courtès.
17080
17081 2010-09-04  Bruno Haible  <bruno@clisp.org>
17082
17083         gnulib-tool: Help migration from --import to --add-import or --update.
17084         * gnulib-tool: Emit a verbose error message when --import is used
17085         without any module name.
17086
17087 2010-09-04  Bruno Haible  <bruno@clisp.org>
17088
17089         Update doc about gnulib-tool.
17090         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
17091         'gnulib-tool --update' in more detail.
17092         Reported by Eric Blake.
17093
17094 2010-09-04  Bruno Haible  <bruno@clisp.org>
17095
17096         gnulib-tool: Change --import. New options --add/remove-import.
17097         * gnulib-tool: New options --add-import, --remove-import.
17098         (func_usage): Document them.
17099         (have_associative): Define always.
17100         (func_import): In import mode, don't merge the specified settings with
17101         the cached settings. Implement remove-import mode.
17102         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
17103         Explain when to use them versus --import.
17104         (Simple update): Use --add-import instead of --import.
17105         * NEWS: Mention the change.
17106
17107 2010-09-04  Bruno Haible  <bruno@clisp.org>
17108
17109         * doc/gnulib-tool.texi (Initial import): Update paragraph about
17110         separate gnulib.mk.
17111
17112 2010-09-04  Bruno Haible  <bruno@clisp.org>
17113
17114         gnulib-tool: Don't talk about CVS any more.
17115         * gnulib-tool (func_usage, func_import): Write "version control"
17116         instead of CVS.
17117
17118 2010-09-04  Jim Meyering  <meyering@redhat.com>
17119
17120         maint.mk: avoid obscure sc_copyright_check failure in coreutils
17121         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
17122         false positives (whose names may be ill-chosen) when searching
17123         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
17124         would cause a false-positive.
17125
17126         avoid coreutils "make distcheck" failure
17127         Coreutils tests with an absolute build directory name that contains
17128         a space.  Not quoting this directory name caused a failure.
17129         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
17130         * tests/test-vc-list-files-cvs.sh: Likewise.
17131
17132 2010-09-04  Bruno Haible  <bruno@clisp.org>
17133
17134         gnulib-tool: Avoid error when run in a package without Makefile.am.
17135         * gnulib-tool: When collecting the m4dirs in a package that does not
17136         have a Makefile.am, eliminate those directories that contain no
17137         gnulib-cache.m4. Fix expression that counts these directories.
17138
17139 2010-09-04  Bruno Haible  <bruno@clisp.org>
17140
17141         update-copyright test: Improve output when perl is missing or too old.
17142         * tests/test-update-copyright.sh: Move test of Perl version down after
17143         the test whether Perl exists. Provide an explanation relating Perl's
17144         error message to Automake's SKIP: message.
17145
17146 2010-09-04  Bruno Haible  <bruno@clisp.org>
17147
17148         Don't augment PATH in TESTS_ENVIRONMENT.
17149         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
17150         set abs_aux_dir instead of augmenting PATH.
17151         * modules/vc-list-files-tests (Makefile.am): Likewise.
17152         * tests/test-update-copyright.sh: Augment PATH here.
17153         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
17154         path_prepend_.
17155         * tests/test-vc-list-files-git.sh: Likewise.
17156
17157 2010-09-04  Jim Meyering  <meyering@redhat.com>
17158
17159         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
17160         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
17161
17162 2010-09-04  Bruno Haible  <bruno@clisp.org>
17163
17164         strdup: Fix compilation error in C++ mode.
17165         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
17166         the macro.
17167
17168 2010-09-04  Bruno Haible  <bruno@clisp.org>
17169
17170         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
17171         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
17172         macro into a function.
17173         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17174
17175 2010-09-04  Bruno Haible  <bruno@clisp.org>
17176
17177         Set PATH_SEPARATOR the same way autoconf does.
17178         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
17179         the value of PATH_SEPARATOR the same way autoconf-generated configure
17180         scripts do.
17181         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
17182         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17183
17184 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17185
17186         Set PATH_SEPARATOR the same way autoconf does.
17187         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
17188         the same way autoconf-generated configure scripts do.
17189         * posix-modules: Likewise.
17190
17191 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17192
17193         hash: fix safe_hasher const typo
17194         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
17195         const; otherwise, there is a type error later.
17196
17197 2010-09-02  Jim Meyering  <meyering@redhat.com>
17198
17199         test-update-copyright.sh: require perl 5.8.0
17200         * tests/test-update-copyright.sh: Require 5.8.0,
17201         which Tom G. Christensen has confirmed is adequate,
17202         while 5.6.1 is not.
17203
17204 2010-09-02  Eric Blake  <eblake@redhat.com>
17205
17206         tests: init.sh improvements for re-exec'ing with zsh
17207         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
17208         -vx through shell re-exec.
17209         Reported by Tom G. Christensen.
17210
17211         wctype: fix typo in previous commit
17212         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
17213         Reported by Ludovic Courtès.
17214
17215 2010-09-02  Jim Meyering  <meyering@redhat.com>
17216
17217         test-update-copyright.sh: skip test if Perl is too old
17218         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
17219         Reported by Tom G. Christensen.
17220
17221 2010-09-02  Bruno Haible  <bruno@clisp.org>
17222
17223         wctype: Avoid compilation error on IRIX 6.5.30.
17224         * lib/wctype.in.h (iswblank): Declare with a replacement if
17225         REPLACE_ISWBLANK is set.
17226         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
17227         declared. Set REPLACE_ISWBLANK.
17228         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
17229         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
17230         * doc/posix-headers/wctype.texi: Likewise.
17231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17232
17233 2010-09-01  Bruno Haible  <bruno@clisp.org>
17234
17235         New module 'socketlib'.
17236         * modules/socketlib: New file.
17237         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
17238         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
17239         * modules/sockets (Depends-on): Add socketlib.
17240         Suggested by Sam Steingold <sds@gnu.org>.
17241
17242 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17243
17244         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
17245
17246         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
17247         when one needs search access to a directory but not read access.
17248         On systems where it is available, it works in some cases where
17249         O_RDONLY does not, namely on directories that are searchable but
17250         not readable, and which need only to be searchable.  If O_SEARCH
17251         is not available, fall back to the traditional method of using
17252         O_RDONLY.
17253
17254         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17255         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17256         when opening a directory that needs only to be searchable.
17257         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17258         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17259         * lib/openat-proc.c (openat_proc_name): Likewise.
17260         * lib/openat.c (openat_needs_fchdir): Likewise.
17261         * lib/save-cwd.c (save_cwd): Likewise.
17262         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17263
17264 2010-08-28  Bruno Haible  <bruno@clisp.org>
17265
17266         New module 'host-cpu-c-abi'.
17267         * modules/host-cpu-c-abi: New file.
17268         * m4/host-cpu-c-abi.m4: New file, based on part of
17269         clisp/src/m4/general.m4.
17270         Requested by Sam Steingold <sds@gnu.org>.
17271
17272 2010-08-31  Eric Blake  <eblake@redhat.com>
17273         and Jim Meyering  <meyering@redhat.com>
17274
17275         hash: factor, and guard against misbehaving hasher function
17276         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17277         of table->hasher's return value.  Also protect against a hash value
17278         so large that adding it to table->bucket results in a NULL pointer.
17279         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17280         Use it in place of open-coded check-and-abort.
17281
17282 2010-08-30  Bruno Haible  <bruno@clisp.org>
17283
17284         hash: silence spurious clang warning
17285         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17286         Reported by Eric Blake.
17287
17288 2010-08-30  Eric Blake  <eblake@redhat.com>
17289
17290         strstr, memmem, strcasestr: avoid leaked shell message
17291         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17292         FreeBSD.
17293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17294         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17295
17296         tests: silence clang warning
17297         * tests/test-malloca.c (do_allocation): Avoid dead store.
17298
17299 2010-08-29  Bruno Haible  <bruno@clisp.org>
17300
17301         gettext: Fix recent mistake.
17302         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17303
17304 2010-08-29  Bruno Haible  <bruno@clisp.org>
17305
17306         selinux-h: Offer a --without-selinux option.
17307         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17308         --without-selinux was specified, skip all tests and define
17309         HAVE_SELINUX_SELINUX_H to 0.
17310         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17311         set LIB_SELINUX to empty.
17312         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17313         gl_LIBSELINUX. If --without-selinux was specified, replace
17314         selinux/context.h.
17315         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17316
17317 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17318             Bruno Haible  <bruno@clisp.org>
17319
17320         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17321         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17322         of HAVE_REALLOC.
17323         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17324         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17325         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17326         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17327
17328 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17329             Bruno Haible  <bruno@clisp.org>
17330
17331         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17332         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17333         HAVE_CALLOC.
17334         * lib/xmalloc.c: Update accordingly.
17335         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17336         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17337         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17338
17339 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17340             Bruno Haible  <bruno@clisp.org>
17341
17342         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17343         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17344         HAVE_MALLOC.
17345         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17346         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17347         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17348
17349 2010-08-29  Bruno Haible  <bruno@clisp.org>
17350
17351         Update modules list.
17352         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17353         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17354         (String handling <string.h>): Add astrxfrm.
17355         (File system functions): Add readlinkat.
17356
17357 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17358
17359         Tests for module 'realloc-gnu'.
17360         * modules/realloc-gnu-tests: New file.
17361         * tests/test-realloc-gnu.c: New file.
17362
17363         Tests for module 'calloc-gnu'.
17364         * modules/calloc-gnu-tests: New file.
17365         * tests/test-calloc-gnu.c: New file.
17366
17367         Tests for module 'malloc-gnu'.
17368         * modules/malloc-gnu-tests: New file.
17369         * tests/test-malloc-gnu.c: New file.
17370
17371 2010-08-28  Bruno Haible  <bruno@clisp.org>
17372
17373         Rename module 'realloc' -> 'realloc-gnu'.
17374         * modules/realloc-gnu: New file, copied from modules/realloc.
17375         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17376         obsolete.
17377         * modules/mgetgroups (Depends-on): Update.
17378         * doc/posix-functions/realloc.texi: Update.
17379         * NEWS: Mention the change.
17380
17381         Rename module 'calloc' -> 'calloc-gnu'.
17382         * modules/calloc-gnu: New file, copied from modules/calloc.
17383         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17384         obsolete.
17385         * doc/posix-functions/calloc.texi: Update.
17386         * NEWS: Mention the change.
17387
17388         Rename module 'malloc' -> 'malloc-gnu'.
17389         * modules/malloc-gnu: New file, copied from modules/malloc.
17390         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17391         obsolete.
17392         * modules/argp (Depends-on): Update.
17393         * modules/regex (Depends-on): Update.
17394         * doc/posix-functions/malloc.texi: Update.
17395         * NEWS: Mention the change.
17396
17397 2010-08-28  Eric Blake  <eblake@redhat.com>
17398
17399         pread, pwrite: add missing dependency
17400         * modules/pread (Depends-on): Add extensions.
17401         * modules/pwrite (Depends-on): Likewise.
17402
17403 2010-08-28  Bruno Haible  <bruno@clisp.org>
17404
17405         unistr/u*-strchr: Fix tests dependencies.
17406         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
17407         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
17408         Reported by Ian Beckwith <ianb@erislabs.net>.
17409
17410 2010-08-28  Bruno Haible  <bruno@clisp.org>
17411
17412         read-file: Don't occupy too much unused memory.
17413         * lib/read-file.c (fread_file): Shrink the buffer at the end.
17414
17415 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
17416             Eric Blake  <eblake@redhat.com>
17417             Bruno Haible  <bruno@clisp.org>
17418
17419         read-file: Avoid memory reallocations with regular files.
17420         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
17421         (fread_file): With regular files, use the remaining length as the
17422         initial buffer size.  Check against overflow.
17423         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
17424         sys_stat.
17425
17426 2010-08-28  Bruno Haible  <bruno@clisp.org>
17427
17428         ftello: Relax license.
17429         * modules/ftello (License): Relax to LGPLv2+.
17430         Reported by Eric Blake.
17431
17432 2010-08-28  Bruno Haible  <bruno@clisp.org>
17433
17434         Avoid relocwrapper link errors due to gnulib replacement functions.
17435         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
17436         function.
17437         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17438
17439 2010-08-28  Bruno Haible  <bruno@clisp.org>
17440
17441         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
17442         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
17443         defined.
17444         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
17445         Suggested by Eric Blake.
17446
17447 2010-08-28  Bruno Haible  <bruno@clisp.org>
17448
17449         sys_socket, netdb: Ensure socklen_t gets defined.
17450         * modules/sys_socket (Depends-on): Add socklen.
17451         * modules/netdb (Depends-on): Likewise.
17452         * modules/getaddrinfo (Depends-on): Remove socklen.
17453         * modules/getsockopt (Depends-on): Likewise.
17454         * modules/setsockopt (Depends-on): Likewise.
17455         * tests/test-sys_socket.c: Check that socklen_t is defined.
17456         * tests/test-netdb.c: Likewise.
17457         * m4/socklen.m4: Update comments.
17458         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17459
17460 2010-08-27  Eric Blake  <eblake@redhat.com>
17461
17462         login_tty: add missing dependency
17463         * modules/login_tty (Depends-on): Add pty.
17464
17465 2010-08-26  Eric Blake  <eblake@redhat.com>
17466
17467         lib-symbol-versions: fix m4 quoting
17468         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
17469         format for AC_LINK_IFELSE.
17470
17471         glob: fix compile test
17472         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
17473
17474         btowc: fix missing file
17475         * modules/btowc (Files): Also ship locale-fr.m4.
17476
17477         lseek: fix link test
17478         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
17479         AC_LINK_IFELSE.
17480
17481         include_next: silence autoconf 2.68 warning
17482         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17483         AC_COMPILE_IFELSE as special.
17484         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17485         autoconf < 2.68.
17486
17487         acl: fix compilation test
17488         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17489         AC_COMPILE_IFELSE.
17490
17491 2010-08-26  Bruno Haible  <bruno@clisp.org>
17492
17493         Modernize AC_TRY_RUN invocations.
17494         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17495         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17496         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17497         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17498         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17499         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17500         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17501         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17502         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17503         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17504         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17505         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17506         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17507         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17508         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17509         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17510         gl_MBRLEN_NUL_RETVAL): Likewise.
17511         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17512         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17513         Likewise.
17514         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17515         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17516         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17517         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17518         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17519         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17520         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17521         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17522         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17523         Likewise.
17524         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17525         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17526         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17527         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17528         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17529         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17530         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17531         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17532         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17534
17535 2010-08-26  Bruno Haible  <bruno@clisp.org>
17536
17537         Modernize AC_TRY_LINK invocations.
17538         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17539         AC_TRY_LINK.
17540         * m4/argp.m4 (gl_ARGP): Likewise.
17541         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17542         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17543         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17544         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17545         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17546         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17547         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17548         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17549         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17550         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17551         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17552         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17553         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17554         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17555         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17556         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17557         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17558         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17559         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17560         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17561         Likewise.
17562         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17563         Likewise.
17564         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17565         Likewise.
17566         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17567         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17568         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17569         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17570         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17571         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17572         * m4/servent.m4 (gl_SERVENT): Likewise.
17573         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17574         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17575         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17576         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17577         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17578         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17579         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17580         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17581         * modules/tsearch-tests (configure.ac): Likewise.
17582
17583 2010-08-26  Bruno Haible  <bruno@clisp.org>
17584
17585         Modernize AC_TRY_COMPILE invocations.
17586         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17587         AC_TRY_COMPILE.
17588         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17589         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17590         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17591         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17592         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17593         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17594         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17595         * m4/lock.m4 (gl_LOCK): Likewise.
17596         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17597         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17598         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17599         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17600         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17601         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17602         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17603         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17604         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17605         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17606         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17607         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17608         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17609         extraneous semicolon.
17610
17611 2010-08-26  Jim Meyering  <meyering@redhat.com>
17612
17613         stat-time: relax license LGPL
17614         * modules/stat-time (License): Change from GPL to LGPL,
17615         with consent from all contributors, for use in libguile.
17616         Requested by Ludovic Courtès.
17617
17618 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17619
17620         poll: return immediately on POLLHUP.
17621         * lib/poll.c (poll): Always set timeout before wait_timeout is
17622         computed.
17623
17624 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17625
17626         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17627         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17628         rmdir ("dir/.//"), unlinkat.
17629
17630 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17631
17632         stdbool: avoid spurious failure with modern xlc
17633         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17634
17635 2010-08-24  Bruno Haible  <bruno@clisp.org>
17636
17637         getloadavg: simplify code
17638         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17639         gl_have_func. Update comments.
17640
17641 2010-08-24  Eric Blake  <eblake@redhat.com>
17642
17643         getloadavg: don't define SVR4 on cygwin
17644         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17645         only define SVR4 when -lkvm is required.
17646         Reported by Yaakov Selkowitz.
17647
17648 2010-08-24  Bruno Haible  <bruno@clisp.org>
17649
17650         priv-set: fix comment
17651         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17652
17653 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17654
17655         priv-set: fix comments
17656         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17657         to match code, as suggested by David Bartley in:
17658         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17659
17660 2010-08-23  Eric Blake  <eblake@redhat.com>
17661
17662         stdbool: avoid rejecting clang
17663         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17664         * tests/test-stdbool.c: Enable more tests if using the system
17665         <stdbool.h> instead of the gnulib replacement.
17666         (main): Move xlc bug test to a runtime test for all compilers.
17667         Reported by Anders Kaseorg.
17668
17669         argz: fix shell quoting issue
17670         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17671         Reported by Charles Wilson.
17672
17673 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17674             Erik Faye-Lund <kusmabite@gmail.com>
17675
17676         poll, select: handle ERROR_BROKEN_PIPE.
17677         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17678         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17679         * lib/select.c (win32_compute_revents): Do not mark a pipe
17680         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17681
17682 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17683
17684         fts: allow compilation with C++
17685         * lib/fts_.h: Specify extern "C" linkage with C++.
17686
17687 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17688
17689         Fix gnulib-tool sed script de-commentation for AIX sed.
17690         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17691         sed.
17692
17693 2010-08-17  Eric Blake  <eblake@redhat.com>
17694
17695         test-stddef: test for (some) offsetof bugs
17696         * tests/test-stddef.c: Enhance test to ensure correct type of
17697         offsetof.
17698         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17699         that we are not fixing at this time.
17700
17701 2010-08-15  Bruno Haible  <bruno@clisp.org>
17702
17703         stpncpy: Allow stpncpy to be defined as a macro.
17704         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17705         if it's already correctly declared.
17706         * lib/string.in.h (stpncpy): Undefine before redefining.
17707         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17708
17709 2010-08-14  Bruno Haible  <bruno@clisp.org>
17710
17711         Rename module 'memxfrm' to 'amemxfrm'.
17712         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17713         (amemxfrm): Renamed from memxfrm.
17714         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17715         (amemxfrm): Renamed from memxfrm.
17716         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17717         * NEWS: Mention the change.
17718         * MODULES.html.sh (String handling <string.h>): Update.
17719         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17720         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17721         * lib/unicase/u16-casexfrm.c: Likewise.
17722         * lib/unicase/u32-casexfrm.c: Likewise.
17723         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17724         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17725         * lib/uninorm/u16-normxfrm.c: Likewise.
17726         * lib/uninorm/u32-normxfrm.c: Likewise.
17727         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17728         memxfrm.
17729         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17730         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17731         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17732         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17733         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17734         Suggested by Paul Eggert.
17735
17736 2010-08-14  Bruno Haible  <bruno@clisp.org>
17737
17738         Tests for module 'astrxfrm'.
17739         * modules/astrxfrm-tests: New file.
17740         * tests/test-astrxfrm.c: New file.
17741
17742         New module 'astrxfrm'.
17743         * lib/astrxfrm.h: New file.
17744         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17745         * modules/astrxfrm: New file.
17746
17747 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17748
17749         regex: Tweak doc.
17750         * doc/regex.texi (Overview): Don't mention regex.c.
17751         (GNU Regular Expression Compiling): Likewise.
17752         (Match-end-of-line Operator): Mention 'not_eol'.
17753
17754 2010-08-14  Brian Gough  <bjg@gnu.org>
17755             Bruno Haible  <bruno@clisp.org>
17756
17757         git-merge-changelog: add doc relating to use with bzr and hg.
17758         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17759
17760 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17761
17762         pthread: fix pthread.h creation for srcdir != builddir
17763         * modules/pthread (Makefile.am): Fix the rule to work also in a
17764         non-srcdir build.
17765
17766 2010-08-13  Karl Berry  <karl@gnu.org>
17767
17768         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17769         * doc/posix-*/*: force line break before @url of POSIX
17770         specifications.
17771         Suggested by Werner Lemberg.
17772
17773 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17774
17775         strtod: fix const diagnostic
17776         * lib/strtod.c (strtod): Don't assign const char * to char *,
17777         as this elicits a warning from GCC when warnings are enabled.
17778
17779 2010-08-10  Pádraig Brady <P@draigbrady.com>
17780         and Eric Blake  <eblake@redhat.com>
17781
17782         copy-acl: ignore ENOTSUP on HP-UX
17783         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17784         so that it is available for HP-UX.
17785         * lib/copy-acl.c (qcopy_acl): Use it.
17786         Reported by Patrick M. Callahan.
17787
17788 2010-08-10  Eric Blake  <eblake@redhat.com>
17789
17790         open, chown: relax license
17791         * modules/open (License): Change to LGPLv2+, with consent by all
17792         authors, for use in augeas.
17793         * modules/chown (License): Likewise.
17794         * modules/lchown (Likewise): Likewise.
17795         Requested by Adam Stokes.
17796
17797 2010-08-09  Karl Berry  <karl@gnu.org>
17798
17799         * build-aux/ar-lib: new file, import from Automake.
17800         * config/srclist.txt: autocheck for updates.
17801
17802 2010-08-09  Eric Blake  <eblake@redhat.com>
17803
17804         readlinkat: adjust client modules
17805         * modules/areadlinkat (Depends-on): Use readlinkat, not
17806         symlinkat.
17807         * modules/areadlinkat-with-size (Depends-on): Likewise.
17808
17809         mknod: be more vocal about danger of running tests as root
17810         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17811         root, since that is just asking for problems.
17812         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17813
17814         readlinkat: split into its own module
17815         * modules/symlinkat: Split readlinkat...
17816         * modules/readlinkat: ...into separate module.
17817         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17818         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17819         * lib/symlinkat.c (readlinkat): Move...
17820         * lib/readlinkat.c: ...into new file.
17821         * modules/symlinkat-tests: Split readlinkat test...
17822         * modules/readlinkat-tests: ...into separate module.
17823         * tests/test-symlinkat.c: Split...
17824         * tests/test-readlinkat.c: ...into new file.
17825         * NEWS: Document the split.
17826         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17827         * lib/unistd.in.h (readlinkat): Likewise.
17828         Suggested by Bruno Haible.
17829
17830 2010-08-08  Bruno Haible  <bruno@clisp.org>
17831
17832         memxfrm: Speed up.
17833         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17834         that usually only one call to strxfrm is necessary for each string
17835         part.
17836         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17837
17838 2010-08-07  Karl Berry  <karl@gnu.org>
17839
17840         * doc/posix-headers/limits.texi,
17841         * doc/posix-functions/malloc.texi,
17842         * doc/posix-functions/strsignal.texi: missing @item.
17843         * doc/ld-version-script.texi: spurious leading i.
17844         * doc/regex.texi (Interval Operators): no commas inside @var.
17845
17846 2010-08-01  Bruno Haible  <bruno@clisp.org>
17847
17848         Integrate the regex documentation.
17849         * doc/gnulib.texi: Define 'cn' index.
17850         (Regular expressions): New a chapter that includes regex.texi and
17851         regexprops-generic.texi.
17852         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17853         syntax.
17854
17855         Whitespace cleanup.
17856         * doc/regex.texi: Remove trailing spaces.
17857
17858         Add regex documentation.
17859         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17860         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17861         Written by Kathy A. Hargreaves and Karl Berry.
17862
17863 2010-08-01  Bruno Haible  <bruno@clisp.org>
17864
17865         link: Update documentation.
17866         * doc/posix-functions/link.texi: Update regarding Solaris.
17867
17868 2010-07-31  Bruno Haible  <bruno@clisp.org>
17869
17870         Update modules list.
17871         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17872         (String handling <string.h>): Add memcmp2, memxfrm.
17873         (Container data structures): Add xlist, xsublist, xoset.
17874         (Core language properties): Add alignof, unused-parameter.
17875         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17876         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17877         (Unibyte characters <ctype.h>): New section.
17878         (String handling <string.h>): New section.
17879         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17880         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17881         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17882         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17883         tan, tanh, tanl, y0, y1, yn.
17884         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17885         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17886         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17887         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17888         unlockpt, vdprintf, vdprintf-posix.
17889         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17890         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17891         xconcat-filename.
17892         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17893         getdtablesize, pipe2, pipe2-safer.
17894         (Security): New section.
17895         (Networking functions): Add accept4.
17896         (Signal handling): Add sigpipe.
17897         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17898         mbmemcasecoll.
17899         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17900         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17901         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17902         pipe-filter-ii.
17903         (Misc): Add argp-version-etc, login_tty, parse-duration.
17904
17905 2010-07-31  Bruno Haible  <bruno@clisp.org>
17906
17907         Improve doc in MODULES.html.
17908         * modules/linkat (Description): Add the word "function".
17909         * modules/mkfifo (Description): Likewise.
17910         * modules/mknod (Description): Likewise.
17911         * modules/remove (Description): Likewise.
17912         * modules/renameat (Description): Likewise.
17913         * modules/stat (Description): Likewise.
17914         * modules/symlink (Description): Likewise.
17915         * modules/unlink (Description): Likewise.
17916
17917 2010-07-31  Bruno Haible  <bruno@clisp.org>
17918
17919         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17920         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17921         option --enable/disable-c++ instead of --enable/disable-cxx.
17922         * NEWS: Mention the change.
17923
17924 2010-07-31  Bruno Haible  <bruno@clisp.org>
17925
17926         readlink, areadlink: Relax test a bit.
17927         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17928         alternative to ENOTDIR.
17929         * tests/test-areadlink.h (test_areadlink): Likewise.
17930         Reported by Rainer Tammer.
17931
17932 2010-07-31  Bruno Haible  <bruno@clisp.org>
17933
17934         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17935         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17936         character, perform the search using U_STRCHR.
17937         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17938         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17939         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17940         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17941         Suggested by Paolo Bonzini.
17942
17943 2010-07-31  Bruno Haible  <bruno@clisp.org>
17944
17945         unistr/u*-strstr: Fix dependencies.
17946         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17947         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17948         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17949
17950 2010-07-31  Bruno Haible  <bruno@clisp.org>
17951
17952         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17953         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17954         the beginning of the loop.
17955         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17956         cases in 'switch' statement.
17957
17958         unistr/u8-strchr: Fix several bugs.
17959         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17960         the string. When not found, return NULL, not a pointer near the end.
17961
17962         More tests for unistr/u8-strchr.
17963         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17964         that the function does not read past the first occurrence of the byte
17965         being searched.
17966         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17967         * tests/unistr/test-u16-strchr.c (main): New function.
17968         * tests/unistr/test-u32-strchr.c (main): New function.
17969
17970 2010-07-31  Bruno Haible  <bruno@clisp.org>
17971
17972         posix-modules: Ignore backup files of documentation files.
17973         * posix-modules: grep only through files named *.texi.
17974
17975 2010-07-31  Bruno Haible  <bruno@clisp.org>
17976
17977         symlinkat: Fix documentation.
17978         * doc/posix-functions/readlinkat.texi: Fix module name.
17979
17980 2010-07-31  Bruno Haible  <bruno@clisp.org>
17981
17982         fchownat: Replace also when chown has the trailing slash bug.
17983         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17984         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17985         introduced on 2010-04-10.
17986         Reported by Rainer Tammer.
17987
17988 2010-07-31  Bruno Haible  <bruno@clisp.org>
17989
17990         linkat: Work around AIX 7.1 bug.
17991         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17992         whether linkat handles trailing slash correctly. If not, replace linkat
17993         and define LINKAT_TRAILING_SLASH_BUG.
17994         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17995         check whether (fd1,file1) points to a directory if file1 or file2 ends
17996         in a slash. Code taken from lib/link.c.
17997         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17998         Reported by Rainer Tammer.
17999
18000 2010-07-31  Bruno Haible  <bruno@clisp.org>
18001
18002         Correctly determine whether pow is available in libc on AIX 7 with xlc.
18003         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
18004         This disables an xlc optimization that was causing wrong test results.
18005         Reported by Rainer Tammer.
18006
18007 2010-07-31  Bruno Haible  <bruno@clisp.org>
18008
18009         iconv: Work around AIX 6.1..7.1 bug.
18010         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
18011         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
18012         cross-compiling, guess no on all versions of AIX.
18013         Reported by Rainer Tammer.
18014
18015 2010-07-31  Bruno Haible  <bruno@clisp.org>
18016
18017         readlink: Relax test a bit.
18018         * tests/test-readlink.h (test_readlink): Allow different errno value
18019         when readlink is called with a file name that ends in / and refers to
18020         a file.
18021         Suggested by Eric Blake.
18022         Reported by Rainer Tammer.
18023
18024 2010-07-31  Bruno Haible  <bruno@clisp.org>
18025
18026         copysign: Does not require -lm on glibc systems.
18027         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
18028         gl_COMMON_DOUBLE_MATHFUNC.
18029         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
18030
18031 2010-07-31  Bruno Haible  <bruno@clisp.org>
18032
18033         duplocale: Work around AIX 7.1 bug.
18034         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
18035         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
18036         * lib/duplocale.c (rpl_duplocale): Update comment.
18037         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
18038         Reported by Rainer Tammer.
18039
18040 2010-07-30  Bruno Haible  <bruno@clisp.org>
18041
18042         dirfd: Avoid link error on AIX 7.1.
18043         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
18044         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
18045         exist, set REPLACE_DIRFD.
18046         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
18047         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
18048         * doc/posix-functions/dirfd.texi: Update.
18049         Reported by Rainer Tammer.
18050
18051 2010-07-30  Eric Blake  <eblake@redhat.com>
18052
18053         strtod: next round of AIX fixes
18054         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
18055         exponent.
18056         * tests/test-strtod.c (main): Enhance tests.
18057         * doc/posix-functions/strtod.texi (strtod): Document next bug.
18058         Reported by Rainer Tammer.
18059
18060         futimens: fix configure check
18061         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
18062         Reported by Bruno Haible.
18063
18064 2010-07-30  Bruno Haible  <bruno@clisp.org>
18065
18066         getline: Update regarding AIX.
18067         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
18068         Reported by Rainer Tammer.
18069
18070 2010-07-30  Bruno Haible  <bruno@clisp.org>
18071
18072         wcwidth: Drop replacement on AIX 7.
18073         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
18074         AIX 7.
18075         Reported by Rainer Tammer.
18076
18077 2010-07-30  Bruno Haible  <bruno@clisp.org>
18078
18079         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
18080         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
18081         a 'char *'.
18082         Reported by Rainer Tammer.
18083
18084 2010-07-30  Bruno Haible  <bruno@clisp.org>
18085
18086         unlink: Update regarding AIX.
18087         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
18088         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
18089         Reported by Rainer Tammer.
18090
18091 2010-07-30  Bruno Haible  <bruno@clisp.org>
18092
18093         symlink: Update regarding AIX.
18094         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
18095         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
18096         Reported by Rainer Tammer.
18097
18098 2010-07-30  Bruno Haible  <bruno@clisp.org>
18099
18100         strndup: Update regarding AIX.
18101         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
18102         AIX 7.
18103         Reported by Rainer Tammer.
18104
18105 2010-07-30  Bruno Haible  <bruno@clisp.org>
18106
18107         stat: Update regarding AIX.
18108         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
18109         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
18110         Reported by Rainer Tammer.
18111
18112 2010-07-30  Bruno Haible  <bruno@clisp.org>
18113
18114         truncl: Fix autoconf test.
18115         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
18116         whether truncl works.
18117         Reported by Rainer Tammer.
18118
18119 2010-07-30  Bruno Haible  <bruno@clisp.org>
18120
18121         round: Update regarding AIX.
18122         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
18123         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
18124         Reported by Rainer Tammer.
18125
18126 2010-07-30  Bruno Haible  <bruno@clisp.org>
18127
18128         rename: Update regarding AIX.
18129         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
18130         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
18131         Reported by Rainer Tammer.
18132
18133 2010-07-30  Bruno Haible  <bruno@clisp.org>
18134
18135         printf.m4: Update regarding AIX.
18136         * m4/printf.m4: Update comments regarding AIX.
18137         Reported by Rainer Tammer.
18138
18139 2010-07-30  Bruno Haible  <bruno@clisp.org>
18140
18141         iconv: Update regarding AIX.
18142         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
18143         AIX 7.
18144         Reported by Rainer Tammer.
18145
18146 2010-07-30  Bruno Haible  <bruno@clisp.org>
18147
18148         getopt: Update regarding AIX.
18149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
18150         no on AIX.
18151         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
18152         Reported by Rainer Tammer.
18153
18154 2010-07-30  Bruno Haible  <bruno@clisp.org>
18155
18156         ldexpl; Update regarding AIX.
18157         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
18158         on AIX 7.
18159         Reported by Rainer Tammer.
18160
18161 2010-07-30  Bruno Haible  <bruno@clisp.org>
18162
18163         frexpl: Update regarding AIX.
18164         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
18165         on AIX 7.
18166         Reported by Rainer Tammer.
18167
18168 2010-07-30  Bruno Haible  <bruno@clisp.org>
18169
18170         open, fopen: Update regarding AIX.
18171         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
18172         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18173         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
18174         * doc/posix-functions/fopen.texi: Likewise.
18175         Reported by Rainer Tammer.
18176
18177 2010-07-30  Bruno Haible  <bruno@clisp.org>
18178
18179         chown: Update doc regarding AIX.
18180         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
18181         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
18182         Reported by Rainer Tammer.
18183
18184 2010-07-30  Eric Blake  <eblake@redhat.com>
18185
18186         strtod: fix bug in replacement function on AIX
18187         * lib/strtod.c (strtod): Special case broken "0x" parse in
18188         underlying strtod.
18189         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
18190         * doc/posix-functions/strtod.texi (strtod): Likewise.
18191         Reported by Rainer Tammer.
18192
18193 2010-07-30  Bruno Haible  <bruno@clisp.org>
18194
18195         mbrlen: Fix cross-compilation guess for AIX.
18196         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
18197         guess. Leftover from 2008-12-22.
18198
18199 2010-07-30  Bruno Haible  <bruno@clisp.org>
18200
18201         mbrtowc: Fix cross-compilation guess for AIX.
18202         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
18203         guess. Leftover from 2008-12-21.
18204
18205 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
18206
18207         init.sh: work around trap limitation of some shells
18208         * tests/init.sh (setup_): Move exit trap outside of shell function.
18209
18210 2010-07-29  Eric Blake  <eblake@redhat.com>
18211
18212         strtod: aid debugging
18213         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
18214         understanding why strtod is rejected.
18215
18216 2010-07-28  Bruno Haible  <bruno@clisp.org>
18217
18218         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
18219         * lib/unistr/u8-chr.c: Include <string.h>.
18220         * tests/unistr/test-u8-chr.c: Likewise.
18221         * tests/unistr/test-u16-chr.c: Likewise.
18222         * tests/unistr/test-u32-chr.c: Likewise.
18223         * tests/unistr/test-u8-strchr.c: Likewise.
18224         * tests/unistr/test-u16-strchr.c: Likewise.
18225         * tests/unistr/test-u32-strchr.c: Likewise.
18226         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
18227         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
18228         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
18229         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
18230
18231 2010-07-28  Bruno Haible  <bruno@clisp.org>
18232
18233         Use spaces for indentation, not tabs.
18234         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18235
18236 2010-07-27  Bruno Haible  <bruno@clisp.org>
18237
18238         mbspcasecmp: Fix function specification.
18239         * lib/string.in.h (mbspcasecmp): Fix specification comment.
18240         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
18241         Reported by Eric Blake <eblake@redhat.com>.
18242
18243 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
18244
18245         timespec: use cast and not conditional, as truncation isn't possible
18246         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
18247         instead of a conditional.  Comment about the situation in more detail.
18248         This undoes most of the 2009-10-29 patch.
18249
18250 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
18251
18252         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18253         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18254         * lib/unistr/u8-strchr.c: Likewise.
18255         * modules/unistr/u8-chr: Depend on memchr.
18256
18257         unistr/u*-strchr: add tests
18258         * modules/unistr/u8-strchr-tests: New file.
18259         * modules/unistr/u16-strchr-tests: New file.
18260         * modules/unistr/u32-strchr-tests: New file.
18261         * tests/unistr/test-strchr.h: New file.
18262         * tests/unistr/test-u8-strchr.c: New file.
18263         * tests/unistr/test-u16-strchr.c: New file.
18264         * tests/unistr/test-u32-strchr.c: New file.
18265
18266         unistr/u*-chr: test multibyte sequences more
18267         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18268         test vector.
18269         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18270         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18271         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18272
18273         unistr/u*-chr: test multibyte sequences
18274         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18275
18276         unistr/u*-chr: prepare for multibyte tests
18277         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18278         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18279         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18280         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18281         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18282         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18283
18284 2010-07-18  Bruno Haible  <bruno@clisp.org>
18285
18286         unistr/u8-strchr: Optimize non-ASCII argument case.
18287         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18288         because the first byte often matches anyway.
18289         Reported by Pádraig Brady <P@draigbrady.com>.
18290
18291 2010-07-15  Karl Berry  <karl@gnu.org>
18292
18293         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18294
18295 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18296
18297         getcwd: on Solaris, work better if ancestors are inaccessible
18298         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18299         buffer and size, try again with a large buffer.  This works better
18300         on Solaris, since its getcwd succeeds even if the path to the root
18301         is inaccessible, and this is helpful in common cases such as .zfs
18302         hidden directories.  Problem reported by J Chapman Flack in
18303         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18304         Use system getcwd if it's declared, not merely if it's partly
18305         working; use the partly-working test only to avoid needless effort
18306         if the system getcwd fails.
18307         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18308         comment that was already obsolete and is now even more obsolete.
18309         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18310         now might call strdup.
18311
18312 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18313
18314         pthread: Add enough so that coreutils/src/sort.c compiles.
18315         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18316         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18317         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18318         Include <sys/types.h>, in case it defines pthread_t.
18319         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18320         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18321         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18322         (pthread_rwlockattr_t, pthread_spinlock_t):
18323         New typedefs, if HAVE_PTHREAD_T is not defined.
18324         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18325         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18326         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18327         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18328         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18329         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18330         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18331         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18332         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18333         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18334         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18335         New macros.
18336         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18337         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18338         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18339         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18340         (pthread_spin_unlock): New dummy functions.
18341         (pthread_create): Return EAGAIN; don't set errno.
18342         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18343         require AC_C_INLINE.
18344         * modules/pthread (Depends-on): Add sched, time.
18345         (pthread.h): Use AM_V_GEN.
18346
18347 2010-07-13  Bruno Haible  <bruno@clisp.org>
18348
18349         striconveh: Don't malloc memory if the result buffer is sufficient.
18350         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18351         buffer if its size is sufficient.
18352         Reported by Ludovic Courtès <ludo@gnu.org>.
18353
18354 2010-07-13  Bruno Haible  <bruno@clisp.org>
18355
18356         strtod: Add safety check.
18357         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18358
18359 2010-07-12  Bruno Haible  <bruno@clisp.org>
18360
18361         Unify tests that set gl_cv_func_ldexpl_no_libm.
18362         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18363         gl_FUNC_LDEXPL.
18364         (gl_FUNC_LDEXPL): Invoke it.
18365         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18366
18367 2010-07-12  Bruno Haible  <bruno@clisp.org>
18368
18369         Unify tests that set gl_cv_func_ldexp_no_libm.
18370         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18371         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18372         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18373         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18374         * modules/strtod (Files): Add m4/ldexp.m4.
18375
18376 2010-07-12  Bruno Haible  <bruno@clisp.org>
18377
18378         Unify tests that set gl_cv_func_frexpl_no_libm.
18379         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18380         gl_FUNC_FREXPL_NO_LIBM.
18381         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18382         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18383
18384 2010-07-12  Bruno Haible  <bruno@clisp.org>
18385
18386         Unify tests that set gl_cv_func_frexp_no_libm.
18387         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18388         gl_FUNC_FREXP_NO_LIBM.
18389         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18390         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18391
18392 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18393
18394         memcoll: clarify sizes versus lengths, document better, and tweak perf
18395         * lib/memcoll.c (strcoll_loop, memcoll0):
18396         Improve quality of descriptive comments.  Name variables
18397         consistently as to whether they are lengths (which do not include
18398         terminating null) versus sizes (which do).
18399         * lib/xmemcoll.c (xmemcoll0): Likewise.
18400         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
18401         returned when s1size == 0; this is easier to compile and saves
18402         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
18403
18404 2010-07-12  Bruno Haible  <bruno@clisp.org>
18405
18406         Tests for module '_Exit'.
18407         * modules/_Exit-tests: New file.
18408         * tests/test-_Exit.sh: New file.
18409         * tests/test-_Exit.c: New file.
18410
18411         New module '_Exit'.
18412         * lib/stdlib.in.h (__attribute__): New macro.
18413         (_Exit): New declaration.
18414         * lib/_Exit.c: New file.
18415         * m4/_Exit.m4: New file.
18416         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
18417         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
18418         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
18419         * modules/_Exit: New file.
18420         * tests/test-stdlib-c++.cc (_Exit): Check signature.
18421         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
18422
18423 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18424
18425         strtod: make it more-accurate typically, and don't require libm
18426         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
18427         Include limits.h.  Don't include string.h.
18428         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
18429         (locale_isspace): New function, so that no casts are needed to
18430         check whether *s is a space.
18431         (ldexp): Provide an unused dummy if not available.
18432         (scale_radix_exp, parse_number, underlying_strtod): New functions.
18433         (strtod): Use them.  This implementation prefers to use the
18434         underlying strtod if available, falling back on our own code
18435         only to fix known bugs.  This is more likely to produce an
18436         accurate result.  Also, it avoids the use of libm functions.
18437         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
18438         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
18439         was absent, but it caused a test failure with coreutils.
18440         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
18441         with libm.
18442         * modules/strtod (Makefile.am, Link): libm is no longer needed.
18443         * modules/strtod-tests (Makefile.am): Likewise.
18444
18445 2010-07-11  Pádraig Brady  <P@draigBrady.com>
18446             Bruno Haible  <bruno@clisp.org>
18447
18448         unistr/u8-strchr: Optimize ASCII argument case.
18449         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
18450
18451 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18452
18453         (x)memcoll: minor tweaks
18454         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
18455         is after the type that it qualifies.
18456         (memcoll0): Likewise.
18457         * lib/memcoll.h (memcoll0): Likewise.
18458         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
18459         * lib/xmemcoll.h (xmemcoll0): Likewise.
18460         * lib/memcoll.c (memcoll0): Correct the comment.  This function
18461         differs from memcoll in that the NUL byte is part of the argument.
18462         Omit the abort-checks, as performance is a real issue here.  Plus,
18463         the checks were wrong anyway (an off-by-one error).  Omit local
18464         variable 'diff', as it's a bit clearer that way.
18465         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
18466         no longer needed.
18467
18468 2010-07-08  Chen Guo <chenguo4@yahoo.com>
18469
18470         (x)memcoll: speedup when input is known to be NUL delimited
18471         * lib/memcoll.c: Include stdlib.
18472         (memcoll0): New function.
18473         (strcoll_loop): New function, refactored for use in both memcoll
18474         and memcoll0.
18475         * lib/memcoll.h (memcoll0): Add prototype.
18476         * lib/xmemcoll.c (xmemcoll0): New function.
18477         (collate_error): New function, refactored for use in both xmemcoll
18478         and xmemcoll0.
18479         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18480         * m4/memcoll.m4: add inline invocation.
18481
18482 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18483
18484         * build-aux/bootstrap: Remove any local translations
18485         from the translation project synchronization directory,
18486         so that local only translations are not distributed.
18487
18488 2010-07-04  Bruno Haible  <bruno@clisp.org>
18489
18490         fsusage: Clarify which code applies to which platforms.
18491         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18492         platform.
18493         * lib/fsusage.c (get_fs_usage): Likewise.
18494
18495 2010-07-04  Bruno Haible  <bruno@clisp.org>
18496
18497         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18498         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18499         Reported by Martin Lambers <marlam@marlam.de>.
18500
18501 2010-07-04  Jim Meyering  <meyering@redhat.com>
18502
18503         hash: once again explicitly disallow insertion of NULL
18504         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18505         inserting a NULL pointer cannot work with these functions.
18506         Add a comment with details.
18507         This reverts part of the 2010-07-01 commit, 5bef1a35
18508         "hash: extend module to deal with non-pointer keys".
18509
18510 2010-07-01  Bruno Haible  <bruno@clisp.org>
18511
18512         stdbool: Update doc.
18513         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18514         Info from Christian Weisgerber <naddy@mips.inka.de>.
18515
18516 2010-07-01  Jim Meyering  <meyering@redhat.com>
18517
18518         hash: extend module to deal with non-pointer keys
18519         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18520         but that allows insertion of non-pointer entries.
18521         Do not disallow an ENTRY value of NULL.
18522         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18523         * lib/hash.h (hash_insert0): Declare.
18524
18525 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18526
18527         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18528         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18529         not present (i.e. with autoconf 2.59 and when using gettextize, not
18530         gnulib), require AC_GNU_SOURCE instead.
18531
18532 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18533
18534         idpriv-drop: Fix tests.
18535         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18536         not to the test-idpriv-droptemp program.
18537
18538 2010-06-29  Bruno Haible  <bruno@clisp.org>
18539
18540         string: Fix syntax error with g++ 2.96.
18541         * lib/string.in.h (__pure__): Remove definition.
18542         (_GL_ATTRIBUTE_PURE): New macro.
18543         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18544         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18545         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18546
18547 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18548
18549         unitypes: Fix bug introduced on 2010-05-18.
18550         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18551
18552 2010-06-22  Eric Blake  <eblake@redhat.com>
18553
18554         memmem: slight optimization
18555         * lib/str-two-way.h (critical_factorization): Update comments.
18556         Reduce work during factorization phase.
18557         Reported by Carlos Bueno <carlos@bueno.org>.
18558
18559 2010-06-21  Bruno Haible  <bruno@clisp.org>
18560
18561         Fix HAVE_CALLOC_POSIX misnomer.
18562         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18563         !HAVE_CALLOC_POSIX.
18564         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18565         HAVE_CALLOC_POSIX.
18566         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18567         instead of HAVE_CALLOC_POSIX.
18568         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18569         HAVE_CALLOC_POSIX.
18570
18571         Use modern idiom for calloc() replacement.
18572         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18573         AC_FUNC_CALLOC.
18574         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18575         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18576         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18577         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18578         (gl_REPLACE_CALLOC): New macro.
18579
18580 2010-06-21  Bruno Haible  <bruno@clisp.org>
18581
18582         Fix HAVE_REALLOC_POSIX misnomer.
18583         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18584         !HAVE_REALLOC_POSIX.
18585         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18586         HAVE_REALLOC_POSIX.
18587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18588         instead of HAVE_REALLOC_POSIX.
18589         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18590         HAVE_REALLOC_POSIX.
18591
18592         Use modern idiom for realloc() replacement.
18593         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18594         AC_FUNC_REALLOC.
18595         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18596         Autoconf's AC_FUNC_REALLOC.
18597         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18598         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18599         (gl_REPLACE_REALLOC): New macro.
18600         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18601
18602 2010-06-21  Bruno Haible  <bruno@clisp.org>
18603
18604         Fix HAVE_MALLOC_POSIX misnomer.
18605         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18606         !HAVE_MALLOC_POSIX.
18607         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18608         HAVE_MALLOC_POSIX.
18609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18610         instead of HAVE_MALLOC_POSIX.
18611         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18612         HAVE_MALLOC_POSIX.
18613
18614         Use modern idiom for malloc() replacement.
18615         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18616         AC_FUNC_MALLOC.
18617         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18618         Autoconf's AC_FUNC_MALLOC.
18619         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18620         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18621         (gl_REPLACE_MALLOC): New macro.
18622         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18623
18624 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18625
18626         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18627         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18628         This macro takes 3 arguments, not 4.
18629
18630 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18631
18632         ipv6: fix detection under mingw
18633         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18634         in6_addr.
18635
18636 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18637
18638         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18639         that strtod() works when cross-compiling to a glibc version known
18640         to work.
18641
18642 2010-06-15  Bruno Haible  <bruno@clisp.org>
18643
18644         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18645
18646 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18647
18648         select: Correct timeout.
18649         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18650
18651 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18652
18653         git-version-gen: init shell var to avoid env var influence
18654         * build-aux/git-version-gen (v): Init shell var to empty.
18655
18656 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18657
18658         priv-set: Don't assume that priv.h exists merely because getppriv does.
18659         See Jan Andersen's bug report about AIX 5L in
18660         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18661         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18662         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18663         * lib/priv-set.h: Likewise.
18664         * tests/test-priv-set.c: Likewise.
18665
18666 2010-06-13  Bruno Haible  <bruno@clisp.org>
18667
18668         relocatable: Make it easier to test whether to install wrappers.
18669         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18670         RELOCATABLE_VIA_WRAPPER.
18671
18672 2010-06-13  Bruno Haible  <bruno@clisp.org>
18673
18674         gnulib-tool: Display specified modules and dependencies differently.
18675         * gnulib-tool (func_show_module_list): New function.
18676         (func_import, func_create_testdir): Invoke it.
18677         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18678
18679 2010-06-13  Bruno Haible  <bruno@clisp.org>
18680
18681         gnulib-tool: Align code of func_import and func_create_testdir.
18682         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18683         specified_modules.
18684
18685 2010-06-12  Jim Meyering  <meyering@redhat.com>
18686
18687         test-inttostr: avoid spurious failure on Solaris 9
18688         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18689         to accept "%ju".  Reported by Bruno Haible.
18690
18691 2010-06-11  Jim Meyering  <meyering@redhat.com>
18692
18693         test-sys_socket: mark variables as used more readably
18694         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18695         as "used" explicitly via (void) statement casts.  This is more
18696         readable than using them in an artificial return expression.
18697         Suggestion from Bruno Haible.
18698
18699 2010-06-11  Bruno Haible  <bruno@clisp.org>
18700
18701         Avoid some more warnings from "gcc -Wwrite-strings".
18702         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18703         to 'const char *'.
18704         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18705         * tests/test-c-strcasestr.c (main): Likewise.
18706         * tests/test-mbscasestr1.c (main): Likewise.
18707         * tests/test-mbscasestr2.c (main): Likewise.
18708         * tests/test-memmem.c (main): Likewise.
18709         * tests/test-strstr.c (main): Likewise.
18710         * tests/test-strcasestr.c (main): Likewise.
18711
18712 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18713
18714         init.sh: change framework_failure_ to fail with status 99, not 1
18715         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18716         automake's parallel-tests rule that this is an unexpected failure,
18717         even if the test is listed in XFAIL_TESTS.
18718
18719 2010-06-11  Jim Meyering  <meyering@redhat.com>
18720
18721         test-inttostr: avoid warnings about 4-6KB literal strings
18722         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18723         Include "macros.h", for its definition of ASSERT.
18724         (CK): s/assert/ASSERT/
18725         * modules/inttostr-tests (Files): Add macros.h.
18726
18727         init.sh: don't use $ME_ or skip_ before they are defined
18728         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18729         their first uses.  Also hoist their companions: warn_, fail_,
18730         framework_failure_, $stderr_fileno.  Prompted by a patch from
18731         Stefano Lattarini.
18732
18733         test-sys_socket: avoid set-but-not-used warnings from gcc
18734         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18735         avoid warning about set-but-not-used variables.
18736
18737         test-xvasprintf: avoid 'const' discard warnings
18738         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18739         "const" when assigning from literal strings.
18740         (test_xasprintf): Add "void" in function argument list to placate
18741         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18742
18743         tests: avoid compilation warnings in argmatch and exclude tests...
18744         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18745         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18746         Since it always exits, declare with the "noreturn" attribute.
18747         * tests/test-argmatch.c: Likewise.
18748
18749         tests: avoid 'const' discard warnings in mbsstr tests
18750         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18751         * tests/test-mbsstr2.c (main): Likewise.
18752
18753         test-verify: avoid warning from gcc's -Wmissing-declarations
18754         * tests/test-verify.c (function): Declare to be static.
18755
18756         test-inttostr.c: include <string.h> for use of strcmp
18757         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18758
18759         test-linkat: avoid failed assertion on "other" architectures
18760         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18761         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18762         sparc: https://bugs.launchpad.net/bugs/591968
18763
18764 2010-06-11  Jim Meyering  <meyering@redhat.com>
18765
18766         printf.m4: avoid autoconf's "Expanded Before Required" warning
18767         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18768         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18769         autoconf warning.
18770
18771 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18772
18773         Replacement header templates are now named with ".in", not "_".
18774         * doc/gnulib-intro.texi: Correct.
18775
18776 2010-06-10  Jim Meyering  <meyering@redhat.com>
18777
18778         inttostr-tests: depend on snprintf, not snprintf-posix
18779         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18780         snprintf-posix, to avoid this aclocal failure:
18781           missing file gnulib-tests/vasnprintf.c
18782           configure.ac:45: error: expected source file, required through \
18783           AC_LIBSOURCES, not found
18784
18785 2010-06-10  Jim Meyering  <meyering@redhat.com>
18786
18787         inttostr: add a new function, inttostr, and tests
18788         The namesake function was not available.  The existence of the
18789         template file, inttostr.c makes its addition nontrivial.
18790         * lib/anytostr.c: Rename from inttostr.c.
18791         (anytostr): Rename from inttostr.
18792         * lib/inttostr.c: New file.
18793         * modules/inttostr (Files): Add anytostr.c.
18794         (Makefile.am): Set lib_SOURCES instead of ...
18795         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18796         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18797         * lib/offtostr.c: Likewise.
18798         * lib/uinttostr.c: Likewise.
18799         * lib/umaxtostr.c: Likewise.
18800         * modules/inttostr-tests: New file.
18801         * tests/test-inttostr.c: New file.  Test these functions.
18802
18803 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18804             Bruno Haible  <bruno@clisp.org>
18805
18806         Add "Extending Gnulib" chapter to manual.
18807         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18808         chapter.
18809         (Extending Gnulib): New chapter.
18810         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18811         chapter.
18812
18813 2010-06-09  Bruno Haible  <bruno@clisp.org>
18814
18815         Avoid relocwrapper link errors due to gnulib replacement functions.
18816         * lib/areadlink.c: Use the system's malloc, realloc functions.
18817         (areadlink): Set errno to ENOMEM explicitly.
18818         * modules/areadlink (Depends-on): Remove malloc-posix.
18819         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18820
18821 2010-06-09  Bruno Haible  <bruno@clisp.org>
18822
18823         Avoid relocwrapper link errors due to gnulib replacement functions.
18824         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18825         * lib/malloca.c: Likewise.
18826         * lib/relocatable.c: Likewise.
18827         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18828         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18829         * lib/setenv.c: Use the system's malloc, realloc functions.
18830         * lib/strerror.c: Use the system's sprintf function.
18831         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18832
18833 2010-06-04  Bruno Haible  <bruno@clisp.org>
18834
18835         Prefer documented low-level autoconf macro names.
18836         * m4/lib-link.m4: Use m4_translit instead of translit.
18837         * m4/environ.m4: Likewise.
18838         * m4/mathfunc.m4: Likewise.
18839         * m4/onceonly.m4: Likewise.
18840         * m4/stdint.m4: Likewise.
18841         Suggested by Eric Blake.
18842
18843 2010-06-04  Martin Lambers  <marlam@marlam.de>
18844             Bruno Haible  <bruno@clisp.org>
18845
18846         havelib: Allow library names with '+' characters.
18847         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18848         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18849
18850 2010-06-09  Bruno Haible  <bruno@clisp.org>
18851
18852         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18853         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18854         realloc failed.
18855
18856 2010-06-08  Peter Simons  <simons@cryp.to>
18857
18858         maint.mk: make the news-check rule more configurable
18859         * top/maint.mk (news-check-lines-spec): New variable.
18860         (news-check): Use "sed -n 1,10p" in place of "head".
18861
18862 2010-06-07  Jim Meyering  <meyering@redhat.com>
18863
18864         do-release-commit-and-tag: fix typo in --help
18865         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18866
18867         regex: avoid new dead-code warning with gcc-4.6.0
18868         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18869         if-block containing a while-loop.  It's been unused for at least
18870         5 years.
18871
18872 2010-06-05  Bruno Haible  <bruno@clisp.org>
18873
18874         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18875         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18876
18877 2010-06-04  Bruno Haible  <bruno@clisp.org>
18878
18879         Update to GNU gettext 0.18.1.
18880         * modules/gettext (configure.ac): Require gettext infrastructure from
18881         version 0.18.1.
18882
18883 2010-06-03  Bruno Haible  <bruno@clisp.org>
18884
18885         Don't use AC_LIBOBJ with file names in subdirectories.
18886         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18887         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18888         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18889         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18890         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18891         gl_LIBUNISTRING_LIBSOURCE.
18892         (Makefile.am): Augment lib_SOURCES here, conditionally.
18893         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18894
18895 2010-06-03  Bruno Haible  <bruno@clisp.org>
18896
18897         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18898         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18899         expansion does not end with a newline.
18900         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18901         unnecessary newline.
18902
18903 2010-06-03  Bruno Haible  <bruno@clisp.org>
18904
18905         Reduce dependencies.
18906         * tests/test-quotearg.h: New file, extracted from
18907         tests/test-quotearg.c.
18908         * tests/test-quotearg-simple.c: New file, extracted from
18909         tests/test-quotearg.c.
18910         * tests/test-quotearg.c: Don't include <ctype.h>.
18911         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18912         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18913         use_quote_double_quotes, use_quotearg_colon): Moved to
18914         tests/test-quotearg.h.
18915         (results_g, flag_results, custom_quotes, custom_results): Moved
18916         to tests/test-quotearg-simple.c.
18917         (main): Moved the part that does not depend on gettext to
18918         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18919         performed.
18920         * modules/quotearg-simple: New file.
18921         * modules/quotearg-simple-tests: New file.
18922         * modules/quotearg (Depends-on): Add quotearg-simple.
18923         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18924         (Files): Add tests/test-quotearg.h.
18925         Reported by Paolo Bonzini.
18926
18927 2010-06-03  Bruno Haible  <bruno@clisp.org>
18928
18929         Reduce dependencies.
18930         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18931
18932 2010-06-03  Bruno Haible  <bruno@clisp.org>
18933
18934         time: Undefine more broken macros.
18935         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18936         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18937         Reported by Eric Blake.
18938
18939 2010-06-03  Bruno Haible  <bruno@clisp.org>
18940
18941         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18942         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18943         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18944         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18945         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18946         Reported by Ludovic Courtès <ludo@gnu.org>.
18947
18948 2010-06-02  Eric Blake  <eblake@redhat.com>
18949
18950         time: work with mingw + pthreads-win32 library
18951         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18952         if timespec is defined only in pthread.h.
18953         * modules/time (Makefile.am): Substitute it.
18954         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18955         <pthread.h>, when needed.
18956         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18957         from the library.
18958
18959 2010-05-31  Bruno Haible  <bruno@clisp.org>
18960
18961         Avoid expanding two macros in the wrong order.
18962         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18963         gl_LIBUNISTRING if it is defined.
18964         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18965         autoconf >= 2.64.
18966         Reported by Ludovic Courtès <ludo@gnu.org>.
18967
18968 2010-05-27  Jim Meyering  <meyering@redhat.com>
18969
18970         maint.mk: also prohibit "#undef" of always-defined symbols
18971         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18972         Allow more than one space before the symbol name.
18973         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18974         the regexp uses alternation.
18975
18976 2010-05-26  Eric Blake  <eblake@redhat.com>
18977
18978         maint.mk: avoid echo -e
18979         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18980         Convert all uses of echo -* to printf.
18981         Reported by Matthias Bolte.
18982
18983 2010-05-25  Bruno Haible  <bruno@clisp.org>
18984
18985         Update to GNU gettext 0.18, part 2.
18986         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18987         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18988
18989 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18990
18991         Add missing include in test-pwrite.c.
18992         * tests/test-pwrite.c: Include string.h, for strcmp.
18993
18994 2010-05-24  Bruno Haible  <bruno@clisp.org>
18995
18996         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18997
18998 2010-05-24  Bruno Haible  <bruno@clisp.org>
18999
19000         Don't use conversion with transliteration in u{8,16,32}_strcoll.
19001         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
19002         iconveh_error argument.
19003         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
19004         U_STRCONV_TO_LOCALE.
19005         * lib/unistr/u16-strcoll.c: Likewise.
19006         * lib/unistr/u32-strcoll.c: Likewise.
19007         * modules/unistr/u8-strcoll (Depends-on): Add
19008         uniconv/u8-strconv-to-enc, localcharset. Remove
19009         uniconv/u8-strconv-to-locale.
19010         (configure.ac): Bump version number.
19011         * modules/unistr/u16-strcoll (Depends-on): Add
19012         uniconv/u16-strconv-to-enc, localcharset. Remove
19013         uniconv/u16-strconv-to-locale.
19014         (configure.ac): Bump version number.
19015         * modules/unistr/u32-strcoll (Depends-on): Add
19016         uniconv/u32-strconv-to-enc, localcharset. Remove
19017         uniconv/u32-strconv-to-locale.
19018         (configure.ac): Bump version number.
19019
19020 2010-05-24  Bruno Haible  <bruno@clisp.org>
19021
19022         Avoid a test failure on NetBSD 5.0.
19023         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
19024         an iconv() bug.
19025
19026 2010-05-24  Bruno Haible  <bruno@clisp.org>
19027
19028         Adjust #include directive style.
19029         * modules/regex (Includes): Recommend to write <regex.h>.
19030
19031 2010-05-24  Bruno Haible  <bruno@clisp.org>
19032
19033         regex: Don't require alloca.
19034         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
19035         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
19036         only inside if (0).
19037
19038 2010-05-23  Jim Meyering  <meyering@redhat.com>
19039
19040         test-renameat.c: include <sys/stat.h>
19041         * tests/test-renameat.c: Include <sys/stat.h>; required for
19042         definition of S_IS* macros.
19043
19044 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
19045
19046         Update maintainer documentation for 'relocatable-prog' module.
19047         * doc/relocatable-maint.texi: Update.
19048         Comments by Bruno Haible.
19049
19050 2010-05-23  Bruno Haible  <bruno@clisp.org>
19051
19052         git-merge-changelog: Enable --split-merged-entry by default.
19053         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
19054         (usage): Don't mention this option any more.
19055         Reported by Ralf Wildenhues.
19056
19057 2010-05-23  Jim Meyering  <meyering@redhat.com>
19058
19059         test-pwrite: do not leave behind a test file named "out"
19060         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
19061         The trivial-looking use of init.sh is really necessary.
19062         It ensures that the temporary file, "out", is created in
19063         a temporary directory, and removed upon termination.
19064         * tests/test-pwrite.sh: Re-add file.
19065         * modules/pwrite-tests: Reference it.
19066
19067 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19068
19069         Fix output redirection buglet in init.sh.
19070         * tests/init.sh: Fix redirection of stderr.
19071
19072 2010-05-20  Simon Josefsson  <simon@josefsson.org>
19073
19074         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
19075
19076 2010-05-17  Simon Josefsson  <simon@josefsson.org>
19077
19078         * modules/valgrind-tests: New file.
19079         * m4/valgrind-tests.m4: New file.
19080         * doc/valgrind-tests.texi: New file.
19081         * doc/gnulib.texi (Running self-tests under valgrind): New
19082         section.
19083
19084 2010-05-19  Bruno Haible  <bruno@clisp.org>
19085
19086         Clean up dead code in recent commit.
19087         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
19088         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
19089         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
19090         Suggested by Paolo Bonzini.
19091
19092 2010-05-19  Bruno Haible  <bruno@clisp.org>
19093
19094         Avoid valgrind error reports from libunistring.
19095         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
19096         * modules/libunistring (Files): Add it.
19097         * modules/libunistring-optional (Files): Likewise.
19098
19099 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
19100             Bruno Haible  <bruno@clisp.org>
19101
19102         New module 'libunistring-optional'.
19103         * modules/libunistring-optional: New file.
19104         * m4/libunistring-base.m4: New file.
19105         * m4/libunistring-optional.m4: New file.
19106         * lib/unicase.in.h: Renamed from lib/unicase.h.
19107         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
19108         * lib/unictype.in.h: Renamed from lib/unictype.h.
19109         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
19110         * lib/uniname.in.h: Renamed from lib/uniname.h.
19111         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
19112         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
19113         * lib/unistr.in.h: Renamed from lib/unistr.h.
19114         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
19115         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
19116         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
19117         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
19118         gl_LIBUNISTRING. If the library was found, determine the installed
19119         version and set LIBUNISTRING_VERSION.
19120         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
19121         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
19122         handle a configuration option --with-included-libunistring.
19123         * modules/libunistring (Files): Add m4/absolute-header.m4.
19124         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
19125         Add m4/libunistring-base.m4.
19126         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19127         (Makefile.am): Build unicase.h from unicase.in.h.
19128         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
19129         Add m4/libunistring-base.m4.
19130         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19131         (Makefile.am): Build uniconv.h from uniconv.in.h.
19132         * modules/unictype/base (Files): Use unictype.in.h instead of
19133         unictype.h. Add m4/libunistring-base.m4.
19134         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19135         (Makefile.am): Build unictype.h from unictype.in.h.
19136         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
19137         Add m4/libunistring-base.m4.
19138         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19139         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
19140         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
19141         Add m4/libunistring-base.m4.
19142         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19143         (Makefile.am): Build uniname.h from uniname.in.h.
19144         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
19145         Add m4/libunistring-base.m4.
19146         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19147         (Makefile.am): Build uninorm.h from uninorm.in.h.
19148         * modules/unistdio/base (Files): Use unistdio.in.h instead of
19149         unistdio.h. Add m4/libunistring-base.m4.
19150         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19151         (Makefile.am): Build unistdio.h from unistdio.in.h.
19152         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
19153         Add m4/libunistring-base.m4.
19154         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19155         (Makefile.am): Build unistr.h from unistr.in.h.
19156         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
19157         Add m4/libunistring-base.m4.
19158         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19159         (Makefile.am): Build unitypes.h from unitypes.in.h.
19160         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
19161         Add m4/libunistring-base.m4.
19162         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19163         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
19164         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
19165         uniwidth.h. Add m4/libunistring-base.m4.
19166         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19167         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
19168         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
19169         instead of augmenting lib_SOURCES.
19170         * modules/unicase/empty-suffix-context: Likewise.
19171         * modules/unicase/locale-language: Likewise.
19172         * modules/unicase/tolower: Likewise.
19173         * modules/unicase/totitle: Likewise.
19174         * modules/unicase/toupper: Likewise.
19175         * modules/unicase/u8-casecmp: Likewise.
19176         * modules/unicase/u8-casecoll: Likewise.
19177         * modules/unicase/u8-casefold: Likewise.
19178         * modules/unicase/u8-casexfrm: Likewise.
19179         * modules/unicase/u8-ct-casefold: Likewise.
19180         * modules/unicase/u8-ct-tolower: Likewise.
19181         * modules/unicase/u8-ct-totitle: Likewise.
19182         * modules/unicase/u8-ct-toupper: Likewise.
19183         * modules/unicase/u8-is-cased: Likewise.
19184         * modules/unicase/u8-is-casefolded: Likewise.
19185         * modules/unicase/u8-is-lowercase: Likewise.
19186         * modules/unicase/u8-is-titlecase: Likewise.
19187         * modules/unicase/u8-is-uppercase: Likewise.
19188         * modules/unicase/u8-prefix-context: Likewise.
19189         * modules/unicase/u8-suffix-context: Likewise.
19190         * modules/unicase/u8-tolower: Likewise.
19191         * modules/unicase/u8-totitle: Likewise.
19192         * modules/unicase/u8-toupper: Likewise.
19193         * modules/unicase/u16-casecmp: Likewise.
19194         * modules/unicase/u16-casecoll: Likewise.
19195         * modules/unicase/u16-casefold: Likewise.
19196         * modules/unicase/u16-casexfrm: Likewise.
19197         * modules/unicase/u16-ct-casefold: Likewise.
19198         * modules/unicase/u16-ct-tolower: Likewise.
19199         * modules/unicase/u16-ct-totitle: Likewise.
19200         * modules/unicase/u16-ct-toupper: Likewise.
19201         * modules/unicase/u16-is-cased: Likewise.
19202         * modules/unicase/u16-is-casefolded: Likewise.
19203         * modules/unicase/u16-is-lowercase: Likewise.
19204         * modules/unicase/u16-is-titlecase: Likewise.
19205         * modules/unicase/u16-is-uppercase: Likewise.
19206         * modules/unicase/u16-prefix-context: Likewise.
19207         * modules/unicase/u16-suffix-context: Likewise.
19208         * modules/unicase/u16-tolower: Likewise.
19209         * modules/unicase/u16-totitle: Likewise.
19210         * modules/unicase/u16-toupper: Likewise.
19211         * modules/unicase/u32-casecmp: Likewise.
19212         * modules/unicase/u32-casecoll: Likewise.
19213         * modules/unicase/u32-casefold: Likewise.
19214         * modules/unicase/u32-casexfrm: Likewise.
19215         * modules/unicase/u32-ct-casefold: Likewise.
19216         * modules/unicase/u32-ct-tolower: Likewise.
19217         * modules/unicase/u32-ct-totitle: Likewise.
19218         * modules/unicase/u32-ct-toupper: Likewise.
19219         * modules/unicase/u32-is-cased: Likewise.
19220         * modules/unicase/u32-is-casefolded: Likewise.
19221         * modules/unicase/u32-is-lowercase: Likewise.
19222         * modules/unicase/u32-is-titlecase: Likewise.
19223         * modules/unicase/u32-is-uppercase: Likewise.
19224         * modules/unicase/u32-prefix-context: Likewise.
19225         * modules/unicase/u32-suffix-context: Likewise.
19226         * modules/unicase/u32-tolower: Likewise.
19227         * modules/unicase/u32-totitle: Likewise.
19228         * modules/unicase/u32-toupper: Likewise.
19229         * modules/unicase/ulc-casecmp: Likewise.
19230         * modules/unicase/ulc-casecoll: Likewise.
19231         * modules/unicase/ulc-casexfrm: Likewise.
19232         * modules/uniconv/u8-conv-from-enc: Likewise.
19233         * modules/uniconv/u8-conv-to-enc: Likewise.
19234         * modules/uniconv/u8-strconv-from-enc: Likewise.
19235         * modules/uniconv/u8-strconv-from-locale: Likewise.
19236         * modules/uniconv/u8-strconv-to-enc: Likewise.
19237         * modules/uniconv/u8-strconv-to-locale: Likewise.
19238         * modules/uniconv/u16-conv-from-enc: Likewise.
19239         * modules/uniconv/u16-conv-to-enc: Likewise.
19240         * modules/uniconv/u16-strconv-from-enc: Likewise.
19241         * modules/uniconv/u16-strconv-from-locale: Likewise.
19242         * modules/uniconv/u16-strconv-to-enc: Likewise.
19243         * modules/uniconv/u16-strconv-to-locale: Likewise.
19244         * modules/uniconv/u32-conv-from-enc: Likewise.
19245         * modules/uniconv/u32-conv-to-enc: Likewise.
19246         * modules/uniconv/u32-strconv-from-enc: Likewise.
19247         * modules/uniconv/u32-strconv-from-locale: Likewise.
19248         * modules/uniconv/u32-strconv-to-enc: Likewise.
19249         * modules/uniconv/u32-strconv-to-locale: Likewise.
19250         * modules/unictype/bidicategory-byname: Likewise.
19251         * modules/unictype/bidicategory-name: Likewise.
19252         * modules/unictype/bidicategory-of: Likewise.
19253         * modules/unictype/bidicategory-test: Likewise.
19254         * modules/unictype/block-list: Likewise.
19255         * modules/unictype/block-test: Likewise.
19256         * modules/unictype/category-C: Likewise.
19257         * modules/unictype/category-Cc: Likewise.
19258         * modules/unictype/category-Cf: Likewise.
19259         * modules/unictype/category-Cn: Likewise.
19260         * modules/unictype/category-Co: Likewise.
19261         * modules/unictype/category-Cs: Likewise.
19262         * modules/unictype/category-L: Likewise.
19263         * modules/unictype/category-Ll: Likewise.
19264         * modules/unictype/category-Lm: Likewise.
19265         * modules/unictype/category-Lo: Likewise.
19266         * modules/unictype/category-Lt: Likewise.
19267         * modules/unictype/category-Lu: Likewise.
19268         * modules/unictype/category-M: Likewise.
19269         * modules/unictype/category-Mc: Likewise.
19270         * modules/unictype/category-Me: Likewise.
19271         * modules/unictype/category-Mn: Likewise.
19272         * modules/unictype/category-N: Likewise.
19273         * modules/unictype/category-Nd: Likewise.
19274         * modules/unictype/category-Nl: Likewise.
19275         * modules/unictype/category-No: Likewise.
19276         * modules/unictype/category-P: Likewise.
19277         * modules/unictype/category-Pc: Likewise.
19278         * modules/unictype/category-Pd: Likewise.
19279         * modules/unictype/category-Pe: Likewise.
19280         * modules/unictype/category-Pf: Likewise.
19281         * modules/unictype/category-Pi: Likewise.
19282         * modules/unictype/category-Po: Likewise.
19283         * modules/unictype/category-Ps: Likewise.
19284         * modules/unictype/category-S: Likewise.
19285         * modules/unictype/category-Sc: Likewise.
19286         * modules/unictype/category-Sk: Likewise.
19287         * modules/unictype/category-Sm: Likewise.
19288         * modules/unictype/category-So: Likewise.
19289         * modules/unictype/category-Z: Likewise.
19290         * modules/unictype/category-Zl: Likewise.
19291         * modules/unictype/category-Zp: Likewise.
19292         * modules/unictype/category-Zs: Likewise.
19293         * modules/unictype/category-and: Likewise.
19294         * modules/unictype/category-and-not: Likewise.
19295         * modules/unictype/category-byname: Likewise.
19296         * modules/unictype/category-name: Likewise.
19297         * modules/unictype/category-none: Likewise.
19298         * modules/unictype/category-of: Likewise.
19299         * modules/unictype/category-or: Likewise.
19300         * modules/unictype/category-test: Likewise.
19301         * modules/unictype/combining-class: Likewise.
19302         * modules/unictype/ctype-alnum: Likewise.
19303         * modules/unictype/ctype-alpha: Likewise.
19304         * modules/unictype/ctype-blank: Likewise.
19305         * modules/unictype/ctype-cntrl: Likewise.
19306         * modules/unictype/ctype-digit: Likewise.
19307         * modules/unictype/ctype-graph: Likewise.
19308         * modules/unictype/ctype-lower: Likewise.
19309         * modules/unictype/ctype-print: Likewise.
19310         * modules/unictype/ctype-punct: Likewise.
19311         * modules/unictype/ctype-space: Likewise.
19312         * modules/unictype/ctype-upper: Likewise.
19313         * modules/unictype/ctype-xdigit: Likewise.
19314         * modules/unictype/decimal-digit: Likewise.
19315         * modules/unictype/digit: Likewise.
19316         * modules/unictype/mirror: Likewise.
19317         * modules/unictype/numeric: Likewise.
19318         * modules/unictype/property-alphabetic: Likewise.
19319         * modules/unictype/property-ascii-hex-digit: Likewise.
19320         * modules/unictype/property-bidi-arabic-digit: Likewise.
19321         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19322         * modules/unictype/property-bidi-block-separator: Likewise.
19323         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19324         * modules/unictype/property-bidi-common-separator: Likewise.
19325         * modules/unictype/property-bidi-control: Likewise.
19326         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19327         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19328         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19329         * modules/unictype/property-bidi-european-digit: Likewise.
19330         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19331         * modules/unictype/property-bidi-left-to-right: Likewise.
19332         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19333         * modules/unictype/property-bidi-other-neutral: Likewise.
19334         * modules/unictype/property-bidi-pdf: Likewise.
19335         * modules/unictype/property-bidi-segment-separator: Likewise.
19336         * modules/unictype/property-bidi-whitespace: Likewise.
19337         * modules/unictype/property-byname: Likewise.
19338         * modules/unictype/property-combining: Likewise.
19339         * modules/unictype/property-composite: Likewise.
19340         * modules/unictype/property-currency-symbol: Likewise.
19341         * modules/unictype/property-dash: Likewise.
19342         * modules/unictype/property-decimal-digit: Likewise.
19343         * modules/unictype/property-default-ignorable-code-point: Likewise.
19344         * modules/unictype/property-deprecated: Likewise.
19345         * modules/unictype/property-diacritic: Likewise.
19346         * modules/unictype/property-extender: Likewise.
19347         * modules/unictype/property-format-control: Likewise.
19348         * modules/unictype/property-grapheme-base: Likewise.
19349         * modules/unictype/property-grapheme-extend: Likewise.
19350         * modules/unictype/property-grapheme-link: Likewise.
19351         * modules/unictype/property-hex-digit: Likewise.
19352         * modules/unictype/property-hyphen: Likewise.
19353         * modules/unictype/property-id-continue: Likewise.
19354         * modules/unictype/property-id-start: Likewise.
19355         * modules/unictype/property-ideographic: Likewise.
19356         * modules/unictype/property-ids-binary-operator: Likewise.
19357         * modules/unictype/property-ids-trinary-operator: Likewise.
19358         * modules/unictype/property-ignorable-control: Likewise.
19359         * modules/unictype/property-iso-control: Likewise.
19360         * modules/unictype/property-join-control: Likewise.
19361         * modules/unictype/property-left-of-pair: Likewise.
19362         * modules/unictype/property-line-separator: Likewise.
19363         * modules/unictype/property-logical-order-exception: Likewise.
19364         * modules/unictype/property-lowercase: Likewise.
19365         * modules/unictype/property-math: Likewise.
19366         * modules/unictype/property-non-break: Likewise.
19367         * modules/unictype/property-not-a-character: Likewise.
19368         * modules/unictype/property-numeric: Likewise.
19369         * modules/unictype/property-other-alphabetic: Likewise.
19370         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19371         * modules/unictype/property-other-grapheme-extend: Likewise.
19372         * modules/unictype/property-other-id-continue: Likewise.
19373         * modules/unictype/property-other-id-start: Likewise.
19374         * modules/unictype/property-other-lowercase: Likewise.
19375         * modules/unictype/property-other-math: Likewise.
19376         * modules/unictype/property-other-uppercase: Likewise.
19377         * modules/unictype/property-paired-punctuation: Likewise.
19378         * modules/unictype/property-paragraph-separator: Likewise.
19379         * modules/unictype/property-pattern-syntax: Likewise.
19380         * modules/unictype/property-pattern-white-space: Likewise.
19381         * modules/unictype/property-private-use: Likewise.
19382         * modules/unictype/property-punctuation: Likewise.
19383         * modules/unictype/property-quotation-mark: Likewise.
19384         * modules/unictype/property-radical: Likewise.
19385         * modules/unictype/property-sentence-terminal: Likewise.
19386         * modules/unictype/property-soft-dotted: Likewise.
19387         * modules/unictype/property-space: Likewise.
19388         * modules/unictype/property-terminal-punctuation: Likewise.
19389         * modules/unictype/property-test: Likewise.
19390         * modules/unictype/property-titlecase: Likewise.
19391         * modules/unictype/property-unassigned-code-value: Likewise.
19392         * modules/unictype/property-unified-ideograph: Likewise.
19393         * modules/unictype/property-uppercase: Likewise.
19394         * modules/unictype/property-variation-selector: Likewise.
19395         * modules/unictype/property-white-space: Likewise.
19396         * modules/unictype/property-xid-continue: Likewise.
19397         * modules/unictype/property-xid-start: Likewise.
19398         * modules/unictype/property-zero-width: Likewise.
19399         * modules/unictype/scripts: Likewise.
19400         * modules/unictype/syntax-c-ident: Likewise.
19401         * modules/unictype/syntax-c-whitespace: Likewise.
19402         * modules/unictype/syntax-java-ident: Likewise.
19403         * modules/unictype/syntax-java-whitespace: Likewise.
19404         * modules/unilbrk/u8-possible-linebreaks: Likewise.
19405         * modules/unilbrk/u8-width-linebreaks: Likewise.
19406         * modules/unilbrk/u16-possible-linebreaks: Likewise.
19407         * modules/unilbrk/u16-width-linebreaks: Likewise.
19408         * modules/unilbrk/u32-possible-linebreaks: Likewise.
19409         * modules/unilbrk/u32-width-linebreaks: Likewise.
19410         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
19411         * modules/unilbrk/ulc-width-linebreaks: Likewise.
19412         * modules/uniname/uniname: Likewise.
19413         * modules/uninorm/canonical-decomposition: Likewise.
19414         * modules/uninorm/composition: Likewise.
19415         * modules/uninorm/decomposing-form: Likewise.
19416         * modules/uninorm/decomposition: Likewise.
19417         * modules/uninorm/filter: Likewise.
19418         * modules/uninorm/nfc: Likewise.
19419         * modules/uninorm/nfd: Likewise.
19420         * modules/uninorm/nfkc: Likewise.
19421         * modules/uninorm/nfkd: Likewise.
19422         * modules/uninorm/u8-normalize: Likewise.
19423         * modules/uninorm/u8-normcmp: Likewise.
19424         * modules/uninorm/u8-normcoll: Likewise.
19425         * modules/uninorm/u8-normxfrm: Likewise.
19426         * modules/uninorm/u16-normalize: Likewise.
19427         * modules/uninorm/u16-normcmp: Likewise.
19428         * modules/uninorm/u16-normcoll: Likewise.
19429         * modules/uninorm/u16-normxfrm: Likewise.
19430         * modules/uninorm/u32-normalize: Likewise.
19431         * modules/uninorm/u32-normcmp: Likewise.
19432         * modules/uninorm/u32-normcoll: Likewise.
19433         * modules/uninorm/u32-normxfrm: Likewise.
19434         * modules/unistdio/u8-asnprintf: Likewise.
19435         * modules/unistdio/u8-asprintf: Likewise.
19436         * modules/unistdio/u8-snprintf: Likewise.
19437         * modules/unistdio/u8-sprintf: Likewise.
19438         * modules/unistdio/u8-u8-asnprintf: Likewise.
19439         * modules/unistdio/u8-u8-asprintf: Likewise.
19440         * modules/unistdio/u8-u8-snprintf: Likewise.
19441         * modules/unistdio/u8-u8-sprintf: Likewise.
19442         * modules/unistdio/u8-u8-vasnprintf: Likewise.
19443         * modules/unistdio/u8-u8-vasprintf: Likewise.
19444         * modules/unistdio/u8-u8-vsnprintf: Likewise.
19445         * modules/unistdio/u8-u8-vsprintf: Likewise.
19446         * modules/unistdio/u8-vasnprintf: Likewise.
19447         * modules/unistdio/u8-vasprintf: Likewise.
19448         * modules/unistdio/u8-vsnprintf: Likewise.
19449         * modules/unistdio/u8-vsprintf: Likewise.
19450         * modules/unistdio/u16-asnprintf: Likewise.
19451         * modules/unistdio/u16-asprintf: Likewise.
19452         * modules/unistdio/u16-snprintf: Likewise.
19453         * modules/unistdio/u16-sprintf: Likewise.
19454         * modules/unistdio/u16-u16-asnprintf: Likewise.
19455         * modules/unistdio/u16-u16-asprintf: Likewise.
19456         * modules/unistdio/u16-u16-snprintf: Likewise.
19457         * modules/unistdio/u16-u16-sprintf: Likewise.
19458         * modules/unistdio/u16-u16-vasnprintf: Likewise.
19459         * modules/unistdio/u16-u16-vasprintf: Likewise.
19460         * modules/unistdio/u16-u16-vsnprintf: Likewise.
19461         * modules/unistdio/u16-u16-vsprintf: Likewise.
19462         * modules/unistdio/u16-vasnprintf: Likewise.
19463         * modules/unistdio/u16-vasprintf: Likewise.
19464         * modules/unistdio/u16-vsnprintf: Likewise.
19465         * modules/unistdio/u16-vsprintf: Likewise.
19466         * modules/unistdio/u32-asnprintf: Likewise.
19467         * modules/unistdio/u32-asprintf: Likewise.
19468         * modules/unistdio/u32-snprintf: Likewise.
19469         * modules/unistdio/u32-sprintf: Likewise.
19470         * modules/unistdio/u32-u32-asnprintf: Likewise.
19471         * modules/unistdio/u32-u32-asprintf: Likewise.
19472         * modules/unistdio/u32-u32-snprintf: Likewise.
19473         * modules/unistdio/u32-u32-sprintf: Likewise.
19474         * modules/unistdio/u32-u32-vasnprintf: Likewise.
19475         * modules/unistdio/u32-u32-vasprintf: Likewise.
19476         * modules/unistdio/u32-u32-vsnprintf: Likewise.
19477         * modules/unistdio/u32-u32-vsprintf: Likewise.
19478         * modules/unistdio/u32-vasnprintf: Likewise.
19479         * modules/unistdio/u32-vasprintf: Likewise.
19480         * modules/unistdio/u32-vsnprintf: Likewise.
19481         * modules/unistdio/u32-vsprintf: Likewise.
19482         * modules/unistdio/ulc-asnprintf: Likewise.
19483         * modules/unistdio/ulc-asprintf: Likewise.
19484         * modules/unistdio/ulc-fprintf: Likewise.
19485         * modules/unistdio/ulc-snprintf: Likewise.
19486         * modules/unistdio/ulc-sprintf: Likewise.
19487         * modules/unistdio/ulc-vasnprintf: Likewise.
19488         * modules/unistdio/ulc-vasprintf: Likewise.
19489         * modules/unistdio/ulc-vfprintf: Likewise.
19490         * modules/unistdio/ulc-vsnprintf: Likewise.
19491         * modules/unistdio/ulc-vsprintf: Likewise.
19492         * modules/unistr/u8-check: Likewise.
19493         * modules/unistr/u8-chr: Likewise.
19494         * modules/unistr/u8-cmp: Likewise.
19495         * modules/unistr/u8-cmp2: Likewise.
19496         * modules/unistr/u8-cpy: Likewise.
19497         * modules/unistr/u8-cpy-alloc: Likewise.
19498         * modules/unistr/u8-endswith: Likewise.
19499         * modules/unistr/u8-mblen: Likewise.
19500         * modules/unistr/u8-mbsnlen: Likewise.
19501         * modules/unistr/u8-mbtouc: Likewise.
19502         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19503         * modules/unistr/u8-mbtoucr: Likewise.
19504         * modules/unistr/u8-move: Likewise.
19505         * modules/unistr/u8-next: Likewise.
19506         * modules/unistr/u8-prev: Likewise.
19507         * modules/unistr/u8-set: Likewise.
19508         * modules/unistr/u8-startswith: Likewise.
19509         * modules/unistr/u8-stpcpy: Likewise.
19510         * modules/unistr/u8-stpncpy: Likewise.
19511         * modules/unistr/u8-strcat: Likewise.
19512         * modules/unistr/u8-strchr: Likewise.
19513         * modules/unistr/u8-strcmp: Likewise.
19514         * modules/unistr/u8-strcoll: Likewise.
19515         * modules/unistr/u8-strcpy: Likewise.
19516         * modules/unistr/u8-strcspn: Likewise.
19517         * modules/unistr/u8-strdup: Likewise.
19518         * modules/unistr/u8-strlen: Likewise.
19519         * modules/unistr/u8-strmblen: Likewise.
19520         * modules/unistr/u8-strmbtouc: Likewise.
19521         * modules/unistr/u8-strncat: Likewise.
19522         * modules/unistr/u8-strncmp: Likewise.
19523         * modules/unistr/u8-strncpy: Likewise.
19524         * modules/unistr/u8-strnlen: Likewise.
19525         * modules/unistr/u8-strpbrk: Likewise.
19526         * modules/unistr/u8-strrchr: Likewise.
19527         * modules/unistr/u8-strspn: Likewise.
19528         * modules/unistr/u8-strstr: Likewise.
19529         * modules/unistr/u8-strtok: Likewise.
19530         * modules/unistr/u8-to-u16: Likewise.
19531         * modules/unistr/u8-to-u32: Likewise.
19532         * modules/unistr/u8-uctomb: Likewise.
19533         * modules/unistr/u16-check: Likewise.
19534         * modules/unistr/u16-chr: Likewise.
19535         * modules/unistr/u16-cmp: Likewise.
19536         * modules/unistr/u16-cmp2: Likewise.
19537         * modules/unistr/u16-cpy: Likewise.
19538         * modules/unistr/u16-cpy-alloc: Likewise.
19539         * modules/unistr/u16-endswith: Likewise.
19540         * modules/unistr/u16-mblen: Likewise.
19541         * modules/unistr/u16-mbsnlen: Likewise.
19542         * modules/unistr/u16-mbtouc: Likewise.
19543         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19544         * modules/unistr/u16-mbtoucr: Likewise.
19545         * modules/unistr/u16-move: Likewise.
19546         * modules/unistr/u16-next: Likewise.
19547         * modules/unistr/u16-prev: Likewise.
19548         * modules/unistr/u16-set: Likewise.
19549         * modules/unistr/u16-startswith: Likewise.
19550         * modules/unistr/u16-stpcpy: Likewise.
19551         * modules/unistr/u16-stpncpy: Likewise.
19552         * modules/unistr/u16-strcat: Likewise.
19553         * modules/unistr/u16-strchr: Likewise.
19554         * modules/unistr/u16-strcmp: Likewise.
19555         * modules/unistr/u16-strcoll: Likewise.
19556         * modules/unistr/u16-strcpy: Likewise.
19557         * modules/unistr/u16-strcspn: Likewise.
19558         * modules/unistr/u16-strdup: Likewise.
19559         * modules/unistr/u16-strlen: Likewise.
19560         * modules/unistr/u16-strmblen: Likewise.
19561         * modules/unistr/u16-strmbtouc: Likewise.
19562         * modules/unistr/u16-strncat: Likewise.
19563         * modules/unistr/u16-strncmp: Likewise.
19564         * modules/unistr/u16-strncpy: Likewise.
19565         * modules/unistr/u16-strnlen: Likewise.
19566         * modules/unistr/u16-strpbrk: Likewise.
19567         * modules/unistr/u16-strrchr: Likewise.
19568         * modules/unistr/u16-strspn: Likewise.
19569         * modules/unistr/u16-strstr: Likewise.
19570         * modules/unistr/u16-strtok: Likewise.
19571         * modules/unistr/u16-to-u32: Likewise.
19572         * modules/unistr/u16-to-u8: Likewise.
19573         * modules/unistr/u16-uctomb: Likewise.
19574         * modules/unistr/u32-check: Likewise.
19575         * modules/unistr/u32-chr: Likewise.
19576         * modules/unistr/u32-cmp: Likewise.
19577         * modules/unistr/u32-cmp2: Likewise.
19578         * modules/unistr/u32-cpy: Likewise.
19579         * modules/unistr/u32-cpy-alloc: Likewise.
19580         * modules/unistr/u32-endswith: Likewise.
19581         * modules/unistr/u32-mblen: Likewise.
19582         * modules/unistr/u32-mbsnlen: Likewise.
19583         * modules/unistr/u32-mbtouc: Likewise.
19584         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19585         * modules/unistr/u32-mbtoucr: Likewise.
19586         * modules/unistr/u32-move: Likewise.
19587         * modules/unistr/u32-next: Likewise.
19588         * modules/unistr/u32-prev: Likewise.
19589         * modules/unistr/u32-set: Likewise.
19590         * modules/unistr/u32-startswith: Likewise.
19591         * modules/unistr/u32-stpcpy: Likewise.
19592         * modules/unistr/u32-stpncpy: Likewise.
19593         * modules/unistr/u32-strcat: Likewise.
19594         * modules/unistr/u32-strchr: Likewise.
19595         * modules/unistr/u32-strcmp: Likewise.
19596         * modules/unistr/u32-strcoll: Likewise.
19597         * modules/unistr/u32-strcpy: Likewise.
19598         * modules/unistr/u32-strcspn: Likewise.
19599         * modules/unistr/u32-strdup: Likewise.
19600         * modules/unistr/u32-strlen: Likewise.
19601         * modules/unistr/u32-strmblen: Likewise.
19602         * modules/unistr/u32-strmbtouc: Likewise.
19603         * modules/unistr/u32-strncat: Likewise.
19604         * modules/unistr/u32-strncmp: Likewise.
19605         * modules/unistr/u32-strncpy: Likewise.
19606         * modules/unistr/u32-strnlen: Likewise.
19607         * modules/unistr/u32-strpbrk: Likewise.
19608         * modules/unistr/u32-strrchr: Likewise.
19609         * modules/unistr/u32-strspn: Likewise.
19610         * modules/unistr/u32-strstr: Likewise.
19611         * modules/unistr/u32-strtok: Likewise.
19612         * modules/unistr/u32-to-u16: Likewise.
19613         * modules/unistr/u32-to-u8: Likewise.
19614         * modules/unistr/u32-uctomb: Likewise.
19615         * modules/uniwbrk/u8-wordbreaks: Likewise.
19616         * modules/uniwbrk/u16-wordbreaks: Likewise.
19617         * modules/uniwbrk/u32-wordbreaks: Likewise.
19618         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19619         * modules/uniwbrk/wordbreak-property: Likewise.
19620         * modules/uniwidth/u8-strwidth: Likewise.
19621         * modules/uniwidth/u8-width: Likewise.
19622         * modules/uniwidth/u16-strwidth: Likewise.
19623         * modules/uniwidth/u16-width: Likewise.
19624         * modules/uniwidth/u32-strwidth: Likewise.
19625         * modules/uniwidth/u32-width: Likewise.
19626         * modules/uniwidth/width: Likewise.
19627         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19628         with $(LIBUNISTRING).
19629         * modules/unicase/ignorable-tests: Likewise.
19630         * modules/unicase/locale-language-tests: Likewise.
19631         * modules/unicase/tolower-tests: Likewise.
19632         * modules/unicase/totitle-tests: Likewise.
19633         * modules/unicase/toupper-tests: Likewise.
19634         * modules/unicase/u8-casecmp-tests: Likewise.
19635         * modules/unicase/u8-casecoll-tests: Likewise.
19636         * modules/unicase/u8-casefold-tests: Likewise.
19637         * modules/unicase/u8-is-cased-tests: Likewise.
19638         * modules/unicase/u8-is-casefolded-tests: Likewise.
19639         * modules/unicase/u8-is-lowercase-tests: Likewise.
19640         * modules/unicase/u8-is-titlecase-tests: Likewise.
19641         * modules/unicase/u8-is-uppercase-tests: Likewise.
19642         * modules/unicase/u8-tolower-tests: Likewise.
19643         * modules/unicase/u8-totitle-tests: Likewise.
19644         * modules/unicase/u8-toupper-tests: Likewise.
19645         * modules/unicase/u16-casecmp-tests: Likewise.
19646         * modules/unicase/u16-casecoll-tests: Likewise.
19647         * modules/unicase/u16-casefold-tests: Likewise.
19648         * modules/unicase/u16-is-cased-tests: Likewise.
19649         * modules/unicase/u16-is-casefolded-tests: Likewise.
19650         * modules/unicase/u16-is-lowercase-tests: Likewise.
19651         * modules/unicase/u16-is-titlecase-tests: Likewise.
19652         * modules/unicase/u16-is-uppercase-tests: Likewise.
19653         * modules/unicase/u16-tolower-tests: Likewise.
19654         * modules/unicase/u16-totitle-tests: Likewise.
19655         * modules/unicase/u16-toupper-tests: Likewise.
19656         * modules/unicase/u32-casecmp-tests: Likewise.
19657         * modules/unicase/u32-casecoll-tests: Likewise.
19658         * modules/unicase/u32-casefold-tests: Likewise.
19659         * modules/unicase/u32-is-cased-tests: Likewise.
19660         * modules/unicase/u32-is-casefolded-tests: Likewise.
19661         * modules/unicase/u32-is-lowercase-tests: Likewise.
19662         * modules/unicase/u32-is-titlecase-tests: Likewise.
19663         * modules/unicase/u32-is-uppercase-tests: Likewise.
19664         * modules/unicase/u32-tolower-tests: Likewise.
19665         * modules/unicase/u32-totitle-tests: Likewise.
19666         * modules/unicase/u32-toupper-tests: Likewise.
19667         * modules/unicase/ulc-casecmp-tests: Likewise.
19668         * modules/unicase/ulc-casecoll-tests: Likewise.
19669         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19670         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19671         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19672         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19673         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19674         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19675         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19676         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19677         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19678         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19679         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19680         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19681         * modules/unictype/bidicategory-byname-tests: Likewise.
19682         * modules/unictype/bidicategory-name-tests: Likewise.
19683         * modules/unictype/bidicategory-of-tests: Likewise.
19684         * modules/unictype/bidicategory-test-tests: Likewise.
19685         * modules/unictype/block-list-tests: Likewise.
19686         * modules/unictype/block-of-tests: Likewise.
19687         * modules/unictype/block-test-tests: Likewise.
19688         * modules/unictype/category-C-tests: Likewise.
19689         * modules/unictype/category-Cc-tests: Likewise.
19690         * modules/unictype/category-Cf-tests: Likewise.
19691         * modules/unictype/category-Cn-tests: Likewise.
19692         * modules/unictype/category-Co-tests: Likewise.
19693         * modules/unictype/category-Cs-tests: Likewise.
19694         * modules/unictype/category-L-tests: Likewise.
19695         * modules/unictype/category-Ll-tests: Likewise.
19696         * modules/unictype/category-Lm-tests: Likewise.
19697         * modules/unictype/category-Lo-tests: Likewise.
19698         * modules/unictype/category-Lt-tests: Likewise.
19699         * modules/unictype/category-Lu-tests: Likewise.
19700         * modules/unictype/category-M-tests: Likewise.
19701         * modules/unictype/category-Mc-tests: Likewise.
19702         * modules/unictype/category-Me-tests: Likewise.
19703         * modules/unictype/category-Mn-tests: Likewise.
19704         * modules/unictype/category-N-tests: Likewise.
19705         * modules/unictype/category-Nd-tests: Likewise.
19706         * modules/unictype/category-Nl-tests: Likewise.
19707         * modules/unictype/category-No-tests: Likewise.
19708         * modules/unictype/category-P-tests: Likewise.
19709         * modules/unictype/category-Pc-tests: Likewise.
19710         * modules/unictype/category-Pd-tests: Likewise.
19711         * modules/unictype/category-Pe-tests: Likewise.
19712         * modules/unictype/category-Pf-tests: Likewise.
19713         * modules/unictype/category-Pi-tests: Likewise.
19714         * modules/unictype/category-Po-tests: Likewise.
19715         * modules/unictype/category-Ps-tests: Likewise.
19716         * modules/unictype/category-S-tests: Likewise.
19717         * modules/unictype/category-Sc-tests: Likewise.
19718         * modules/unictype/category-Sk-tests: Likewise.
19719         * modules/unictype/category-Sm-tests: Likewise.
19720         * modules/unictype/category-So-tests: Likewise.
19721         * modules/unictype/category-Z-tests: Likewise.
19722         * modules/unictype/category-Zl-tests: Likewise.
19723         * modules/unictype/category-Zp-tests: Likewise.
19724         * modules/unictype/category-Zs-tests: Likewise.
19725         * modules/unictype/category-and-not-tests: Likewise.
19726         * modules/unictype/category-and-tests: Likewise.
19727         * modules/unictype/category-byname-tests: Likewise.
19728         * modules/unictype/category-name-tests: Likewise.
19729         * modules/unictype/category-none-tests: Likewise.
19730         * modules/unictype/category-of-tests: Likewise.
19731         * modules/unictype/category-or-tests: Likewise.
19732         * modules/unictype/category-test-withtable-tests: Likewise.
19733         * modules/unictype/combining-class-tests: Likewise.
19734         * modules/unictype/ctype-alnum-tests: Likewise.
19735         * modules/unictype/ctype-alpha-tests: Likewise.
19736         * modules/unictype/ctype-blank-tests: Likewise.
19737         * modules/unictype/ctype-cntrl-tests: Likewise.
19738         * modules/unictype/ctype-digit-tests: Likewise.
19739         * modules/unictype/ctype-graph-tests: Likewise.
19740         * modules/unictype/ctype-lower-tests: Likewise.
19741         * modules/unictype/ctype-print-tests: Likewise.
19742         * modules/unictype/ctype-punct-tests: Likewise.
19743         * modules/unictype/ctype-space-tests: Likewise.
19744         * modules/unictype/ctype-upper-tests: Likewise.
19745         * modules/unictype/ctype-xdigit-tests: Likewise.
19746         * modules/unictype/decimal-digit-tests: Likewise.
19747         * modules/unictype/digit-tests: Likewise.
19748         * modules/unictype/mirror-tests: Likewise.
19749         * modules/unictype/numeric-tests: Likewise.
19750         * modules/unictype/property-alphabetic-tests: Likewise.
19751         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19752         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19753         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19754         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19755         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19756         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19757         * modules/unictype/property-bidi-control-tests: Likewise.
19758         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19759         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19760         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19761         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19762         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19763         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19764         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19765         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19766         * modules/unictype/property-bidi-pdf-tests: Likewise.
19767         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19768         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19769         * modules/unictype/property-byname-tests: Likewise.
19770         * modules/unictype/property-combining-tests: Likewise.
19771         * modules/unictype/property-composite-tests: Likewise.
19772         * modules/unictype/property-currency-symbol-tests: Likewise.
19773         * modules/unictype/property-dash-tests: Likewise.
19774         * modules/unictype/property-decimal-digit-tests: Likewise.
19775         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19776         * modules/unictype/property-deprecated-tests: Likewise.
19777         * modules/unictype/property-diacritic-tests: Likewise.
19778         * modules/unictype/property-extender-tests: Likewise.
19779         * modules/unictype/property-format-control-tests: Likewise.
19780         * modules/unictype/property-grapheme-base-tests: Likewise.
19781         * modules/unictype/property-grapheme-extend-tests: Likewise.
19782         * modules/unictype/property-grapheme-link-tests: Likewise.
19783         * modules/unictype/property-hex-digit-tests: Likewise.
19784         * modules/unictype/property-hyphen-tests: Likewise.
19785         * modules/unictype/property-id-continue-tests: Likewise.
19786         * modules/unictype/property-id-start-tests: Likewise.
19787         * modules/unictype/property-ideographic-tests: Likewise.
19788         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19789         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19790         * modules/unictype/property-ignorable-control-tests: Likewise.
19791         * modules/unictype/property-iso-control-tests: Likewise.
19792         * modules/unictype/property-join-control-tests: Likewise.
19793         * modules/unictype/property-left-of-pair-tests: Likewise.
19794         * modules/unictype/property-line-separator-tests: Likewise.
19795         * modules/unictype/property-logical-order-exception-tests: Likewise.
19796         * modules/unictype/property-lowercase-tests: Likewise.
19797         * modules/unictype/property-math-tests: Likewise.
19798         * modules/unictype/property-non-break-tests: Likewise.
19799         * modules/unictype/property-not-a-character-tests: Likewise.
19800         * modules/unictype/property-numeric-tests: Likewise.
19801         * modules/unictype/property-other-alphabetic-tests: Likewise.
19802         * modules/unictype/property-other-default-ignorable-code-point-tests:
19803         Likewise.
19804         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19805         * modules/unictype/property-other-id-continue-tests: Likewise.
19806         * modules/unictype/property-other-id-start-tests: Likewise.
19807         * modules/unictype/property-other-lowercase-tests: Likewise.
19808         * modules/unictype/property-other-math-tests: Likewise.
19809         * modules/unictype/property-other-uppercase-tests: Likewise.
19810         * modules/unictype/property-paired-punctuation-tests: Likewise.
19811         * modules/unictype/property-paragraph-separator-tests: Likewise.
19812         * modules/unictype/property-pattern-syntax-tests: Likewise.
19813         * modules/unictype/property-pattern-white-space-tests: Likewise.
19814         * modules/unictype/property-private-use-tests: Likewise.
19815         * modules/unictype/property-punctuation-tests: Likewise.
19816         * modules/unictype/property-quotation-mark-tests: Likewise.
19817         * modules/unictype/property-radical-tests: Likewise.
19818         * modules/unictype/property-sentence-terminal-tests: Likewise.
19819         * modules/unictype/property-soft-dotted-tests: Likewise.
19820         * modules/unictype/property-space-tests: Likewise.
19821         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19822         * modules/unictype/property-test-tests: Likewise.
19823         * modules/unictype/property-titlecase-tests: Likewise.
19824         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19825         * modules/unictype/property-unified-ideograph-tests: Likewise.
19826         * modules/unictype/property-uppercase-tests: Likewise.
19827         * modules/unictype/property-variation-selector-tests: Likewise.
19828         * modules/unictype/property-white-space-tests: Likewise.
19829         * modules/unictype/property-xid-continue-tests: Likewise.
19830         * modules/unictype/property-xid-start-tests: Likewise.
19831         * modules/unictype/property-zero-width-tests: Likewise.
19832         * modules/unictype/scripts-tests: Likewise.
19833         * modules/unictype/syntax-c-ident-tests: Likewise.
19834         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19835         * modules/unictype/syntax-java-ident-tests: Likewise.
19836         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19837         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19838         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19839         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19840         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19841         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19842         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19843         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19844         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19845         * modules/uniname/uniname-tests: Likewise.
19846         * modules/uninorm/canonical-decomposition-tests: Likewise.
19847         * modules/uninorm/compat-decomposition-tests: Likewise.
19848         * modules/uninorm/composition-tests: Likewise.
19849         * modules/uninorm/decomposing-form-tests: Likewise.
19850         * modules/uninorm/decomposition-tests: Likewise.
19851         * modules/uninorm/filter-tests: Likewise.
19852         * modules/uninorm/nfc-tests: Likewise.
19853         * modules/uninorm/nfd-tests: Likewise.
19854         * modules/uninorm/nfkc-tests: Likewise.
19855         * modules/uninorm/nfkd-tests: Likewise.
19856         * modules/uninorm/u8-normcmp-tests: Likewise.
19857         * modules/uninorm/u8-normcoll-tests: Likewise.
19858         * modules/uninorm/u16-normcmp-tests: Likewise.
19859         * modules/uninorm/u16-normcoll-tests: Likewise.
19860         * modules/uninorm/u32-normcmp-tests: Likewise.
19861         * modules/uninorm/u32-normcoll-tests: Likewise.
19862         * modules/unistdio/u8-asnprintf-tests: Likewise.
19863         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19864         * modules/unistdio/u8-vasprintf-tests: Likewise.
19865         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19866         * modules/unistdio/u8-vsprintf-tests: Likewise.
19867         * modules/unistdio/u16-asnprintf-tests: Likewise.
19868         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19869         * modules/unistdio/u16-vasprintf-tests: Likewise.
19870         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19871         * modules/unistdio/u16-vsprintf-tests: Likewise.
19872         * modules/unistdio/u32-asnprintf-tests: Likewise.
19873         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19874         * modules/unistdio/u32-vasprintf-tests: Likewise.
19875         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19876         * modules/unistdio/u32-vsprintf-tests: Likewise.
19877         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19878         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19879         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19880         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19881         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19882         * modules/unistr/u8-check-tests: Likewise.
19883         * modules/unistr/u8-chr-tests: Likewise.
19884         * modules/unistr/u8-cmp-tests: Likewise.
19885         * modules/unistr/u8-cmp2-tests: Likewise.
19886         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19887         * modules/unistr/u8-cpy-tests: Likewise.
19888         * modules/unistr/u8-mblen-tests: Likewise.
19889         * modules/unistr/u8-mbsnlen-tests: Likewise.
19890         * modules/unistr/u8-mbtouc-tests: Likewise.
19891         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19892         * modules/unistr/u8-mbtoucr-tests: Likewise.
19893         * modules/unistr/u8-move-tests: Likewise.
19894         * modules/unistr/u8-next-tests: Likewise.
19895         * modules/unistr/u8-prev-tests: Likewise.
19896         * modules/unistr/u8-set-tests: Likewise.
19897         * modules/unistr/u8-stpcpy-tests: Likewise.
19898         * modules/unistr/u8-stpncpy-tests: Likewise.
19899         * modules/unistr/u8-strcat-tests: Likewise.
19900         * modules/unistr/u8-strcmp-tests: Likewise.
19901         * modules/unistr/u8-strcoll-tests: Likewise.
19902         * modules/unistr/u8-strcpy-tests: Likewise.
19903         * modules/unistr/u8-strdup-tests: Likewise.
19904         * modules/unistr/u8-strlen-tests: Likewise.
19905         * modules/unistr/u8-strmblen-tests: Likewise.
19906         * modules/unistr/u8-strmbtouc-tests: Likewise.
19907         * modules/unistr/u8-strncat-tests: Likewise.
19908         * modules/unistr/u8-strncmp-tests: Likewise.
19909         * modules/unistr/u8-strncpy-tests: Likewise.
19910         * modules/unistr/u8-strnlen-tests: Likewise.
19911         * modules/unistr/u8-to-u16-tests: Likewise.
19912         * modules/unistr/u8-to-u32-tests: Likewise.
19913         * modules/unistr/u8-uctomb-tests: Likewise.
19914         * modules/unistr/u16-check-tests: Likewise.
19915         * modules/unistr/u16-chr-tests: Likewise.
19916         * modules/unistr/u16-cmp-tests: Likewise.
19917         * modules/unistr/u16-cmp2-tests: Likewise.
19918         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19919         * modules/unistr/u16-cpy-tests: Likewise.
19920         * modules/unistr/u16-mblen-tests: Likewise.
19921         * modules/unistr/u16-mbsnlen-tests: Likewise.
19922         * modules/unistr/u16-mbtouc-tests: Likewise.
19923         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19924         * modules/unistr/u16-mbtoucr-tests: Likewise.
19925         * modules/unistr/u16-move-tests: Likewise.
19926         * modules/unistr/u16-next-tests: Likewise.
19927         * modules/unistr/u16-prev-tests: Likewise.
19928         * modules/unistr/u16-set-tests: Likewise.
19929         * modules/unistr/u16-stpcpy-tests: Likewise.
19930         * modules/unistr/u16-stpncpy-tests: Likewise.
19931         * modules/unistr/u16-strcat-tests: Likewise.
19932         * modules/unistr/u16-strcmp-tests: Likewise.
19933         * modules/unistr/u16-strcoll-tests: Likewise.
19934         * modules/unistr/u16-strcpy-tests: Likewise.
19935         * modules/unistr/u16-strdup-tests: Likewise.
19936         * modules/unistr/u16-strlen-tests: Likewise.
19937         * modules/unistr/u16-strmblen-tests: Likewise.
19938         * modules/unistr/u16-strmbtouc-tests: Likewise.
19939         * modules/unistr/u16-strncat-tests: Likewise.
19940         * modules/unistr/u16-strncmp-tests: Likewise.
19941         * modules/unistr/u16-strncpy-tests: Likewise.
19942         * modules/unistr/u16-strnlen-tests: Likewise.
19943         * modules/unistr/u16-to-u32-tests: Likewise.
19944         * modules/unistr/u16-to-u8-tests: Likewise.
19945         * modules/unistr/u16-uctomb-tests: Likewise.
19946         * modules/unistr/u32-check-tests: Likewise.
19947         * modules/unistr/u32-chr-tests: Likewise.
19948         * modules/unistr/u32-cmp-tests: Likewise.
19949         * modules/unistr/u32-cmp2-tests: Likewise.
19950         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19951         * modules/unistr/u32-cpy-tests: Likewise.
19952         * modules/unistr/u32-mblen-tests: Likewise.
19953         * modules/unistr/u32-mbsnlen-tests: Likewise.
19954         * modules/unistr/u32-mbtouc-tests: Likewise.
19955         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19956         * modules/unistr/u32-mbtoucr-tests: Likewise.
19957         * modules/unistr/u32-move-tests: Likewise.
19958         * modules/unistr/u32-next-tests: Likewise.
19959         * modules/unistr/u32-prev-tests: Likewise.
19960         * modules/unistr/u32-set-tests: Likewise.
19961         * modules/unistr/u32-stpcpy-tests: Likewise.
19962         * modules/unistr/u32-stpncpy-tests: Likewise.
19963         * modules/unistr/u32-strcat-tests: Likewise.
19964         * modules/unistr/u32-strcmp-tests: Likewise.
19965         * modules/unistr/u32-strcoll-tests: Likewise.
19966         * modules/unistr/u32-strcpy-tests: Likewise.
19967         * modules/unistr/u32-strdup-tests: Likewise.
19968         * modules/unistr/u32-strlen-tests: Likewise.
19969         * modules/unistr/u32-strmblen-tests: Likewise.
19970         * modules/unistr/u32-strmbtouc-tests: Likewise.
19971         * modules/unistr/u32-strncat-tests: Likewise.
19972         * modules/unistr/u32-strncmp-tests: Likewise.
19973         * modules/unistr/u32-strncpy-tests: Likewise.
19974         * modules/unistr/u32-strnlen-tests: Likewise.
19975         * modules/unistr/u32-to-u16-tests: Likewise.
19976         * modules/unistr/u32-to-u8-tests: Likewise.
19977         * modules/unistr/u32-uctomb-tests: Likewise.
19978         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19979         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19980         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19981         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19982         * modules/uniwidth/u8-strwidth-tests: Likewise.
19983         * modules/uniwidth/u8-width-tests: Likewise.
19984         * modules/uniwidth/u16-strwidth-tests: Likewise.
19985         * modules/uniwidth/u16-width-tests: Likewise.
19986         * modules/uniwidth/u32-strwidth-tests: Likewise.
19987         * modules/uniwidth/u32-width-tests: Likewise.
19988         * modules/uniwidth/width-tests: Likewise.
19989
19990 2010-05-18  Richard Jones  <rjones@redhat.com>
19991
19992         doc: users.txt: list hivex
19993         * users.txt: Add hivex.
19994
19995 2010-05-18  Richard Jones  <rjones@redhat.com>
19996
19997         doc: users.txt: list febootstrap
19998         * users.txt: Add febootstrap.
19999
20000 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
20001
20002         bootstrap: fix an error when gnulib is not used as a git submodule
20003         * build-aux/bootstrap (gnulib_path): If its length is zero then
20004         assign "gnulib" to it.
20005         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
20006
20007 2010-05-16  Bruno Haible  <bruno@clisp.org>
20008
20009         Avoid autoconf warnings about AM_ICONV.
20010         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
20011         2.64.
20012
20013 2010-05-16  Bruno Haible  <bruno@clisp.org>
20014
20015         absolute-header: Make the macro usable in more situations.
20016         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
20017         from gl_ABSOLUTE_HEADER.
20018         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
20019
20020 2010-05-16  James Youngman  <jay@gnu.org>
20021
20022         doc: update users.txt
20023         * users.txt: Add CSSC.
20024
20025 2010-05-16  Jim Meyering  <meyering@redhat.com>
20026
20027         init.sh: fix an error in the previous change; add more comments
20028         * tests/init.sh: Compare exit code in loop against 9, not 2.
20029         Patch by Bruno Haible.
20030         Make the two tests more similar by adding an empty "then" clause.
20031         Add comments.
20032
20033         init.sh: avoid unnecessary shell re-exec
20034         * tests/init.sh: Improve the re-exec-required check to first test the
20035         current shell.  If it passes the test, do not search for a shell that
20036         does pass, and do not re-exec.  This test is particularly contorted to
20037         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
20038         of $(...) evokes a syntax error and causes immediate shell exit with
20039         status 2.  Bruno Haible reported that the re-exec made it impossible
20040         to single-step through any init.sh-using script.
20041
20042 2010-05-16  Bruno Haible  <bruno@clisp.org>
20043
20044         Fix collision between gnulib's and libintl's printf replacements.
20045         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
20046         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
20047         (printf): When using GNU C, map the __printf__ function to rpl_printf
20048         via __asm__. When not using GNU C, define rpl_printf instead of
20049         __printf__.
20050         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
20051         commit.
20052         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
20053         commit.
20054         * m4/asm-underscore.m4: New file.
20055         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
20056         * modules/stdio (Files): Add m4/asm-underscore.m4.
20057         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
20058         Reported by Ben Pfaff.
20059
20060 2010-05-16  Bruno Haible  <bruno@clisp.org>
20061
20062         verify: Avoid skipping the test on openSUSE 11.0.
20063         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
20064
20065 2010-05-13  Bruno Haible  <bruno@clisp.org>
20066
20067         Avoid useless warnings from G++.
20068         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
20069         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
20070         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20071
20072 2010-05-11  Jim Meyering  <meyering@redhat.com>
20073
20074         maint.mk: tweak preceding change
20075         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
20076         regexps tighter by anchoring at EOL, and make the new group "shy"
20077         for slightly decreased overhead.
20078
20079 2010-05-11  Eric Blake  <eblake@redhat.com>
20080
20081         maint.mk: gnulib doesn't guarantee NSIG
20082         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
20083
20084 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20085
20086         test-pwrite.c: Remove unused variable declaration.
20087         * tests/test-pwrite.c (main): Remove read_buf declaration.
20088
20089         Remove useless test-pwrite.sh file.
20090         * tests/test-pwrite.sh: Delete file.
20091         * modules/pwrite-tests: Remove references.
20092         Reported by Bruno Haible.
20093
20094 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20095
20096         init.sh: fix a typo
20097         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
20098
20099 2010-05-10  Jim Meyering  <meyering@redhat.com>
20100
20101         maint.mk: avoid using a temporary file in the always-defined-macros check
20102         * top/maint.mk (.re-defmac): Remove rule.
20103         (gl_trap_): Remove definition.
20104         (sc_prohibit_always-defined_macros): Rewrite not to create and
20105         depend on a temporary file.  Instead, depend on GNU grep's ability
20106         to read a list of regular expressions from stdin when given "-f -".
20107
20108 2010-05-09  Bruno Haible  <bruno@clisp.org>
20109
20110         Update to GNU gettext 0.18, part 1.
20111         * m4/gettext.m4: Update to GNU gettext 0.18.
20112         * m4/intl.m4: Likewise.
20113         * m4/po.m4: Likewise.
20114         * modules/gettext (Files): Add m4/fcntl-o.m4.
20115         (configure.ac): Require gettext infrastructure from version 0.18.
20116
20117 2010-05-09  Jim Meyering  <meyering@redhat.com>
20118
20119         init.sh: enable MALLOC_PERTURB_
20120         * tests/init.sh: Enable glibc's malloc-perturbing option.
20121
20122         maint.mk: improve sc_cross_check_PATH_usage_in_tests
20123         With my recent change in init.sh from the two-line form:
20124             -#   : ${srcdir=.}
20125             -#   . "$srcdir/init.sh"; path_prepend_ .
20126             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
20127         I noticed that using the one-line form would cause this test
20128         to fail with a false-positive, or to stop working altogether,
20129         depending on whether help-version changed or all the tests did.
20130         * top/maint.mk (_hv_regex): Remove this definition.
20131         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
20132         (_hv_regex_strong): Use a stronger regex to check for conformance.
20133         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
20134         Give a separate diagnostic for lack of conforming use.
20135
20136         maint.mk: prohibit definition of symbols defined by gnulib
20137         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
20138         definition of symbols defined by gnulib.
20139
20140 2010-05-09  Bruno Haible  <bruno@clisp.org>
20141
20142         acl: Avoid test failure on Cygwin-hosted mingw.
20143         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
20144
20145 2010-05-09  Bruno Haible  <bruno@clisp.org>
20146
20147         error: Use system's fcntl function.
20148         * lib/error.c (fcntl): Undefine.
20149
20150 2010-05-09  Jim Meyering  <meyering@redhat.com>
20151
20152         verify: adjust formatting to be more consistent
20153         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
20154         argument-list '('s, and after one comma.
20155
20156 2010-05-09  Bruno Haible  <bruno@clisp.org>
20157
20158         error: More reliable output on mingw.
20159         * lib/error.c: Include <windows.h>.
20160         (is_open): New function.
20161         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
20162         defined.
20163
20164 2010-05-09  Bruno Haible  <bruno@clisp.org>
20165
20166         vasnprintf: Fix syntax errors in libintl build on mingw.
20167         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
20168         pad_ourselves and prec_ourselves after use.
20169
20170 2010-05-08  Bruno Haible  <bruno@clisp.org>
20171
20172         * lib/config.charset: Update comments for Cygwin 1.7.
20173         * lib/localcharset.c: Likewise.
20174
20175 2010-05-07  Jim Meyering  <meyering@redhat.com>
20176
20177         init.sh: improve comments
20178         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
20179         . "${srcdir=.}/init.sh"; path_prepend_ .
20180         Add a note about path_prepend_ and the alternative of using
20181         TESTS_ENVIRONMENT.
20182
20183 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20184
20185         exclude: Unescape hashed patterns in wildcard mode.
20186         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
20187         to the hash list.
20188         * tests/test-exclude8.sh: New test case.
20189         * modules/exclude-tests: Add new test.
20190
20191 2010-05-05  Eric Blake  <eblake@redhat.com>
20192
20193         verify: automate tests
20194         * modules/verify-tests: New module.
20195         * tests/test-verify.sh: New file.
20196         * tests/test-verify.c: Guard each negative test with a unique id.
20197         Also avoid warning about unused left hand of comma expressions.
20198
20199 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20200
20201         Further improvements to verify.h, suggested by Eric Blake.
20202         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
20203         the GL_* versions, to avoid collision with OpenGL.
20204         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
20205         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
20206         than testing merely whether it's defined.
20207
20208         Modify verify.h to pacify gcc -Wredundant_decls.
20209         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
20210         These use the prefix "GL_" since they're likely to be useful elsewhere.
20211         We may need to break them out into a different .h file.
20212         (__COUNTER__): Define to 0 if the compiler doesn't support it.
20213         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
20214         of verify_function__.
20215
20216 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20217
20218         Tests for module pwrite.
20219         * modules/pwrite-tests: New file.
20220         * tests/test-pwrite.sh: New file.
20221         * tests/test-pwrite.c: New file.
20222
20223         New module pwrite.
20224         * lib/unistd.in.h (pwrite): New declaration.
20225         * lib/pwrite.c: New file, from glibc with modifications.
20226         * m4/pwrite.m4: New file.
20227         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
20228         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
20229         REPLACE_PWRITE.
20230         * modules/pwrite: New file.
20231         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
20232         REPLACE_PWRITE.
20233         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
20234         * doc/posix-functions/pwrite.texi: Mention the new module.
20235
20236 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20237
20238         pread: Update documentation.
20239         * doc/posix-functions/pread.texi: Mention the 'pread' module.
20240
20241 2010-05-04  Eric Blake  <eblake@redhat.com>
20242
20243         docs: update cygwin progress
20244         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
20245         this bug.
20246         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
20247         Added in cygwin 1.7.2.
20248         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
20249         Likewise.
20250         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
20251         Likewise.
20252         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20253         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20254         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20255         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20256         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20257         Mention nproc module.
20258         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20259         bug in cygwin 1.7.5 addition.
20260         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20261         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20262         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20263         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20264         1.7.5.
20265         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20266         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20267         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20268         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20269         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20270         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20271         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20272         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20273         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20274         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20275         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20276         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20277         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20278         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20279         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20280         Likewise.
20281         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20282         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20283         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20284         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20285         Likewise.
20286         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20287         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20288         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20289         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20290         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20291         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20292         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20293         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20294         Likewise.
20295         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20296         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20297         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20298         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20299         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20300         Likewise.
20301         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20302         Likewise.
20303         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20304         Likewise.
20305         * doc/glibc-functions/xdrrec_endofrecord.texi
20306         (xdrrec_endofrecord): Likewise.
20307         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20308         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20309         Likewise.
20310         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20311         Likewise.
20312
20313 2010-05-04  Jim Meyering  <meyering@redhat.com>
20314
20315         gendocs.sh: make its "-s FILE" option more useful
20316         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20317         $PACKAGE to reflect the probably-different basename of "FILE".
20318
20319 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20320
20321         bootstrap: don't ignore download_po_files failure
20322         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20323         failure.
20324
20325 2010-05-03  Jim Meyering  <meyering@redhat.com>
20326
20327         maint.mk: allow to pass options to gendocs.sh
20328         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20329         (gendocs_options_): New overridable variable.
20330
20331         gnu-web-doc-update: don't ignore configure or build failure
20332         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20333
20334         announce-gen: backslash-escape '@'s in --help output
20335         * build-aux/announce-gen: Fix syntax errors.
20336
20337         maint.mk, announce-gen: allow project-specific announcement mail headers
20338         * top/maint.mk (translation_project_): Define default.
20339         (announcement_Cc_, announcement_mail_headers_): Likewise.
20340         (announcement): Invoke announce-gen with new --mail-headers option.
20341         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20342
20343         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20344         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20345         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20346         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20347         line in the "err2" output file when running "make check" in verbose
20348         mode (i.e., with set -x enabled).
20349
20350 2010-05-03  Bruno Haible  <bruno@clisp.org>
20351
20352         wctob: Fix for weird platforms.
20353         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20354         argument value.
20355
20356 2010-05-03  Jim Meyering  <meyering@redhat.com>
20357
20358         maint.mk: prohibit unwarranted use of <strings.h>
20359         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20360         strings.h in a file that does not also use strcasecmp, strncasecmp,
20361         ffs or ffsll.
20362
20363         maint.mk: remove obsolete comments
20364         * top/maint.mk: Remove stale, commented-out rules.
20365
20366 2010-05-02  Bruno Haible  <bruno@clisp.org>
20367
20368         wcwidth: Declare also when it's aliased.
20369         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20370         macro.
20371
20372 2010-05-02  Bruno Haible  <bruno@clisp.org>
20373
20374         Fix regression from 2010-04-25.
20375         * gnulib-tool (func_modules_transitive_closure): Check the status of
20376         all modules, not only of the tests that are of the form foo-tests where
20377         foo is a module.
20378
20379 2010-05-02  Bruno Haible  <bruno@clisp.org>
20380
20381         wctob: Work around nasty Cygwin 1.7.2 bug.
20382         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20383         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20384
20385 2010-05-01  Bruno Haible  <bruno@clisp.org>
20386
20387         fpurge: Sharper test.
20388         * tests/test-fpurge.c (main): Add one more ftell check.
20389         * modules/fpurge-tests (Depends-on): Add ftell.
20390         Suggested by Eric Blake.
20391
20392 2010-05-01  Bruno Haible  <bruno@clisp.org>
20393
20394         ftello: Another test.
20395         * tests/test-ftello3.c: New file.
20396         * modules/ftello-tests (Files): Add it.
20397         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20398         MOSTLYCLEANFILES.
20399
20400         ftell: Another test.
20401         * tests/test-ftell3.c: New file.
20402         * modules/ftell-tests (Files): Add it.
20403         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20404         MOSTLYCLEANFILES.
20405
20406 2010-05-01  Bruno Haible  <bruno@clisp.org>
20407
20408         ftell, ftello: Work around Solaris bug.
20409         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
20410         * lib/ftello.c: Include stdio-impl.h.
20411         (ftello): On Solaris, when _IOWRT is set, compute the result without
20412         looking at _IOREAD.
20413         * modules/ftello (Files): Add lib/stdio-impl.h.
20414         * doc/posix-functions/ftell.texi: Mention Solaris bug.
20415         * doc/posix-functions/ftello.texi: Likewise.
20416         Reported by Eric Blake.
20417
20418 2010-05-01  Bruno Haible  <bruno@clisp.org>
20419
20420         freading: Adapt to special meaning of _IOREAD flag on Solaris.
20421         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
20422         the _IOWRT flag is also set.
20423
20424 2010-05-01  Bruno Haible  <bruno@clisp.org>
20425
20426         Fix doc about a HP-UX stdio bug.
20427         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
20428         * doc/posix-functions/ftello.texi: Likewise.
20429
20430 2010-05-01  Bruno Haible  <bruno@clisp.org>
20431
20432         lseek test: Fix failure on Solaris.
20433         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
20434         output.
20435
20436 2010-04-30  Jim Meyering  <meyering@redhat.com>
20437
20438         bootstrap: don't ignore failure to generate po*/Makevars
20439         * build-aux/bootstrap (with_gettext): Don't ignore failure
20440         to create po/Makevars or runtime-po/Makevars.
20441
20442 2010-04-29  Eric Blake  <eblake@redhat.com>
20443
20444         headers: relax license to LGPLv2+
20445         * modules/fcntl-h (License): Relax license.
20446         * modules/getopt-posix (License): Likewise.
20447         * modules/locale (License): Likewise.
20448         * modules/math (License): Likewise.
20449         * modules/pty (License): Likewise.
20450         * modules/sched (License): Likewise.
20451         * modules/search (License): Likewise.
20452         * modules/spawn (License): Likewise.
20453         * modules/stdarg (License): Likewise.
20454         * modules/sysexits (License): Likewise.
20455
20456 2010-04-29  Jim Meyering  <meyering@redhat.com>
20457
20458         inttypes: relax license to LGPLv2+
20459         * modules/inttypes (License): Relax license.
20460
20461 2010-04-29  Simon Josefsson  <simon@josefsson.org>
20462
20463         * top/maint.mk (indent): Run twice to produce idempotent results.
20464
20465 2010-04-28  Bruno Haible  <bruno@clisp.org>
20466
20467         getdate: Generate getdate.c in the source directory.
20468         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
20469         MOSTLYCLEANFILES.
20470         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
20471
20472 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
20473
20474         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
20475         is not declared as a const *; avoid warnings in that case.
20476
20477 2010-04-28  Eric Blake  <eblake@redhat.com>
20478
20479         canonicalize-lgpl: avoid compiler warning
20480         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20481         declaration' / 'extraneous semicolon' warning with some compilers.
20482         Reported by Andreas Gruenbacher.
20483
20484 2010-04-28  Jim Meyering  <meyering@redhat.com>
20485
20486         init.sh: ensure a more reliable exit status when exiting via trap
20487         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20488         Inspired by patches from Dmitry V. Levin.
20489         Also trap on signal 3 (SIGQUIT).
20490
20491 2010-04-27  Bruno Haible  <bruno@clisp.org>
20492
20493         Update doc about utimes().
20494         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20495         'utimens' module.
20496         Reported by Andreas Gruenbacher <agruen@suse.de>.
20497
20498 2010-04-27  Eric Blake  <eblake@redhat.com>
20499
20500         full-read, full-write: relax license
20501         * modules/full-read (License): Drop to LGPLv2+.
20502         * modules/full-write (License): Likewise.
20503         * modules/safe-read (License): Likewise.
20504         * modules/safe-write (License): Likewise.
20505
20506         pthread: mention library for linking
20507         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20508
20509 2010-04-27  Jim Meyering  <meyering@redhat.com>
20510
20511         maint.mk: fix a bug introduced in last change
20512         * top/maint.mk (gl_assured_headers_): Now that all names are on
20513         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20514         is not anchored to end of word, it should be adequate.
20515
20516         maint.mk: avoid side-effect in latest syntax-check
20517         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20518         to run commands via $(shell...), and hence to incur cost only when
20519         the new rule is actually run.
20520
20521         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20522         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20523         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20524         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20525         (gl_assured_headers_, az_, AZ_): Define.
20526         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20527
20528 2010-04-26  Jim Meyering  <jim@meyering.net>
20529             Bruno Haible  <bruno@clisp.org>
20530
20531         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20532         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20533         Prompted by an exchange with Gilles Espinasse.
20534
20535 2010-04-26  Jim Meyering  <meyering@redhat.com>
20536
20537         git-version-gen: aesthetic tweak
20538         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20539         so that the command remains on a single line.
20540
20541 2010-04-26  Eric Blake  <eblake@redhat.com>
20542
20543         git-version-gen: allow use on EBCDIC hosts
20544         * build-aux/git-version-gen (dirty): Use literal rather than tying
20545         ourselves to ascii.
20546         Reported by Steve Goetze.
20547
20548 2010-04-25  Bruno Haible  <bruno@clisp.org>
20549
20550         netdb: Add support for GNULIB_POSIXCHECK.
20551         * lib/netdb.in.h: Include warn-on-use.h.
20552         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20553         functions are used when GNULIB_POSIXCHECK is defined and the
20554         getaddrinfo module is not in use.
20555         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20556         freeaddrinfo, gai_strerror, getnameinfo are declared.
20557         * modules/netdb (Depends-on): Add warn-on-use.
20558         (Makefile.am): Include warn-on-use.h in netdb.h.
20559
20560 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20561
20562         build: avoid "make check" failure without .git/ directory
20563         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20564         there is no .git/ directory.
20565
20566 2010-04-25  Bruno Haible  <bruno@clisp.org>
20567
20568         ptsname: Fix misuse of ttyname_r.
20569         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20570         of errno.
20571
20572 2010-04-25  Bruno Haible  <bruno@clisp.org>
20573
20574         ttyname_r: Make it work on Solaris 10.
20575         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20576         if the system function has the POSIX declaration. Test whether the
20577         function fails if the buffer is less than 128 bytes large.
20578         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20579         system's ttyname_r function. Provide a reasonably large buffer.
20580         * modules/ttyname_r (Depends-on): Add extensions.
20581         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20582
20583 2010-04-25  Bruno Haible  <bruno@clisp.org>
20584
20585         Use the 'extensions' module for some more functions on Solaris.
20586         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20587         module.
20588         * doc/posix-functions/ctime_r.texi: Likewise.
20589         * doc/posix-functions/getgrgid_r.texi: Likewise.
20590         * doc/posix-functions/getgrnam_r.texi: Likewise.
20591         * doc/posix-functions/getpwnam_r.texi: Likewise.
20592         * doc/posix-functions/getpwuid_r.texi: Likewise.
20593         * doc/posix-functions/readdir_r.texi: Likewise.
20594         * doc/posix-functions/sigwait.texi: Likewise.
20595         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20596         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20597
20598 2010-04-25  Bruno Haible  <bruno@clisp.org>
20599
20600         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20601         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20602         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20603         * lib/ttyname_r.c: Include <limits.h>.
20604         (ttyname_r): Define using the system's ttyname_r function, if it exists
20605         and not on Solaris.
20606         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20607         set.
20608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20609         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20610         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20611         Reported by Simon Josefsson.
20612
20613 2010-04-25  Bruno Haible  <bruno@clisp.org>
20614
20615         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20616         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20617         * doc/posix-functions/ctime_r.texi: Likewise.
20618         * doc/posix-functions/getgrgid_r.texi: Likewise.
20619         * doc/posix-functions/getgrnam_r.texi: Likewise.
20620         * doc/posix-functions/getlogin_r.texi: Likewise.
20621         * doc/posix-functions/getpwnam_r.texi: Likewise.
20622         * doc/posix-functions/getpwuid_r.texi: Likewise.
20623         * doc/posix-functions/readdir_r.texi: Likewise.
20624         * doc/posix-functions/sigwait.texi: Likewise.
20625         * doc/posix-functions/ttyname_r.texi: Likewise.
20626         Reported by Simon Josefsson.
20627
20628 2010-04-25  Bruno Haible  <bruno@clisp.org>
20629
20630         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20631         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20632         also to --create-testdir.
20633         (func_acceptable): Don't consider the status of *-tests modules here.
20634         (func_modules_transitive_closure): Consider it here, before including a
20635         test module.
20636         (func_import, func_create_testdir): Set inc_all_direct_tests,
20637         inc_all_indirect_tests.
20638         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20639         --create-testdir and --create-megatestdir.
20640
20641 2010-04-25  Bruno Haible  <bruno@clisp.org>
20642
20643         gnulib-tool: Add --without-*-tests options.
20644         * gnulib-tool (func_usage): Document the --without-*-tests options.
20645         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20646         excl_unportable_tests): New variables.
20647         Fail if they are specified with --import or --update.
20648         (func_acceptable): Respect the excl_*_tests variables.
20649         (func_import): Set the excl_*_tests variables to empty.
20650
20651 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20652             Bruno Haible  <bruno@clisp.org>
20653
20654         Work around a MacOS X 10.4 bug with openpty.
20655         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20656         * tests/test-openpty.c (main): Close the master side explicitly.
20657
20658 2010-04-25  Bruno Haible  <bruno@clisp.org>
20659
20660         strnlen: Fix a C++ test error on MacOS X and Solaris.
20661         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20662         the function is not declared.
20663         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20664         Simon Josefsson.
20665
20666 2010-04-24  Bruno Haible  <bruno@clisp.org>
20667
20668         Avoid a gcc warning.
20669         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20670         of correct type for %08lx directive.
20671         Reported by Eric Blake.
20672
20673 2010-04-24  Bruno Haible  <bruno@clisp.org>
20674
20675         vasnprintf: Correct errno value in case of out-of-memory.
20676         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20677         or sprintf. Use the errno value from SNPRINTF or sprintf.
20678         Reported by Ian Beckwith <ianb@erislabs.net>.
20679
20680 2010-04-24  Bruno Haible  <bruno@clisp.org>
20681
20682         ansi-c++-opt: Find correct compiler when cross-compiling.
20683         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20684         AC_CHECK_PROGS.
20685         Reported by Simon Josefsson.
20686
20687 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20688
20689         vc-list-files: Add support for subversion
20690         * build-aux/vc-list-files: Use "svn list" to generate the list of
20691         files controlled by subversion.
20692
20693 2010-04-23  Jim Meyering  <meyering@redhat.com>
20694
20695         vc-list-files tests: convert to use init.sh
20696         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20697         path_prepend_.
20698         Use Exit, not exit.
20699         Use skip_ rather than open coding it.
20700         Remove trap set-up and compare definitions.
20701         * tests/test-vc-list-files-git.sh: Likewise.
20702         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20703
20704 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20705
20706         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20707         backup files.
20708
20709 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20710
20711         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20712
20713 2010-04-20  Eric Blake  <eblake@redhat.com>
20714
20715         tests: be robust to ignored SIGPIPE
20716         * tests/test-select-in.sh: Consume all output.
20717         * tests/test-lseek.sh: Check correct exit status, while avoiding
20718         EPIPE.
20719
20720 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20721             Bruno Haible  <bruno@clisp.org>
20722
20723         visibility: Don't use -fvisibility if it leads to a warning.
20724         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20725         yes, don't pretend that visibility works if it leads to a warning.
20726         Reported by Mike Gran <spk121@yahoo.com>.
20727
20728 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20729
20730         * build-aux/bootstrap: Use "git -h" for testing for supported options
20731         instead of "git --help".  The short-form option only shows a summary,
20732         and doesn't layout the full man page.  Grep for the full option name
20733         in the summary, too.
20734
20735 2010-04-19  Bruno Haible  <bruno@clisp.org>
20736
20737         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20738         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20739         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20740         mention of RELOCATABLE_STRIP.
20741         Reported by Sylvain Beucler <beuc@beuc.net>.
20742
20743 2010-04-19  Bruno Haible  <bruno@clisp.org>
20744
20745         * lib/diffseq.h: Fix typo in comment.
20746         Reported by Eric Blake.
20747
20748 2010-04-19  Bruno Haible  <bruno@clisp.org>
20749
20750         ioctl: Move autoconf macro to a .m4 file.
20751         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20752         * modules/ioctl (Files): Add it.
20753         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20754         Reported by Ian Beckwith <ianb@erislabs.net>.
20755
20756 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20757             Bruno Haible  <bruno@clisp.org>
20758
20759         diffseq: Accommodate use-case with abstract arrays.
20760         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20761         is not defined.
20762         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20763         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20764
20765 2010-04-18  Bruno Haible  <bruno@clisp.org>
20766
20767         * doc/posix-headers/stdbool.texi: More precise wording.
20768
20769 2010-04-17  Jim Meyering  <meyering@redhat.com>
20770
20771         maint.mk: use gnu-style indentation in an embedded perl script
20772         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20773         Rename variable: s/two/last_two_bytes/
20774
20775 2010-04-16  Eric Blake  <eblake@redhat.com>
20776
20777         test-stdbool: skip test that fails with Solaris CC
20778         * tests/test-stdbool.c (f): Skip test that causes compilation
20779         error under buggy C++ compiler.
20780         * lib/stdbool.in.h: Document the limitation.
20781         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20782
20783         setenv: allow compilation with C++
20784         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20785         register keyword.
20786
20787         stdint: allow test to pass with C++
20788         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20789
20790         getopt: allow compilation with C++
20791         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20792         struct.
20793         * lib/getopt.c (_getopt_internal_r): Use correct type.
20794         Reported by Dagobert Michelson, via Joel E. Denny.
20795
20796 2010-04-16  Bruno Haible  <bruno@clisp.org>
20797
20798         Override netdb.h always.
20799         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20800         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20801         Reported by Ludovic Courtès <ludo@gnu.org>.
20802
20803 2010-04-15  Bruno Haible  <bruno@clisp.org>
20804
20805         openpty: Fix mistake from 2010-03-21.
20806         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20807         Reported by Simon Josefsson.
20808
20809 2010-04-15  Eric Blake  <eblake@redhat.com>
20810
20811         test-forkpty: fix expected signature
20812         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20813         Reported by Simon Josefsson.
20814
20815 2010-04-15  Jim Meyering  <meyering@redhat.com>
20816
20817         maint.mk: texinfo_suffix_re_: correct the default regexp
20818         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20819
20820         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20821         make it configurable via texinfo_suffix_re_.
20822
20823 2010-04-14  Eric Blake  <eblake@redhat.com>
20824
20825         strtok_r: relax license to LGPLv2+
20826         * modules/strtok_r (License): Relax license.
20827         Reported by Matthias Bolte.
20828
20829 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20830
20831         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20832         version 1.4.4 by default instead of requiring the libgcrypt
20833         version used during build.  This makes it possible to use the
20834         application with older but still binary compatible libgcrypt
20835         versions.
20836
20837 2010-04-13  Eric Blake  <eblake@redhat.com>
20838
20839         getopt-gnu: match recent glibc fixes and posix ruling
20840         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20841         '+' handling, when requesting extensions.
20842         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20843         'W;' handling.
20844         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20845         * doc/posix-functions/getopt.texi (getopt): Document this.
20846         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20847         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20848         Likewise.
20849
20850         getopt: merge bug fixes from glibc
20851         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20852         diagnostics.  Honor '+:' correctly.  Reject ';'.
20853
20854         getopt-posix: detect MacOS bug
20855         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20856         optind when missing a required argument.
20857         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20858         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20859         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20860         Likewise.
20861
20862         getopt-posix: avoid spurious failure on Solaris
20863         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20864         an indicator that setting optind=1 is sufficient for reset.
20865
20866         getopt-posix: avoid spurious failure on FreeBSD
20867         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20868         in POSIX mode, since the m4 test uses it.
20869
20870         gnulib-tool: silence warning on BSD sh
20871         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20872
20873 2010-04-13  Jim Meyering  <meyering@redhat.com>
20874
20875         doc: users.txt: GNU patch now uses gnulib
20876         * users.txt: Add patch.
20877
20878 2010-04-12  Jim Meyering  <meyering@redhat.com>
20879
20880         maint.mk: generate more concise timing data for syntax-check rules
20881         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20882         " done" from each line that reports a syntax-check test duration.
20883
20884 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20885
20886         git-version-gen: use "git update-index..." rather than "git status"
20887         * build-aux/git-version-gen: Use git update-index --refresh, not
20888         "git status".  With some versions of git, "git status" would fail
20889         to update the index and result in an unwarranted "-dirty" suffix.
20890
20891 2010-04-11  Jim Meyering  <meyering@redhat.com>
20892
20893         openat: correct formatting (no semantic change)
20894         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20895         Suggested by Bruno Haible.
20896
20897 2010-04-11  Bruno Haible  <bruno@clisp.org>
20898
20899         Stricter declaration checking in testdirs.
20900         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20901         If for_tests is true, augment AM_CPPFLAGS to define
20902         GNULIB_STRICT_CHECKING.
20903         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20904         GNULIB_STRICT_CHECKING is defined, verify that the function is
20905         declared.
20906
20907 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20908             Bruno Haible  <bruno@clisp.org>
20909
20910         libunistring: Improve configure output.
20911         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20912         Don't say "consider installing GNU libunistring" when checking again
20913         with libiconv.
20914
20915 2010-04-11  Bruno Haible  <bruno@clisp.org>
20916
20917         libunistring: Correct value of $LTLIBUNISTRING.
20918         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20919         correct the value of $LTLIBUNISTRING.
20920
20921 2010-04-11  Bruno Haible  <bruno@clisp.org>
20922
20923         havelib: Add static libraries to LIBS in the right order.
20924         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20925         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20926
20927 2010-04-11  Bruno Haible  <bruno@clisp.org>
20928
20929         libunistring: Detect libunistring also when it depends on libiconv.
20930         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20931         the second AC_LIB_HAVE_LINKFLAGS invocation.
20932
20933 2010-04-11  James Youngman  <jay@gnu.org>
20934
20935         close-stream: declare local scalars to be "const"
20936         * lib/close-stream.c (close_stream): Make boolean variables const
20937         to document the fact that we set but do not change them.
20938
20939 2010-04-11  Bruno Haible  <bruno@clisp.org>
20940
20941         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20942
20943 2010-04-11  Jim Meyering  <meyering@redhat.com>
20944
20945         maint.mk: don't include dist-check.mk
20946         * top/maint.mk: Remove bogus include directive.
20947
20948         maint.mk: improve empty-line-at-EOF check
20949         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20950         solution, rather than tail+Perl-based one.  The latter would read
20951         a few kilobytes from the end of each file, and did not handle empty
20952         files properly.
20953
20954         maint.mk: print the elapsed time for each syntax-check rule
20955         * top/maint.mk (sc_m_rules_): Save start time in a file.
20956         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20957         (local-check): Interpose the .z rules
20958
20959 2010-04-11  Jim Meyering  <meyering@redhat.com>
20960
20961         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20962         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20963         empty file with one that ends in an empty line.
20964
20965 2010-04-10  Bruno Haible  <bruno@clisp.org>
20966
20967         mkdir: Make it work on mingw64.
20968         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20969         * lib/mkdir.c: Update comment.
20970         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20971
20972 2010-04-10  Bruno Haible  <bruno@clisp.org>
20973
20974         Don't override improved macro from newer autoconf.
20975         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20976         autoconf >= 2.62.
20977         Reported by Joel E. Denny <jdenny@clemson.edu>.
20978
20979 2010-04-10  Jim Meyering  <meyering@redhat.com>
20980
20981         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20982         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20983
20984         maint.mk: correct a diagnostic
20985         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20986         in diagnostic; now use $prohibit.
20987
20988 2010-04-10  Bruno Haible  <address@hidden>
20989
20990         fchownat: Fix a C++ test error on Solaris 8.
20991         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20992         the function does not exist.
20993
20994 2010-04-10  Bruno Haible  <bruno@clisp.org>
20995
20996         vasnprintf: Add more tests.
20997         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20998         (test_function): Test converting an invalid wide string.
20999
21000         vasnprintf: Correct handling of unconvertible wide string arguments.
21001         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
21002         VASNPRINTF.
21003         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
21004         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
21005         smaller than the expected maximum need for the directive. Set errno to
21006         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
21007         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
21008         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
21009         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
21010         * modules/vasnprintf (Files): Add m4/printf.m4.
21011         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21012
21013 2010-04-10  Bruno Haible  <bruno@clisp.org>
21014
21015         vasnprintf: Fix crash in %ls directive.
21016         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
21017         string is passed as argument to %ls, with no precision and no width.
21018         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21019
21020 2010-04-10  Bruno Haible  <bruno@clisp.org>
21021
21022         vasnprintf: Fix multiple test failures on mingw.
21023         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
21024         _snprintf, or snwprintf, not _snwprintf.
21025
21026 2010-04-10  Bruno Haible  <bruno@clisp.org>
21027
21028         write: Fix a C++ test error on mingw.
21029         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
21030
21031 2010-04-10  Bruno Haible  <bruno@clisp.org>
21032
21033         vasnprintf test: Reduce code duplication.
21034         * tests/test-vasnprintf.c (test_function): New function, extracted from
21035         test_vasnprintf.
21036         (test_vasnprintf, test_asnprintf): Invoke it.
21037
21038 2010-04-10  Bruno Haible  <bruno@clisp.org>
21039
21040         strnlen: Fix warning in C++ mode on MacOS X.
21041         * lib/string.in.h (strnlen): Use the modern idiom.
21042         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
21043         defining strnlen as a macro already in <config.h>.
21044         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21045         REPLACE_STRNLEN.
21046         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
21047         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21048
21049 2010-04-08  James Youngman  <jay@gnu.org>
21050
21051         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
21052         the example.
21053
21054 2010-04-09  Jim Meyering  <meyering@redhat.com>
21055
21056         maint.mk: print better diagnostic when there is no $(_hv_file)
21057         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
21058         announce that when $(_hv_file) (aka help-version) does not exist.
21059
21060         init.sh: run tr in the "C" locale to avoid multibyte interpretation
21061         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
21062         not try to interpret its random input bytes.  Jarno Rajahalme reported
21063         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
21064         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
21065         (mktempd_): Likewise, just in case.
21066
21067         ftruncate: add two years to projected module removal date: 2012
21068         * m4/ftruncate.m4: Adjust comments.
21069
21070         ftruncate: mark module as obsolete; even MinGW provides it, now
21071         * modules/ftruncate (Status): Obsolete.
21072         (Notice): Say that.
21073         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
21074         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
21075
21076 2010-04-08  Bruno Haible  <bruno@clisp.org>
21077
21078         Fix side effects from tests-related modules.
21079         * modules/dprintf-posix (Comment): New section.
21080         * modules/fprintf-posix (Comment): Likewise.
21081         * modules/obstack-printf-posix (Comment): Likewise.
21082         * modules/printf-posix (Comment): Likewise.
21083         * modules/snprintf-posix (Comment): Likewise.
21084         * modules/sprintf-posix (Comment): Likewise.
21085         * modules/vasnprintf-posix (Comment): Likewise.
21086         * modules/vasprintf-posix (Comment): Likewise.
21087         * modules/vdprintf-posix (Comment): Likewise.
21088         * modules/vfprintf-posix (Comment): Likewise.
21089         * modules/vprintf-posix (Comment): Likewise.
21090         * modules/vsnprintf-posix (Comment): Likewise.
21091         * modules/vsprintf-posix (Comment): Likewise.
21092         * modules/xprintf-posix (Comment): Likewise.
21093         * modules/xvasprintf-posix (Comment): Likewise.
21094         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
21095         * modules/floorf-tests (Depends-on): Likewise.
21096         * modules/round-tests (Depends-on): Likewise.
21097         * modules/roundf-tests (Depends-on): Likewise.
21098         * modules/trunc-tests (Depends-on): Likewise.
21099         * modules/truncf-tests (Depends-on): Likewise.
21100         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
21101         'fprintf-posix' module is not present.
21102         * tests/test-floorf2.c (check): Likewise.
21103         * tests/test-trunc2.c (check): Likewise.
21104         * tests/test-truncf2.c (check): Likewise.
21105         * tests/test-round2.c (equal): Likewise.
21106         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21107
21108 2010-04-07  Karl Berry  <karl@gnu.org>
21109
21110         * config/srclist.txt,
21111         * config/srclistvars.sh,
21112         * config/srclist-update: doc fixes.
21113
21114 2010-04-07  Jim Meyering  <meyering@redhat.com>
21115
21116         maint.mk: add a PATH crosschecking syntax-check rule
21117         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
21118         Useful if you use a test like the one in help-version (coreutils,
21119         diffutils, grep, gzip) that ensures $(VERSION) matches what is
21120         printed by prog --version.
21121
21122 2010-04-06  Bruno Haible  <bruno@clisp.org>
21123
21124         Fix link error on mingw.
21125         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
21126         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
21127
21128 2010-04-06  Bruno Haible  <bruno@clisp.org>
21129
21130         Assume rmdir exists.
21131         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
21132
21133 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
21134
21135         doc: update users.txt
21136         * users.txt: Add gcal.
21137
21138 2010-04-06  Jim Meyering  <meyering@redhat.com>
21139
21140         init.sh: simply unset TMPDIR rather than risking env -i
21141         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
21142         although it probably works fine on all Unix-based systems, some
21143         systems (Cygwin?) cannot tolerate a totally cleared environment.
21144         Suggestion from Eric Blake.
21145
21146 2010-04-06  Jim Meyering  <meyering@redhat.com>
21147
21148         init.sh: portability fix: use env's POSIX-specified -i option not -u
21149         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
21150         than unportable env -u.  Solaris 5.11's env lacks support for -u.
21151
21152 2010-04-05  Bruno Haible  <bruno@clisp.org>
21153
21154         btowc: Work around Cygwin 1.7.2 bug.
21155         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
21156         does not map NUL to 0.
21157         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
21158
21159 2010-04-05  Bruno Haible  <bruno@clisp.org>
21160
21161         Make the multithread modules work on Cygwin 1.7.2.
21162         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
21163         imported symbols can be declared weak, so that it returns "no" on
21164         Cygwin 1.7.2.
21165
21166 2010-04-05  Bruno Haible  <bruno@clisp.org>
21167
21168         Use the module 'strncat'.
21169         * modules/unistr/u8-strncat (Depends-on): Add strncat.
21170
21171         Tests for module 'strncat'.
21172         * modules/strncat-tests: New file.
21173         * tests/test-strncat.c: New file.
21174
21175         New module 'strncat'.
21176         * lib/string.in.h (strncat): New declaration.
21177         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
21178         * m4/strncat.m4: New file, based on m4/memchr.m4.
21179         * modules/strncat: New file.
21180         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
21181         is declared.
21182         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
21183         REPLACE_STRNCAT.
21184         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
21185         REPLACE_STRNCAT.
21186         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
21187         module.
21188         * tests/test-string-c++.cc: Check signature of strncat.
21189
21190 2010-04-05  Jim Meyering  <meyering@redhat.com>
21191
21192         xstrtoumax-tests: convert to use init.sh
21193         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
21194         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21195         Use Exit, not exit.
21196         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21197
21198         xstrtoimax-tests: convert to use init.sh
21199         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
21200         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21201         Use Exit, not exit.
21202         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21203
21204 2010-04-05  Bruno Haible  <bruno@clisp.org>
21205
21206         sys_socket: Avoid #define replacements in C++ mode.
21207         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
21208         warning to the function if possible, rather than #defining the symbol
21209         to a dysfunctional alias.
21210
21211 2010-04-05  Bruno Haible  <bruno@clisp.org>
21212
21213         fseeko: Fix C++ test error on mingw.
21214         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
21215         gl_FUNC_FSEEKO.
21216         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
21217         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
21218         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
21219         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
21220
21221 2010-04-05  Bruno Haible  <bruno@clisp.org>
21222
21223         duplocale: Improve test output.
21224         * tests/test-duplocale.c (main): Print reason for skipped test.
21225
21226 2010-04-05  Bruno Haible  <bruno@clisp.org>
21227
21228         Assume rmdir exists.
21229         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
21230         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
21231
21232 2010-04-05  Bruno Haible  <bruno@clisp.org>
21233
21234         Fix link error on Solaris 8 with cc.
21235         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
21236
21237 2010-04-05  Bruno Haible  <bruno@clisp.org>
21238
21239         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21240         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21241
21242 2010-04-05  Bruno Haible  <bruno@clisp.org>
21243
21244         vasprintf: Update documentation.
21245         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
21246
21247 2010-04-05  Bruno Haible  <bruno@clisp.org>
21248
21249         ptsname: Improve test.
21250         * tests/test-ptsname.c (main): Also try the various master names of BSD
21251         systems.
21252
21253 2010-04-05  Bruno Haible  <bruno@clisp.org>
21254
21255         memchr: Avoid a possible C++ test error.
21256         * lib/string.in.h (memchr): Provide declaration if function is missing.
21257         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21258         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21260         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21261
21262 2010-04-05  Bruno Haible  <bruno@clisp.org>
21263
21264         strtok_r: Improve idiom.
21265         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21266         AC_LIBOBJ is used.
21267
21268 2010-04-05  Bruno Haible  <bruno@clisp.org>
21269
21270         strdup: Improve idiom.
21271         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21272         AC_LIBOBJ is used.
21273         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21274         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21275         when AC_LIBOBJ is used.
21276
21277 2010-04-05  Bruno Haible  <bruno@clisp.org>
21278
21279         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21280         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21281         don't set REPLACE_MBSINIT to 1.
21282         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21283         don't set REPLACE_MBRTOWC to 1.
21284         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21285         exist, don't set REPLACE_MBSRTOWCS to 1.
21286         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21287         exist, don't set REPLACE_MBSNRTOWCS to 1.
21288         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21289         don't set REPLACE_WCRTOMB to 1.
21290         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21291         exist, don't set REPLACE_WCSRTOMBS to 1.
21292         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21293         exist, don't set REPLACE_WCSNRTOMBS to 1.
21294
21295 2010-04-05  Bruno Haible  <bruno@clisp.org>
21296
21297         ldexpl: Improve idiom.
21298         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21299         make sure to set HAVE_DECL_LDEXPL to 0.
21300
21301 2010-04-05  Jim Meyering  <meyering@redhat.com>
21302
21303         xstrtol-tests: convert to use init.sh
21304         * modules/xstrtol-tests (Files): Add tests/init.sh.
21305         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21306         Use Exit, not exit.
21307         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21308
21309         atexit-tests: convert to use init.sh
21310         * modules/atexit-tests (Files): Add tests/init.sh.
21311         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21312         Use Exit, not exit.
21313         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21314
21315         init.sh: fix typo
21316         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21317
21318         init.sh: make it easier for a test script to write to the tty, ...
21319         when using automake's parallel-tests mode.
21320         * tests/init.sh (stderr_fileno_): Define overridable variable.
21321         (warn_): New function, to use it.
21322         (fail_, skip_, framework_failure_): Use warn_.
21323
21324 2010-04-04  Bruno Haible  <bruno@clisp.org>
21325
21326         btowc: Avoid warning.
21327         * lib/btowc.c: Include <stdlib.h>.
21328         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21329
21330 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21331             Bruno Haible  <bruno@clisp.org>
21332
21333         wchar: Port to NetBSD 1.5.
21334         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21335         * lib/wctype.in.h (WEOF): Likewise.
21336
21337 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21338             Bruno Haible  <bruno@clisp.org>
21339
21340         Port extended stdio to NetBSD 1.5.
21341         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21342         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21343         older.
21344
21345 2010-04-04  Bruno Haible  <bruno@clisp.org>
21346
21347         string: Remove unused substitution.
21348         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21349         HAVE_DECL_STRERROR.
21350         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21351
21352 2010-04-04  Bruno Haible  <bruno@clisp.org>
21353
21354         strtod: Avoid a possible C++ test error.
21355         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21356         set REPLACE_STRTOD.
21357
21358 2010-04-04  Bruno Haible  <bruno@clisp.org>
21359
21360         strerror: Update documentation.
21361         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21362
21363 2010-04-04  Bruno Haible  <bruno@clisp.org>
21364
21365         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21366         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21367         _GL_CXXALIAS_SYS_CAST.
21368
21369 2010-04-04  Bruno Haible  <bruno@clisp.org>
21370
21371         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21372         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21373         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21374         REPLACE_FREXPL to 1.
21375         * doc/posix-functions/frexpl.texi: Update documentation.
21376
21377 2010-04-04  Bruno Haible  <bruno@clisp.org>
21378
21379         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21380         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21381
21382 2010-04-04  Bruno Haible  <bruno@clisp.org>
21383
21384         Implement nanosleep for native Windows.
21385         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21386
21387 2010-04-04  Bruno Haible  <bruno@clisp.org>
21388
21389         math: Fix some C++ test errors on Solaris 8.
21390         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21391
21392 2010-04-04  Bruno Haible  <bruno@clisp.org>
21393
21394         math: Fix some C++ test errors on Cygwin.
21395         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21396         truncl): Provide declaration if the system does not have it.
21397         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
21398         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
21399         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
21400         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
21401         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
21402         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
21403         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
21404         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
21405         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
21406         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
21407         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
21408         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
21409         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
21410         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
21411         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
21412         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
21413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
21414         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21415         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21416         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
21417         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21418         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21419
21420 2010-04-04  Bruno Haible  <bruno@clisp.org>
21421
21422         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
21423         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21424         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21425         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21426         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21427         * m4/isinf.m4 (gl_ISINF): Likewise.
21428         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21429
21430 2010-04-04  Bruno Haible  <bruno@clisp.org>
21431
21432         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
21433         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21434
21435 2010-04-04  Bruno Haible  <bruno@clisp.org>
21436
21437         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
21438         * modules/tmpfile (configure.ac): Update.
21439
21440         tmpfile: Fix C++ test error on mingw.
21441         * lib/stdio.in.h (tmpfile): New declaration.
21442         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
21443         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
21444         * modules/tmpfile (Depends-on): Add stdio.
21445         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21446         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
21447         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
21448         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
21449         REPLACE_TMPFILE.
21450         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
21451
21452 2010-04-04  Bruno Haible  <bruno@clisp.org>
21453
21454         ioctl: Fix C++ test error on mingw.
21455         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
21456         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
21457         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
21458
21459 2010-04-03  Bruno Haible  <bruno@clisp.org>
21460
21461         wcwidth: Fix C++ test error on mingw.
21462         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
21463         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
21464         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
21465
21466 2010-04-03  Bruno Haible  <bruno@clisp.org>
21467
21468         nanosleep: Fix C++ test error on mingw.
21469         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
21470         * lib/time.in.h (nanosleep): Use modern idiom.
21471         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
21472         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
21473         REPLACE_NANOSLEEP to 1.
21474         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
21475         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
21476
21477 2010-04-03  Bruno Haible  <bruno@clisp.org>
21478
21479         strptime: Fix C++ test error on mingw.
21480         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21481         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21482         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21483         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21484         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21485         not REPLACE_STRPTIME.
21486         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21487         REPLACE_STRPTIME.
21488
21489 2010-04-03  Bruno Haible  <bruno@clisp.org>
21490
21491         timegm: Fix C++ test error on mingw.
21492         * lib/time.in.h (timegm): Use modern idiom.
21493         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21494         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21495         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21496         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21497
21498 2010-04-03  Bruno Haible  <bruno@clisp.org>
21499
21500         timegm: Assume declaration if function exists.
21501         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21502         if it exists. Don't clobber ac_cv_func_timegm.
21503
21504 2010-04-03  Bruno Haible  <bruno@clisp.org>
21505
21506         time_r: Fix C++ test error on mingw.
21507         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21508         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21509         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21510         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21511         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21512
21513 2010-04-03  Bruno Haible  <bruno@clisp.org>
21514
21515         time_r: Minor updates.
21516         * modules/time_r (Description): Mention the provided functions.
21517         * lib/time_r.c: Don't include <string.h>.
21518         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21519         * doc/posix-functions/localtime_r.texi: Likewise.
21520
21521 2010-04-03  Bruno Haible  <bruno@clisp.org>
21522
21523         time: Fix regression introduced on 2010-03-08.
21524         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21525         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21526
21527 2010-04-03  Jim Meyering  <meyering@redhat.com>
21528
21529         maint.mk: don't silently disable project-specific syntax-check rules
21530         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21531         that they need to convert their project-specific syntax-check rules
21532         to use the new _sc_search_regexp.
21533
21534 2010-04-03  Bruno Haible  <bruno@clisp.org>
21535
21536         fchdir: Fix regression introduced on 2010-03-08.
21537         * lib/unistd.in.h (fchdir): Fix declaration.
21538         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21540         REPLACE_FCHDIR.
21541         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21542         REPLACE_FCHDIR.
21543
21544 2010-04-03  Bruno Haible  <bruno@clisp.org>
21545
21546         getpagesize: Fix C++ test error on mingw.
21547         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21548         system does not declare the function.
21549         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21550         declared.
21551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21552         HAVE_DECL_GETPAGESIZE.
21553         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21554
21555 2010-04-03  Bruno Haible  <bruno@clisp.org>
21556
21557         stdio: Make C++ tests work on mingw.
21558         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21559         does not declare the function.
21560
21561 2010-04-03  Bruno Haible  <bruno@clisp.org>
21562
21563         ftello: Fix C++ test error on mingw.
21564         * lib/stdio.in.h (ftello): Use modern idiom.
21565         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21566         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21567         is missing and that it needs to be replaced.
21568         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21570         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21571
21572 2010-04-03  Bruno Haible  <bruno@clisp.org>
21573
21574         fseeko: Fix C++ test error on mingw.
21575         * lib/stdio.in.h (fseeko): Use modern idiom.
21576         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21577         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21578         is missing and that it needs to be replaced.
21579         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21581         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21582
21583 2010-04-03  Bruno Haible  <bruno@clisp.org>
21584
21585         mkstemp: Fix C++ test error on mingw.
21586         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21587         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21588         function is missing and that it needs to be replaced.
21589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21590         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21591
21592 2010-04-03  Bruno Haible  <bruno@clisp.org>
21593
21594         stpncpy: Fix C++ test error on mingw.
21595         * lib/string.in.h (stpncpy): Use modern idiom.
21596         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21597         function is missing and that it needs to be replaced.
21598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21599         REPLACE_STPNCPY.
21600         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21601
21602 2010-04-03  Bruno Haible  <bruno@clisp.org>
21603
21604         sys_stat: Fix C++ test error on mingw.
21605         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21606         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21607
21608 2010-04-03  Bruno Haible  <bruno@clisp.org>
21609
21610         pty: Update doc.
21611         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21612
21613 2010-04-03  Bruno Haible  <bruno@clisp.org>
21614
21615         unistd: Fix C++ test error on mingw.
21616         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21617
21618 2010-04-03  Bruno Haible  <bruno@clisp.org>
21619
21620         Update doc regarding mingw.
21621         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21622         * doc/glibc-functions/login_tty.texi: Likewise.
21623         * doc/glibc-functions/forkpty.texi: Likewise.
21624
21625 2010-04-03  Bruno Haible  <bruno@clisp.org>
21626
21627         stdlib: Avoid compilation failure of c-strtold on mingw.
21628         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21629
21630 2010-04-03  Bruno Haible  <bruno@clisp.org>
21631
21632         locale: Make C++ tests work on Cygwin and mingw.
21633         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21634         cannot provide the function.
21635         Reported by Simon Josefsson.
21636
21637 2010-04-03  Bruno Haible  <bruno@clisp.org>
21638
21639         localename: Port to MacOS X 10.6.
21640         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21641         memory layout of the locales in MacOS X 10.6 as well.
21642         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21643
21644 2010-04-02  Bruno Haible  <bruno@clisp.org>
21645
21646         gnulib-tool: Ensure that long-running tests are executed last.
21647         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21648         running tests after the one for the other tests.
21649
21650 2010-04-02  Bruno Haible  <bruno@clisp.org>
21651
21652         gnulib-tool: Ensure the tests in the main directory are executed first.
21653         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21654         start with the current directory.
21655
21656 2010-04-02  Bruno Haible  <bruno@clisp.org>
21657
21658         Tests for module 'havelib', moved here from GNU gettext.
21659         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21660         modifications.
21661         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21662         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21663         with modifications.
21664         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21665         modifications.
21666         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21667         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21668         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21669         with modifications.
21670         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21671         with modifications.
21672         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21673         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21674         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21675         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21676         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21677         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21678         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21679         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21680         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21681         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21682         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21683         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21684         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21685         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21686         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21687         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21688         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21689         with modifications.
21690         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21691         with modifications.
21692         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21693         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21694         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21695         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21696         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21697         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21698         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21699         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21700         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21701         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21702         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21703         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21704         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21705         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21706         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21707         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21708         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21709         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21710         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21711         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21712         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21713         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21714         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21715         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21716         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21717         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21718         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21719         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21720         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21721         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21722         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21723         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21724         * tests/havelib/rpathx/rpathx.c: New file, from
21725         gettext/autoconf-lib-link.
21726         * tests/havelib/rpathx/Makefile.am: New file, from
21727         gettext/autoconf-lib-link.
21728         * tests/havelib/rpathx/configure.ac: New file, from
21729         gettext/autoconf-lib-link with modifications.
21730         * tests/havelib/rpathy/rpathy.c: New file, from
21731         gettext/autoconf-lib-link.
21732         * tests/havelib/rpathy/Makefile.am: New file, from
21733         gettext/autoconf-lib-link.
21734         * tests/havelib/rpathy/configure.ac: New file, from
21735         gettext/autoconf-lib-link with modifications.
21736         * tests/havelib/rpathz/rpathz.c: New file, from
21737         gettext/autoconf-lib-link.
21738         * tests/havelib/rpathz/Makefile.am: New file, from
21739         gettext/autoconf-lib-link.
21740         * tests/havelib/rpathz/configure.ac: New file, from
21741         gettext/autoconf-lib-link with modifications.
21742         * tests/havelib/rpathlx/usex.c: New file, from
21743         gettext/autoconf-lib-link.
21744         * tests/havelib/rpathlx/Makefile.am: New file, from
21745         gettext/autoconf-lib-link.
21746         * tests/havelib/rpathlx/configure.ac: New file, from
21747         gettext/autoconf-lib-link with modifications.
21748         * tests/havelib/rpathly/usey.c: New file, from
21749         gettext/autoconf-lib-link.
21750         * tests/havelib/rpathly/Makefile.am: New file, from
21751         gettext/autoconf-lib-link.
21752         * tests/havelib/rpathly/configure.ac: New file, from
21753         gettext/autoconf-lib-link with modifications.
21754         * tests/havelib/rpathlz/usez.c: New file, from
21755         gettext/autoconf-lib-link.
21756         * tests/havelib/rpathlz/Makefile.am: New file, from
21757         gettext/autoconf-lib-link.
21758         * tests/havelib/rpathlz/configure.ac: New file, from
21759         gettext/autoconf-lib-link with modifications.
21760         * tests/havelib/rpathlyx/usey.c: New file, from
21761         gettext/autoconf-lib-link.
21762         * tests/havelib/rpathlyx/Makefile.am: New file, from
21763         gettext/autoconf-lib-link.
21764         * tests/havelib/rpathlyx/configure.ac: New file, from
21765         gettext/autoconf-lib-link with modifications.
21766         * tests/havelib/rpathlzyx/usez.c: New file, from
21767         gettext/autoconf-lib-link.
21768         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21769         gettext/autoconf-lib-link.
21770         * tests/havelib/rpathlzyx/configure.ac: New file, from
21771         gettext/autoconf-lib-link with modifications.
21772         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21773         with modifications.
21774
21775 2010-04-02  Bruno Haible  <bruno@clisp.org>
21776
21777         gnulib-tool: Create distributed built sources also for the tests.
21778         * gnulib-tool (func_create_testdir): Also generate distributed built
21779         sources in the tests directory.
21780
21781 2010-04-02  Bruno Haible  <bruno@clisp.org>
21782
21783         gnulib-tool: Obey user's environment variables.
21784         * gnulib-tool (func_create_testdir): When creating built sources,
21785         respect the environment variables for autoconf, automake, etc. given by
21786         the user.
21787
21788 2010-04-02  Bruno Haible  <bruno@clisp.org>
21789
21790         gnulib-tool: Provide the value of --m4-base to modules.
21791         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21792         of gl_m4_base.
21793
21794 2010-04-02  Eric Blake  <eblake@redhat.com>
21795
21796         maint.mk: fix some fallout
21797         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21798         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21799
21800 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21801
21802         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21803         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21804         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21805         (sc_cast_of_x_alloc_return_value): Likewise.
21806         (sc_cast_of_alloca_return_value): Likewise.
21807         (sc_space_tab): Likewise.
21808         (sc_prohibit_atoi_atof): Likewise.
21809         (sc_prohibit_magic_number_exit): Likewise.
21810         (sc_error_exit_success): Likewise.
21811         (sc_file_system): Likewise.
21812         (sc_prohibit_have_config_h): Likewise.
21813         (sc_require_config_h): Likewise.
21814         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21815         (sc_obsolete_symbols): Likewise.
21816         (sc_changelog): Likewise.
21817         (sc_program_name): Likewise.
21818         (sc_the_the): Likewise.
21819         (sc_trailing_blank): Likewise.
21820         (sc_two_space_separator_in_usage): Likewise.
21821         (sc_useless_cpp_parens): Likewise.
21822         (sc_GPL_version): Likewise.
21823         (sc_GFDL_version): Likewise.
21824         (sc_texinfo_acronym): Likewise.
21825         (sc_prohibit_cvs_keyword): Likewise.
21826         (sc_prohibit_stat_st_blocks): Likewise.
21827         (sc_prohibit_S_IS_definition): Likewise.
21828         (sc_redundant_const): Likewise.
21829         (sc_makefile_TAB_only_indentation): Likewise.
21830         (sc_m4_quote_check): Likewise.
21831         (sc_makefile_path_separator_check): Likewise.
21832         (sc_copyright_check): Likewise.
21833         (sc_Wundef_boolean): Likewise.
21834         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21835
21836         maint.mk: match 0 or more whitespace-before-function-call '('
21837         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21838         that have zero or two-and-more spaces between the function name
21839         and the open parenthesis.
21840         (sc_error_message_warn_fatal): Likewise.
21841         (sc_error_message_uppercase): Likewise.
21842         (sc_error_message_period): Likewise.
21843
21844 2010-03-31  Eric Blake  <eblake@redhat.com>
21845
21846         maint.mk: check for [ as well as test
21847         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21848         Based on a libvirt report by Matthias Bolte.
21849
21850         gnumakefile: don't squelch _version output
21851         * top/GNUmakefile (_version): Create one-shot dependency rather
21852         than using $(shell) when version must be regenerated.
21853         (_autoreconf): Run verbosely, by default.
21854
21855         sys_time: avoid compiler warnings
21856         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21857         unconditional, fixing regression from 2010-03-29.
21858         Reported by Simon Josefsson.
21859
21860 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21861
21862         maint.mk: s/_header_without_use/_sc_header_without_use/
21863         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21864         (sc_prohibit_assert_without_use): Use the new name.
21865         (sc_prohibit_close_stream_without_use): Likewise.
21866         (sc_prohibit_getopt_without_use): Likewise.
21867         (sc_prohibit_quotearg_without_use): Likewise.
21868         (sc_prohibit_quote_without_use): Likewise.
21869         (sc_prohibit_long_options_without_use): Likewise.
21870         (sc_prohibit_inttostr_without_use): Likewise.
21871         (sc_prohibit_ignore_value_without_use): Likewise.
21872         (sc_prohibit_error_without_use): Likewise.
21873         (sc_prohibit_xalloc_without_use): Likewise.
21874         (sc_prohibit_hash_without_use): Likewise.
21875         (sc_prohibit_hash_pjw_without_use): Likewise.
21876         (sc_prohibit_safe_read_without_use): Likewise.
21877         (sc_prohibit_argmatch_without_use): Likewise.
21878         (sc_prohibit_canonicalize_without_use): Likewise.
21879         (sc_prohibit_root_dev_ino_without_use): Likewise.
21880         (sc_prohibit_openat_without_use): Likewise.
21881         (sc_prohibit_c_ctype_without_use): Likewise.
21882         (sc_prohibit_signal_without_use): Likewise.
21883         (sc_prohibit_intprops_without_use): Likewise.
21884
21885 2010-03-30  Eric Blake  <eblake@redhat.com>
21886
21887         maint: improve module indicators
21888         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21889         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21890         columns, and avoid extra macro expansion.
21891
21892         fdopendir: work around FreeBSD bug
21893         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21894         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21895         * modules/dirent (Makefile.am): Substitute it.
21896         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21897         declaration.
21898         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21899         fix.
21900         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21901
21902 2010-03-29  Bruno Haible  <bruno@clisp.org>
21903
21904         Emit #pragma system_header after the inclusion guard, not before.
21905         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21906         guard that spans the entire file, not before. This enables an
21907         optimization in GCC's preprocessor.
21908         * lib/ctype.in.h: Likewise.
21909         * lib/dirent.in.h: Likewise.
21910         * lib/errno.in.h: Likewise.
21911         * lib/float.in.h: Likewise.
21912         * lib/getopt.in.h: Likewise.
21913         * lib/iconv.in.h: Likewise.
21914         * lib/langinfo.in.h: Likewise.
21915         * lib/locale.in.h: Likewise.
21916         * lib/math.in.h: Likewise.
21917         * lib/netdb.in.h: Likewise.
21918         * lib/netinet_in.in.h: Likewise.
21919         * lib/pty.in.h: Likewise.
21920         * lib/sched.in.h: Likewise.
21921         * lib/se-selinux.in.h: Likewise.
21922         * lib/search.in.h: Likewise.
21923         * lib/spawn.in.h: Likewise.
21924         * lib/stdarg.in.h: Likewise.
21925         * lib/stdint.in.h: Likewise.
21926         * lib/string.in.h: Likewise.
21927         * lib/strings.in.h: Likewise.
21928         * lib/sys_file.in.h: Likewise.
21929         * lib/sys_ioctl.in.h: Likewise.
21930         * lib/sys_time.in.h: Likewise.
21931         * lib/sys_times.in.h: Likewise.
21932         * lib/sys_utsname.in.h: Likewise.
21933         * lib/sys_wait.in.h: Likewise.
21934         * lib/sysexits.in.h: Likewise.
21935         * lib/wctype.in.h: Likewise.
21936
21937 2010-03-28  James Youngman  <jay@gnu.org>
21938
21939         save-cwd: don't leak a file descriptor when the caller execs.
21940         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21941         saved file descriptor.
21942         * modules/save-cwd (Depends-on): Depend on cloexec.
21943
21944 2010-03-29  Bruno Haible  <bruno@clisp.org>
21945
21946         Remove vestiges of fts-lgpl module.
21947         * lib/fts_.h: Assume GNULIB_FTS is 1.
21948         * lib/fts.c: Likewise.
21949         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21950
21951 2010-03-28  Bruno Haible  <bruno@clisp.org>
21952
21953         Fix definition of tests witness macro.
21954         * gnulib-tool (func_import): Fix definition of witness macro.
21955
21956 2010-03-28  Bruno Haible  <bruno@clisp.org>
21957
21958         Fix ioctl's protoype on glibc systems.
21959         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21960         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21961         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21962         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21963         signature. If not, arrange to replace the ioctl function.
21964         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21965         REPLACE_IOCTL.
21966         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21967         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21968         Reported by Ludovic Courtès <ludo@gnu.org>.
21969
21970 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21971
21972         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21973         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21974         made it so grep -r --include=GLOB* ... did not work.
21975
21976 2010-03-26  Jim Meyering  <meyering@redhat.com>
21977             Eric Blake  <eblake@redhat.com>
21978
21979         maint.mk: prohibit use of test's -o and -a operators
21980         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21981
21982 2010-03-28  Bruno Haible  <bruno@clisp.org>
21983
21984         Remove unused GNULIB_XYZ macro definitions.
21985         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21986         invocation.
21987
21988 2010-03-28  Bruno Haible  <bruno@clisp.org>
21989
21990         Mark privileged tests modules.
21991         * modules/idpriv-drop-tests (Status): New section.
21992         * modules/idpriv-droptemp-tests (Status): New section.
21993
21994 2010-03-28  Bruno Haible  <bruno@clisp.org>
21995
21996         Split C++ tests into separate tests modules.
21997         * modules/dirent-c++-tests: New file, extracted from
21998         modules/dirent-tests.
21999         * modules/dirent-tests: Depend on it.
22000         * modules/fcntl-h-c++-tests: New file, extracted from
22001         modules/fcntl-h-tests.
22002         * modules/fcntl-h-tests: Depend on it.
22003         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
22004         * modules/glob-tests: Depend on it.
22005         * modules/iconv-h-c++-tests: New file, extracted from
22006         modules/iconv-h-tests.
22007         * modules/iconv-h-tests: Depend on it.
22008         * modules/langinfo-c++-tests: New file, extracted from
22009         modules/langinfo-tests.
22010         * modules/langinfo-tests: Depend on it.
22011         * modules/locale-c++-tests: New file, extracted from
22012         modules/locale-tests.
22013         * modules/locale-tests: Depend on it.
22014         * modules/math-c++-tests: New file, extracted from modules/math-tests.
22015         * modules/math-tests: Depend on it.
22016         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
22017         * modules/pty-tests: Depend on it.
22018         * modules/search-c++-tests: New file, extracted from
22019         modules/search-tests.
22020         * modules/search-tests: Depend on it.
22021         * modules/signal-c++-tests: New file, extracted from
22022         modules/signal-tests.
22023         * modules/signal-tests: Depend on it.
22024         * modules/spawn-c++-tests: New file, extracted from
22025         modules/spawn-tests.
22026         * modules/spawn-tests: Depend on it.
22027         * modules/stdio-c++-tests: New file, extracted from
22028         modules/stdio-tests.
22029         * modules/stdio-tests: Depend on it.
22030         * modules/stdlib-c++-tests: New file, extracted from
22031         modules/stdlib-tests.
22032         * modules/stdlib-tests: Depend on it.
22033         * modules/string-c++-tests: New file, extracted from
22034         modules/string-tests.
22035         * modules/string-tests: Depend on it.
22036         * modules/sys_ioctl-c++-tests: New file, extracted from
22037         modules/sys_ioctl-tests.
22038         * modules/sys_ioctl-tests: Depend on it.
22039         * modules/sys_select-c++-tests: New file, extracted from
22040         modules/sys_select-tests.
22041         * modules/sys_select-tests: Depend on it.
22042         * modules/sys_socket-c++-tests: New file, extracted from
22043         modules/sys_socket-tests.
22044         * modules/sys_socket-tests: Depend on it.
22045         * modules/sys_stat-c++-tests: New file, extracted from
22046         modules/sys_stat-tests.
22047         * modules/sys_stat-tests: Depend on it.
22048         * modules/sys_time-c++-tests: New file, extracted from
22049         modules/sys_time-tests.
22050         * modules/sys_time-tests: Depend on it.
22051         * modules/time-c++-tests: New file, extracted from modules/time-tests.
22052         * modules/time-tests: Depend on it.
22053         * modules/unistd-c++-tests: New file, extracted from
22054         modules/unistd-tests.
22055         * modules/unistd-tests: Depend on it.
22056         * modules/wchar-c++-tests: New file, extracted from
22057         modules/wchar-tests.
22058         * modules/wchar-tests: Depend on it.
22059         * modules/wctype-c++-tests: New file, extracted from
22060         modules/wctype-tests.
22061         * modules/wctype-tests: Depend on it.
22062         Reported by Simon Josefsson.
22063
22064 2010-03-28  Bruno Haible  <bruno@clisp.org>
22065
22066         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
22067         * gnulib-tool (func_exists_module): New function, extracted from
22068         func_verify_module.
22069         (func_verify_module): Use it.
22070         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
22071         'foo' only if 'foo' exists.
22072         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
22073         module.
22074
22075 2010-03-28  Bruno Haible  <bruno@clisp.org>
22076
22077         gnulib-tool: Add support for special categories of tests.
22078         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
22079         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
22080         (func_usage): Document them.
22081         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
22082         inc_unportable_tests, inc_all_tests): New variables.
22083         (func_acceptable): Consider these variables.
22084         (func_modules_transitive_closure): Make it work when the 'Status' field
22085         consists of multiple words.
22086         (func_import): Store and restore the values of inc_cxx_tests,
22087         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
22088         inc_all_tests in gnulib-comp.m4.
22089         (func_create_testdir): Set inc_all_tests to true.
22090         * doc/gnulib.texi (Extra tests modules): New section.
22091         Suggested by Jim Meyering.
22092
22093 2010-03-28  Bruno Haible  <bruno@clisp.org>
22094
22095         ansi-c++-opt: Allow turning off the C++ build by default.
22096         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
22097         gl_CXX_CHOICE_DEFAULT_NO is defined.
22098         Requested by Eric Blake.
22099
22100 2010-03-28  Bruno Haible  <bruno@clisp.org>
22101
22102         unistd: Avoid #define replacements in C++ mode.
22103         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
22104         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
22105         setsockopt, shutdown, select): In C++, attach a warning to the function
22106         if possible, rather than #defining the symbol to a dysfunctional alias.
22107         Reported by John W. Eaton <jwe@gnu.org>.
22108
22109 2010-03-28  Bruno Haible  <bruno@clisp.org>
22110
22111         Fix link errors on mingw.
22112         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
22113         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
22114         $(LIBSOCKET).
22115         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
22116         $(LIBSOCKET).
22117
22118 2010-03-28  Bruno Haible  <bruno@clisp.org>
22119             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22120
22121         lib-ignore: Determine different options for different compilers.
22122         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
22123         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
22124         Add comments.
22125         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
22126         * NEWS: Mention the change.
22127
22128 2010-03-27  Bruno Haible  <bruno@clisp.org>
22129
22130         Remove unused GNULIB_XYZ macro definitions.
22131         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22132         * modules/fseek (configure.ac): Likewise.
22133         * modules/ioctl (configure.ac): Likewise.
22134         * modules/open (configure.ac): Likewise.
22135         * modules/stdlib-safer (configure.ac): Likewise.
22136
22137 2010-03-27  Bruno Haible  <bruno@clisp.org>
22138
22139         Add a remark about certain modules.
22140         * modules/malloc (Comment): New section.
22141         * modules/realloc (Comment): Likewise.
22142         * modules/sigpipe (Comment): Likewise.
22143
22144 2010-03-27  Bruno Haible  <bruno@clisp.org>
22145
22146         Resolve conflict between the two kinds of module indicators.
22147         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
22148         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
22149         * modules/canonicalize (configure.ac): Invoke
22150         gl_MODULE_INDICATOR_FOR_TESTS.
22151         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
22152         GNULIB_XYZ.
22153         * tests/test-dirent-c++.cc: Likewise.
22154         * tests/test-dirent-safer.c: Likewise.
22155         * tests/test-dup2.c: Likewise.
22156         * tests/test-fchdir.c: Likewise.
22157         * tests/test-fcntl-h-c++.cc: Likewise.
22158         * tests/test-getopt.c: Likewise.
22159         * tests/test-getopt.h: Likewise.
22160         * tests/test-langinfo-c++.cc: Likewise.
22161         * tests/test-locale-c++.cc: Likewise.
22162         * tests/test-math-c++.cc: Likewise.
22163         * tests/test-pty-c++.cc: Likewise.
22164         * tests/test-search-c++.cc: Likewise.
22165         * tests/test-signal-c++.cc: Likewise.
22166         * tests/test-spawn-c++.cc: Likewise.
22167         * tests/test-stdio-c++.cc: Likewise.
22168         * tests/test-stdlib-c++.cc: Likewise.
22169         * tests/test-string-c++.cc: Likewise.
22170         * tests/test-sys_ioctl-c++.cc: Likewise.
22171         * tests/test-sys_select-c++.cc: Likewise.
22172         * tests/test-sys_socket-c++.cc: Likewise.
22173         * tests/test-sys_stat-c++.cc: Likewise.
22174         * tests/test-sys_time-c++.cc: Likewise.
22175         * tests/test-time-c++.cc: Likewise.
22176         * tests/test-unistd-c++.cc: Likewise.
22177         * tests/test-wchar-c++.cc: Likewise.
22178         * tests/uninorm/test-u8-nfc.c: Likewise.
22179         * tests/uninorm/test-u8-nfd.c: Likewise.
22180         * tests/uninorm/test-u8-nfkc.c: Likewise.
22181         * tests/uninorm/test-u8-nfkd.c: Likewise.
22182         * tests/uninorm/test-u16-nfc.c: Likewise.
22183         * tests/uninorm/test-u16-nfd.c: Likewise.
22184         * tests/uninorm/test-u16-nfkc.c: Likewise.
22185         * tests/uninorm/test-u16-nfkd.c: Likewise.
22186         * tests/uninorm/test-u32-nfc.c: Likewise.
22187         * tests/uninorm/test-u32-nfc-big.c: Likewise.
22188         * tests/uninorm/test-u32-nfd.c: Likewise.
22189         * tests/uninorm/test-u32-nfd-big.c: Likewise.
22190         * tests/uninorm/test-u32-nfkc.c: Likewise.
22191         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
22192         * tests/uninorm/test-u32-nfkd.c: Likewise.
22193         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
22194         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22195
22196 2010-03-27  Bruno Haible  <bruno@clisp.org>
22197
22198         Distinguish two kinds of module indicators.
22199         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
22200         gl_MODULE_INDICATOR.
22201         (gl_MODULE_INDICATOR): New macro.
22202         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22203         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
22204         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22205         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22206         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22207         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22208         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22209         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22210         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22211         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22212         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22213         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22214         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22215         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22216         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22217         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22218         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22219         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22220         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22221         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22222         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22223         * modules/cloexec (configure.ac): Likewise.
22224         * modules/getopt-gnu (configure.ac): Likewise.
22225         * modules/uninorm/u8-normalize (configure.ac): Likewise.
22226         * modules/uninorm/u16-normalize (configure.ac): Likewise.
22227         * modules/uninorm/u32-normalize (configure.ac): Likewise.
22228         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
22229
22230 2010-03-27  Bruno Haible  <bruno@clisp.org>
22231
22232         New module description field 'Comment'.
22233         * gnulib-tool: New option --extract-comment.
22234         (func_usage): Document it.
22235         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
22236         (func_get_comment): New function.
22237         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
22238
22239 2010-03-27  Bruno Haible  <bruno@clisp.org>
22240
22241         Addendum to 2010-02-07 commit.
22242         * gnulib-tool (func_usage): Document --extract-applicability option.
22243
22244 2010-03-27  Bruno Haible  <bruno@clisp.org>
22245
22246         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
22247         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
22248         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
22249         rather than link errors.
22250
22251 2010-03-27  Bruno Haible  <bruno@clisp.org>
22252
22253         Avoid side effects from tests-related modules on the compilation of lib.
22254         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22255         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22256         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22257         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22258         macro.
22259         (func_import): Define a witness macro. Assign it a value that depends
22260         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22261         tests-related modules.
22262         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22263         Reported by Jim Meyering.
22264
22265 2010-03-27  Bruno Haible  <bruno@clisp.org>
22266
22267         Factorize common .m4 code.
22268         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22269         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22270         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22271         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22272         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22273         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22274         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22275         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22276         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22277         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22278         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22279         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22280         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22281         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22282         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22283         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22284         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22285         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22286         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22287         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22288         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22289         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22290         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22291         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22292         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22293         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22294         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22295         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22296         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22297         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22298         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22299         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22300
22301 2010-03-27  Bruno Haible  <bruno@clisp.org>
22302
22303         Fix a compilation error on Cygwin with g++ >= 4.3.
22304         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22305         if it is undefined or if we alias it to chmod.
22306         (lstat): Don't warn about the use of this function if it is undefined
22307         or if we alias it to stat.
22308         Reported by Simon Josefsson.
22309
22310 2010-03-27  Bruno Haible  <bruno@clisp.org>
22311
22312         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22313         * modules/getlogin (configure.ac): Update.
22314
22315         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22316         * modules/getlogin_r (configure.ac): Update.
22317
22318         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22319         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22320         * modules/inet_ntop (configure.ac): Update.
22321
22322         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22323         * modules/inet_pton (configure.ac): Update.
22324
22325         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22326         * modules/mbslen (configure.ac): Update.
22327
22328         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22329         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22330         * modules/forkpty (configure.ac): Update.
22331         * modules/openpty (configure.ac): Update.
22332
22333 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22334
22335         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22336         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22337
22338 2010-03-25  Eric Blake  <eblake@redhat.com>
22339
22340         maint: use pragma consistently across replacement headers
22341         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22342         * lib/dirent.in.h (system_header): Likewise.
22343         * lib/errno.in.h (system_header): Likewise.
22344         * lib/float.in.h (system_header): Likewise.
22345         * lib/getopt.in.h (system_header): Likewise.
22346         * lib/iconv.in.h (system_header): Likewise.
22347         * lib/inttypes.in.h (system_header): Likewise.
22348         * lib/langinfo.in.h (system_header): Likewise.
22349         * lib/locale.in.h (system_header): Likewise.
22350         * lib/math.in.h (system_header): Likewise.
22351         * lib/netdb.in.h (system_header): Likewise.
22352         * lib/netinet_in.in.h (system_header): Likewise.
22353         * lib/pty.in.h (system_header): Likewise.
22354         * lib/sched.in.h (system_header): Likewise.
22355         * lib/se-selinux.in.h (system_header): Likewise.
22356         * lib/search.in.h (system_header): Likewise.
22357         * lib/spawn.in.h (system_header): Likewise.
22358         * lib/stdarg.in.h (system_header): Likewise.
22359         * lib/stdint.in.h (system_header): Likewise.
22360         * lib/string.in.h (system_header): Likewise.
22361         * lib/strings.in.h (system_header): Likewise.
22362         * lib/sys_file.in.h (system_header): Likewise.
22363         * lib/sys_ioctl.in.h (system_header): Likewise.
22364         * lib/sys_socket.in.h (system_header): Likewise.
22365         * lib/sys_times.in.h (system_header): Likewise.
22366         * lib/sys_utsname.in.h (system_header): Likewise.
22367         * lib/sys_wait.in.h (system_header): Likewise.
22368         * lib/sysexits.in.h (system_header): Likewise.
22369         * lib/unistd.in.h (system_header): Likewise.
22370         * lib/wctype.in.h (system_header): Likewise.
22371
22372         arpa/inet: fix mingw compilation warning
22373         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22374         Reported by Matthew Bolte.
22375
22376 2010-03-25  Bruno Haible  <bruno@clisp.org>
22377
22378         Avoid collision between gnulib wrapper and libintl wrapper.
22379         * lib/printf.c (printf): Don't define if a printf wrapper is already
22380         defined in intl/printf.c.
22381         Reported by Michel Boaventura <michel@michelboaventura.com>.
22382
22383 2010-03-25  Bruno Haible  <bruno@clisp.org>
22384
22385         Use ANSI C.
22386         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22387
22388 2010-03-25  Bruno Haible  <bruno@clisp.org>
22389
22390         Minor formatting changes.
22391         * lib/acosl.c: Insert space before function argument list.
22392         * lib/argz.c: Likewise.
22393         * lib/asinl.c: Likewise.
22394         * lib/expl.c: Likewise.
22395         * lib/gen-uni-tables.c: Likewise.
22396         * lib/gettext.h: Likewise.
22397         * lib/glthread/lock.h: Likewise.
22398         * lib/tanl.c: Likewise.
22399         * lib/uniname/uniname.c: Likewise.
22400         * tests/test-idpriv-drop.c: Likewise.
22401         * tests/test-idpriv-droptemp.c: Likewise.
22402         * tests/test-lock.c: Likewise.
22403         * tests/test-tls.c: Likewise.
22404         * lib/argp-help.c: Insert space before function-like macro argument
22405         list.
22406         * lib/memcmp.c: Likewise.
22407         * tests/test-base64.c: Likewise.
22408         * lib/localename.c: Insert space before sizeof's argument list.
22409         * lib/safe-alloc.h: Likewise.
22410         * lib/file-set.h: Insert space before macro argument list.
22411         * tests/test-argp.c: Likewise.
22412         * lib/argp-namefrob.h: Insert space before function parameter list.
22413         * lib/getaddrinfo.c: Likewise.
22414         * lib/netdb.in.h: Likewise.
22415         * lib/parse-duration.h: Likewise.
22416         * lib/parse-duration.c: Likewise.
22417         * lib/poll.c: Likewise.
22418         * lib/select.c: Likewise.
22419         * lib/trim.h: Likewise.
22420         * tests/test-usleep.c: Likewise.
22421         * lib/ldexpl.c: Insert space before function parameter list and before
22422         function argument list.
22423         * lib/logl.c: Likewise.
22424         * lib/sqrtl.c: Likewise.
22425         * lib/trim.c: Likewise.
22426         * lib/cosl.c: Use GNU style indentation. Insert space before function
22427         argument list.
22428         * lib/sinl.c: Likewise.
22429         * lib/tsearch.c: Insert space after 'for'.
22430         Reported by Jim Meyering.
22431
22432 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
22433
22434         * maint.mk (sc_Wundef_boolean): Check for the presence of the
22435         config header before grepping, as it's not present before
22436         autoreconf/configure are run.  Reported by Simon Josefsson.
22437
22438 2010-03-23  Bruno Haible  <bruno@clisp.org>
22439
22440         pt_chown: Make it work with automake < 1.11.
22441         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
22442         Reported by Simon Josefsson.
22443
22444 2010-03-23  Bruno Haible  <bruno@clisp.org>
22445
22446         pt_chown: Don't depend on GPLed modules.
22447         * lib/pt_chown.c: Don't include idpriv.h.
22448         (main): Don't drop privileges.
22449         * modules/pt_chown (Depends-on): Remove idpriv-drop.
22450         Reported by Simon Josefsson.
22451
22452 2010-03-24  Simon Josefsson  <simon@josefsson.org>
22453
22454         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
22455         suggestions from karl@freefriends.org (Karl Berry).
22456
22457 2010-03-22  Eric Blake  <eblake@redhat.com>
22458
22459         gethostname: further tweaks
22460         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
22461         are overriding gethostname.
22462         Suggested by Bruno Haible.
22463
22464 2010-03-21  Bruno Haible  <bruno@clisp.org>
22465
22466         Fix comments.
22467         * lib/forkpty.c (rpl_forkpty): Fix comment.
22468         * lib/openpty.c (rpl_openpty): Likewise.
22469         Reported by Eric Blake.
22470
22471 2010-03-22  Eric Blake  <eblake@redhat.com>
22472
22473         gethostname: fix build on mingw
22474         * lib/unistd.in.h (includes): Work around fact that mingw
22475         <winsock2.h> re-includes <unistd.h>, by avoiding any
22476         redeclarations if we are being included by <winsock2.h>.
22477         Reported by Matthias Bolte.
22478
22479 2010-03-21  Bruno Haible  <bruno@clisp.org>
22480
22481         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22482         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22483         modifications.
22484         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22485         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22486         provide the replacement.
22487         * modules/forkpty (Depends-on): Add openpty, login_tty.
22488         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22489         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22490         * doc/glibc-functions/forkpty.texi: More supported platforms.
22491         * config/srclist.txt: Add forkpty.c (commented).
22492
22493 2010-03-21  Bruno Haible  <bruno@clisp.org>
22494
22495         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22496         (Makefile.am): Verify that PTY_LIB is defined.
22497
22498         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22499
22500 2010-03-21  Bruno Haible  <bruno@clisp.org>
22501
22502         Tests for module 'login_tty'.
22503         * modules/login_tty-tests: New file.
22504         * tests/test-login_tty.c: New file.
22505
22506         New module 'login_tty'.
22507         * lib/login_tty.c: New file.
22508         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22509         * modules/login_tty: New file.
22510         * doc/glibc-functions/login_tty.texi: Mention the new module.
22511
22512 2010-03-21  Bruno Haible  <bruno@clisp.org>
22513
22514         login_tty: Documentation.
22515         * doc/glibc-functions/login_tty.texi: New file.
22516         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22517
22518 2010-03-21  Bruno Haible  <bruno@clisp.org>
22519
22520         pty: Consistent macro naming.
22521         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22522         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22523         * modules/pty (configure.ac): Update.
22524
22525 2010-03-21  Bruno Haible  <bruno@clisp.org>
22526
22527         Tests for openpty: Make stricter.
22528         * tests/test-openpty.c (main): Add test of canonical processing and
22529         erase.
22530         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22531
22532         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22533         * lib/openpty.c (openpty): New replacement function.
22534         * lib/pty.in.h: Include <termios.h>.
22535         (openpty): Update declaration. Add comments.
22536         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22537         is not declared, arrange to provide the replacement. Check for _getpty
22538         and posix_openpt.
22539         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22540         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22541         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22542         * modules/pty-tests (test_pty_c___LDADD): New variable.
22543         * doc/glibc-functions/openpty.texi: More supported platforms.
22544
22545 2010-03-21  Bruno Haible  <bruno@clisp.org>
22546
22547         setenv: Tweaks.
22548         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22549         the test program.
22550         * doc/posix-functions/setenv.texi: Update platforms list.
22551
22552 2010-03-21  Bruno Haible  <bruno@clisp.org>
22553
22554         New module 'unlockpt'.
22555         * lib/unlockpt.c: New file, from glibc with modifications.
22556         * m4/unlockpt.m4: New file.
22557         * modules/unlockpt: New file.
22558         * lib/stdlib.in.h (unlockpt): New declaration.
22559         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22560         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22561         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22562         HAVE_UNLOCKPT.
22563         * doc/posix-functions/unlockpt.texi: Mention the new module.
22564         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22565         * config/srclist.txt: Add unlockpt.c (commented).
22566
22567 2010-03-21  Jim Meyering  <meyering@redhat.com>
22568
22569         maint.mk: prohibit inclusion of "intprops.h" without use
22570         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22571
22572 2010-03-21  Bruno Haible  <bruno@clisp.org>
22573
22574         New module 'grantpt'.
22575         * lib/grantpt.c: New file, from glibc with modifications.
22576         * m4/grantpt.m4: New file.
22577         * modules/grantpt: New file.
22578         * lib/stdlib.in.h (grantpt): New declaration.
22579         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22580         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22581         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22582         HAVE_GRANTPT.
22583         * doc/posix-functions/grantpt.texi: Mention the new module.
22584         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22585         * config/srclist.txt: Add grantpt.c (commented).
22586
22587 2010-03-21  Bruno Haible  <bruno@clisp.org>
22588
22589         New module 'pt_chown'.
22590         * lib/pt_chown.c: New file, from glibc with modifications.
22591         * lib/pty-private.h: New file, from glibc with modifications.
22592         * modules/pt_chown: New file.
22593         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22594
22595 2010-03-21  Bruno Haible  <bruno@clisp.org>
22596
22597         Tests for module 'ptsname'.
22598         * modules/ptsname-tests: New file.
22599         * tests/test-ptsname.c: New file.
22600
22601         New module 'ptsname'.
22602         * lib/ptsname.c: New file, from glibc with modifications.
22603         * m4/ptsname.m4: New file.
22604         * modules/ptsname: New file.
22605         * lib/stdlib.in.h (ptsname): New declaration.
22606         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22607         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22608         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22609         HAVE_PTSNAME.
22610         * doc/posix-functions/ptsname.texi: Mention the new module.
22611         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22612         * config/srclist.txt: Add ptsname.c (commented).
22613
22614 2010-03-21  Bruno Haible  <bruno@clisp.org>
22615
22616         Tests for module 'ttyname_r'.
22617         * modules/ttyname_r-tests: New file.
22618         * tests/test-ttyname_r.c: New file.
22619
22620         New module 'ttyname_r'.
22621         * lib/ttyname_r.c: New file.
22622         * m4/ttyname_r.m4: New file.
22623         * modules/ttyname_r: New file.
22624         * lib/unistd.in.h (ttyname_r): New declaration.
22625         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22626         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22627         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22628         HAVE_TTYNAME_R.
22629         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22630         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22631
22632 2010-03-20  Bruno Haible  <bruno@clisp.org>
22633
22634         signal: Undefine macro definitions in C++ mode.
22635         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22636         sigfillset): Undefine macro definitions from the system header in C++
22637         mode.
22638         Reported by John W. Eaton <jwe@gnu.org>.
22639
22640 2010-03-20  Bruno Haible  <bruno@clisp.org>
22641
22642         Ensure no #include statements inside extern "C" { ... }.
22643         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22644         contain #include statements.
22645         * lib/time.in.h: Likewise.
22646
22647 2010-03-20  Bruno Haible  <bruno@clisp.org>
22648
22649         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22650         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22651         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22652         Reported by John W. Eaton <jwe@gnu.org>.
22653
22654 2010-03-20  Bruno Haible  <bruno@clisp.org>
22655
22656         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22657         Reported by Jim Meyering.
22658
22659 2010-03-20  Bruno Haible  <bruno@clisp.org>
22660
22661         pipe: Set errno upon failure.
22662         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22663         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22664         errno value in error message.
22665
22666 2010-03-20  Bruno Haible  <bruno@clisp.org>
22667             Jim Meyering  <meyering@redhat.com>
22668
22669         lchown: Avoid "unused variable" warning.
22670         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22671
22672 2010-03-20  Bruno Haible  <bruno@clisp.org>
22673
22674         Work around unlink() bug on MacOS X 10.5.6.
22675         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22676         attempting to unlink a parent directory.
22677         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22678         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22679         activate for the replacement function.
22680         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22681
22682 2010-03-20  Bruno Haible  <bruno@clisp.org>
22683
22684         Fix link errors on Solaris 8.
22685         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22686         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22687
22688 2010-03-19  Jim Meyering  <meyering@redhat.com>
22689
22690         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22691         The _LIBC implementation of build_range_exp correctly honors the
22692         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22693         However, the non-_LIBC implementation would ignore that syntax-bit
22694         flag and return REG_ERANGE unconditionally.
22695         This change makes it honor that flag.
22696         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22697         Make two pointer parameters "const".
22698         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22699         (parse_bracket_exp): Update caller.
22700
22701         regex.m4: correct the reversed range endpoint ([b-a]) test
22702         * m4/regex.m4: When requiring that [b-a] evoke failure,
22703         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22704         test pass once again for x86-based systems.
22705
22706 2010-03-19  Bruno Haible  <bruno@clisp.org>
22707
22708         scandir: Fix link error on Solaris 8.
22709         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22710         macros.
22711
22712 2010-03-19  Bruno Haible  <bruno@clisp.org>
22713
22714         getusershell: Fix documentation.
22715         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22716         module.
22717         * doc/glibc-functions/setusershell.texi: Likewise.
22718
22719         getusershell: Provide declaration, missing on Solaris 9.
22720         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22721         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22722         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22723         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22725         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22726         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22727         HAVE_GETUSERSHELL.
22728         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22729
22730 2010-03-19  Bruno Haible  <bruno@clisp.org>
22731
22732         wctype: Provide iswblank function.
22733         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22734         exists and is fine.
22735         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22736         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22737         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22738         * doc/posix-functions/iswblank.texi: Update.
22739
22740 2010-03-19  Bruno Haible  <bruno@clisp.org>
22741
22742         Tests of module 'pty' in C++ mode.
22743         * modules/pty-tests: New file.
22744         * tests/test-pty-c++.cc: New file.
22745         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22746
22747 2010-03-19  Eric Blake  <eblake@redhat.com>
22748
22749         logb: fix documentation
22750         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22751         1.5 declaration bug.
22752
22753         forkpty, openpty: prefer glibc's const-safe prototype
22754         * lib/forkpty.c (rpl_forkpty): New file.
22755         * lib/openpty.c (rpl_openpty): Likewise.
22756         * modules/forkpty (Files): Distribute it.
22757         * modules/openpty (Files): Likewise.
22758         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22759         check...
22760         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22761         replacement for for non-const BSD signature.
22762         * modules/pty (Makefile.am): Substitute witnesses.
22763         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22764         * tests/test-forkpty.c: Update signature check.
22765         * tests/test-openpty.c: Likewise.
22766         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22767         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22768
22769         forkpty, openpty: split functions into new modules
22770         * modules/pty (Makefile.am): Substitute new witnesses.
22771         (Libraries): Move library detection...
22772         * modules/forkpty: ...into new module.
22773         * modules/openpty: Another new module.
22774         * modules/pty-tests: Rename and split...
22775         * modules/forkpty-tests: ...to this...
22776         * modules/openpty-tests: ...and this.
22777         * tests/test-pty.c: Rename and split...
22778         * tests/test-forkpty.c: ...to this...
22779         * tests/test-openpty.c: ...and this.
22780         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22781         (gl_PTY): Split library searching...
22782         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22783         (gl_FORKPTY, gl_OPENPTY): New macros.
22784         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22785         * NEWS: Mention the split.
22786         * MODULES.html.sh (Misc): Document the modules.
22787         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22788         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22789
22790         pty: improve replacement header
22791         * lib/pty.in.h: New file.
22792         * modules/pty (Files): Ship it.
22793         (Makefile.am): Always build replacement.
22794         * m4/pty.m4: Rename...
22795         * m4/pty_h.m4: ...to this.
22796         (gl_PTY): Modernize setting of witness macros; update check of
22797         forkpty to take proper advantage of cache.
22798         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22799
22800         getopt: avoid compiler warning
22801         * lib/getopt.c (attribute_hidden): Remove unused macro.
22802
22803 2010-03-18  Bruno Haible  <bruno@clisp.org>
22804
22805         Fix link errors on Solaris 8.
22806         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22807         * modules/search-tests (test_search_c___LDADD): Likewise.
22808         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22809         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22810         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22811         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22812         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22813         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22814         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22815
22816 2010-03-18  Bruno Haible  <bruno@clisp.org>
22817
22818         Fix bug introduced on 2010-03-14.
22819         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22820         (gl_SPAWN_H): Require it.
22821         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22822         Reported by Simon Josefsson.
22823
22824 2010-03-18  Bruno Haible  <bruno@clisp.org>
22825
22826         Fix typo introduced on 2009-12-31.
22827         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22828         posix_spawn_file_actions_adddup2.
22829
22830 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22831         and Eric Blake  <eblake@redhat.com>
22832
22833         test-vc-list-files-git: make more robust
22834         * tests/test-vc-list-files-git.sh: Unset problematic environment
22835         variables.  Chain commands together.
22836
22837 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22838
22839         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22840         `AC_CHECK_DECL' invocation.
22841
22842 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22843
22844         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22845         appears before executable statements. Suggested by Petr Sumbera
22846         <Petr.Sumbera@Sun.COM>.
22847
22848 2010-03-14  Bruno Haible  <bruno@clisp.org>
22849
22850         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22851         portability problems. Instead use a simpler test.
22852         (main): Check that invalid arguments are rejected only on Linux.
22853
22854 2010-03-14  Bruno Haible  <bruno@clisp.org>
22855
22856         Fix bug introduced on 2009-12-31.
22857         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22858         gl_PREREQ_SYS_H_WINSOCK2 always.
22859         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22860         SYS_SOCKET_H variable.
22861         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22862         Update comments.
22863         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22864         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22865         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22866         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22867         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22868
22869 2010-03-14  Bruno Haible  <bruno@clisp.org>
22870
22871         Fix values returned by sinl, cosl.
22872         * lib/trigl.h: Add specification comments.
22873         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22874         that combines the values from the precomputed table with the values of
22875         the Chebyshev polynomials.
22876
22877 2010-03-14  Bruno Haible  <bruno@clisp.org>
22878
22879         Fix compilation error when modules 'posix_spawn[p]' are not used.
22880         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22881         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22882
22883 2010-03-14  Bruno Haible  <bruno@clisp.org>
22884
22885         Fix compilation error on mingw when module 'time_r' is not used.
22886         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22887         is 1.
22888         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22889         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22890         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22891         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22892
22893 2010-03-14  Bruno Haible  <bruno@clisp.org>
22894
22895         Fix compilation error with Sun C.
22896         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22897         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22898         instead of GCC specific ULONG_LONG_MAX.
22899         * lib/xstrtoll.c: Likewise.
22900         * lib/xstrtoull.c: Likewise.
22901
22902 2010-03-13  Bruno Haible  <bruno@clisp.org>
22903
22904         Allow the user to disable C++ code and tests.
22905         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22906         (gl_PROG_ANSI_CXX): Require it.
22907
22908 2010-03-13  Bruno Haible  <bruno@clisp.org>
22909
22910         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22911         cases.
22912
22913 2010-03-13  Bruno Haible  <bruno@clisp.org>
22914
22915         Test that gnulib does not break the standard C++ headers.
22916         * tests/test-locale-c++2.cc: New file.
22917         * modules/locale-tests (Files): Add it.
22918         (Makefile.am): Compile it for test-locale-c++.
22919         * tests/test-math-c++2.cc: New file.
22920         * modules/math-tests (Files): Add it.
22921         (Makefile.am): Compile it for test-math-c++.
22922         * tests/test-signal-c++2.cc: New file.
22923         * modules/signal-tests (Files): Add it.
22924         (Makefile.am): Compile it for test-signal-c++.
22925         * tests/test-stdio-c++2.cc: New file.
22926         * modules/stdio-tests (Files): Add it.
22927         (Makefile.am): Compile it for test-stdio-c++.
22928         * tests/test-stdlib-c++2.cc: New file.
22929         * modules/stdlib-tests (Files): Add it.
22930         (Makefile.am): Compile it for test-stdlib-c++.
22931         * tests/test-string-c++2.cc: New file.
22932         * modules/string-tests (Files): Add it.
22933         (Makefile.am): Compile it for test-string-c++.
22934         * tests/test-time-c++2.cc: New file.
22935         * modules/time-tests (Files): Add it.
22936         (Makefile.am): Compile it for test-time-c++.
22937         Reported by John W. Eaton <jwe@gnu.org>.
22938
22939 2010-03-13  Bruno Haible  <bruno@clisp.org>
22940
22941         * gnulib-tool (func_usage): Clarify which options are available for
22942         --create-testdir and --create-megatestdir.
22943
22944 2010-03-13  Bruno Haible  <bruno@clisp.org>
22945
22946         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22947         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22948         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22949         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22950         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22951         when appropriate.
22952         Reported by Jim Meyering.
22953
22954 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22955
22956         * gnulib-tool (func_import): Explain origin of code.
22957
22958 2010-03-12  Bruno Haible  <bruno@clisp.org>
22959
22960         Fix problem with automake's definition of CXXLINK.
22961         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22962         Reported by Simon Josefsson and Ludovic Courtès.
22963
22964 2010-03-12  Bruno Haible  <bruno@clisp.org>
22965
22966         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22967         stable releases.
22968
22969 2010-03-11  Bruno Haible  <bruno@clisp.org>
22970
22971         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22972         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22973         whether the system provides one variant or multiple variants of the
22974         function.
22975         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22976         C++ compilers.
22977         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22978         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22979         Reported by Jim Meyering.
22980
22981 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22982
22983         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22984
22985 2010-03-08  Bruno Haible  <bruno@clisp.org>
22986
22987         gnulib-tool: Add support for --libtool in --create-testdir.
22988         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22989         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22990
22991 2010-03-08  Eric Blake  <eblake@redhat.com>
22992
22993         gnulib-tool.texi: mention possibility of git submodule
22994         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22995         submodules.
22996         * doc/.gitignore: Ignore another generated file.
22997
22998 2010-03-08  Karl Berry  <karl@gnu.org>
22999
23000         * doc/gnulib-tool.texi (VCS Issues): Mention third option
23001         of committing gnulib files while skipping others.
23002
23003 2010-03-07  Bruno Haible  <bruno@clisp.org>
23004
23005         Tests of module 'wctype' in C++ mode.
23006         * tests/test-wctype-c++.cc: New file.
23007         * modules/wctype-tests (Files): Add it and tests/signature.h.
23008         (Depends-on): Add ansi-c++-opt.
23009         (Makefile.am): Arrange to compile and run test-wctype-c++.
23010
23011         Tests of module 'wchar' in C++ mode.
23012         * tests/test-wchar-c++.cc: New file.
23013         * modules/wchar-tests (Files): Add it and tests/signature.h.
23014         (Depends-on): Add ansi-c++-opt.
23015         (Makefile.am): Arrange to compile and run test-wchar-c++.
23016         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
23017         gl_MODULE_INDICATOR.
23018
23019         Tests of module 'unistd' in C++ mode.
23020         * tests/test-unistd-c++.cc: New file.
23021         * modules/unistd-tests (Files): Add it and tests/signature.h.
23022         (Depends-on): Add ansi-c++-opt.
23023         (Makefile.am): Arrange to compile and run test-unistd-c++.
23024         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
23025         gl_MODULE_INDICATOR.
23026
23027         Tests of module 'time' in C++ mode.
23028         * tests/test-time-c++.cc: New file.
23029         * modules/time-tests (Files): Add it and tests/signature.h.
23030         (Depends-on): Add ansi-c++-opt.
23031         (Makefile.am): Arrange to compile and run test-time-c++.
23032         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23033
23034         Tests of module 'sys_time' in C++ mode.
23035         * tests/test-sys_time-c++.cc: New file.
23036         * modules/sys_time-tests (Files): Add it and tests/signature.h.
23037         (Depends-on): Add ansi-c++-opt.
23038         (Makefile.am): Arrange to compile and run test-sys_time-c++.
23039         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
23040         gl_MODULE_INDICATOR.
23041
23042         Tests of module 'sys_stat' in C++ mode.
23043         * tests/test-sys_stat-c++.cc: New file.
23044         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
23045         (Depends-on): Add ansi-c++-opt.
23046         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
23047         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
23048         gl_MODULE_INDICATOR.
23049
23050         Tests of module 'sys_socket' in C++ mode.
23051         * tests/test-sys_socket-c++.cc: New file.
23052         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
23053         (Depends-on): Add ansi-c++-opt.
23054         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
23055         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
23056         gl_MODULE_INDICATOR.
23057
23058         Tests of module 'sys_select' in C++ mode.
23059         * tests/test-sys_select-c++.cc: New file.
23060         * modules/sys_select-tests (Files): Add it and tests/signature.h.
23061         (Depends-on): Add ansi-c++-opt.
23062         (Makefile.am): Arrange to compile and run test-sys_select-c++.
23063         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
23064         gl_MODULE_INDICATOR.
23065
23066         Tests of module 'sys_ioctl' in C++ mode.
23067         * tests/test-sys_ioctl-c++.cc: New file.
23068         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
23069         (Depends-on): Add ansi-c++-opt.
23070         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
23071         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
23072         gl_MODULE_INDICATOR.
23073
23074         Tests of module 'string' in C++ mode.
23075         * tests/test-string-c++.cc: New file.
23076         * modules/string-tests (Files): Add it and tests/signature.h.
23077         (Depends-on): Add ansi-c++-opt.
23078         (Makefile.am): Arrange to compile and run test-string-c++.
23079         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
23080         gl_MODULE_INDICATOR.
23081
23082         Tests of module 'stdlib' in C++ mode.
23083         * tests/test-stdlib-c++.cc: New file.
23084         * modules/stdlib-tests (Files): Add it and tests/signature.h.
23085         (Depends-on): Add ansi-c++-opt.
23086         (Makefile.am): Arrange to compile and run test-stdlib-c++.
23087         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
23088         gl_MODULE_INDICATOR.
23089
23090         Tests of module 'stdio' in C++ mode.
23091         * tests/test-stdio-c++.cc: New file.
23092         * modules/stdio-tests (Files): Add it and tests/signature.h.
23093         (Depends-on): Add ansi-c++-opt.
23094         (Makefile.am): Arrange to compile and run test-stdio-c++.
23095         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
23096         gl_MODULE_INDICATOR.
23097
23098         Tests of module 'spawn' in C++ mode.
23099         * tests/test-spawn-c++.cc: New file.
23100         * modules/spawn-tests (Files): Add it and tests/signature.h.
23101         (Depends-on): Add ansi-c++-opt.
23102         (Makefile.am): Arrange to compile and run test-spawn-c++.
23103         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
23104         gl_MODULE_INDICATOR.
23105
23106         Tests of module 'signal' in C++ mode.
23107         * tests/test-signal-c++.cc: New file.
23108         * modules/signal-tests (Files): Add it and tests/signature.h.
23109         (Depends-on): Add ansi-c++-opt.
23110         (Makefile.am): Arrange to compile and run test-signal-c++.
23111         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
23112         gl_MODULE_INDICATOR.
23113
23114         Tests of module 'search' in C++ mode.
23115         * tests/test-search-c++.cc: New file.
23116         * modules/search-tests (Files): Add it and tests/signature.h.
23117         (Depends-on): Add ansi-c++-opt.
23118         (Makefile.am): Arrange to compile and run test-search-c++.
23119         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
23120         gl_MODULE_INDICATOR.
23121
23122         Tests of module 'math' in C++ mode.
23123         * tests/test-math-c++.cc: New file.
23124         * modules/math-tests (Files): Add it and tests/signature.h.
23125         (Depends-on): Add ansi-c++-opt.
23126         (Makefile.am): Arrange to compile and run test-math-c++.
23127         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23128
23129         Tests of module 'locale' in C++ mode.
23130         * tests/test-locale-c++.cc: New file.
23131         * modules/locale-tests (Files): Add it and tests/signature.h.
23132         (Depends-on): Add ansi-c++-opt.
23133         (Makefile.am): Arrange to compile and run test-locale-c++.
23134         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
23135         gl_MODULE_INDICATOR.
23136
23137         Tests of module 'langinfo' in C++ mode.
23138         * tests/test-langinfo-c++.cc: New file.
23139         * modules/langinfo-tests (Files): Add it and tests/signature.h.
23140         (Depends-on): Add ansi-c++-opt.
23141         (Makefile.am): Arrange to compile and run test-langinfo-c++.
23142         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
23143         gl_MODULE_INDICATOR.
23144
23145         Tests of module 'iconv-h' in C++ mode.
23146         * tests/test-iconv-h-c++.cc: New file.
23147         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
23148         (Depends-on): Add ansi-c++-opt.
23149         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
23150
23151         Tests of module 'glob' in C++ mode.
23152         * tests/test-glob-c++.cc: New file.
23153         * modules/glob-tests (Files): Add it.
23154         (Depends-on): Add ansi-c++-opt.
23155         (Makefile.am): Arrange to compile and run test-glob-c++.
23156
23157         Tests of module 'fcntl-h' in C++ mode.
23158         * tests/test-fcntl-h-c++.cc: New file.
23159         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
23160         (Depends-on): Add ansi-c++-opt.
23161         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
23162         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
23163         gl_MODULE_INDICATOR.
23164
23165         Tests of module 'dirent' in C++ mode.
23166         * tests/test-dirent-c++.cc: New file.
23167         * modules/dirent-tests (Files): Add it and tests/signature.h.
23168         (Depends-on): Add ansi-c++-opt.
23169         (Makefile.am): Arrange to compile and run test-dirent-c++.
23170         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23171         gl_MODULE_INDICATOR.
23172
23173         New module 'ansi-c++-opt'.
23174         * modules/ansi-c++-opt: New file.
23175         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
23176
23177         Document C++ namespace mode.
23178         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
23179
23180         wctype: Avoid #define replacements in C++ mode.
23181         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
23182         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
23183         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
23184         In C++, define a namespaced alias symbol.
23185         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
23186         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
23187         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
23188         rule.
23189
23190         wchar: Avoid #define replacements in C++ mode.
23191         * lib/wchar.in.h: Include c++defs.h.
23192         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
23193         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
23194         symbol.
23195         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
23196         * modules/wchar (Depends-on): Add c++defs.
23197         (Makefile.am): Update wchar.h rule.
23198
23199         unistd: Avoid #define replacements in C++ mode.
23200         * lib/unistd.in.h: Include c++defs.h.
23201         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
23202         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
23203         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
23204         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
23205         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
23206         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
23207         symbol.
23208         (environ): Update.
23209         * modules/unistd (Depends-on): Add c++defs.
23210         (Makefile.am): Update unistd.h rule.
23211
23212         time: Avoid #define replacements in C++ mode.
23213         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
23214         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
23215         define a namespaced alias symbol.
23216         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
23217         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
23218         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
23219         * modules/time (Depends-on): Add c++defs, warn-on-use.
23220         (Makefile.am): Update time.h rule.
23221         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23222         * modules/nanosleep (configure.ac): Likewise.
23223         * modules/strptime (configure.ac): Likewise.
23224         * modules/timegm (configure.ac): Likewise.
23225
23226         sys_time: Avoid #define replacements in C++ mode.
23227         * lib/sys_time.in.h: Include c++defs.h.
23228         (gettimeofday): In C++, define a namespaced alias symbol.
23229         * modules/sys_time (Depends-on): Add c++defs.
23230         (Makefile.am): Update sys/time.h rule.
23231
23232         sys_stat: Avoid #define replacements in C++ mode.
23233         * lib/sys_stat.in.h: Include c++defs.h.
23234         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
23235         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
23236         namespaced alias symbol.
23237         In C++, define a namespaced alias symbol.
23238         * modules/sys_stat (Depends-on): Add c++defs.
23239         (Makefile.am): Update sys/stat.h rule.
23240
23241         sys_socket: Avoid #define replacements in C++ mode.
23242         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
23243         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
23244         definitions also when the system has a <sys/socket.h>.
23245         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23246         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
23247         In C++, define a namespaced alias symbol.
23248         * modules/sys_socket (Depends-on): Add c++defs.
23249         (Makefile.am): Update sys/socket.h rule.
23250
23251         sys_select: Avoid #define replacements in C++ mode.
23252         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23253         definitions also when the system has a <sys/select.h>.
23254         (select): In C++, define a namespaced alias symbol.
23255         * modules/sys_select (Depends-on): Add c++defs.
23256         (Makefile.am): Update sys/select.h rule.
23257
23258         sys_ioctl: Avoid #define replacements in C++ mode.
23259         * lib/sys_ioctl.in.h: Include c++defs.h.
23260         (ioctl): In C++, define a namespaced alias symbol.
23261         * modules/sys_ioctl (Depends-on): Add c++defs.
23262         (Makefile.am): Update sys/ioctl.h rule.
23263
23264         string: Avoid #define replacements in C++ mode.
23265         * lib/string.in.h: Include c++defs.h.
23266         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23267         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23268         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23269         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23270         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23271         * modules/string (Depends-on): Add c++defs.
23272         (Makefile.am): Update string.h rule.
23273
23274         stdlib: Avoid #define replacements in C++ mode.
23275         * lib/stdlib.in.h: Include c++defs.h.
23276         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23277         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23278         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23279         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23280         symbol.
23281         * modules/stdlib (Depends-on): Add c++defs.
23282         (Makefile.am): Update stdlib.h rule.
23283
23284         stdio: Avoid #define replacements in C++ mode.
23285         * lib/stdio.in.h: Include c++defs.h.
23286         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23287         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23288         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23289         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23290         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23291         namespaced alias symbol.
23292         * modules/stdio (Depends-on): Add c++defs.
23293         (Makefile.am): Update stdio.h rule.
23294
23295         spawn: Avoid #define replacements in C++ mode.
23296         * lib/spawn.in.h: Include c++defs.h.
23297         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23298         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23299         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23300         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23301         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23302         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23303         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23304         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23305         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23306         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23307         In C++, define a namespaced alias symbol.
23308         * modules/spawn (Depends-on): Add c++defs.
23309         (Makefile.am): Update spawn.h rule.
23310
23311         signal: Avoid #define replacements in C++ mode.
23312         * lib/signal.in.h: Include c++defs.h.
23313         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23314         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23315         namespaced alias symbol.
23316         * modules/signal (Depends-on): Add c++defs.
23317         (Makefile.am): Update signal.h rule.
23318
23319         search: Avoid #define replacements in C++ mode.
23320         * lib/search.in.h: Include c++defs.h.
23321         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23322         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23323         symbol.
23324         * modules/search (Depends-on): Add c++defs.
23325         (Makefile.am): Update search.h rule.
23326
23327         math: Avoid #define replacements in C++ mode.
23328         * lib/math.in.h: Include c++defs.h.
23329         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23330         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23331         trunc, truncl): In C++, define a namespaced alias symbol.
23332         * modules/math (Depends-on): Add c++defs.
23333         (Makefile.am): Update math.h rule.
23334
23335         locale: Avoid #define replacements in C++ mode.
23336         * lib/locale.in.h: Include c++defs.h.
23337         (duplocale): In C++, define a namespaced alias symbol.
23338         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23339         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23340         * modules/locale (Depends-on): Add c++defs.
23341         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23342
23343         langinfo: Avoid #define replacements in C++ mode.
23344         * lib/langinfo.in.h: Include c++defs.h.
23345         (nl_langinfo): In C++, define a namespaced alias symbol.
23346         * modules/langinfo (Depends-on): Add c++defs.
23347         (Makefile.am): Update langinfo.h rule.
23348
23349         iconv-h: Avoid #define replacements in C++ mode.
23350         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23351         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23352         symbol.
23353         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23354         whenever iconv is present.
23355         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23356         (Makefile.am): Update iconv.h rule.
23357
23358         glob: Avoid #define replacements in C++ mode.
23359         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23360         (_gl_glob_errfunc_fn): New type.
23361         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23362         symbol.
23363         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23364         (Makefile.am): Update glob.h rule.
23365
23366         fcntl-h: Avoid #define replacements in C++ mode.
23367         * lib/fcntl.in.h: Include c++defs.h.
23368         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23369         * modules/fcntl-h (Depends-on): Add c++defs.
23370         (Makefile.am): Update fcntl.h rule.
23371
23372         dirent: Avoid #define replacements in C++ mode.
23373         * lib/dirent.in.h: Include c++defs.h.
23374         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23375         namespaced alias symbol.
23376         (dirfd): Update declaration.
23377         * modules/dirent (Depends-on): Add c++defs.
23378         (Makefile.am): Update dirent.h rule.
23379
23380         ctype: Make it usable in C++ code.
23381         * lib/ctype.in.h: Include c++defs.h.
23382         (isblank): Declare as extern "C".
23383         * modules/ctype (Depends-on): Add c++defs.
23384         (Makefile.am): Update ctype.h rule.
23385
23386         New module 'c++defs'.
23387         * modules/c++defs: New file.
23388         * build-aux/c++defs.h: New file.
23389         Reported by John W. Eaton <jwe@gnu.org>.
23390
23391 2010-03-07  Bruno Haible  <bruno@clisp.org>
23392
23393         logb: Provide missing declaration for Cygwin.
23394         * lib/math.in.h (logb): New declaration.
23395         * m4/logb.m4: New file.
23396         * modules/logb (Files): Add m4/logb.m4.
23397         (Depends-on): Add math.
23398         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
23399         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
23400         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
23401         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
23402         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
23403
23404 2010-03-07  Bruno Haible  <bruno@clisp.org>
23405
23406         Fix test-cond link error.
23407         * tests/test-cond.c: Include <stdio.h>.
23408
23409 2010-03-07  Bruno Haible  <bruno@clisp.org>
23410
23411         Fix test-dirent-safer link error.
23412         * modules/dirent-safer-tests (Makefile.am): Define
23413         test_dirent_safer_LDADD.
23414
23415 2010-03-07  Bruno Haible  <bruno@clisp.org>
23416
23417         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
23418         among default module list.
23419
23420 2010-03-07  Bruno Haible  <bruno@clisp.org>
23421
23422         Fix link error on platforms with GNU libiconv.
23423         * modules/unistr/u8-strcoll-tests (Makefile): Define
23424         test_u8_strcoll_LDADD.
23425         * modules/unistr/u16-strcoll-tests (Makefile): Define
23426         test_u16_strcoll_LDADD.
23427         * modules/unistr/u32-strcoll-tests (Makefile): Define
23428         test_u32_strcoll_LDADD.
23429
23430 2010-03-07  Bruno Haible  <bruno@clisp.org>
23431
23432         Use POSIX declarations for socket functions.
23433         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
23434         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
23435         rpl_sendto): Change declaration to match POSIX.
23436         * lib/connect.c (rpl_connect): Likewise.
23437         * lib/accept.c (rpl_accept): Likewise.
23438         * lib/bind.c (rpl_bind): Likewise.
23439         * lib/getpeername.c (rpl_getpeername): Likewise.
23440         * lib/getsockname.c (rpl_getsockname): Likewise.
23441         * lib/recv.c (rpl_recv): Likewise.
23442         * lib/send.c (rpl_send): Likewise.
23443         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23444         * lib/sendto.c (rpl_sendto): Likewise.
23445
23446 2010-03-06  Bruno Haible  <bruno@clisp.org>
23447
23448         Clarify access, euidaccess, faccessat.
23449         * doc/posix-functions/faccessat.texi: Mention security problem under
23450         "Other problems", not "Portability problems".
23451         * doc/posix-functions/access.texi: Likewise. Mention a related security
23452         problem.
23453         * doc/glibc-functions/euidaccess.texi: Mention security problems.
23454         * lib/euidaccess.c: Add comments about platforms.
23455         * lib/unistd.in.h (access, euidaccess): Add warnings.
23456
23457 2010-03-07  Bruno Haible  <bruno@clisp.org>
23458
23459         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
23460         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
23461         (POSIX_SPAWN_SETSCHEDULER): Likewise.
23462         (POSIX_SPAWN_USEVFORK): Define in a way that works when
23463         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23464         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
23465         declare when POSIX_SPAWN_SETSCHEDULER is zero.
23466         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
23467         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
23468         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
23469         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
23470         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
23471         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
23472         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
23473         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
23474         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
23475         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
23476         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
23477         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
23478         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
23479         Likewise.
23480         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23481         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23482         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23483         Likewise.
23484         * tests/test-spawn.c (main): Make it work when
23485         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23486
23487 2010-03-07  Bruno Haible  <bruno@clisp.org>
23488
23489         Fix incorrect Makefile.am generation in German locale.
23490         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23491         Execute sed command with character range in C locale.
23492
23493 2010-03-06  Bruno Haible  <bruno@clisp.org>
23494
23495         Tests for module 'iconv-h'.
23496         * modules/iconv-h-tests: New file.
23497         * tests/test-iconv-h.c: New file.
23498
23499         New module 'iconv-h'.
23500         * modules/iconv-h: New file.
23501         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23502         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23503         (configure.ac): Remove gl_ICONV_H.
23504         (Makefile.am): Remove rule for iconv.h.
23505
23506 2010-03-06  Bruno Haible  <bruno@clisp.org>
23507
23508         More consistent naming of *.m4 files.
23509         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23510         * modules/wctype (Files): Update.
23511
23512         More consistent naming of *.m4 files.
23513         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23514         * modules/wchar (Files): Update.
23515
23516 2010-03-06  Jim Meyering  <meyering@redhat.com>
23517
23518         euidaccess: relax license to LGPLv2+
23519         * modules/euidaccess (License): Relax to LGPLv2+.
23520
23521 2010-03-06  Bruno Haible  <bruno@clisp.org>
23522
23523         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23524         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23525         (Makefile.am): Augment lib_SOURCES instead.
23526
23527 2010-03-04  Jim Meyering  <meyering@redhat.com>
23528
23529         utime: remove obsolete module
23530         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23531         unnecessary for years, and has been marked as obsolete for 10 months.
23532         * modules/utime: Remove file.
23533         * lib/utime.c: Remove file.
23534         * m4/utime.m4: Remove file.
23535         * m4/utimes-null.m4: Remove file.
23536         * doc/posix-functions/utime.texi (utime): Remove reference to
23537         the module.  Move the sole "fixed by gnulib" item into the
23538         "problems not fixed by Gnulib" list.
23539         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23540
23541 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23542
23543         * modules/exit (License): Relax license to LGPLv2+.
23544         (Status): Mark as obsolete.
23545         * NEWS: Mention deprecated 'exit' module.
23546         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23547         of now obsolete 'exit'.
23548
23549 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23550
23551         fts-lgpl: remove unused module
23552         * modules/fts-lgpl: Remove.
23553         * MODULES.html.sh (func_all_modules): Adjust.
23554         * check-module (find_included_lib_files): Adjust.
23555         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23556
23557 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23558
23559         copy-acl: enhance Solaris ACL error handling
23560         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23561         * lib/set-mode-acl.c (qset_acl): Likewise.
23562
23563 2010-03-02  Bruno Haible  <bruno@clisp.org>
23564
23565         spawn: Don't override the system defined values on FreeBSD 8.
23566         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23567         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23568         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23569         if HAVE_POSIX_SPAWN is 1.
23570         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23571
23572 2010-03-01  Bruno Haible  <bruno@clisp.org>
23573
23574         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23575         regarding Automake.
23576
23577 2010-02-25  Bruno Haible  <bruno@clisp.org>
23578
23579         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23580         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23581         setting, not afterwards.
23582         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23583
23584 2010-02-24  Eric Blake  <eblake@redhat.com>
23585
23586         bootstrap, git-version-gen: use timestamp
23587         * build-aux/git-version-gen (scriptversion): Force UTC.
23588         * build-aux/bootstrap (scriptversion): New variable.
23589
23590         bootstrap: allow older git
23591         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23592         older than 1.6.4.  Requested by the libvirt project.
23593
23594 2010-02-23  Eric Blake  <eblake@redhat.com>
23595
23596         warn-on-use: work with old autoconf
23597         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23598         AS_VAR semantics of autoconf 2.60.
23599         Reported by Bruno Haible.
23600
23601         bootstrap: improve some comments
23602         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23603         clarification comments.
23604
23605         gettimeofday: provide correct function
23606         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23607         when replacement is declared, otherwise provide gettimeofday.
23608         Reported by Michael Goffioul.
23609
23610 2010-02-23  Jim Meyering  <meyering@redhat.com>
23611
23612         lib-ignore: relax license to "unlimited", not LGPLv2+
23613         * modules/lib-ignore (License): Relax to "unlimited".
23614
23615 2010-02-23  Jim Meyering  <meyering@redhat.com>
23616
23617         lib-ignore: relax license to LGPLv2+
23618         * modules/lib-ignore (License): Relax to LGPLv2+.
23619
23620 2010-02-22  Eric Blake  <eblake@redhat.com>
23621
23622         lseek: avoid bash 3.2 broken pipe bug
23623         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23624         warning from bash 3.2.
23625         Reported by Ben Pfaff, with analysis from Bruno Haible.
23626
23627         bootstrap: support non-FSF copyright holder
23628         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23629         bootstrap.conf override of COPYRIGHT_HOLDER.
23630         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23631
23632         bootstrap: interoperate with gettext 0.14.1
23633         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23634
23635         bootstrap: allow for alternate submodule location
23636         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23637         hardcoding submodule location.
23638         (gnulib_mk): Allow direct use of Makefile.am.
23639
23640         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23641         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23642         rather than reconfiguring where the submodule points.
23643
23644         gettimeofday: restore support for platforms that lack function
23645         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23646         replacement if function is missing.
23647         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23648         * modules/sys_time (Makefile.am): Substitute it.
23649         * lib/sys_time.in.h (gettimeofday): Check it.
23650         Reported by Michael Goffioul.
23651
23652 2010-02-21  Bruno Haible  <bruno@clisp.org>
23653
23654         * lib/stdio.in.h (obstack_printf): Fix typo.
23655
23656 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23657
23658         vc-list-files: use bzr ls's -R option
23659         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23660         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23661
23662 2010-02-21  Jim Meyering  <meyering@redhat.com>
23663
23664         init.sh: fix EXEEXT shims to work also for names like test-prog
23665         * tests/init.sh: Re-exec a better shell, when needed.
23666         If the current shell lacks support for posix $(...), an init.sh-using
23667         test will now try to find a shell that supports that.  If EXEEXT is
23668         nonempty, we also require support for hyphen-in-alias-name and shell
23669         substitutions like ${var#glob}.  Failure to find such a shell results
23670         in a skipped test.
23671
23672 2010-02-21  Bruno Haible  <bruno@clisp.org>
23673
23674         Really work around around "broken pipe" error message from bash 3.2.
23675         * gnulib-tool (func_reset_sigpipe): Remove function.
23676         (echo): In bash 3.2, define to a function that uses printf.
23677         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23678
23679 2010-02-20  Bruno Haible  <bruno@clisp.org>
23680
23681         Restore support for automake 1.9.6 with autoconf 2.61.
23682         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23683         Reported by James Youngman <jay@gnu.org>.
23684
23685 2010-02-20  Bruno Haible  <bruno@clisp.org>
23686
23687         Improve *printf warning condition.
23688         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23689         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23690         and the function is overridden due to SIGPIPE emulation.
23691
23692 2010-02-20  Bruno Haible  <bruno@clisp.org>
23693
23694         * lib/stdio.in.h: Tweak comments.
23695
23696 2010-02-19  Bruno Haible  <bruno@clisp.org>
23697
23698         Make it easier to find modules. New gnulib-tool option '--find'.
23699         * gnulib-tool: New option --find.
23700         (func_usage): Document it.
23701         (func_sanitize_modulelist): New function, extracted from
23702         func_all_modules.
23703         (func_all_modules): Invoke it.
23704         * doc/gnulib-tool.texi (Which modules?): New node.
23705
23706 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23707
23708         * lib/sys_select.in.h: Provide select replacement even if
23709         sys/select.h exists on a system, for Interix.
23710
23711 2010-02-18  Jim Meyering  <meyering@redhat.com>
23712
23713         init.sh: don't use $(...) just yet
23714         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23715         to accommodate e.g., Solaris' /bin/sh.
23716
23717 2010-02-17  Bruno Haible  <bruno@clisp.org>
23718
23719         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23720         Reported by Ludovic Courtès <ludo@gnu.org>.
23721
23722 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23723
23724         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23725         linking with -lintl.
23726
23727 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23728
23729         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23730         if not provided by the system's netdb.h.  Reported by
23731         ludo@gnu.org (Ludovic Courtès).
23732
23733 2010-02-15  Jim Meyering  <meyering@redhat.com>
23734
23735         init.sh: improve portability and efficiency
23736         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23737         "dummy" in a for loop.
23738         Use '!', not '^' to select the complement of a character set used
23739         in a "case" statement.
23740         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23741         Suggestions from Eric Blake.
23742
23743         init.sh: automatically accommodate programs with the .exe suffix
23744         Automatically arrange for an invocation of "prog" to execute the
23745         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23746         may use the simpler "prog", yet still work when built on a system
23747         that requires specifying the added suffix.
23748         Do this by constructing a function named "prog" that invokes
23749         "prog.exe" for each .exe file in selected directories.
23750         * tests/init.sh (find_exe_basenames_): New function.
23751         (create_exe_shim_functions_): New function.
23752         (path_prepend_): Use it.
23753
23754         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23755         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23756         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23757
23758 2010-02-14  Jim Meyering  <meyering@redhat.com>
23759
23760         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23761         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23762         (sc_prohibit_hash_pjw_without_use): New rule.
23763
23764         maint.mk: allow the default upload destination dir to be overridden
23765         * top/maint.mk (upload_dest_dir_): Define with a default that
23766         preserves the status quo.
23767         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23768         Reported by Peter Simons.
23769
23770         maint.mk: prohibit inclusion of "hash.h" without_use
23771         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23772
23773 2010-02-10  Jim Meyering  <meyering@redhat.com>
23774
23775         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23776         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23777
23778 2010-02-09  Eric Blake  <ebb9@byu.net>
23779         and Bruno Haible  <bruno@clisp.org>
23780
23781         obstack-printf-posix: ensure declaration
23782         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23783         extracted from gl_FUNC_OBSTACK_PRINTF.
23784         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23785         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23786         Likewise.
23787         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23788         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23789         0.
23790
23791 2010-02-08  Bruno Haible  <bruno@clisp.org>
23792
23793         gnulib-tool: Fix typo in 2010-02-07 commit.
23794         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23795         Reported by Eric Blake.
23796
23797 2010-02-07  Bruno Haible  <bruno@clisp.org>
23798
23799         gnulib-tool: Fix up caching patches.
23800         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23801         option --no-cache. Use associative arrays when supported by the shell.
23802         (sed_comments): New variable.
23803         (modcache): Renamed from do_cache.
23804         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23805         abbreviate unnecessarily.
23806         (have_associative): New variable.
23807         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23808         way also for ksh and zsh.
23809         (func_init_sed_convert_to_cache_statements): New function, extracted
23810         from func_cache_lookup_module. Add support for associative arrays.
23811         Don't set the c_MODULE_cached variable here. Ignore all lines before
23812         the first field header. Remove only the final newline, not all trailing
23813         newlines. Support empty fields correctly. Limit the use of 'eval' to
23814         assignments.
23815         (func_get_description, func_get_status, func_get_notice,
23816         func_get_applicability, func_get_filelist, func_get_dependencies,
23817         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23818         func_get_automake_snippet, func_get_include_directive,
23819         func_get_link_directive, func_get_license, func_get_maintainer):
23820         Update documentation. List the unoptimized code first. Add support for
23821         associative arrays. Limit the use of 'eval' to assignments.
23822         (func_get_applicability): Undo stylistic pessimisations.
23823         (func_get_automake_snippet, func_get_include_directive): Reduce code
23824         duplication.
23825         (func_modules_transitive_closure, func_modules_add_dummy,
23826         func_modules_notice, func_modules_to_filelist, func_add_file,
23827         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23828         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23829         func_create_testdir, func_create_megatestdir): Update documentation.
23830
23831 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23832
23833         * gnulib-tool (func_cache_lookup_module): Store the module name
23834         belonging to the cache variable; error out if two different
23835         module names map to the same cache variable name.
23836
23837 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23838
23839         gnulib-tool: Make caching optional.
23840         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23841         Update matching short versions of --no-changelog.
23842         (func_usage): Update.
23843         (sed_extract_cache_prog): Renamed from ...
23844         (sed_extract_prog): ... this; revert to old extraction script.
23845         (func_get_description, func_get_status)
23846         (func_get_notice, func_get_applicability, func_get_filelist)
23847         (func_get_dependencies, func_get_autoconf_early_snippet)
23848         (func_get_autoconf_snippet, func_get_automake_snippet)
23849         (func_get_include_directive, func_get_link_directive)
23850         (func_get_license, func_get_maintainer): If $do_cache is false,
23851         use old, non-caching extraction scripts.
23852         Suggestion by Bruno Haible.
23853
23854 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23855
23856         gnulib-tool: cache module metainformation.
23857         * gnulib-tool (sed_extract_prog): Match newline before each
23858         header, and rewrite header to a shell variable suffix.
23859         (func_cache_var, func_cache_lookup_module): New functions,
23860         to turn a module name into a cache variable prefix, and to
23861         look up and cache module metainformation.
23862         (func_get_description, func_get_status)
23863         (func_get_notice, func_get_applicability, func_get_filelist)
23864         (func_get_dependencies, func_get_autoconf_early_snippet)
23865         (func_get_autoconf_snippet, func_get_automake_snippet)
23866         (func_get_include_directive, func_get_link_directive)
23867         (func_get_license, func_get_maintainer): Use
23868         func_cache_lookup_module.
23869
23870 2010-02-07  Bruno Haible  <bruno@clisp.org>
23871
23872         fnctl: Fix missing dependency.
23873         * modules/fcntl (Depends-on): Add getdtablesize.
23874         Reported by John W. Eaton <jwe@gnu.org>.
23875
23876 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23877
23878         Argp: fix recognition of short alias options.
23879
23880         * lib/argp-parse.c (convert_options): Fix improper use of
23881         `|' between character values.
23882         * tests/test-argp.c (group1_option): New alias option
23883         --read (-r).
23884         (group1_parser): Special handling for 'r'.
23885         (test15): New test case.
23886         (test_fun): Add test15.
23887         * tests/test-argp-2.sh: Update expected --help and --usage
23888         outputs.
23889
23890 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23891
23892         * tests/test-argp.c: Fix indentation.
23893
23894 2010-02-04  Eric Blake  <ebb9@byu.net>
23895
23896         gettimeofday: expose type of second argument
23897         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23898         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23899         * tests/test-gettimeofday.c: Use it to silence warning.
23900         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23901         the issue.
23902
23903 2010-02-03  Jim Meyering  <meyering@redhat.com>
23904
23905         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23906         * lib/regcomp.c (TYPE_SIGNED): Define.
23907         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23908
23909         regcomp.c: avoid a new -Wshadow warning
23910         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23911
23912 2010-02-01  Jim Meyering  <meyering@redhat.com>
23913
23914         removing useless parentheses in cpp #define directives
23915         For motivation, see commit c0221df4, "define STREQ(a,b)
23916         consistently, removing useless parentheses"
23917         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23918         * lib/mountlist.c (MNT_IGNORE): Likewise.
23919         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23920
23921 2010-02-01  Eric Blake  <ebb9@byu.net>
23922
23923         sys_time: use link-warning
23924         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23925         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23926         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23927         * modules/sys_time (Depends-on): Add warn-on-use.
23928         (Makefile.am): Always build replacement.
23929         (configure.ac): Update substitutions.
23930         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23931         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23932         bother with SYS_TIME_H.
23933         * modules/gettimeofday (configure.ac): Declare indicator.
23934         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23935         in use.
23936
23937         closein-tests: silence compiler warning
23938         * tests/test-closein.c (main): Ignore fread result.
23939         * modules/closein-tests (Depends-on): Add ignore-value.
23940
23941         tests: silence warning about system return
23942         * tests/test-areadlink-with-size.c (main): Ignore system result.
23943         * tests/test-areadlink.c (main): Likewise.
23944         * tests/test-areadlinkat-with-size.c (main): Likewise.
23945         * tests/test-areadlinkat.c (main): Likewise.
23946         * tests/test-canonicalize-lgpl.c (main): Likewise.
23947         * tests/test-canonicalize.c (main): Likewise.
23948         * tests/test-chown.c (main): Likewise.
23949         * tests/test-fchownat.c (main): Likewise.
23950         * tests/test-fdutimensat.c (main): Likewise.
23951         * tests/test-fstatat.c (main): Likewise.
23952         * tests/test-futimens.c (main): Likewise.
23953         * tests/test-lchown.c (main): Likewise.
23954         * tests/test-link.c (main): Likewise.
23955         * tests/test-linkat.c (main): Likewise.
23956         * tests/test-lstat.c (main): Likewise.
23957         * tests/test-mkdir.c (main): Likewise.
23958         * tests/test-mkdirat.c (main): Likewise.
23959         * tests/test-mkfifo.c (main): Likewise.
23960         * tests/test-mkfifoat.c (main): Likewise.
23961         * tests/test-mknod.c (main): Likewise.
23962         * tests/test-readlink.c (main): Likewise.
23963         * tests/test-remove.c (main): Likewise.
23964         * tests/test-rename.c (main): Likewise.
23965         * tests/test-renameat.c (main): Likewise.
23966         * tests/test-rmdir.c (main): Likewise.
23967         * tests/test-symlink.c (main): Likewise.
23968         * tests/test-symlinkat.c (main): Likewise.
23969         * tests/test-unlink.c (main): Likewise.
23970         * tests/test-unlinkat.c (main): Likewise.
23971         * tests/test-utimens.c (main): Likewise.
23972         * tests/test-utimensat.c (main): Likewise.
23973         * modules/areadlink-tests (Depends-on): Add ignore-value.
23974         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23975         * modules/areadlinkat-tests (Depends-on): Likewise.
23976         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23977         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23978         * modules/canonicalize-tests (Depends-on): Likewise.
23979         * modules/chown-tests (Depends-on): Likewise.
23980         * modules/fdutimensat-tests (Depends-on): Likewise.
23981         * modules/futimens-tests (Depends-on): Likewise.
23982         * modules/lchown-tests (Depends-on): Likewise.
23983         * modules/link-tests (Depends-on): Likewise.
23984         * modules/linkat-tests (Depends-on): Likewise.
23985         * modules/lstat-tests (Depends-on): Likewise.
23986         * modules/mkdir-tests (Depends-on): Likewise.
23987         * modules/mkfifo-tests (Depends-on): Likewise.
23988         * modules/mkfifoat-tests (Depends-on): Likewise.
23989         * modules/mknod-tests (Depends-on): Likewise.
23990         * modules/openat-tests (Depends-on): Likewise.
23991         * modules/readlink-tests (Depends-on): Likewise.
23992         * modules/remove-tests (Depends-on): Likewise.
23993         * modules/rename-tests (Depends-on): Likewise.
23994         * modules/renameat-tests (Depends-on): Likewise.
23995         * modules/rmdir-tests (Depends-on): Likewise.
23996         * modules/symlink-tests (Depends-on): Likewise.
23997         * modules/symlinkat-tests (Depends-on): Likewise.
23998         * modules/unlink-tests (Depends-on): Likewise.
23999         * modules/utimens-tests (Depends-on): Likewise.
24000         * modules/utimensat-tests (Depends-on): Likewise.
24001
24002 2010-01-31  Bruno Haible  <bruno@clisp.org>
24003
24004         Perform the same test for many <math.h> functions.
24005         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
24006         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
24007         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
24008         of gl_MATHFUNC.
24009         * modules/acos (configure.ac): Likewise.
24010         * modules/asin (configure.ac): Likewise.
24011         * modules/atan (configure.ac): Likewise.
24012         * modules/atan2 (configure.ac): Likewise.
24013         * modules/cbrt (configure.ac): Likewise.
24014         * modules/copysign (configure.ac): Likewise.
24015         * modules/cos (configure.ac): Likewise.
24016         * modules/cosh (configure.ac): Likewise.
24017         * modules/erf (configure.ac): Likewise.
24018         * modules/erfc (configure.ac): Likewise.
24019         * modules/exp (configure.ac): Likewise.
24020         * modules/fmod (configure.ac): Likewise.
24021         * modules/hypot (configure.ac): Likewise.
24022         * modules/j0 (configure.ac): Likewise.
24023         * modules/j1 (configure.ac): Likewise.
24024         * modules/jn (configure.ac): Likewise.
24025         * modules/lgamma (configure.ac): Likewise.
24026         * modules/log (configure.ac): Likewise.
24027         * modules/log10 (configure.ac): Likewise.
24028         * modules/log1p (configure.ac): Likewise.
24029         * modules/pow (configure.ac): Likewise.
24030         * modules/remainder (configure.ac): Likewise.
24031         * modules/sin (configure.ac): Likewise.
24032         * modules/sinh (configure.ac): Likewise.
24033         * modules/tan (configure.ac): Likewise.
24034         * modules/tanh (configure.ac): Likewise.
24035         * modules/y0 (configure.ac): Likewise.
24036         * modules/y1 (configure.ac): Likewise.
24037         * modules/yn (configure.ac): Likewise.
24038         Suggested by Paolo Bonzini.
24039
24040 2010-01-31  Bruno Haible  <bruno@clisp.org>
24041
24042         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
24043
24044 2010-01-31  Bruno Haible  <bruno@clisp.org>
24045
24046         Work around getdelim() bug on FreeBSD 8.0.
24047         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
24048         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
24049         not work.
24050         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
24051         is 1.
24052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
24053         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
24054         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
24055         a non-zero size.
24056         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
24057
24058 2010-01-31  Bruno Haible  <bruno@clisp.org>
24059
24060         Work around getline() bug on FreeBSD 8.0.
24061         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
24062         and a non-zero size.
24063         * tests/test-getline.c (main): Likewise.
24064         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
24065         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
24066
24067 2010-01-28  Eric Blake  <ebb9@byu.net>
24068
24069         regex: fix build failure
24070         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
24071         platforms.
24072
24073 2010-01-28  Jim Meyering  <meyering@redhat.com>
24074
24075         regex: do not ignore memory allocation failure
24076         * lib/regex_internal.c (create_cd_newstate): Detect
24077         re_node_set_init_copy failure.   Extracted from glibc commit
24078         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24079
24080         regex: sync more white-space changes from libc
24081         * lib/regex_internal.c: White-space only changes.
24082         * lib/regexec.c: Likewise.
24083
24084         regex: add many uses of __attribute_warn_unused_result__
24085         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
24086         * lib/regexec.c: Likewise.
24087         Extracted from a messy glibc commit.
24088
24089         regcomp.c: spelling and merge-artifact from glibc
24090         * lib/regcomp.c: Merge remainder of glibc's
24091         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24092
24093         regcomp.c: sync white-space changes from glibc
24094         * lib/regcomp.c: Merge to accommodate white space
24095         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24096
24097         regcomp.c: do not ignore internal return values
24098         * lib/regcomp.c: Do not ignore internal return values.
24099         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
24100         but without its white-space changes and spelling fixes.
24101
24102         regex_internal.h: define __attribute_warn_unused_result__
24103         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
24104
24105         maint: add a syntax-check rule to check for vulnerable Makefile.in
24106         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
24107
24108 2010-01-27  Jim Meyering  <meyering@redhat.com>
24109
24110         ncftpput-ftp: clean up spaces
24111         * build-aux/ncftpput-ftp: Make Copyright line consistent.
24112         Remove trailing blanks.
24113
24114 2010-01-27  Simon Josefsson  <simon@josefsson.org>
24115
24116         * build-aux/git-version-gen: Fix copyright statement.
24117         * build-aux/gnupload: Likewise.
24118         * tests/test-arcfour.c: Likewise.
24119         * tests/test-arctwo.c: Likewise.
24120         * tests/test-count-one-bits.c: Likewise.
24121         * tests/test-crc.c: Likewise.
24122         * tests/test-des.c: Likewise.
24123         * tests/test-gc-arcfour.c: Likewise.
24124         * tests/test-gc-arctwo.c: Likewise.
24125         * tests/test-gc-des.c: Likewise.
24126         * tests/test-gc-hmac-md5.c: Likewise.
24127         * tests/test-gc-hmac-sha1.c: Likewise.
24128         * tests/test-gc-md2.c: Likewise.
24129         * tests/test-gc-md4.c: Likewise.
24130         * tests/test-gc-md5.c: Likewise.
24131         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24132         * tests/test-gc-rijndael.c: Likewise.
24133         * tests/test-gc-sha1.c: Likewise.
24134         * tests/test-gc.c: Likewise.
24135         * tests/test-gethostname.c: Likewise.
24136         * tests/test-gettimeofday.c: Likewise.
24137         * tests/test-hash.c: Likewise.
24138         * tests/test-hmac-md5.c: Likewise.
24139         * tests/test-hmac-sha1.c: Likewise.
24140         * tests/test-md2.c: Likewise.
24141         * tests/test-md4.c: Likewise.
24142         * tests/test-md5.c: Likewise.
24143         * tests/test-memchr.c: Likewise.
24144         * tests/test-memchr2.c: Likewise.
24145         * tests/test-memcmp.c: Likewise.
24146         * tests/test-memmem.c: Likewise.
24147         * tests/test-memrchr.c: Likewise.
24148         * tests/test-rawmemchr.c: Likewise.
24149         * tests/test-read-file.c: Likewise.
24150         * tests/test-rijndael.c: Likewise.
24151         * tests/test-sockets.c: Likewise.
24152         * tests/test-strchrnul.c: Likewise.
24153         * tests/test-strstr.c: Likewise.
24154         * tests/test-strtod.c: Likewise.
24155         * build-aux/ncftpput-ftp: Likewise.
24156
24157 2010-01-26  Eric Blake  <ebb9@byu.net>
24158
24159         ignore-value: update recommended header name
24160         * modules/ignore-value (Include): Only use <> for headers that
24161         exist in glibc.
24162
24163 2010-01-26  Jim Meyering  <meyering@redhat.com>
24164
24165         test-userspec.c: avoid compiler warnings
24166         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
24167         and "initialization discards qualifiers..." warnings.
24168         Put the first "uid" in its own scope, and make char* members "const".
24169
24170 2010-01-25  Bruno Haible  <bruno@clisp.org>
24171
24172         gnulib-tool: Make warning diagnostics consistent.
24173         * gnulib-tool (func_warning): New function.
24174         Use it everywhere where gnulib-tool produces output to stderr and it is
24175         not a fatal error.
24176
24177 2010-01-25  Bruno Haible  <bruno@clisp.org>
24178
24179         Fix test dependencies.
24180         * modules/xstrtol-tests (Depends-on): Add inttypes.
24181         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
24182
24183 2010-01-25 Pádraig Brady <P@draigBrady.com>
24184
24185         syntax-check: detect incorrect boolean macro values in config.h
24186         * modules/maintainer-makefile (configure.ac): Parameterize the location
24187         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
24188         The logic is from Eric Blake and the location indicated by Jim Meyering.
24189         Note the more natural CONFIG_HEADER name is prohibited by automake
24190         for backwards compatibility reasons.
24191         * top/maint.mk (sc_Wundef_boolean): New rule.
24192
24193 2010-01-25  Jim Meyering  <meyering@redhat.com>
24194
24195         bootstrap: detect MacOS 10.6's shasum, too
24196         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
24197         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
24198
24199 2010-01-23  Jim Meyering  <meyering@redhat.com>
24200
24201         xstrtoll: new module
24202         * modules/xstrtoll: New file.
24203         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
24204         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
24205         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
24206         ./configure fails if you use this module and lack "long long".
24207         * modules/xstrtoll-tests: New module.
24208         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
24209         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
24210         new init.sh-based test framework.
24211
24212 2010-01-24  Bruno Haible  <bruno@clisp.org>
24213
24214         Tests for module 'yn'.
24215         * modules/yn-tests: New file.
24216         * tests/test-yn.c: New file.
24217
24218         Tests for module 'y1'.
24219         * modules/y1-tests: New file.
24220         * tests/test-y1.c: New file.
24221
24222         Tests for module 'y0'.
24223         * modules/y0-tests: New file.
24224         * tests/test-y0.c: New file.
24225
24226         Tests for module 'tanh'.
24227         * modules/tanh-tests: New file.
24228         * tests/test-tanh.c: New file.
24229
24230         Tests for module 'tan'.
24231         * modules/tan-tests: New file.
24232         * tests/test-tan.c: New file.
24233
24234         Tests for module 'sqrt'.
24235         * modules/sqrt-tests: New file.
24236         * tests/test-sqrt.c: New file.
24237
24238         Tests for module 'sinh'.
24239         * modules/sinh-tests: New file.
24240         * tests/test-sinh.c: New file.
24241
24242         Tests for module 'sin'.
24243         * modules/sin-tests: New file.
24244         * tests/test-sin.c: New file.
24245
24246         Tests for module 'rint'.
24247         * modules/rint-tests: New file.
24248         * tests/test-rint.c: New file.
24249
24250         Tests for module 'remainder'.
24251         * modules/remainder-tests: New file.
24252         * tests/test-remainder.c: New file.
24253
24254         Tests for module 'pow'.
24255         * modules/pow-tests: New file.
24256         * tests/test-pow.c: New file.
24257
24258         Tests for module 'nextafter'.
24259         * modules/nextafter-tests: New file.
24260         * tests/test-nextafter.c: New file.
24261
24262         Tests for module 'modf'.
24263         * modules/modf-tests: New file.
24264         * tests/test-modf.c: New file.
24265
24266         Tests for module 'logb'.
24267         * modules/logb-tests: New file.
24268         * tests/test-logb.c: New file.
24269
24270         Tests for module 'log1p'.
24271         * modules/log1p-tests: New file.
24272         * tests/test-log1p.c: New file.
24273
24274         Tests for module 'log10'.
24275         * modules/log10-tests: New file.
24276         * tests/test-log10.c: New file.
24277
24278         Tests for module 'log'.
24279         * modules/log-tests: New file.
24280         * tests/test-log.c: New file.
24281
24282         Tests for module 'lgamma'.
24283         * modules/lgamma-tests: New file.
24284         * tests/test-lgamma.c: New file.
24285
24286         Tests for module 'ldexp'.
24287         * modules/ldexp-tests: New file.
24288         * tests/test-ldexp.c: New file.
24289
24290         Tests for module 'jn'.
24291         * modules/jn-tests: New file.
24292         * tests/test-jn.c: New file.
24293
24294         Tests for module 'j1'.
24295         * modules/j1-tests: New file.
24296         * tests/test-j1.c: New file.
24297
24298         Tests for module 'j0'.
24299         * modules/j0-tests: New file.
24300         * tests/test-j0.c: New file.
24301
24302         Tests for module 'hypot'.
24303         * modules/hypot-tests: New file.
24304         * tests/test-hypot.c: New file.
24305
24306         Tests for module 'fmod'.
24307         * modules/fmod-tests: New file.
24308         * tests/test-fmod.c: New file.
24309
24310         Tests for module 'fabs'.
24311         * modules/fabs-tests: New file.
24312         * tests/test-fabs.c: New file.
24313
24314         Tests for module 'exp'.
24315         * modules/exp-tests: New file.
24316         * tests/test-exp.c: New file.
24317
24318         Tests for module 'erfc'.
24319         * modules/erfc-tests: New file.
24320         * tests/test-erfc.c: New file.
24321
24322         Tests for module 'erf'.
24323         * modules/erf-tests: New file.
24324         * tests/test-erf.c: New file.
24325
24326         Tests for module 'cosh'.
24327         * modules/cosh-tests: New file.
24328         * tests/test-cosh.c: New file.
24329
24330         Tests for module 'cos'.
24331         * modules/cos-tests: New file.
24332         * tests/test-cos.c: New file.
24333
24334         Tests for module 'copysign'.
24335         * modules/copysign-tests: New file.
24336         * tests/test-copysign.c: New file.
24337
24338         Tests for module 'cbrt'.
24339         * modules/cbrt-tests: New file.
24340         * tests/test-cbrt.c: New file.
24341
24342         Tests for module 'atan2'.
24343         * modules/atan2-tests: New file.
24344         * tests/test-atan2.c: New file.
24345
24346         Tests for module 'atan'.
24347         * modules/atan-tests: New file.
24348         * tests/test-atan.c: New file.
24349
24350         Tests for module 'asin'.
24351         * modules/asin-tests: New file.
24352         * tests/test-asin.c: New file.
24353
24354         Tests for module 'acos'.
24355         * modules/acos-tests: New file.
24356         * tests/test-acos.c: New file.
24357
24358 2010-01-24  Bruno Haible  <bruno@clisp.org>
24359
24360         Fix tests for common <math.h> functions.
24361         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24362         code snippet that references the function pointer, rather than merely
24363         calling the function. Substitute the FUNC_LIBM variable.
24364         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24365         * modules/acos (configure.ac): Likewise.
24366         * modules/asin (configure.ac): Likewise.
24367         * modules/atan (configure.ac): Likewise.
24368         * modules/atan2 (configure.ac): Likewise.
24369         * modules/cbrt (configure.ac): Likewise.
24370         * modules/copysign (configure.ac): Likewise.
24371         * modules/cos (configure.ac): Likewise.
24372         * modules/cosh (configure.ac): Likewise.
24373         * modules/erf (configure.ac): Likewise.
24374         * modules/erfc (configure.ac): Likewise.
24375         * modules/exp (configure.ac): Likewise.
24376         * modules/fabs (configure.ac): Likewise.
24377         * modules/fmod (configure.ac): Likewise.
24378         * modules/hypot (configure.ac): Likewise.
24379         * modules/j0 (configure.ac): Likewise.
24380         * modules/j1 (configure.ac): Likewise.
24381         * modules/jn (configure.ac): Likewise.
24382         * modules/ldexp (configure.ac): Likewise.
24383         * modules/lgamma (configure.ac): Likewise.
24384         * modules/log (configure.ac): Likewise.
24385         * modules/log10 (configure.ac): Likewise.
24386         * modules/log1p (configure.ac): Likewise.
24387         * modules/logb (configure.ac): Likewise.
24388         * modules/modf (configure.ac): Likewise.
24389         * modules/nextafter (configure.ac): Likewise.
24390         * modules/pow (configure.ac): Likewise.
24391         * modules/remainder (configure.ac): Likewise.
24392         * modules/rint (configure.ac): Likewise.
24393         * modules/sin (configure.ac): Likewise.
24394         * modules/sinh (configure.ac): Likewise.
24395         * modules/tan (configure.ac): Likewise.
24396         * modules/tanh (configure.ac): Likewise.
24397         * modules/y0 (configure.ac): Likewise.
24398         * modules/y1 (configure.ac): Likewise.
24399         * modules/yn (configure.ac): Likewise.
24400
24401 2010-01-24  Bruno Haible  <bruno@clisp.org>
24402
24403         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
24404         * tests/test-acosl.c (x): New variable.
24405         (main): Store argument in x and fetch it from x.
24406         * tests/test-asinl.c (x): New variable.
24407         (main): Store argument in x and fetch it from x.
24408         * tests/test-atanl.c (x): New variable.
24409         (main): Store argument in x and fetch it from x.
24410         * tests/test-cosl.c (x): New variable.
24411         (main): Store argument in x and fetch it from x.
24412         * tests/test-expl.c (x): New variable.
24413         (main): Store argument in x and fetch it from x.
24414         * tests/test-logl.c (x): New variable.
24415         (main): Store argument in x and fetch it from x.
24416         * tests/test-sinl.c (x): New variable.
24417         (main): Store argument in x and fetch it from x.
24418         * tests/test-sqrtl.c (x): New variable.
24419         (main): Store argument in x and fetch it from x.
24420         * tests/test-tanl.c (x): New variable.
24421         (main): Store argument in x and fetch it from x.
24422
24423 2010-01-24  Bruno Haible  <bruno@clisp.org>
24424
24425         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
24426         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
24427         assignments to the initial TESTS_ENVIRONMENT.
24428         * doc/gnulib.texi (Unit test modules): Document it.
24429         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
24430         TESTS_ENVIRONMENT.
24431         * modules/btowc-tests (Makefile.am): Likewise.
24432         * modules/c-stack-tests (Makefile.am): Likewise.
24433         * modules/c-strcase-tests (Makefile.am): Likewise.
24434         * modules/copy-file-tests (Makefile.am): Likewise.
24435         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
24436         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
24437         * modules/mbrtowc-tests (Makefile.am): Likewise.
24438         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24439         * modules/mbscasestr-tests (Makefile.am): Likewise.
24440         * modules/mbschr-tests (Makefile.am): Likewise.
24441         * modules/mbscspn-tests (Makefile.am): Likewise.
24442         * modules/mbsinit-tests (Makefile.am): Likewise.
24443         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24444         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
24445         * modules/mbspbrk-tests (Makefile.am): Likewise.
24446         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24447         * modules/mbsrchr-tests (Makefile.am): Likewise.
24448         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
24449         * modules/mbsspn-tests (Makefile.am): Likewise.
24450         * modules/mbsstr-tests (Makefile.am): Likewise.
24451         * modules/nl_langinfo-tests (Makefile.am): Likewise.
24452         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
24453         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24454         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24455         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24456         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24457         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
24458         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24459         * modules/wcrtomb-tests (Makefile.am): Likewise.
24460         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
24461         * modules/wcsrtombs-tests (Makefile.am): Likewise.
24462         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
24463         assignments from TESTS_ENVIRONMENT.
24464         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
24465         augmentation.
24466         * modules/argp-version-etc-tests (Makefile.am): Likewise.
24467         * modules/atexit-tests (Makefile.am): Likewise.
24468         * modules/binary-io-tests (Makefile.am): Likewise.
24469         * modules/closein-tests (Makefile.am): Likewise.
24470         * modules/dprintf-posix-tests (Makefile.am): Likewise.
24471         * modules/exclude-tests (Makefile.am): Likewise.
24472         * modules/fflush-tests (Makefile.am): Likewise.
24473         * modules/fpending-tests (Makefile.am): Likewise.
24474         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24475         * modules/freadahead-tests (Makefile.am): Likewise.
24476         * modules/freadptr-tests (Makefile.am): Likewise.
24477         * modules/freadseek-tests (Makefile.am): Likewise.
24478         * modules/fseek-tests (Makefile.am): Likewise.
24479         * modules/fseeko-tests (Makefile.am): Likewise.
24480         * modules/ftell-tests (Makefile.am): Likewise.
24481         * modules/ftello-tests (Makefile.am): Likewise.
24482         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24483         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24484         * modules/lseek-tests (Makefile.am): Likewise.
24485         * modules/parse-duration-tests (Makefile.am): Likewise.
24486         * modules/perror-tests (Makefile.am): Likewise.
24487         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24488         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24489         * modules/pipe-tests (Makefile.am): Likewise.
24490         * modules/pread-tests (Makefile.am): Likewise.
24491         * modules/printf-posix-tests (Makefile.am): Likewise.
24492         * modules/select-tests (Makefile.am): Likewise.
24493         * modules/sigpipe-tests (Makefile.am): Likewise.
24494         * modules/tsearch-tests (Makefile.am): Likewise.
24495         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24496         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24497         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24498         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24499         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24500         * modules/version-etc-tests (Makefile.am): Likewise.
24501         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24502         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24503         * modules/xalloc-die-tests (Makefile.am): Likewise.
24504         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24505         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24506         * modules/xstrtol-tests (Makefile.am): Likewise.
24507         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24508         * modules/yesno-tests (Makefile.am): Likewise.
24509         Suggested by Jim Meyering.
24510
24511 2010-01-24  Bruno Haible  <bruno@clisp.org>
24512
24513         More documentation.
24514         * doc/gnulib.texi (Writing modules): New chapter.
24515         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24516         the new chapter.
24517
24518 2010-01-24  Jim Meyering  <meyering@redhat.com>
24519
24520         maint.mk: do not prepend "./" after filtering
24521         * top/maint.mk (_prepend_srcdir_prefix): New variable
24522         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24523         "./" when $(srcdir) is ".".
24524
24525         define STREQ(a,b) consistently, removing useless parentheses
24526         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24527         since the only risk is that "a" or "b" contains an unparenthesized
24528         comma, but if either did that, STREQ would have 3 or more arguments.
24529         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24530         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24531         * lib/hash-triple.c (STREQ): Likewise.
24532         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24533         * lib/getugroups.c (STREQ): Likewise.
24534
24535 2010-01-23  Jim Meyering  <meyering@redhat.com>
24536
24537         maint.mk: fix syntax-check in a non-srcdir build directory
24538         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24539         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24540
24541 2010-01-22  Jim Meyering  <meyering@redhat.com>
24542
24543         userspec: add unit tests
24544         * tests/test-userspec.c: New file.
24545         * modules/userspec-tests: Likewise.
24546
24547 2010-01-21  Jim Meyering  <meyering@redhat.com>
24548
24549         maint.mk: handle source file names containing "." robustly
24550         * top/maint.mk (_dot_escaped_srcdir): Define.
24551         (VC_LIST): Use it in LHS of sed substitution.
24552
24553 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24554
24555         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24556         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24557         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24558         from a non-srcdir build.
24559
24560 2010-01-20  Eric Blake  <ebb9@byu.net>
24561
24562         warn-on-use: use instead of link-warning
24563         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24564         * modules/unistd (Depends-on, Makefile.am): Likewise.
24565         * modules/arpa_inet (Depends-on): Replace link-warning with
24566         warn-on-use.
24567         (Makefile.am): Update rules accordingly.
24568         * modules/ctype (Depends-on, Makefile.am): Likewise.
24569         * modules/dirent (Depends-on, Makefile.am): Likewise.
24570         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24571         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24572         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24573         * modules/locale (Depends-on, Makefile.am): Likewise.
24574         * modules/math (Depends-on, Makefile.am): Likewise.
24575         * modules/search (Depends-on, Makefile.am): Likewise.
24576         * modules/signal (Depends-on, Makefile.am): Likewise.
24577         * modules/spawn (Depends-on, Makefile.am): Likewise.
24578         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24579         * modules/string (Depends-on, Makefile.am): Likewise.
24580         * modules/strings (Depends-on, Makefile.am): Likewise.
24581         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24582         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24583         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24584         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24585         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24586         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24587         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24588         * modules/wchar (Depends-on, Makefile.am): Likewise.
24589         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24590         should be poisoned.
24591         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24592         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24593         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24594         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24595         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24596         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24597         * m4/math_h.m4 (gl_MATH_H): Likewise.
24598         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24599         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24600         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24601         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24602         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24603         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24604         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24605         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24606         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24607         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24608         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24609         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24610         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24611         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24612         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24613         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24614         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24615         GL_LINK_WARNING.
24616         * lib/ctype.in.h: Likewise.
24617         * lib/dirent.in.h: Likewise.
24618         * lib/fcntl.in.h: Likewise.
24619         * lib/inttypes.in.h: Likewise.
24620         * lib/langinfo.in.h: Likewise.
24621         * lib/locale.in.h: Likewise.
24622         * lib/math.in.h: Likewise.
24623         * lib/search.in.h: Likewise.
24624         * lib/signal.in.h: Likewise.
24625         * lib/spawn.in.h: Likewise.
24626         * lib/stdio.in.h: Likewise.
24627         * lib/stdlib.in.h: Likewise.
24628         * lib/string.in.h: Likewise.
24629         * lib/strings.in.h: Likewise.
24630         * lib/sys_file.in.h: Likewise.
24631         * lib/sys_ioctl.in.h: Likewise.
24632         * lib/sys_select.in.h: Likewise.
24633         * lib/sys_socket.in.h: Likewise.
24634         * lib/sys_stat.in.h: Likewise.
24635         * lib/sys_times.in.h: Likewise.
24636         * lib/sys_utsname.in.h: Likewise.
24637         * lib/unistd.in.h: Likewise.
24638         * lib/wchar.in.h: Likewise.
24639
24640 2010-01-20  Bruno Haible  <bruno@clisp.org>
24641
24642         Avoid duplicate -lm.
24643         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24644         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24645         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24646         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24647         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24648         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24649         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24650         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24651         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24652         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24653         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24654         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24655         Reported by Paolo Bonzini.
24656
24657 2010-01-19  Bruno Haible  <bruno@clisp.org>
24658
24659         langinfo, nl_langinfo: Relicense under LGPLv2+.
24660         * modules/langinfo (License): Change to LGPLv2+.
24661         * modules/nl_langinfo (License): Likewise.
24662         Patch by David Lutterkort <lutter@redhat.com>.
24663
24664 2010-01-19  Bruno Haible  <bruno@clisp.org>
24665
24666         Avoid compilation error with cc on OSF/1 5.1.
24667         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24668         statement, not before.
24669         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24670
24671 2010-01-18  Bruno Haible  <bruno@clisp.org>
24672
24673         Avoid a link error due to the __printf__ symbol.
24674         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24675         and 2.6.x.
24676         (__format__, __printf__): Remove definitions.
24677         * lib/argp-fmtstream.h: Likewise.
24678         * lib/argp.h: Likewise.
24679         * lib/error.h: Likewise.
24680         * lib/vasnprintf.h: Likewise.
24681         * lib/xprintf.h: Likewise.
24682         * lib/xvasprintf.h: Likewise.
24683         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24684
24685 2010-01-18  Bruno Haible  <bruno@clisp.org>
24686
24687         Tests for module 'tanl'.
24688         * modules/tanl-tests: New file.
24689         * tests/test-tanl.c: New file.
24690
24691         Tests for module 'sqrtl'.
24692         * modules/sqrtl-tests: New file.
24693         * tests/test-sqrtl.c: New file.
24694
24695         Tests for module 'sinl'.
24696         * modules/sinl-tests: New file.
24697         * tests/test-sinl.c: New file.
24698
24699         Tests for module 'logl'.
24700         * modules/logl-tests: New file.
24701         * tests/test-logl.c: New file.
24702
24703         Tests for module 'expl'.
24704         * modules/expl-tests: New file.
24705         * tests/test-expl.c: New file.
24706
24707         Tests for module 'cosl'.
24708         * modules/cosl-tests: New file.
24709         * tests/test-cosl.c: New file.
24710
24711         Tests for module 'atanl'.
24712         * modules/atanl-tests: New file.
24713         * tests/test-atanl.c: New file.
24714
24715         Tests for module 'asinl'.
24716         * modules/asinl-tests: New file.
24717         * tests/test-asinl.c: New file.
24718
24719         Tests for module 'acosl'.
24720         * modules/acosl-tests: New file.
24721         * tests/test-acosl.c: New file.
24722
24723         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24724         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24725         tanl): Use the standard gnulib idiom.
24726         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24727         * lib/sinl.c: Likewise.
24728         * lib/tanl.c: Don't include trigl.c.
24729         (kernel_tanl): Make static.
24730         * lib/sincosl.c: Include trigl.h first.
24731         * lib/trigl.c: Likewise.
24732         * m4/acosl.m4: New file.
24733         * m4/asinl.m4: New file.
24734         * m4/atanl.m4: New file.
24735         * m4/cosl.m4: New file.
24736         * m4/expl.m4: New file.
24737         * m4/logl.m4: New file.
24738         * m4/sinl.m4: New file.
24739         * m4/sqrtl.m4: New file.
24740         * m4/tanl.m4: New file.
24741         * m4/mathl.m4: Remove file.
24742         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24743         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24744         Don't initialize GNULIB_MATHL.
24745         * modules/acosl: New file.
24746         * modules/asinl: New file.
24747         * modules/atanl: New file.
24748         * modules/cosl: New file.
24749         * modules/expl: New file.
24750         * modules/logl: New file.
24751         * modules/sinl: New file.
24752         * modules/sqrtl: New file.
24753         * modules/tanl: New file.
24754         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24755         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24756         substitute GNULIB_MATHL.
24757         * modules/mathl: Rewritten.
24758         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24759         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24760         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24761         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24762         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24763         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24764         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24765         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24766         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24767
24768 2010-01-18  Bruno Haible  <bruno@clisp.org>
24769
24770         sqrt: Make gl_FUNC_SQRT requirable.
24771         * m4/sqrt.m4: New file.
24772         * modules/sqrt (Files): Add it.
24773         (configure.ac): Invoke gl_FUNC_SQRT.
24774
24775 2010-01-18  Bruno Haible  <bruno@clisp.org>
24776
24777         New modules for common <math.h> functions.
24778         * m4/mathfunc.m4: New file.
24779         * modules/acos: New file.
24780         * modules/asin: New file.
24781         * modules/atan: New file.
24782         * modules/atan2: New file.
24783         * modules/cbrt: New file.
24784         * modules/copysign: New file.
24785         * modules/cos: New file.
24786         * modules/cosh: New file.
24787         * modules/erf: New file.
24788         * modules/erfc: New file.
24789         * modules/exp: New file.
24790         * modules/fabs: New file.
24791         * modules/fmod: New file.
24792         * modules/hypot: New file.
24793         * modules/j0: New file.
24794         * modules/j1: New file.
24795         * modules/jn: New file.
24796         * modules/ldexp: New file.
24797         * modules/lgamma: New file.
24798         * modules/log: New file.
24799         * modules/log10: New file.
24800         * modules/log1p: New file.
24801         * modules/logb: New file.
24802         * modules/modf: New file.
24803         * modules/nextafter: New file.
24804         * modules/pow: New file.
24805         * modules/remainder: New file.
24806         * modules/rint: New file.
24807         * modules/sin: New file.
24808         * modules/sinh: New file.
24809         * modules/sqrt: New file.
24810         * modules/tan: New file.
24811         * modules/tanh: New file.
24812         * modules/y0: New file.
24813         * modules/y1: New file.
24814         * modules/yn: New file.
24815         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24816         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24817         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24818         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24819         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24820         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24821         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24822         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24823         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24824         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24825         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24826         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24827         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24828         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24829         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24830         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24831         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24832         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24833         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24834         * doc/posix-functions/log.texi: Mention the 'log' module.
24835         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24836         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24837         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24838         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24839         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24840         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24841         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24842         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24843         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24844         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24845         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24846         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24847         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24848         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24849         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24850         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24851
24852 2010-01-18  Jim Meyering  <meyering@redhat.com>
24853
24854         ignore-value: relax license to LGPLv2+
24855         * modules/ignore-value (License): Relax to LGPLv2+.
24856
24857         getdate: don't leak when TZ contains two or more '"'s
24858         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24859         double quote in TZ after the first one.
24860
24861         readtokens: do not leak internal token_lengths buffer
24862         * lib/readtokens.c (readtokens): Free the local, lengths,
24863         when the supplied "token_lengths" parameter is NULL.
24864
24865 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24866
24867         Fix a couple of missing LIBTHREAD link failures on AIX.
24868         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24869         $(LIBTHREAD).
24870         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24871
24872         Link test-poll against INET_PTON_LIB.
24873         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24874         for inet_pton on Solaris 10.
24875
24876 2010-01-17  Bruno Haible  <bruno@clisp.org>
24877
24878         unistdio/*-sprintf: Fix typo in module description.
24879         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24880         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24881         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24882         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24883         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24884         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24885         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24886         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24887
24888 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24889
24890         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24891         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24892         variables in shell case patterns, for AIX and HP-UX ksh.
24893
24894         Split large sed scripts, for HP-UX sed.
24895         * modules/stdio: Split sed scripts around 50 sed commands,
24896         to avoid HP-UX limit of 99 commands, in the near future.
24897         * modules/string: Likewise.
24898         * modules/unistd: Likewise.
24899
24900         gnulib-tool: avoid writing in the current directory.
24901         * gnulib-tool (func_emit_lib_Makefile_am)
24902         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24903         not in the current directory, so concurrent gnulib-tool
24904         instances do not interfere.
24905
24906 2010-01-16  Jim Meyering  <meyering@redhat.com>
24907
24908         doc: update users.txt
24909         * users.txt: Add grep.
24910         (diffutils, gzip): Update URLs.
24911
24912 2010-01-12  Bruno Haible  <bruno@clisp.org>
24913
24914         posix_spawn: Avoid test failure on Cygwin.
24915         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24916         characters.
24917         Reported by Simon Josefsson.
24918
24919 2010-01-12  Bruno Haible  <bruno@clisp.org>
24920
24921         * tests/test-cond.c (main): When skipping the test, show the reason.
24922
24923 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24924
24925         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24926
24927 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24928
24929         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24930         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24931
24932 2010-01-12  Eric Blake  <ebb9@byu.net>
24933
24934         build: guarantee AS_VAR_IF
24935         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24936         (gl_AS_VAR_IF): Move...
24937         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24938         Reported by Simon Josefsson.
24939
24940 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24941
24942         * lib/stdio.in.h: Fix typo.
24943
24944 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24945
24946         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24947         libgpg-error.
24948
24949 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24950
24951         * tests/test-xalloc-die.sh: Use $EXEEXT.
24952
24953 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24954             Bruno Haible  <bruno@clisp.org>
24955
24956         getlogin, getlogin_r: Avoid test failure.
24957         * tests/test-getlogin.c: Include <stdio.h>.
24958         (main): Skip the test when the function fails because stdin is not a
24959         tty.
24960         * tests/test-getlogin_r.c: Include <stdio.h>.
24961         (main): Skip the test when the function fails because stdin is not a
24962         tty.
24963
24964 2010-01-11  Eric Blake  <ebb9@byu.net>
24965
24966         tests: avoid more large file warnings
24967         * tests/test-fflush.c: Avoid warning about ftell use.
24968         * tests/test-fseek.c: Avoid warning about fseek use.
24969
24970 2010-01-10  Bruno Haible  <bruno@clisp.org>
24971
24972         nproc: Work better on Linux when /proc and /sys are not mounted.
24973         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24974         as lower bound when, on glibc/Linux systems,
24975         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24976         Suggested by Pádraig Brady <P@draigbrady.com>.
24977         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24978
24979         nproc: Refactor.
24980         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24981         extracted from num_processors.
24982         (num_processors): Call it.
24983
24984 2010-01-11  Jim Meyering  <meyering@redhat.com>
24985
24986         utimecmp: avoid new warning from upcoming gcc-4.5.0
24987         * lib/utimecmp.c (BILLION): Define using #define rather than an
24988         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24989
24990 2010-01-11  Eric Blake  <ebb9@byu.net>
24991
24992         math: add portability warnings for classification macros
24993         * modules/math (Depends-on): Add warn-on-use.
24994         (Makefile.am): Provide new substitutions.
24995         * m4/math_h.m4 (gl_MATH_H): Require inline.
24996         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24997         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24998         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24999         implement warnings.
25000
25001         unistd: warn on use of environ without module
25002         * modules/unistd (Depends-on): Add warn-on-use.
25003         (Makefile.am): Provide new substitutions.
25004         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
25005         * lib/unistd.in.h (environ): Wrap with a warning helper function.
25006
25007         stdio: warn on suspicious uses
25008         * modules/stdio (Depends-on): Add warn-on-use.
25009         (Makefile.am): Provide new substitutions.
25010         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
25011         fseeko.
25012         * lib/stdio.in.h (gets): Always warn on use.
25013         (fseek, ftell): Adjust when warnings are issued, and honor
25014         _GL_NO_LARGE_FILES as a way to silence the warning.
25015         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
25016         any warning about large file offsets.
25017         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
25018         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
25019         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
25020         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
25021         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
25022         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
25023         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
25024         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
25025
25026         warn-on-use: new module
25027         * modules/warn-on-use: New file.
25028         * build-aux/warn-on-use.h: Likewise.
25029         * m4/warn-on-use.m4: Likewise.
25030         * MODULES.html.sh (Support for building): Mention it.
25031
25032 2010-01-10  Bruno Haible  <bruno@clisp.org>
25033
25034         Tests for module 'unistr/u32-strdup'.
25035         * modules/unistr/u32-strdup-tests: New file.
25036         * tests/unistr/test-u32-strdup.c: New file.
25037
25038         Tests for module 'unistr/u16-strdup'.
25039         * modules/unistr/u16-strdup-tests: New file.
25040         * tests/unistr/test-u16-strdup.c: New file.
25041
25042         Tests for module 'unistr/u8-strdup'.
25043         * modules/unistr/u8-strdup-tests: New file.
25044         * tests/unistr/test-u8-strdup.c: New file.
25045         * tests/unistr/test-strdup.h: New file.
25046
25047         Tests for module 'unistr/u32-strncmp'.
25048         * modules/unistr/u32-strncmp-tests: New file.
25049         * tests/unistr/test-u32-strncmp.c: New file.
25050
25051         Tests for module 'unistr/u16-strncmp'.
25052         * modules/unistr/u16-strncmp-tests: New file.
25053         * tests/unistr/test-u16-strncmp.c: New file.
25054
25055         Tests for module 'unistr/u8-strncmp'.
25056         * modules/unistr/u8-strncmp-tests: New file.
25057         * tests/unistr/test-u8-strncmp.c: New file.
25058         * tests/unistr/test-strncmp.h: New file.
25059
25060         Tests for module 'unistr/u32-strcoll'.
25061         * modules/unistr/u32-strcoll-tests: New file.
25062         * tests/unistr/test-u32-strcoll.c: New file.
25063
25064         Tests for module 'unistr/u16-strcoll'.
25065         * modules/unistr/u16-strcoll-tests: New file.
25066         * tests/unistr/test-u16-strcoll.c: New file.
25067
25068         Tests for module 'unistr/u8-strcoll'.
25069         * modules/unistr/u8-strcoll-tests: New file.
25070         * tests/unistr/test-u8-strcoll.c: New file.
25071
25072         Tests for module 'unistr/u32-strcmp'.
25073         * modules/unistr/u32-strcmp-tests: New file.
25074         * tests/unistr/test-u32-strcmp.c: New file.
25075         * tests/unistr/test-u32-strcmp.h: New file.
25076
25077         Tests for module 'unistr/u16-strcmp'.
25078         * modules/unistr/u16-strcmp-tests: New file.
25079         * tests/unistr/test-u16-strcmp.c: New file.
25080         * tests/unistr/test-u16-strcmp.h: New file.
25081
25082         Tests for module 'unistr/u8-strcmp'.
25083         * modules/unistr/u8-strcmp-tests: New file.
25084         * tests/unistr/test-u8-strcmp.c: New file.
25085         * tests/unistr/test-u8-strcmp.h: New file.
25086         * tests/unistr/test-strcmp.h: New file.
25087
25088         Tests for module 'unistr/u32-strncat'.
25089         * modules/unistr/u32-strncat-tests: New file.
25090         * tests/unistr/test-u32-strncat.c: New file.
25091
25092         Tests for module 'unistr/u16-strncat'.
25093         * modules/unistr/u16-strncat-tests: New file.
25094         * tests/unistr/test-u16-strncat.c: New file.
25095
25096         Tests for module 'unistr/u8-strncat'.
25097         * modules/unistr/u8-strncat-tests: New file.
25098         * tests/unistr/test-u8-strncat.c: New file.
25099         * tests/unistr/test-strncat.h: New file.
25100
25101         Tests for module 'unistr/u32-strcat'.
25102         * modules/unistr/u32-strcat-tests: New file.
25103         * tests/unistr/test-u32-strcat.c: New file.
25104
25105         Tests for module 'unistr/u16-strcat'.
25106         * modules/unistr/u16-strcat-tests: New file.
25107         * tests/unistr/test-u16-strcat.c: New file.
25108
25109         Tests for module 'unistr/u8-strcat'.
25110         * modules/unistr/u8-strcat-tests: New file.
25111         * tests/unistr/test-u8-strcat.c: New file.
25112         * tests/unistr/test-strcat.h: New file.
25113
25114         Tests for module 'unistr/u32-stpncpy'.
25115         * modules/unistr/u32-stpncpy-tests: New file.
25116         * tests/unistr/test-u32-stpncpy.c: New file.
25117
25118         Tests for module 'unistr/u16-stpncpy'.
25119         * modules/unistr/u16-stpncpy-tests: New file.
25120         * tests/unistr/test-u16-stpncpy.c: New file.
25121
25122         Tests for module 'unistr/u8-stpncpy'.
25123         * modules/unistr/u8-stpncpy-tests: New file.
25124         * tests/unistr/test-u8-stpncpy.c: New file.
25125         * tests/unistr/test-stpncpy.h: New file.
25126
25127         Tests for module 'unistr/u32-strncpy'.
25128         * modules/unistr/u32-strncpy-tests: New file.
25129         * tests/unistr/test-u32-strncpy.c: New file.
25130
25131         Tests for module 'unistr/u16-strncpy'.
25132         * modules/unistr/u16-strncpy-tests: New file.
25133         * tests/unistr/test-u16-strncpy.c: New file.
25134
25135         Tests for module 'unistr/u8-strncpy'.
25136         * modules/unistr/u8-strncpy-tests: New file.
25137         * tests/unistr/test-u8-strncpy.c: New file.
25138         * tests/unistr/test-strncpy.h: New file.
25139
25140         Tests for module 'unistr/u32-stpcpy'.
25141         * modules/unistr/u32-stpcpy-tests: New file.
25142         * tests/unistr/test-u32-stpcpy.c: New file.
25143
25144         Tests for module 'unistr/u16-stpcpy'.
25145         * modules/unistr/u16-stpcpy-tests: New file.
25146         * tests/unistr/test-u16-stpcpy.c: New file.
25147
25148         Tests for module 'unistr/u8-stpcpy'.
25149         * modules/unistr/u8-stpcpy-tests: New file.
25150         * tests/unistr/test-u8-stpcpy.c: New file.
25151         * tests/unistr/test-stpcpy.h: New file.
25152
25153         Tests for module 'unistr/u32-strcpy'.
25154         * modules/unistr/u32-strcpy-tests: New file.
25155         * tests/unistr/test-u32-strcpy.c: New file.
25156
25157         Tests for module 'unistr/u16-strcpy'.
25158         * modules/unistr/u16-strcpy-tests: New file.
25159         * tests/unistr/test-u16-strcpy.c: New file.
25160
25161         Tests for module 'unistr/u8-strcpy'.
25162         * modules/unistr/u8-strcpy-tests: New file.
25163         * tests/unistr/test-u8-strcpy.c: New file.
25164         * tests/unistr/test-strcpy.h: New file.
25165
25166         Tests for module 'unistr/u32-strnlen'.
25167         * modules/unistr/u32-strnlen-tests: New file.
25168         * tests/unistr/test-u32-strnlen.c: New file.
25169
25170         Tests for module 'unistr/u16-strnlen'.
25171         * modules/unistr/u16-strnlen-tests: New file.
25172         * tests/unistr/test-u16-strnlen.c: New file.
25173
25174         Tests for module 'unistr/u8-strnlen'.
25175         * modules/unistr/u8-strnlen-tests: New file.
25176         * tests/unistr/test-u8-strnlen.c: New file.
25177         * tests/unistr/test-strnlen.h: New file.
25178
25179         Tests for module 'unistr/u32-strlen'.
25180         * modules/unistr/u32-strlen-tests: New file.
25181         * tests/unistr/test-u32-strlen.c: New file.
25182
25183         Tests for module 'unistr/u16-strlen'.
25184         * modules/unistr/u16-strlen-tests: New file.
25185         * tests/unistr/test-u16-strlen.c: New file.
25186
25187         Tests for module 'unistr/u8-strlen'.
25188         * modules/unistr/u8-strlen-tests: New file.
25189         * tests/unistr/test-u8-strlen.c: New file.
25190
25191         Tests for module 'unistr/u32-prev'.
25192         * modules/unistr/u32-prev-tests: New file.
25193         * tests/unistr/test-u32-prev.c: New file.
25194
25195         Tests for module 'unistr/u16-prev'.
25196         * modules/unistr/u16-prev-tests: New file.
25197         * tests/unistr/test-u16-prev.c: New file.
25198
25199         Tests for module 'unistr/u8-prev'.
25200         * modules/unistr/u8-prev-tests: New file.
25201         * tests/unistr/test-u8-prev.c: New file.
25202
25203         Tests for module 'unistr/u32-next'.
25204         * modules/unistr/u32-next-tests: New file.
25205         * tests/unistr/test-u32-next.c: New file.
25206
25207         Tests for module 'unistr/u16-next'.
25208         * modules/unistr/u16-next-tests: New file.
25209         * tests/unistr/test-u16-next.c: New file.
25210
25211         Tests for module 'unistr/u8-next'.
25212         * modules/unistr/u8-next-tests: New file.
25213         * tests/unistr/test-u8-next.c: New file.
25214
25215         Tests for module 'unistr/u32-strmbtouc'.
25216         * modules/unistr/u32-strmbtouc-tests: New file.
25217         * tests/unistr/test-u32-strmbtouc.c: New file.
25218
25219         Tests for module 'unistr/u16-strmbtouc'.
25220         * modules/unistr/u16-strmbtouc-tests: New file.
25221         * tests/unistr/test-u16-strmbtouc.c: New file.
25222
25223         Tests for module 'unistr/u8-strmbtouc'.
25224         * modules/unistr/u8-strmbtouc-tests: New file.
25225         * tests/unistr/test-u8-strmbtouc.c: New file.
25226
25227         Tests for module 'unistr/u32-strmblen'.
25228         * modules/unistr/u32-strmblen-tests: New file.
25229         * tests/unistr/test-u32-strmblen.c: New file.
25230
25231         Tests for module 'unistr/u16-strmblen'.
25232         * modules/unistr/u16-strmblen-tests: New file.
25233         * tests/unistr/test-u16-strmblen.c: New file.
25234
25235         Tests for module 'unistr/u8-strmblen'.
25236         * modules/unistr/u8-strmblen-tests: New file.
25237         * tests/unistr/test-u8-strmblen.c: New file.
25238
25239         Tests for module 'unistr/u32-cpy-alloc'.
25240         * modules/unistr/u32-cpy-alloc-tests: New file.
25241         * tests/unistr/test-u32-cpy-alloc.c: New file.
25242
25243         Tests for module 'unistr/u16-cpy-alloc'.
25244         * modules/unistr/u16-cpy-alloc-tests: New file.
25245         * tests/unistr/test-u16-cpy-alloc.c: New file.
25246
25247         Tests for module 'unistr/u8-cpy-alloc'.
25248         * modules/unistr/u8-cpy-alloc-tests: New file.
25249         * tests/unistr/test-u8-cpy-alloc.c: New file.
25250         * tests/unistr/test-cpy-alloc.h: New file.
25251
25252         Tests for module 'unistr/u32-mbsnlen'.
25253         * modules/unistr/u32-mbsnlen-tests: New file.
25254         * tests/unistr/test-u32-mbsnlen.c: New file.
25255
25256         Tests for module 'unistr/u16-mbsnlen'.
25257         * modules/unistr/u16-mbsnlen-tests: New file.
25258         * tests/unistr/test-u16-mbsnlen.c: New file.
25259
25260         Tests for module 'unistr/u8-mbsnlen'.
25261         * modules/unistr/u8-mbsnlen-tests: New file.
25262         * tests/unistr/test-u8-mbsnlen.c: New file.
25263
25264         Tests for module 'unistr/u32-chr'.
25265         * modules/unistr/u32-chr-tests: New file.
25266         * tests/unistr/test-u32-chr.c: New file.
25267
25268         Tests for module 'unistr/u16-chr'.
25269         * modules/unistr/u16-chr-tests: New file.
25270         * tests/unistr/test-u16-chr.c: New file.
25271
25272         Tests for module 'unistr/u8-chr'.
25273         * modules/unistr/u8-chr-tests: New file.
25274         * tests/unistr/test-u8-chr.c: New file.
25275         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25276
25277         Tests for module 'unistr/u32-cmp2'.
25278         * modules/unistr/u32-cmp2-tests: New file.
25279         * tests/unistr/test-u32-cmp2.c: New file.
25280
25281         Tests for module 'unistr/u16-cmp2'.
25282         * modules/unistr/u16-cmp2-tests: New file.
25283         * tests/unistr/test-u16-cmp2.c: New file.
25284
25285         Tests for module 'unistr/u8-cmp2'.
25286         * modules/unistr/u8-cmp2-tests: New file.
25287         * tests/unistr/test-u8-cmp2.c: New file.
25288         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25289
25290         Tests for module 'unistr/u32-cmp'.
25291         * modules/unistr/u32-cmp-tests: New file.
25292         * tests/unistr/test-u32-cmp.c: New file.
25293
25294         Tests for module 'unistr/u16-cmp'.
25295         * modules/unistr/u16-cmp-tests: New file.
25296         * tests/unistr/test-u16-cmp.c: New file.
25297
25298         Tests for module 'unistr/u8-cmp'.
25299         * modules/unistr/u8-cmp-tests: New file.
25300         * tests/unistr/test-u8-cmp.c: New file.
25301         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25302
25303         Tests for module 'unistr/u32-set'.
25304         * modules/unistr/u32-set-tests: New file.
25305         * tests/unistr/test-u32-set.c: New file.
25306
25307         Tests for module 'unistr/u16-set'.
25308         * modules/unistr/u16-set-tests: New file.
25309         * tests/unistr/test-u16-set.c: New file.
25310
25311         Tests for module 'unistr/u8-set'.
25312         * modules/unistr/u8-set-tests: New file.
25313         * tests/unistr/test-u8-set.c: New file.
25314         * tests/unistr/test-set.h: New file.
25315
25316         Tests for module 'unistr/u32-move'.
25317         * modules/unistr/u32-move-tests: New file.
25318         * tests/unistr/test-u32-move.c: New file.
25319
25320         Tests for module 'unistr/u16-move'.
25321         * modules/unistr/u16-move-tests: New file.
25322         * tests/unistr/test-u16-move.c: New file.
25323
25324         Tests for module 'unistr/u8-move'.
25325         * modules/unistr/u8-move-tests: New file.
25326         * tests/unistr/test-u8-move.c: New file.
25327         * tests/unistr/test-move.h: New file.
25328
25329         Tests for module 'unistr/u32-cpy'.
25330         * modules/unistr/u32-cpy-tests: New file.
25331         * tests/unistr/test-u32-cpy.c: New file.
25332
25333         Tests for module 'unistr/u16-cpy'.
25334         * modules/unistr/u16-cpy-tests: New file.
25335         * tests/unistr/test-u16-cpy.c: New file.
25336
25337         Tests for module 'unistr/u8-cpy'.
25338         * modules/unistr/u8-cpy-tests: New file.
25339         * tests/unistr/test-u8-cpy.c: New file.
25340         * tests/unistr/test-cpy.h: New file.
25341
25342 2010-01-09  Bruno Haible  <bruno@clisp.org>
25343
25344         Tests for module 'unistr/u32-uctomb'.
25345         * modules/unistr/u32-uctomb-tests: New file.
25346         * tests/unistr/test-u32-uctomb.c: New file.
25347
25348         Tests for module 'unistr/u16-uctomb'.
25349         * modules/unistr/u16-uctomb-tests: New file.
25350         * tests/unistr/test-u16-uctomb.c: New file.
25351
25352         Tests for module 'unistr/u8-uctomb'.
25353         * modules/unistr/u8-uctomb-tests: New file.
25354         * tests/unistr/test-u8-uctomb.c: New file.
25355
25356         Tests for module 'unistr/u32-mbtoucr'.
25357         * modules/unistr/u32-mbtoucr-tests: New file.
25358         * tests/unistr/test-u32-mbtoucr.c: New file.
25359
25360         Tests for module 'unistr/u16-mbtoucr'.
25361         * modules/unistr/u16-mbtoucr-tests: New file.
25362         * tests/unistr/test-u16-mbtoucr.c: New file.
25363
25364         Tests for module 'unistr/u8-mbtoucr'.
25365         * modules/unistr/u8-mbtoucr-tests: New file.
25366         * tests/unistr/test-u8-mbtoucr.c: New file.
25367
25368         Tests for module 'unistr/u32-mbtouc'.
25369         * modules/unistr/u32-mbtouc-tests: New file.
25370         * tests/unistr/test-u32-mbtouc.c: New file.
25371
25372         Tests for module 'unistr/u16-mbtouc'.
25373         * modules/unistr/u16-mbtouc-tests: New file.
25374         * tests/unistr/test-u16-mbtouc.c: New file.
25375
25376         Tests for module 'unistr/u8-mbtouc'.
25377         * modules/unistr/u8-mbtouc-tests: New file.
25378         * tests/unistr/test-u8-mbtouc.c: New file.
25379
25380         Tests for module 'unistr/u32-mbtouc-unsafe'.
25381         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25382         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25383         * tests/unistr/test-u32-mbtouc.h: New file.
25384
25385         Tests for module 'unistr/u16-mbtouc-unsafe'.
25386         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25387         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25388         * tests/unistr/test-u16-mbtouc.h: New file.
25389
25390         Tests for module 'unistr/u8-mbtouc-unsafe'.
25391         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25392         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25393         * tests/unistr/test-u8-mbtouc.h: New file.
25394
25395         Tests for module 'unistr/u32-mblen'.
25396         * modules/unistr/u32-mblen-tests: New file.
25397         * tests/unistr/test-u32-mblen.c: New file.
25398
25399         Tests for module 'unistr/u16-mblen'.
25400         * modules/unistr/u16-mblen-tests: New file.
25401         * tests/unistr/test-u16-mblen.c: New file.
25402
25403         Tests for module 'unistr/u8-mblen'.
25404         * modules/unistr/u8-mblen-tests: New file.
25405         * tests/unistr/test-u8-mblen.c: New file.
25406
25407         Tests for module 'unistr/u32-to-u16'.
25408         * modules/unistr/u32-to-u16-tests: New file.
25409         * tests/unistr/test-u32-to-u16.c: New file.
25410
25411         Tests for module 'unistr/u32-to-u8'.
25412         * modules/unistr/u32-to-u8-tests: New file.
25413         * tests/unistr/test-u32-to-u8.c: New file.
25414
25415         Tests for module 'unistr/u16-to-u32'.
25416         * modules/unistr/u16-to-u32-tests: New file.
25417         * tests/unistr/test-u16-to-u32.c: New file.
25418
25419         Tests for module 'unistr/u16-to-u8'.
25420         * modules/unistr/u16-to-u8-tests: New file.
25421         * tests/unistr/test-u16-to-u8.c: New file.
25422
25423         Tests for module 'unistr/u8-to-u32'.
25424         * modules/unistr/u8-to-u32-tests: New file.
25425         * tests/unistr/test-u8-to-u32.c: New file.
25426
25427         Tests for module 'unistr/u8-to-u16'.
25428         * modules/unistr/u8-to-u16-tests: New file.
25429         * tests/unistr/test-u8-to-u16.c: New file.
25430
25431         Tests for module 'unistr/u32-check'.
25432         * modules/unistr/u32-check-tests: New file.
25433         * tests/unistr/test-u32-check.c: New file.
25434
25435         Tests for module 'unistr/u16-check'.
25436         * modules/unistr/u16-check-tests: New file.
25437         * tests/unistr/test-u16-check.c: New file.
25438
25439         Tests for module 'unistr/u8-check'.
25440         * modules/unistr/u8-check-tests: New file.
25441         * tests/unistr/test-u8-check.c: New file.
25442
25443         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
25444         (category_equals): New function.
25445         (main): Add more tests.
25446         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
25447
25448         * tests/unictype/test-bidi_byname.c (main): Add more tests.
25449
25450 2010-01-10  Bruno Haible  <bruno@clisp.org>
25451
25452         unistr/u*-strcoll: Try harder to distinguish different strings.
25453         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
25454         compare s1 and s2 to see if they are different.
25455
25456 2010-01-10  Bruno Haible  <bruno@clisp.org>
25457
25458         unistr/u*-stpncpy: Fix the return value.
25459         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
25460         description of the return value consistent with stpncpy in glibc.
25461         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
25462         written non-NUL unit.
25463
25464 2010-01-10  Bruno Haible  <bruno@clisp.org>
25465
25466         unistr/u*-next: Add missing dependencies.
25467         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
25468         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
25469         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
25470
25471 2010-01-10  Bruno Haible  <bruno@clisp.org>
25472
25473         unistr/u8-mbsnlen: Fix return value for incomplete character.
25474         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
25475         u8_mblen.
25476         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
25477         Remove unistr/u8-mblen.
25478         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
25479         u16_mblen.
25480         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25481         Remove unistr/u16-mblen.
25482
25483 2010-01-10  Bruno Haible  <bruno@clisp.org>
25484
25485         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25486         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25487         Reported by Brian Gough <bjg@gnu.org> and
25488         Chris Clayton <chris2553@googlemail.com> via
25489         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25490
25491 2010-01-09  Bruno Haible  <bruno@clisp.org>
25492
25493         unistr/u16-to-u32: Reject invalid input.
25494         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25495         u16_mbtouc.
25496         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25497         Remove unistr/u16-mbtouc.
25498
25499         unistr/u16-to-u8: Reject invalid input.
25500         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25501         u16_mbtouc.
25502         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25503         Remove unistr/u16-mbtouc.
25504
25505         unistr/u8-to-u32: Reject invalid input.
25506         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25507         u8_mbtouc.
25508         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25509         Remove unistr/u8-mbtouc.
25510
25511         unistr/u8-to-u16: Reject invalid input.
25512         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25513         u8_mbtouc.
25514         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25515         Remove unistr/u8-mbtouc.
25516
25517 2010-01-09  Bruno Haible  <bruno@clisp.org>
25518
25519         Tests for module 'getlogin'.
25520         * modules/getlogin-tests: New file.
25521         * tests/test-getlogin.c: New file.
25522
25523         New module 'getlogin'.
25524         * lib/unistd.in.h (getlogin): New declaration.
25525         * lib/getlogin.c: New file.
25526         * m4/getlogin.m4: New file.
25527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25528         HAVE_GETLOGIN.
25529         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25530         HAVE_GETLOGIN.
25531         * modules/getlogin: New file.
25532         * doc/posix-functions/getlogin.texi: Mention the new module.
25533         Reported by John W. Eaton <jwe@gnu.org>.
25534
25535 2010-01-09  Bruno Haible  <bruno@clisp.org>
25536
25537         getlogin_r: Support for native Windows.
25538         * lib/getlogin_r.c: Include <windows.h>
25539         (getlogin_r): Implement for native Windows.
25540         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25541         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25542         via John W. Eaton <jwe@gnu.org>.
25543
25544 2010-01-09  Bruno Haible  <bruno@clisp.org>
25545
25546         getlogin_r: Small fixes.
25547         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25548         succeeds.
25549         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25550         before testing whether getlogin_r is declared. No need to set
25551         HAVE_DECL_GETLOGIN_R to 1.
25552         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25553
25554 2010-01-09  Bruno Haible  <bruno@clisp.org>
25555
25556         * lib/unistd.in.h (getlogin_r): Add comment.
25557
25558 2010-01-09  Bruno Haible  <bruno@clisp.org>
25559
25560         Tests for module 'getlogin_r'.
25561         * modules/getlogin_r-tests: New file.
25562         * tests/test-getlogin_r.c: New file.
25563
25564 2010-01-09  Jim Meyering  <meyering@redhat.com>
25565
25566         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25567         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25568         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25569
25570 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25571
25572         * lib/dup2.c (rpl_dup2): Improve comment.
25573
25574 2010-01-08  Eric Blake  <ebb9@byu.net>
25575
25576         maint.mk: allow packages to add makefile @@ exceptions
25577         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25578         (sc_makefile_check): Rename...
25579         (sc_makefile_at_at_check): ...to this, and use hook.
25580
25581         dup2: work around mingw bug
25582         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25583         Reported by Simon Josefsson.
25584
25585 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25586
25587         glob: Fix C++ compilation.
25588         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25589         C++.
25590
25591 2010-01-07  Bruno Haible  <bruno@clisp.org>
25592
25593         Fix indentation of wctype.in.h, broken since 2007-01-06.
25594         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25595
25596 2010-01-07  Bruno Haible  <bruno@clisp.org>
25597
25598         mbslen: Avoid collision with system function.
25599         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25600         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25601         * m4/mbslen.m4: New file.
25602         * modules/mbslen (Files): Add it.
25603         (configure.ac): Invoke gl_MBSLEN.
25604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25605         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25606         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25607         via Ian Beckwith <ianb@erislabs.net>.
25608
25609 2010-01-07  Bruno Haible  <bruno@clisp.org>
25610
25611         dirent: Document the last fix.
25612         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25613
25614 2010-01-07  Bruno Haible  <bruno@clisp.org>
25615
25616         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25617         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25618         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25619         va_list are defined.
25620         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25621         Reported by Eric Blake.
25622
25623 2010-01-07  Bruno Haible  <bruno@clisp.org>
25624
25625         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25626         * modules/xlist (Depends-on): Add 'list',
25627         * modules/xoset (Depends-on): Add 'oset'.
25628         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25629
25630 2010-01-07  Bruno Haible  <bruno@clisp.org>
25631
25632         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25633         * doc/posix-functions/strncasecmp.texi: Likewise.
25634
25635 2010-01-07  Bruno Haible  <bruno@clisp.org>
25636
25637         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25638
25639 2010-01-07  John W. Eaton  <jwe@octave.org>
25640
25641         wctype: allow C++ use
25642         * lib/wctype.in.h: Add extern "C" block for C++.
25643
25644 2010-01-06  Eric Blake  <ebb9@byu.net>
25645
25646         maint.mk: detect incorrect GFDL usage
25647         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25648
25649 2010-01-06  Jim Meyering  <meyering@redhat.com>
25650         and Eric Blake  <ebb9@byu.net>
25651
25652         maint.mk: ignore multi-line copyright in NEWS
25653         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25654
25655 2010-01-06  Eric Blake  <ebb9@byu.net>
25656
25657         select: add missing dependency
25658         * modules/select-tests (Depends-on): Move sockets dependency...
25659         * modules/select (Depends-on): ...here.
25660         Reported by Ian Beckwith.
25661
25662         doc: regenerate INSTALL
25663         * doc/INSTALL: Reflect recent autoconf update.
25664         * doc/INSTALL.ISO: Likewise.
25665         * doc/INSTALL.UTF-8: Likewise.
25666
25667         pread: fix compilation on glibc
25668         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25669         Reported by Ralf Wildenhues.
25670
25671         dirent: fix test failure
25672         * lib/dirent.in.h (includes): Guarantee ino_t.
25673         Reported by Ralf Wildenhues.
25674
25675 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25676
25677         linkat, renameat: avoid bad free
25678         * lib/at-func2.c (at_func2): Fix typo.
25679         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25680
25681 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25682
25683         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25684         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25685         to avoid failure of symlink test later.
25686
25687 2010-01-06  Eric Blake  <ebb9@byu.net>
25688
25689         stdio, unistd: guarantee ssize_t
25690         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25691         2008 are exposed when needed.
25692         * lib/stdio.in.h (includes): Likewise.
25693         Reported by Ralf Wildenhues.
25694
25695 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25696
25697         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25698         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25699         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25700
25701 2010-01-06  Jim Meyering  <meyering@redhat.com>
25702
25703         readtokens: this module *does* require xalloc.h
25704         It uses only functions that were omitted by the old syntax-check rule.
25705         * lib/readtokens.c: Include "xalloc.h" once again.
25706         * modules/readtokens (Depends-on): Add xalloc.
25707         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25708
25709 2010-01-05  Eric Blake  <ebb9@byu.net>
25710
25711         maint: support 'make announcement' from a VPATH build
25712         * top/maint.mk (announcement): Look for correct NEWS file.
25713
25714 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25715
25716         utimens (fdutimens): ignore a negative FD, per contract
25717         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25718         when we have a valid file descriptor.  Otherwise, using a brand
25719         new glibc (with just-patched futimens that now fails with EBADF)
25720         would cause this function to fail with ENOSYS.
25721         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25722         See also http://bugzilla.redhat.com/552320.
25723
25724 2010-01-05  Eric Blake  <ebb9@byu.net>
25725
25726         strcase: document what it provides
25727         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25728         gnulib module.
25729         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25730         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25731
25732 2010-01-05  Jim Meyering  <meyering@redhat.com>
25733
25734         maint: remove useless inclusions of "xalloc.h"
25735         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25736         * lib/readtokens.c: Likewise.
25737         * lib/same.c: Likewise.
25738         * modules/getloadavg (Depends-on): Remove xalloc.
25739         * modules/readtokens: Likewise.
25740         * modules/same: Likewise.
25741
25742         maint.mk: include 4 more function names in alloca.h-checking regexp
25743         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25744         regexp.  Before, we would give a false-positive (saying alloca.h
25745         is included unnecessarily) when the only uses involved omitted symbols.
25746
25747         xalloc.h: use consistent formatting
25748         * lib/xalloc.h: Move declarations to start in the first column.
25749
25750 2010-01-05  Eric Blake  <ebb9@byu.net>
25751
25752         mkdir: avoid xalloc
25753         * lib/mkdir.c (includes): Drop unused header.
25754         Reported by John W. Eaton.
25755
25756 2010-01-04  Jim Meyering  <meyering@redhat.com>
25757
25758         nl_langinfo: avoid configure-time syntax error
25759         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25760         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25761         the empty string.  Don't let that provoke a shell syntax error.
25762
25763         regcomp, regexec, fnmatch: avoid array bounds read error
25764         * lib/regcomp.c (build_equiv_class): From glibc:
25765         Use only the low 24 bits of a findidx return value as an index
25766         into the weights array.  Patch by Ulrich Drepper:
25767         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25768         * lib/regexec.c (check_node_accept_bytes): Likewise.
25769         * lib/fnmatch_loop.c (FCT): Likewise.
25770
25771         regcomp: skip collseq lookup when there are no rules
25772         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25773         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25774
25775         regcomp: recognize ill-formed { } expressions
25776         * lib/regcomp.c (parse_dup_op): From glibc:
25777         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25778
25779         regcomp: fix typo in comment
25780         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25781         s/satisfy/satisfies/.
25782
25783         regcomp: sync from glibc: remove dead store
25784         * lib/regcomp.c (duplicate_node_closure): Remove useless
25785         search_duplicated_node call and dead store.
25786
25787         regcomp: sync from glibc; always use nl_langinfo
25788         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25789         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25790         * modules/regex (Depends-on): Add nl_langinfo.
25791
25792 2010-01-04  Eric Blake  <ebb9@byu.net>
25793
25794         fdopendir: fix configure test
25795         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25796
25797 2010-01-01  Bruno Haible  <bruno@clisp.org>
25798
25799         wchar: Remove unused configure check.
25800         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25801
25802 2010-01-01  Eric Blake  <ebb9@byu.net>
25803
25804         headers: make check of system header explicit
25805         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25806         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25807         ourselves.
25808         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25809         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25810         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25811         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25812         internals.
25813         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25814         missing.
25815         Suggested by Bruno Haible.
25816
25817 2010-01-01  Jim Meyering  <meyering@redhat.com>
25818
25819         ChangeLog: tweak to eliminate unnecessary copyright line
25820         * ChangeLog: Remove a copyright line that was mistakenly updated
25821         by today's update-copyright run.  Reported by Eric Blake.
25822
25823         test-update-copyright: don't let envvar setting cause test failure
25824         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25825
25826 2010-01-01  Bruno Haible  <bruno@clisp.org>
25827
25828         localename: Avoid gcc warning.
25829         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25830         function if it is not used.
25831
25832 2010-01-01  Jim Meyering  <meyering@redhat.com>
25833
25834         update nearly all FSF copyright year lists to include 2010
25835         Use the same procedure as for 2009, outlined in
25836         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25837
25838         version-etc: set COPYRIGHT_YEAR to 2010
25839         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25840
25841 2009-12-31  Eric Blake  <ebb9@byu.net>
25842
25843         doc: correct availability of cygwin 1.5.x getopt
25844         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25845         variables.
25846         * doc/posix-functions/opterr.texi (opterr): Likewise.
25847         * doc/posix-functions/optind.texi (optind): Likewise.
25848         * doc/posix-functions/optopt.texi (optopt): Likewise.
25849         * doc/posix-functions/tzname.texi (tzname): Likewise.
25850
25851         openat: update maintainer
25852         * modules/openat (Maintainer): Add myself.
25853
25854         utimens: avoid shadowing warning
25855         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25856         buffers into one, to avoid shadowing, as well as avoiding a
25857         redundant stat.
25858         Reported by Jim Meyering.
25859
25860         test-dup2: avoid compiler warning
25861         * tests/test-dup2.c (is_inheritable): Only define if used.
25862
25863 2010-01-01  Bruno Haible  <bruno@clisp.org>
25864
25865         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25866         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25867         defined, use wctomb instead of wcrtomb.
25868
25869 2010-01-01  Bruno Haible  <bruno@clisp.org>
25870
25871         iconv: Reject native Solaris iconv.
25872         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25873         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25874
25875 2009-12-31  Bruno Haible  <bruno@clisp.org>
25876
25877         * tests/test-signal.c (main): Remove test of 'SIG'.
25878
25879 2009-12-31  Bruno Haible  <bruno@clisp.org>
25880
25881         spawn: Fix incomplete fix.
25882         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25883         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25884         warnings for GNULIB_POSIXCHECK again.
25885         Reported by Eric Blake.
25886
25887 2009-12-31  Bruno Haible  <bruno@clisp.org>
25888
25889         Avoid namespace pollution on glibc systems.
25890         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25891         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25892         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25893         glibc systems.
25894
25895 2009-12-31  Bruno Haible  <bruno@clisp.org>
25896
25897         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25898         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25899         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25900         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25901         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25902         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25903         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25904
25905 2009-12-31  Bruno Haible  <bruno@clisp.org>
25906
25907         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25908         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25909         afterwards.
25910
25911 2009-12-31  Bruno Haible  <bruno@clisp.org>
25912
25913         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25914         SYS_UTSNAME_H.
25915
25916 2009-12-31  Bruno Haible  <bruno@clisp.org>
25917
25918         spawn: Fix misapplied patch.
25919         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25920         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25921         warnings for GNULIB_POSIXCHECK.
25922
25923 2009-12-31  Bruno Haible  <bruno@clisp.org>
25924
25925         times: Update after sys_times changed.
25926         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25927         * modules/times (Files): Add it.
25928         (configure.ac): Invoke gl_FUNC_TIMES.
25929
25930 2009-12-31  Bruno Haible  <bruno@clisp.org>
25931
25932         Use AC_C_INLINE where necessary.
25933         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25934         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25935         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25936         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25937         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25938         * m4/mbiter.m4 (gl_MBITER): Likewise.
25939         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25940         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25941         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25942         * modules/u64 (configure.ac): Likewise.
25943
25944 2009-12-31  Bruno Haible  <bruno@clisp.org>
25945
25946         Use AC_C_INLINE instead of module 'inline' where possible.
25947         * modules/inline (Description): Clarify purpose.
25948         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25949         * modules/count-one-bits (Depends-on): Remove inline.
25950         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25951         * modules/openat (Depends-on): Remove inline.
25952         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25953         instead of depending on module 'inline'.
25954         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25955         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25956         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25957         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25958         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25959         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25960         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25961         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25962         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25963         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25964         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25965         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25966         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25967         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25968         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25969         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25970         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25971         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25972         Likewise.
25973         * modules/unictype/property-ascii-hex-digit (Depends-on,
25974         configure.ac): Likewise.
25975         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25976         configure.ac): Likewise.
25977         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25978         configure.ac): Likewise.
25979         * modules/unictype/property-bidi-block-separator (Depends-on,
25980         configure.ac): Likewise.
25981         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25982         configure.ac): Likewise.
25983         * modules/unictype/property-bidi-common-separator (Depends-on,
25984         configure.ac): Likewise.
25985         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25986         Likewise.
25987         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25988         configure.ac): Likewise.
25989         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25990         configure.ac): Likewise.
25991         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25992         configure.ac): Likewise.
25993         * modules/unictype/property-bidi-european-digit (Depends-on,
25994         configure.ac): Likewise.
25995         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25996         configure.ac): Likewise.
25997         * modules/unictype/property-bidi-left-to-right (Depends-on,
25998         configure.ac): Likewise.
25999         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
26000         configure.ac): Likewise.
26001         * modules/unictype/property-bidi-other-neutral (Depends-on,
26002         configure.ac): Likewise.
26003         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
26004         Likewise.
26005         * modules/unictype/property-bidi-segment-separator (Depends-on,
26006         configure.ac): Likewise.
26007         * modules/unictype/property-bidi-whitespace (Depends-on,
26008         configure.ac): Likewise.
26009         * modules/unictype/property-combining (Depends-on, configure.ac):
26010         Likewise.
26011         * modules/unictype/property-composite (Depends-on, configure.ac):
26012         Likewise.
26013         * modules/unictype/property-currency-symbol (Depends-on,
26014         configure.ac): Likewise.
26015         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
26016         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
26017         Likewise.
26018         * modules/unictype/property-default-ignorable-code-point (Depends-on,
26019         configure.ac): Likewise.
26020         * modules/unictype/property-deprecated (Depends-on, configure.ac):
26021         Likewise.
26022         * modules/unictype/property-diacritic (Depends-on, configure.ac):
26023         Likewise.
26024         * modules/unictype/property-extender (Depends-on, configure.ac):
26025         Likewise.
26026         * modules/unictype/property-format-control (Depends-on, configure.ac):
26027         Likewise.
26028         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
26029         Likewise.
26030         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
26031         Likewise.
26032         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
26033         Likewise.
26034         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
26035         Likewise.
26036         * modules/unictype/property-hyphen (Depends-on, configure.ac):
26037         Likewise.
26038         * modules/unictype/property-id-continue (Depends-on, configure.ac):
26039         Likewise.
26040         * modules/unictype/property-id-start (Depends-on, configure.ac):
26041         Likewise.
26042         * modules/unictype/property-ideographic (Depends-on, configure.ac):
26043         Likewise.
26044         * modules/unictype/property-ids-binary-operator (Depends-on,
26045         configure.ac): Likewise.
26046         * modules/unictype/property-ids-trinary-operator (Depends-on,
26047         configure.ac): Likewise.
26048         * modules/unictype/property-ignorable-control (Depends-on,
26049         configure.ac): Likewise.
26050         * modules/unictype/property-iso-control (Depends-on, configure.ac):
26051         Likewise.
26052         * modules/unictype/property-join-control (Depends-on, configure.ac):
26053         Likewise.
26054         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
26055         Likewise.
26056         * modules/unictype/property-line-separator (Depends-on, configure.ac):
26057         Likewise.
26058         * modules/unictype/property-logical-order-exception (Depends-on,
26059         configure.ac): Likewise.
26060         * modules/unictype/property-lowercase (Depends-on, configure.ac):
26061         Likewise.
26062         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
26063         * modules/unictype/property-non-break (Depends-on, configure.ac):
26064         Likewise.
26065         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
26066         Likewise.
26067         * modules/unictype/property-numeric (Depends-on, configure.ac):
26068         Likewise.
26069         * modules/unictype/property-other-alphabetic (Depends-on,
26070         configure.ac): Likewise.
26071         * modules/unictype/property-other-default-ignorable-code-point
26072         (Depends-on, configure.ac): Likewise.
26073         * modules/unictype/property-other-grapheme-extend (Depends-on,
26074         configure.ac): Likewise.
26075         * modules/unictype/property-other-id-continue (Depends-on,
26076         configure.ac): Likewise.
26077         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
26078         Likewise.
26079         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
26080         Likewise.
26081         * modules/unictype/property-other-math (Depends-on, configure.ac):
26082         Likewise.
26083         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
26084         Likewise.
26085         * modules/unictype/property-paired-punctuation (Depends-on,
26086         configure.ac): Likewise.
26087         * modules/unictype/property-paragraph-separator (Depends-on,
26088         configure.ac): Likewise.
26089         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
26090         Likewise.
26091         * modules/unictype/property-pattern-white-space (Depends-on,
26092         configure.ac): Likewise.
26093         * modules/unictype/property-private-use (Depends-on, configure.ac):
26094         Likewise.
26095         * modules/unictype/property-punctuation (Depends-on, configure.ac):
26096         Likewise.
26097         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
26098         Likewise.
26099         * modules/unictype/property-radical (Depends-on, configure.ac):
26100         Likewise.
26101         * modules/unictype/property-sentence-terminal (Depends-on,
26102         configure.ac): Likewise.
26103         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
26104         Likewise.
26105         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
26106         * modules/unictype/property-terminal-punctuation (Depends-on,
26107         configure.ac): Likewise.
26108         * modules/unictype/property-titlecase (Depends-on, configure.ac):
26109         Likewise.
26110         * modules/unictype/property-unassigned-code-value (Depends-on,
26111         configure.ac): Likewise.
26112         * modules/unictype/property-unified-ideograph (Depends-on,
26113         configure.ac): Likewise.
26114         * modules/unictype/property-uppercase (Depends-on, configure.ac):
26115         Likewise.
26116         * modules/unictype/property-variation-selector (Depends-on,
26117         configure.ac): Likewise.
26118         * modules/unictype/property-white-space (Depends-on, configure.ac):
26119         Likewise.
26120         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
26121         Likewise.
26122         * modules/unictype/property-xid-start (Depends-on, configure.ac):
26123         Likewise.
26124         * modules/unictype/property-zero-width (Depends-on, configure.ac):
26125         Likewise.
26126         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
26127         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
26128         Likewise.
26129
26130 2009-12-31  Bruno Haible  <bruno@clisp.org>
26131
26132         Remove unnecessary AC_C_INLINE invocation.
26133         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
26134         since 2009-08-21.
26135
26136 2009-12-31  Jim Meyering  <meyering@redhat.com>
26137
26138         maint.mk: don't require explicit gpg_key_ID in cfg.mk
26139         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
26140         With this change, we can all remove the gpg_key_ID = ... definition
26141         from our respective cfg.mk files.
26142
26143         maint.mk: create announcement template in ~/, not in /tmp
26144         * top/maint.mk (emit_upload_commands): Adjust.
26145         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
26146         Remove temporary file, .ci-msg.
26147
26148 2009-12-31  Eric Blake  <ebb9@byu.net>
26149
26150         link-warning: always build headers with link warnings
26151         * modules/arpa_inet (Makefile.am): Always build replacement
26152         header.
26153         * modules/ctype (Makefile.am): Likewise.
26154         * modules/dirent (Makefile.am): Likewise.
26155         * modules/inttypes (Makefile.am): Likewise.
26156         * modules/langinfo (Makefile.am): Likewise.
26157         * modules/locale (Makefile.am): Likewise.
26158         * modules/spawn (Makefile.am): Likewise.
26159         * modules/sys_file (Makefile.am): Likewise.
26160         * modules/sys_ioctl (Makefile.am): Likewise.
26161         * modules/sys_select (Makefile.am): Likewise.
26162         * modules/sys_socket (Makefile.am): Likewise.
26163         * modules/sys_times (Makefile.am): Likewise.
26164         * modules/sys_utsname (Makefile.am): Likewise.
26165         * modules/sys_wait (Makefile.am): Likewise.
26166         * modules/wchar (Makefile.am): Likewise.
26167         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
26168         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
26169         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
26170         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
26171         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
26172         Likewise.
26173         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26174         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26175         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
26176         Likewise.
26177         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
26178         Likewise.
26179         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26180         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
26181         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
26182         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26183         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26184         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26185         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26186         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
26187         (gl_WCHAR_H_DEFAULTS): Likewise.
26188
26189 2009-12-31  Eric Blake  <ebb9@byu.net>
26190
26191         signal, spawn: use link warnings
26192         * lib/signal.in.h (sigset_t): Make unconditional.
26193         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
26194         (sigpending, sigprocmask, sigaction): Add link warnings.
26195         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
26196         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
26197         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
26198         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
26199         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
26200         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
26201         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
26202         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
26203         (posix_spawn_file_actions_destroy)
26204         (posix_spawn_file_actions_addopen)
26205         (posix_spawn_file_actions_addclose)
26206         (posix_spawn_file_actions_adddup2): Likewise.
26207         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
26208         * tests/test-signal.c (main): Enhance test.
26209
26210         spawn: improve wrapper support
26211         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
26212         (gl_SPAWN_H_DEFAULTS): New defaults.
26213         * modules/spawn (Makefile.am): Substitute them.
26214         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
26215         Only declare if missing or broken.
26216
26217         sys_times, sys_utsname: use include_next
26218         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
26219         header.
26220         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
26221         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26222         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26223         * modules/sys_times (Depends-on): Add include_next.
26224         (Makefile.am): Substitute additional values.
26225         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26226         * lib/sys_times.in.h (includes): Include native header, if
26227         available.
26228         * lib/sys_utsname.in.h (includes): Likewise.
26229         * tests/test-sys_times.c (main): Enhance test.
26230
26231         fdutimensat: revert prior patch
26232         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
26233         utimens.h.
26234         Reported by Bruno Haible.
26235
26236 2009-12-30  Eric Blake  <ebb9@byu.net>
26237
26238         sys_wait: drop link-warning dependency
26239         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
26240         link-warning efforts.
26241         * lib/sys_wait.in.h: Likewise.
26242
26243         fdutimensat: remove bogus dependency
26244         * modules/fdutimensat (Depends-on): Drop inline.
26245
26246         unistd: fix typo
26247         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
26248
26249 2009-12-30  Bruno Haible  <bruno@clisp.org>
26250
26251         Fix compilation error with Solaris cc.
26252         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26253         * lib/unicase/u16-is-invariant.c: Likewise.
26254         * lib/unicase/u32-is-invariant.c: Likewise.
26255         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26256
26257 2009-12-30  Bruno Haible  <bruno@clisp.org>
26258
26259         Fix test crash.
26260         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26261         locales.
26262         Reported by Simon Josefsson <simon@josefsson.org>.
26263
26264 2009-12-30  Bruno Haible  <bruno@clisp.org>
26265
26266         Fix compilation error on most platforms.
26267         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26268         Reported by Simon Josefsson <simon@josefsson.org>
26269         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26270
26271 2009-12-30  Eric Blake  <ebb9@byu.net>
26272
26273         futimens, utimensat: work around ntfs-3g bug
26274         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26275         a ctime bug is present, and expand workaround to cover ntfs-3g.
26276         * lib/utimens.c (fdutimens, lutimens): Likewise.
26277         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26278         (validate_timespec): Adjust return value.
26279         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26280         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26281         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26282
26283 2009-12-29  Eric Blake  <ebb9@byu.net>
26284
26285         link-warning: make usage consistent
26286         * modules/ctype (Depends-on): Add link-warning.
26287         (Makefile.am): Update rules accordingly.
26288         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26289         * modules/locale (Depends-on, Makefile.am): Likewise.
26290         * modules/sys_file (Makefile.am): Likewise.
26291         * modules/getopt-posix (Makefile.am): Delete unused link warning
26292         efforts.
26293         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26294         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26295         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26296         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26297
26298         stdio: remove unused variables
26299         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26300         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26301         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26302
26303         tests: test more substitute headers
26304         * modules/ctype-tests: New file.
26305         * modules/dirent-tests: Likewise.
26306         * modules/spawn-tests: Likewise.
26307         * modules/sys_file-tests: Likewise.
26308         * modules/sys_ioctl-tests: Likewise.
26309         * modules/sys_wait-tests: Likewise.
26310         * tests/test-ctype.c: Likewise.
26311         * tests/test-dirent.c: Likewise.
26312         * tests/test-spawn.c: Likewise.
26313         * tests/test-sys_file.c: Likewise.
26314         * tests/test-sys_ioctl.c: Likewise.
26315         * tests/test-sys_wait.c: Likewise.
26316         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26317         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26318         whether or not flock is in use.
26319
26320         tests: remove License section from module
26321         * modules/arpa_inet-tests: Remove unneeded section.
26322         * modules/byteswap-tests: Likewise.
26323         * modules/ceilf-tests: Likewise.
26324         * modules/ceill-tests: Likewise.
26325         * modules/crypto/des-tests: Likewise.
26326         * modules/crypto/gc-arcfour-tests: Likewise.
26327         * modules/crypto/gc-arctwo-tests: Likewise.
26328         * modules/crypto/gc-des-tests: Likewise.
26329         * modules/crypto/gc-hmac-md5-tests: Likewise.
26330         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26331         * modules/crypto/gc-md2-tests: Likewise.
26332         * modules/crypto/gc-md4-tests: Likewise.
26333         * modules/crypto/gc-md5-tests: Likewise.
26334         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26335         * modules/crypto/gc-rijndael-tests: Likewise.
26336         * modules/crypto/gc-sha1-tests: Likewise.
26337         * modules/crypto/gc-tests: Likewise.
26338         * modules/crypto/md2-tests: Likewise.
26339         * modules/crypto/md4-tests: Likewise.
26340         * modules/fcntl-h-tests: Likewise.
26341         * modules/floorf-tests: Likewise.
26342         * modules/floorl-tests: Likewise.
26343         * modules/frexp-nolibm-tests: Likewise.
26344         * modules/frexp-tests: Likewise.
26345         * modules/frexpl-nolibm-tests: Likewise.
26346         * modules/frexpl-tests: Likewise.
26347         * modules/getaddrinfo-tests: Likewise.
26348         * modules/inttypes-tests: Likewise.
26349         * modules/isfinite-tests: Likewise.
26350         * modules/isinf-tests: Likewise.
26351         * modules/ldexpl-tests: Likewise.
26352         * modules/locale-tests: Likewise.
26353         * modules/math-tests: Likewise.
26354         * modules/netdb-tests: Likewise.
26355         * modules/netinet_in-tests: Likewise.
26356         * modules/printf-frexp-tests: Likewise.
26357         * modules/printf-frexpl-tests: Likewise.
26358         * modules/priv-set-tests: Likewise.
26359         * modules/random_r-tests: Likewise.
26360         * modules/round-tests: Likewise.
26361         * modules/roundf-tests: Likewise.
26362         * modules/roundl-tests: Likewise.
26363         * modules/search-tests: Likewise.
26364         * modules/select-tests: Likewise.
26365         * modules/signal-tests: Likewise.
26366         * modules/stdbool-tests: Likewise.
26367         * modules/stddef-tests: Likewise.
26368         * modules/stdint-tests: Likewise.
26369         * modules/stdio-tests: Likewise.
26370         * modules/stdlib-tests: Likewise.
26371         * modules/string-tests: Likewise.
26372         * modules/strings-tests: Likewise.
26373         * modules/sys_select-tests: Likewise.
26374         * modules/sys_socket-tests: Likewise.
26375         * modules/sys_stat-tests: Likewise.
26376         * modules/sys_time-tests: Likewise.
26377         * modules/sys_utsname-tests: Likewise.
26378         * modules/sysexits-tests: Likewise.
26379         * modules/time-tests: Likewise.
26380         * modules/trunc-tests: Likewise.
26381         * modules/truncf-tests: Likewise.
26382         * modules/truncl-tests: Likewise.
26383         * modules/tsearch-tests: Likewise.
26384         * modules/unistd-tests: Likewise.
26385         * modules/wchar-tests: Likewise.
26386         * modules/wctype-tests: Likewise.
26387
26388         tests: fix license on several tests
26389         * tests/test-des.c: Update to GPLv3+.
26390         * tests/test-flock.c: Likewise.
26391         * tests/test-fsync.c: Likewise.
26392         * tests/test-futimens.h: Likewise.
26393         * tests/test-gc-arcfour.c: Likewise.
26394         * tests/test-gc-arctwo.c: Likewise.
26395         * tests/test-gc-des.c: Likewise.
26396         * tests/test-gc-hmac-md5.c: Likewise.
26397         * tests/test-gc-hmac-sha1.c: Likewise.
26398         * tests/test-gc-md2.c: Likewise.
26399         * tests/test-gc-md4.c: Likewise.
26400         * tests/test-gc-md5.c: Likewise.
26401         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26402         * tests/test-gc-rijndael.c: Likewise.
26403         * tests/test-gc-sha1.c: Likewise.
26404         * tests/test-gc.c: Likewise.
26405         * tests/test-getcwd.c: Likewise.
26406         * tests/test-link.c: Likewise.
26407         * tests/test-link.h: Likewise.
26408         * tests/test-lutimens.h: Likewise.
26409         * tests/test-md2.c: Likewise.
26410         * tests/test-md4.c: Likewise.
26411         * tests/test-mkdir.h: Likewise.
26412         * tests/test-rename.c: Likewise.
26413         * tests/test-rename.h: Likewise.
26414         * tests/test-safe-alloc.c: Likewise.
26415         * tests/test-utimens-common.h: Likewise.
26416         * tests/test-utimens.h: Likewise.
26417
26418         maint: sync license texts
26419         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
26420         * doc/gpl-3.0.texi: Revert copyright year update.
26421         * doc/lgpl-3.0.texi: Likewise.
26422
26423 2009-12-29  Jim Meyering  <meyering@redhat.com>
26424
26425         update nearly all FSF copyright year lists to include 2009
26426         The files named by the following are exempted:
26427             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
26428               test -f "$dst" && { echo "$dst"; continue; }
26429               test -d "$dst" || continue
26430               echo "$dst"/$(basename "$src")
26431             done > exempt
26432             git ls-files tests/unictype >> exempt
26433         In the remaining files, convert to all-interval notation if
26434         - there is already at least one year interval like 2000-2003
26435         - the file is maintained by me
26436         - the file is in lib/uni*/, where that style already prevails
26437         Otherwise, use update-copyright's default.
26438
26439 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26440         and Eric Blake  <ebb9@byu.net>
26441
26442         tests: don't require debug system() to pass
26443         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
26444         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26445         * tests/test-unlink.h (test_unlink_func): Likewise.
26446         * tests/test-fstatat.c (main): ...into callers.
26447         * tests/test-lstat.c (main): Likewise.
26448         * tests/test-rmdir.c (main): Likewise.
26449         * tests/test-unlink.c (main): Likewise.
26450         * tests/test-unlinkat.c (main): Likewise.
26451         * tests/test-areadlink-with-size.c (main): Don't require a
26452         debug-only system call to pass, aiding cross-testing to mingw.
26453         * tests/test-areadlink.c (main): Likewise.
26454         * tests/test-areadlinkat-with-size.c (main): Likewise.
26455         * tests/test-areadlinkat.c (main): Likewise.
26456         * tests/test-canonicalize-lgpl.c (main): Likewise.
26457         * tests/test-canonicalize.c (main): Likewise.
26458         * tests/test-chown.c (main): Likewise.
26459         * tests/test-fchownat.c (main): Likewise.
26460         * tests/test-lchown.c (main): Likewise.
26461         * tests/test-fdutimensat.c (main): Likewise.
26462         * tests/test-futimens.c (main): Likewise.
26463         * tests/test-link.c (main): Likewise.
26464         * tests/test-linkat.c (main): Likewise.
26465         * tests/test-mkdir.c (main): Likewise.
26466         * tests/test-mkdirat.c (main): Likewise.
26467         * tests/test-mkfifo.c (main): Likewise.
26468         * tests/test-mkfifoat.c (main): Likewise.
26469         * tests/test-mknod.c (main): Likewise.
26470         * tests/test-readlink.c (main): Likewise.
26471         * tests/test-remove.c (main): Likewise.
26472         * tests/test-rename.c (main): Likewise.
26473         * tests/test-renameat.c (main): Likewise.
26474         * tests/test-symlink.c (main): Likewise.
26475         * tests/test-symlinkat.c (main): Likewise.
26476         * tests/test-utimens.c (main): Likewise.
26477         * tests/test-utimensat.c (main): Likewise.
26478
26479 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26480
26481         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26482         on $(UNUSED_PARAMETER_H) to avoid build failure.
26483
26484 2009-12-28  Jim Meyering  <meyering@redhat.com>
26485
26486         update-copyright: you may specify a max. line length other than 72
26487         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26488
26489         maint: use consistent FSF copyright line syntax
26490         * lib/posixtm.c: Add missing comma in FSF copyright line.
26491         * lib/posixtm.h: Likewise.
26492         * lib/getugroups.c: Add missing ", Inc.".
26493
26494         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26495         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26496         FSF copyright line.  Remove trailing blanks.
26497
26498 2009-12-28  Eric Blake  <ebb9@byu.net>
26499
26500         test-dup2: reduce dependencies
26501         * modules/cloexec (Configure.ac): Set witness.
26502         * modules/dup2-tests (Depends-on): Drop cloexec.
26503         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26504         not present.
26505         Suggested by Bruno Haible.
26506
26507 2009-12-26  Bruno Haible  <bruno@clisp.org>
26508
26509         Remove an unneeded dependency.
26510         * modules/fseterr (Depends-on): Remove dup2.
26511
26512 2009-12-26  Eric Blake  <ebb9@byu.net>
26513
26514         tests: use macros.h in more places
26515         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26516         (ASSERT_STREAM): Provide default of stderr.
26517         * tests/test-dirent-safer.c: Include macros.h, using alternate
26518         stream for assertions.
26519         * tests/test-dup-safer.c: Likewise.
26520         * tests/test-freopen-safer.c: Likewise.
26521         * tests/test-getopt.c: Likewise.
26522         * tests/test-openat-safer.c: Likewise.
26523         * tests/test-pipe.c: Likewise.
26524         * tests/test-popen-safer.c: Likewise.
26525         * modules/dirent-safer-tests (Files): Include macros.h.
26526         * modules/unistd-safer-tests (Files): Likewise.
26527         * modules/freopen-safer-tests (Files): Likewise.
26528         * modules/getopt-posix-tests (Files): Likewise.
26529         * modules/openat-safer-tests (Files): Likewise.
26530         * modules/pipe-tests (Files): Likewise.
26531
26532 2009-12-26  Bruno Haible  <bruno@clisp.org>
26533
26534         javacomp: Portability fix.
26535         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26536         that it also works on Solaris.
26537
26538 2009-12-26  Bruno Haible  <bruno@clisp.org>
26539
26540         localename: Fix storage allocation of gl_locale_name_thread's result.
26541         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26542         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26543         all platforms that have 'uselocale'.
26544         (gl_locale_name_thread_unsafe): New function, extracted from
26545         gl_locale_name_thread.
26546         (gl_locale_name_thread): Call struniq on all platforms that have
26547         'uselocale'.
26548         * tests/test-localename.c (test_locale_name_thread): Check that the
26549         resulting strings are permanently allocated.
26550         * modules/localename-tests (Depends-on): Add strdup.
26551
26552 2009-12-26  Bruno Haible  <bruno@clisp.org>
26553
26554         * tests/test-localename.c (categories): Fill in the strings.
26555
26556 2009-12-26  Jim Meyering  <meyering@redhat.com>
26557
26558         isdir: complete the removal of m4/isdir.m4
26559         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26560
26561         isdir: clean up, since at least grep still uses it
26562         * lib/isdir.c: Include "isdir.h".
26563         (S_ISDIR): Remove now-unneeded definition.
26564         * modules/isdir (Files): Add lib/isdir.h.
26565         * lib/isdir.h: New file, with declaration.
26566         * m4/isdir.m4: Remove file -- unneeded.
26567
26568 2009-12-25  Bruno Haible  <bruno@clisp.org>
26569
26570         selinux-h: Make generated .h files standalone.
26571         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26572         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26573         * lib/se-selinux.in.h: Likewise.
26574         * modules/selinux-h (Depends-on): Add unused-parameter.
26575         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26576         selinux/selinux.h and selinux/context.h.
26577         Suggested by Eric Blake.
26578
26579 2009-12-25  Bruno Haible  <bruno@clisp.org>
26580
26581         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26582         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26583         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26584         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26585         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26586
26587 2009-12-24  Bruno Haible  <bruno@clisp.org>
26588
26589         openat: Fix warning.
26590         * lib/openat-proc.c: Include <unistd.h>.
26591
26592 2009-12-24  Bruno Haible  <bruno@clisp.org>
26593
26594         New module 'unused-parameter'.
26595         * build-aux/unused-parameter.h: New file, extracted from earlier
26596         gnulib-common.m4.
26597         * modules/unused-parameter: New file.
26598         * lib/unistr.h: Include unused-parameter.h.
26599         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26600         _GL_UNUSED.
26601         * modules/unistr/base (Depends-on): Add unused-parameter.
26602
26603 2009-12-24  Bruno Haible  <bruno@clisp.org>
26604
26605         Add missing dependencies to 'extensions' module.
26606         * m4/extensions.m4: Add comment.
26607         * modules/accept4 (Depends-on): Add extensions.
26608         * modules/dup3 (Depends-on): Likewise.
26609         * modules/fcntl (Depends-on): Likewise.
26610         * modules/futimens (Depends-on): Likewise.
26611         * modules/mknod (Depends-on): Likewise.
26612         * modules/pipe2 (Depends-on): Likewise.
26613         * modules/stat-time (Depends-on): Likewise.
26614         * modules/strcasestr-simple (Depends-on): Likewise.
26615         * modules/strsignal (Depends-on): Likewise.
26616         * modules/utimensat (Depends-on): Likewise.
26617         * modules/localcharset (Depends-on): Likewise. Needed because of
26618         gl_FCNTL_O_FLAGS.
26619         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26620         AC_TYPE_MBSTATE_T.
26621         * modules/wcsnrtombs (Depends-on): Likewise.
26622         * modules/wcsrtombs (Depends-on): Likewise.
26623
26624 2009-12-24  Bruno Haible  <bruno@clisp.org>
26625
26626         binary-io: Avoid gcc warning due to SET_BINARY.
26627         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26628         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26629
26630 2009-12-24  Bruno Haible  <bruno@clisp.org>
26631
26632         Avoid future namespace pollution on glibc systems.
26633         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26634         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26635         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26636         glibc systems.
26637
26638 2009-12-24  Bruno Haible  <bruno@clisp.org>
26639
26640         Refactor common macros used in tests.
26641         * tests/macros.h: New file.
26642         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26643         and/or <stdlib.h>, if appropriate.
26644         (ASSERT, SIZEOF): Remove macros.
26645         * tests/test-areadlink-with-size.c: Likewise.
26646         * tests/test-areadlinkat.c: Likewise.
26647         * tests/test-areadlinkat-with-size.c: Likewise.
26648         * tests/test-argmatch.c: Likewise.
26649         * tests/test-argv-iter.c: Likewise.
26650         * tests/test-array-mergesort.c: Likewise.
26651         * tests/test-array_list.c: Likewise.
26652         * tests/test-array_oset.c: Likewise.
26653         * tests/test-avltree_list.c: Likewise.
26654         * tests/test-avltree_oset.c: Likewise.
26655         * tests/test-avltreehash_list.c: Likewise.
26656         * tests/test-base64.c: Likewise.
26657         * tests/test-binary-io.c: Likewise.
26658         * tests/test-bitrotate.c: Likewise.
26659         * tests/test-btowc.c: Likewise.
26660         * tests/test-byteswap.c: Likewise.
26661         * tests/test-c-ctype.c: Likewise.
26662         * tests/test-c-stack.c: Likewise.
26663         * tests/test-c-strcasecmp.c: Likewise.
26664         * tests/test-c-strcasestr.c: Likewise.
26665         * tests/test-c-strncasecmp.c: Likewise.
26666         * tests/test-c-strstr.c: Likewise.
26667         * tests/test-canonicalize-lgpl.c: Likewise.
26668         * tests/test-canonicalize.c: Likewise.
26669         * tests/test-carray_list.c: Likewise.
26670         * tests/test-ceilf1.c: Likewise.
26671         * tests/test-ceilf2.c: Likewise.
26672         * tests/test-ceill.c: Likewise.
26673         * tests/test-chown.c: Likewise.
26674         * tests/test-cloexec.c: Likewise.
26675         * tests/test-copy-acl.c: Likewise.
26676         * tests/test-copy-file.c: Likewise.
26677         * tests/test-count-one-bits.c: Likewise.
26678         * tests/test-dprintf-posix.c: Likewise.
26679         * tests/test-dup2.c: Likewise.
26680         * tests/test-dup3.c: Likewise.
26681         * tests/test-duplocale.c: Likewise.
26682         * tests/test-fbufmode.c: Likewise.
26683         * tests/test-fchdir.c: Likewise.
26684         * tests/test-fchownat.c: Likewise.
26685         * tests/test-fcntl-safer.c: Likewise.
26686         * tests/test-fcntl.c: Likewise.
26687         * tests/test-fdopendir.c: Likewise.
26688         * tests/test-fdutimensat.c: Likewise.
26689         * tests/test-fflush2.c: Likewise.
26690         * tests/test-file-has-acl.c: Likewise.
26691         * tests/test-filevercmp.c: Likewise.
26692         * tests/test-flock.c: Likewise.
26693         * tests/test-floorf1.c: Likewise.
26694         * tests/test-floorf2.c: Likewise.
26695         * tests/test-floorl.c: Likewise.
26696         * tests/test-fnmatch.c: Likewise.
26697         * tests/test-fopen.h: Likewise.
26698         * tests/test-fpending.c: Likewise.
26699         * tests/test-fprintf-posix.c: Likewise.
26700         * tests/test-fpurge.c: Likewise.
26701         * tests/test-freadable.c: Likewise.
26702         * tests/test-freadahead.c: Likewise.
26703         * tests/test-freading.c: Likewise.
26704         * tests/test-freadptr.c: Likewise.
26705         * tests/test-freadptr2.c: Likewise.
26706         * tests/test-freadseek.c: Likewise.
26707         * tests/test-freopen.c: Likewise.
26708         * tests/test-frexp.c: Likewise.
26709         * tests/test-frexpl.c: Likewise.
26710         * tests/test-fseek.c: Likewise.
26711         * tests/test-fseeko.c: Likewise.
26712         * tests/test-fstatat.c: Likewise.
26713         * tests/test-fstrcmp.c: Likewise.
26714         * tests/test-fsync.c: Likewise.
26715         * tests/test-ftell.c: Likewise.
26716         * tests/test-ftello.c: Likewise.
26717         * tests/test-func.c: Likewise.
26718         * tests/test-futimens.c: Likewise.
26719         * tests/test-fwritable.c: Likewise.
26720         * tests/test-fwriting.c: Likewise.
26721         * tests/test-getcwd.c: Likewise.
26722         * tests/test-getdate.c: Likewise.
26723         * tests/test-getdelim.c: Likewise.
26724         * tests/test-getdtablesize.c: Likewise.
26725         * tests/test-getgroups.c: Likewise.
26726         * tests/test-getline.c: Likewise.
26727         * tests/test-getndelim2.c: Likewise.
26728         * tests/test-glob.c: Likewise.
26729         * tests/test-hash.c: Likewise.
26730         * tests/test-i-ring.c: Likewise.
26731         * tests/test-iconv-utf.c: Likewise.
26732         * tests/test-iconv.c: Likewise.
26733         * tests/test-idpriv-drop.c: Likewise.
26734         * tests/test-idpriv-droptemp.c: Likewise.
26735         * tests/test-inet_ntop.c: Likewise.
26736         * tests/test-inet_pton.c: Likewise.
26737         * tests/test-isblank.c: Likewise.
26738         * tests/test-isfinite.c: Likewise.
26739         * tests/test-isinf.c: Likewise.
26740         * tests/test-isnan.c: Likewise.
26741         * tests/test-isnand.h: Likewise.
26742         * tests/test-isnanf.h: Likewise.
26743         * tests/test-isnanl.h: Likewise.
26744         * tests/test-lchown.c: Likewise.
26745         * tests/test-ldexpl.c: Likewise.
26746         * tests/test-link.c: Likewise.
26747         * tests/test-linkat.c: Likewise.
26748         * tests/test-linked_list.c: Likewise.
26749         * tests/test-linkedhash_list.c: Likewise.
26750         * tests/test-localename.c: Likewise.
26751         * tests/test-lseek.c: Likewise.
26752         * tests/test-lstat.c: Likewise.
26753         * tests/test-mbmemcasecmp.c: Likewise.
26754         * tests/test-mbmemcasecoll.c: Likewise.
26755         * tests/test-mbrtowc.c: Likewise.
26756         * tests/test-mbscasecmp.c: Likewise.
26757         * tests/test-mbscasestr1.c: Likewise.
26758         * tests/test-mbscasestr2.c: Likewise.
26759         * tests/test-mbscasestr3.c: Likewise.
26760         * tests/test-mbscasestr4.c: Likewise.
26761         * tests/test-mbschr.c: Likewise.
26762         * tests/test-mbscspn.c: Likewise.
26763         * tests/test-mbsinit.c: Likewise.
26764         * tests/test-mbsncasecmp.c: Likewise.
26765         * tests/test-mbsnrtowcs.c: Likewise.
26766         * tests/test-mbspbrk.c: Likewise.
26767         * tests/test-mbspcasecmp.c: Likewise.
26768         * tests/test-mbsrchr.c: Likewise.
26769         * tests/test-mbsrtowcs.c: Likewise.
26770         * tests/test-mbsspn.c: Likewise.
26771         * tests/test-mbsstr1.c: Likewise.
26772         * tests/test-mbsstr2.c: Likewise.
26773         * tests/test-mbsstr3.c: Likewise.
26774         * tests/test-memchr.c: Likewise.
26775         * tests/test-memchr2.c: Likewise.
26776         * tests/test-memcmp.c: Likewise.
26777         * tests/test-memmem.c: Likewise.
26778         * tests/test-memrchr.c: Likewise.
26779         * tests/test-mkdir.c: Likewise.
26780         * tests/test-mkdirat.c: Likewise.
26781         * tests/test-mkfifo.c: Likewise.
26782         * tests/test-mkfifoat.c: Likewise.
26783         * tests/test-mknod.c: Likewise.
26784         * tests/test-nanosleep.c: Likewise.
26785         * tests/test-nl_langinfo.c: Likewise.
26786         * tests/test-obstack-printf.c: Likewise.
26787         * tests/test-open.c: Likewise.
26788         * tests/test-openat.c: Likewise.
26789         * tests/test-pipe-filter-gi1.c: Likewise.
26790         * tests/test-pipe-filter-gi2-main.c: Likewise.
26791         * tests/test-pipe-filter-ii1.c: Likewise.
26792         * tests/test-pipe-filter-ii2-main.c: Likewise.
26793         * tests/test-pipe2.c: Likewise.
26794         * tests/test-popen.h: Likewise.
26795         * tests/test-posixtm.c: Likewise.
26796         * tests/test-pread.c: Likewise.
26797         * tests/test-printf-frexp.c: Likewise.
26798         * tests/test-printf-frexpl.c: Likewise.
26799         * tests/test-printf-posix.c: Likewise.
26800         * tests/test-priv-set.c: Likewise.
26801         * tests/test-quotearg.c: Likewise.
26802         * tests/test-random_r.c: Likewise.
26803         * tests/test-rawmemchr.c: Likewise.
26804         * tests/test-rbtree_list.c: Likewise.
26805         * tests/test-rbtree_oset.c: Likewise.
26806         * tests/test-rbtreehash_list.c: Likewise.
26807         * tests/test-readlink.c: Likewise.
26808         * tests/test-remove.c: Likewise.
26809         * tests/test-rename.c: Likewise.
26810         * tests/test-renameat.c: Likewise.
26811         * tests/test-rmdir.c: Likewise.
26812         * tests/test-round1.c: Likewise.
26813         * tests/test-roundf1.c: Likewise.
26814         * tests/test-roundl.c: Likewise.
26815         * tests/test-safe-alloc.c: Likewise.
26816         * tests/test-sameacls.c: Likewise.
26817         * tests/test-set-mode-acl.c: Likewise.
26818         * tests/test-setenv.c: Likewise.
26819         * tests/test-sigaction.c: Likewise.
26820         * tests/test-signbit.c: Likewise.
26821         * tests/test-sleep.c: Likewise.
26822         * tests/test-snprintf-posix.c: Likewise.
26823         * tests/test-snprintf.c: Likewise.
26824         * tests/test-sprintf-posix.c: Likewise.
26825         * tests/test-stat-time.c: Likewise.
26826         * tests/test-stat.c: Likewise.
26827         * tests/test-strcasestr.c: Likewise.
26828         * tests/test-strchrnul.c: Likewise.
26829         * tests/test-strerror.c: Likewise.
26830         * tests/test-striconv.c: Likewise.
26831         * tests/test-striconveh.c: Likewise.
26832         * tests/test-striconveha.c: Likewise.
26833         * tests/test-strsignal.c: Likewise.
26834         * tests/test-strstr.c: Likewise.
26835         * tests/test-strtod.c: Likewise.
26836         * tests/test-strverscmp.c: Likewise.
26837         * tests/test-symlink.c: Likewise.
26838         * tests/test-symlinkat.c: Likewise.
26839         * tests/test-trunc1.c: Likewise.
26840         * tests/test-trunc2.c: Likewise.
26841         * tests/test-truncf1.c: Likewise.
26842         * tests/test-truncf2.c: Likewise.
26843         * tests/test-truncl.c: Likewise.
26844         * tests/test-uname.c: Likewise.
26845         * tests/test-unlink.c: Likewise.
26846         * tests/test-unlinkat.c: Likewise.
26847         * tests/test-unsetenv.c: Likewise.
26848         * tests/test-usleep.c: Likewise.
26849         * tests/test-utimens.c: Likewise.
26850         * tests/test-utimensat.c: Likewise.
26851         * tests/test-vasnprintf-posix.c: Likewise.
26852         * tests/test-vasnprintf-posix2.c: Likewise.
26853         * tests/test-vasnprintf.c: Likewise.
26854         * tests/test-vasprintf-posix.c: Likewise.
26855         * tests/test-vasprintf.c: Likewise.
26856         * tests/test-vdprintf-posix.c: Likewise.
26857         * tests/test-vfprintf-posix.c: Likewise.
26858         * tests/test-vprintf-posix.c: Likewise.
26859         * tests/test-vsnprintf-posix.c: Likewise.
26860         * tests/test-vsnprintf.c: Likewise.
26861         * tests/test-vsprintf-posix.c: Likewise.
26862         * tests/test-wcrtomb.c: Likewise.
26863         * tests/test-wcsnrtombs.c: Likewise.
26864         * tests/test-wcsrtombs.c: Likewise.
26865         * tests/test-wctype.c: Likewise.
26866         * tests/test-wcwidth.c: Likewise.
26867         * tests/test-xfprintf-posix.c: Likewise.
26868         * tests/test-xmemdup0.c: Likewise.
26869         * tests/test-xprintf-posix.c: Likewise.
26870         * tests/test-xvasprintf.c: Likewise.
26871         * tests/unicase/test-locale-language.c: Likewise.
26872         * tests/unicase/test-mapping-part1.h: Likewise.
26873         * tests/unicase/test-predicate-part1.h: Likewise.
26874         * tests/unicase/test-u8-casecmp.c: Likewise.
26875         * tests/unicase/test-u8-casecoll.c: Likewise.
26876         * tests/unicase/test-u8-casefold.c: Likewise.
26877         * tests/unicase/test-u8-is-cased.c: Likewise.
26878         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26879         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26880         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26881         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26882         * tests/unicase/test-u8-tolower.c: Likewise.
26883         * tests/unicase/test-u8-totitle.c: Likewise.
26884         * tests/unicase/test-u8-toupper.c: Likewise.
26885         * tests/unicase/test-u16-casecmp.c: Likewise.
26886         * tests/unicase/test-u16-casecoll.c: Likewise.
26887         * tests/unicase/test-u16-casefold.c: Likewise.
26888         * tests/unicase/test-u16-is-cased.c: Likewise.
26889         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26890         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26891         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26892         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26893         * tests/unicase/test-u16-tolower.c: Likewise.
26894         * tests/unicase/test-u16-totitle.c: Likewise.
26895         * tests/unicase/test-u16-toupper.c: Likewise.
26896         * tests/unicase/test-u32-casecmp.c: Likewise.
26897         * tests/unicase/test-u32-casecoll.c: Likewise.
26898         * tests/unicase/test-u32-casefold.c: Likewise.
26899         * tests/unicase/test-u32-is-cased.c: Likewise.
26900         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26901         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26902         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26903         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26904         * tests/unicase/test-u32-tolower.c: Likewise.
26905         * tests/unicase/test-u32-totitle.c: Likewise.
26906         * tests/unicase/test-u32-toupper.c: Likewise.
26907         * tests/unicase/test-ulc-casecmp.c: Likewise.
26908         * tests/unicase/test-ulc-casecoll.c: Likewise.
26909         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26910         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26911         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26912         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26913         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26914         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26915         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26916         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26917         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26918         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26919         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26920         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26921         * tests/unictype/test-bidi_byname.c: Likewise.
26922         * tests/unictype/test-bidi_name.c: Likewise.
26923         * tests/unictype/test-bidi_of.c: Likewise.
26924         * tests/unictype/test-bidi_test.c: Likewise.
26925         * tests/unictype/test-block_list.c: Likewise.
26926         * tests/unictype/test-block_of.c: Likewise.
26927         * tests/unictype/test-block_test.c: Likewise.
26928         * tests/unictype/test-categ_and.c: Likewise.
26929         * tests/unictype/test-categ_and_not.c: Likewise.
26930         * tests/unictype/test-categ_byname.c: Likewise.
26931         * tests/unictype/test-categ_name.c: Likewise.
26932         * tests/unictype/test-categ_none.c: Likewise.
26933         * tests/unictype/test-categ_of.c: Likewise.
26934         * tests/unictype/test-categ_or.c: Likewise.
26935         * tests/unictype/test-categ_test_withtable.c: Likewise.
26936         * tests/unictype/test-combining.c: Likewise.
26937         * tests/unictype/test-decdigit.c: Likewise.
26938         * tests/unictype/test-digit.c: Likewise.
26939         * tests/unictype/test-mirror.c: Likewise.
26940         * tests/unictype/test-numeric.c: Likewise.
26941         * tests/unictype/test-pr_byname.c: Likewise.
26942         * tests/unictype/test-pr_test.c: Likewise.
26943         * tests/unictype/test-predicate-part1.h: Likewise.
26944         * tests/unictype/test-scripts.c: Likewise.
26945         * tests/unictype/test-sy_c_ident.c: Likewise.
26946         * tests/unictype/test-sy_java_ident.c: Likewise.
26947         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26948         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26949         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26950         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26951         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26952         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26953         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26954         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26955         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26956         * tests/uninorm/test-compat-decomposition.c: Likewise.
26957         * tests/uninorm/test-composition.c: Likewise.
26958         * tests/uninorm/test-decomposing-form.c: Likewise.
26959         * tests/uninorm/test-decomposition.c: Likewise.
26960         * tests/uninorm/test-u8-nfc.c: Likewise.
26961         * tests/uninorm/test-u8-nfd.c: Likewise.
26962         * tests/uninorm/test-u8-nfkc.c: Likewise.
26963         * tests/uninorm/test-u8-nfkd.c: Likewise.
26964         * tests/uninorm/test-u8-normcmp.c: Likewise.
26965         * tests/uninorm/test-u8-normcoll.c: Likewise.
26966         * tests/uninorm/test-u16-nfc.c: Likewise.
26967         * tests/uninorm/test-u16-nfd.c: Likewise.
26968         * tests/uninorm/test-u16-nfkc.c: Likewise.
26969         * tests/uninorm/test-u16-nfkd.c: Likewise.
26970         * tests/uninorm/test-u16-normcmp.c: Likewise.
26971         * tests/uninorm/test-u16-normcoll.c: Likewise.
26972         * tests/uninorm/test-u32-nfc.c: Likewise.
26973         * tests/uninorm/test-u32-nfd.c: Likewise.
26974         * tests/uninorm/test-u32-nfkc.c: Likewise.
26975         * tests/uninorm/test-u32-nfkd.c: Likewise.
26976         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26977         * tests/uninorm/test-u32-normcmp.c: Likewise.
26978         * tests/uninorm/test-u32-normcoll.c: Likewise.
26979         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26980         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26981         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26982         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26983         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26984         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26985         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26986         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26987         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26988         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26989         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26990         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26991         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26992         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26993         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26994         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26995         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26996         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26997         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26998         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26999         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27000         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27001         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27002         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27003         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27004         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27005         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27006         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27007         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27008         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
27009         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
27010         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
27011         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
27012         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27013         * tests/uniwidth/test-u8-width.c: Likewise.
27014         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27015         * tests/uniwidth/test-u16-width.c: Likewise.
27016         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27017         * tests/uniwidth/test-u32-width.c: Likewise.
27018         * tests/uniwidth/test-uc_width.c: Likewise.
27019         * tests/uniwidth/test-uc_width2.c: Likewise.
27020         * modules/acl-tests (Files): Add tests/macros.h.
27021         * modules/areadlink-tests (Files): Likewise.
27022         * modules/areadlink-with-size-tests (Files): Likewise.
27023         * modules/areadlinkat-tests (Files): Likewise.
27024         * modules/areadlinkat-with-size-tests (Files): Likewise.
27025         * modules/argmatch-tests (Files): Likewise.
27026         * modules/argv-iter-tests (Files): Likewise.
27027         * modules/array-list-tests (Files): Likewise.
27028         * modules/array-mergesort-tests (Files): Likewise.
27029         * modules/array-oset-tests (Files): Likewise.
27030         * modules/avltree-list-tests (Files): Likewise.
27031         * modules/avltree-oset-tests (Files): Likewise.
27032         * modules/avltreehash-list-tests (Files): Likewise.
27033         * modules/base64-tests (Files): Likewise.
27034         * modules/binary-io-tests (Files): Likewise.
27035         * modules/bitrotate-tests (Files): Likewise.
27036         * modules/btowc-tests (Files): Likewise.
27037         * modules/byteswap-tests (Files): Likewise.
27038         * modules/c-ctype-tests (Files): Likewise.
27039         * modules/c-stack-tests (Files): Likewise.
27040         * modules/c-strcase-tests (Files): Likewise.
27041         * modules/c-strcasestr-tests (Files): Likewise.
27042         * modules/c-strstr-tests (Files): Likewise.
27043         * modules/canonicalize-lgpl-tests (Files): Likewise.
27044         * modules/canonicalize-tests (Files): Likewise.
27045         * modules/carray-list-tests (Files): Likewise.
27046         * modules/ceilf-tests (Files): Likewise.
27047         * modules/ceill-tests (Files): Likewise.
27048         * modules/chown-tests (Files): Likewise.
27049         * modules/cloexec-tests (Files): Likewise.
27050         * modules/copy-file-tests (Files): Likewise.
27051         * modules/count-one-bits-tests (Files): Likewise.
27052         * modules/dprintf-posix-tests (Files): Likewise.
27053         * modules/dup2-tests (Files): Likewise.
27054         * modules/dup3-tests (Files): Likewise.
27055         * modules/duplocale-tests (Files): Likewise.
27056         * modules/fbufmode-tests (Files): Likewise.
27057         * modules/fchdir-tests (Files): Likewise.
27058         * modules/fcntl-safer-tests (Files): Likewise.
27059         * modules/fcntl-tests (Files): Likewise.
27060         * modules/fdopendir-tests (Files): Likewise.
27061         * modules/fdutimensat-tests (Files): Likewise.
27062         * modules/fflush-tests (Files): Likewise.
27063         * modules/filevercmp-tests (Files): Likewise.
27064         * modules/flock-tests (Files): Likewise.
27065         * modules/floorf-tests (Files): Likewise.
27066         * modules/floorl-tests (Files): Likewise.
27067         * modules/fnmatch-tests (Files): Likewise.
27068         * modules/fopen-safer-tests (Files): Likewise.
27069         * modules/fopen-tests (Files): Likewise.
27070         * modules/fpending-tests (Files): Likewise.
27071         * modules/fprintf-posix-tests (Files): Likewise.
27072         * modules/fpurge-tests (Files): Likewise.
27073         * modules/freadable-tests (Files): Likewise.
27074         * modules/freadahead-tests (Files): Likewise.
27075         * modules/freading-tests (Files): Likewise.
27076         * modules/freadptr-tests (Files): Likewise.
27077         * modules/freadseek-tests (Files): Likewise.
27078         * modules/freopen-tests (Files): Likewise.
27079         * modules/frexp-nolibm-tests (Files): Likewise.
27080         * modules/frexp-tests (Files): Likewise.
27081         * modules/frexpl-nolibm-tests (Files): Likewise.
27082         * modules/frexpl-tests (Files): Likewise.
27083         * modules/fseek-tests (Files): Likewise.
27084         * modules/fseeko-tests (Files): Likewise.
27085         * modules/fstrcmp-tests (Files): Likewise.
27086         * modules/fsync-tests (Files): Likewise.
27087         * modules/ftell-tests (Files): Likewise.
27088         * modules/ftello-tests (Files): Likewise.
27089         * modules/func-tests (Files): Likewise.
27090         * modules/futimens-tests (Files): Likewise.
27091         * modules/fwritable-tests (Files): Likewise.
27092         * modules/fwriting-tests (Files): Likewise.
27093         * modules/getcwd-tests (Files): Likewise.
27094         * modules/getdate-tests (Files): Likewise.
27095         * modules/getdelim-tests (Files): Likewise.
27096         * modules/getdtablesize-tests (Files): Likewise.
27097         * modules/getgroups-tests (Files): Likewise.
27098         * modules/getline-tests (Files): Likewise.
27099         * modules/getndelim2-tests (Files): Likewise.
27100         * modules/glob-tests (Files): Likewise.
27101         * modules/hash-tests (Files): Likewise.
27102         * modules/i-ring-tests (Files): Likewise.
27103         * modules/iconv-tests (Files): Likewise.
27104         * modules/iconv_open-utf-tests (Files): Likewise.
27105         * modules/idpriv-drop-tests (Files): Likewise.
27106         * modules/idpriv-droptemp-tests (Files): Likewise.
27107         * modules/inet_ntop-tests (Files): Likewise.
27108         * modules/inet_pton-tests (Files): Likewise.
27109         * modules/isblank-tests (Files): Likewise.
27110         * modules/isfinite-tests (Files): Likewise.
27111         * modules/isinf-tests (Files): Likewise.
27112         * modules/isnan-tests (Files): Likewise.
27113         * modules/isnand-nolibm-tests (Files): Likewise.
27114         * modules/isnand-tests (Files): Likewise.
27115         * modules/isnanf-nolibm-tests (Files): Likewise.
27116         * modules/isnanf-tests (Files): Likewise.
27117         * modules/isnanl-nolibm-tests (Files): Likewise.
27118         * modules/isnanl-tests (Files): Likewise.
27119         * modules/lchown-tests (Files): Likewise.
27120         * modules/ldexpl-tests (Files): Likewise.
27121         * modules/link-tests (Files): Likewise.
27122         * modules/linkat-tests (Files): Likewise.
27123         * modules/linked-list-tests (Files): Likewise.
27124         * modules/linkedhash-list-tests (Files): Likewise.
27125         * modules/localename-tests (Files): Likewise.
27126         * modules/lseek-tests (Files): Likewise.
27127         * modules/lstat-tests (Files): Likewise.
27128         * modules/mbmemcasecmp-tests (Files): Likewise.
27129         * modules/mbmemcasecoll-tests (Files): Likewise.
27130         * modules/mbrtowc-tests (Files): Likewise.
27131         * modules/mbscasecmp-tests (Files): Likewise.
27132         * modules/mbscasestr-tests (Files): Likewise.
27133         * modules/mbschr-tests (Files): Likewise.
27134         * modules/mbscspn-tests (Files): Likewise.
27135         * modules/mbsinit-tests (Files): Likewise.
27136         * modules/mbsncasecmp-tests (Files): Likewise.
27137         * modules/mbsnrtowcs-tests (Files): Likewise.
27138         * modules/mbspbrk-tests (Files): Likewise.
27139         * modules/mbspcasecmp-tests (Files): Likewise.
27140         * modules/mbsrchr-tests (Files): Likewise.
27141         * modules/mbsrtowcs-tests (Files): Likewise.
27142         * modules/mbsspn-tests (Files): Likewise.
27143         * modules/mbsstr-tests (Files): Likewise.
27144         * modules/memchr-tests (Files): Likewise.
27145         * modules/memchr2-tests (Files): Likewise.
27146         * modules/memcmp-tests (Files): Likewise.
27147         * modules/memmem-tests (Files): Likewise.
27148         * modules/memrchr-tests (Files): Likewise.
27149         * modules/mkdir-tests (Files): Likewise.
27150         * modules/mkfifo-tests (Files): Likewise.
27151         * modules/mkfifoat-tests (Files): Likewise.
27152         * modules/mknod-tests (Files): Likewise.
27153         * modules/nanosleep-tests (Files): Likewise.
27154         * modules/nl_langinfo-tests (Files): Likewise.
27155         * modules/obstack-printf-tests (Files): Likewise.
27156         * modules/open-tests (Files): Likewise.
27157         * modules/openat-tests (Files): Likewise.
27158         * modules/pipe-filter-gi-tests (Files): Likewise.
27159         * modules/pipe-filter-ii-tests (Files): Likewise.
27160         * modules/pipe2-tests (Files): Likewise.
27161         * modules/popen-safer-tests (Files): Likewise.
27162         * modules/popen-tests (Files): Likewise.
27163         * modules/posixtm-tests (Files): Likewise.
27164         * modules/pread-tests (Files): Likewise.
27165         * modules/printf-frexp-tests (Files): Likewise.
27166         * modules/printf-frexpl-tests (Files): Likewise.
27167         * modules/printf-posix-tests (Files): Likewise.
27168         * modules/priv-set-tests (Files): Likewise.
27169         * modules/quotearg-tests (Files): Likewise.
27170         * modules/random_r-tests (Files): Likewise.
27171         * modules/rawmemchr-tests (Files): Likewise.
27172         * modules/rbtree-list-tests (Files): Likewise.
27173         * modules/rbtree-oset-tests (Files): Likewise.
27174         * modules/rbtreehash-list-tests (Files): Likewise.
27175         * modules/readlink-tests (Files): Likewise.
27176         * modules/remove-tests (Files): Likewise.
27177         * modules/rename-tests (Files): Likewise.
27178         * modules/renameat-tests (Files): Likewise.
27179         * modules/rmdir-tests (Files): Likewise.
27180         * modules/round-tests (Files): Likewise.
27181         * modules/roundf-tests (Files): Likewise.
27182         * modules/roundl-tests (Files): Likewise.
27183         * modules/safe-alloc-tests (Files): Likewise.
27184         * modules/setenv-tests (Files): Likewise.
27185         * modules/sigaction-tests (Files): Likewise.
27186         * modules/signbit-tests (Files): Likewise.
27187         * modules/sleep-tests (Files): Likewise.
27188         * modules/snprintf-posix-tests (Files): Likewise.
27189         * modules/snprintf-tests (Files): Likewise.
27190         * modules/sprintf-posix-tests (Files): Likewise.
27191         * modules/stat-tests (Files): Likewise.
27192         * modules/stat-time-tests (Files): Likewise.
27193         * modules/strcasestr-tests (Files): Likewise.
27194         * modules/strchrnul-tests (Files): Likewise.
27195         * modules/strerror-tests (Files): Likewise.
27196         * modules/striconv-tests (Files): Likewise.
27197         * modules/striconveh-tests (Files): Likewise.
27198         * modules/striconveha-tests (Files): Likewise.
27199         * modules/strsignal-tests (Files): Likewise.
27200         * modules/strstr-tests (Files): Likewise.
27201         * modules/strtod-tests (Files): Likewise.
27202         * modules/strverscmp-tests (Files): Likewise.
27203         * modules/symlink-tests (Files): Likewise.
27204         * modules/symlinkat-tests (Files): Likewise.
27205         * modules/trunc-tests (Files): Likewise.
27206         * modules/truncf-tests (Files): Likewise.
27207         * modules/truncl-tests (Files): Likewise.
27208         * modules/uname-tests (Files): Likewise.
27209         * modules/unicase/cased-tests (Files): Likewise.
27210         * modules/unicase/ignorable-tests (Files): Likewise.
27211         * modules/unicase/locale-language-tests (Files): Likewise.
27212         * modules/unicase/tolower-tests (Files): Likewise.
27213         * modules/unicase/totitle-tests (Files): Likewise.
27214         * modules/unicase/toupper-tests (Files): Likewise.
27215         * modules/unicase/u8-casecmp-tests (Files): Likewise.
27216         * modules/unicase/u8-casecoll-tests (Files): Likewise.
27217         * modules/unicase/u8-casefold-tests (Files): Likewise.
27218         * modules/unicase/u8-is-cased-tests (Files): Likewise.
27219         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
27220         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
27221         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
27222         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
27223         * modules/unicase/u8-tolower-tests (Files): Likewise.
27224         * modules/unicase/u8-totitle-tests (Files): Likewise.
27225         * modules/unicase/u8-toupper-tests (Files): Likewise.
27226         * modules/unicase/u16-casecmp-tests (Files): Likewise.
27227         * modules/unicase/u16-casecoll-tests (Files): Likewise.
27228         * modules/unicase/u16-casefold-tests (Files): Likewise.
27229         * modules/unicase/u16-is-cased-tests (Files): Likewise.
27230         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
27231         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
27232         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
27233         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
27234         * modules/unicase/u16-tolower-tests (Files): Likewise.
27235         * modules/unicase/u16-totitle-tests (Files): Likewise.
27236         * modules/unicase/u16-toupper-tests (Files): Likewise.
27237         * modules/unicase/u32-casecmp-tests (Files): Likewise.
27238         * modules/unicase/u32-casecoll-tests (Files): Likewise.
27239         * modules/unicase/u32-casefold-tests (Files): Likewise.
27240         * modules/unicase/u32-is-cased-tests (Files): Likewise.
27241         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
27242         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
27243         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
27244         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
27245         * modules/unicase/u32-tolower-tests (Files): Likewise.
27246         * modules/unicase/u32-totitle-tests (Files): Likewise.
27247         * modules/unicase/u32-toupper-tests (Files): Likewise.
27248         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
27249         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
27250         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
27251         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
27252         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27253         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27254         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27255         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27256         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27257         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27258         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27259         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27260         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27261         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27262         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27263         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27264         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27265         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27266         * modules/unictype/block-list-tests (Files): Likewise.
27267         * modules/unictype/block-of-tests (Files): Likewise.
27268         * modules/unictype/block-test-tests (Files): Likewise.
27269         * modules/unictype/category-C-tests (Files): Likewise.
27270         * modules/unictype/category-Cc-tests (Files): Likewise.
27271         * modules/unictype/category-Cf-tests (Files): Likewise.
27272         * modules/unictype/category-Cn-tests (Files): Likewise.
27273         * modules/unictype/category-Co-tests (Files): Likewise.
27274         * modules/unictype/category-Cs-tests (Files): Likewise.
27275         * modules/unictype/category-L-tests (Files): Likewise.
27276         * modules/unictype/category-Ll-tests (Files): Likewise.
27277         * modules/unictype/category-Lm-tests (Files): Likewise.
27278         * modules/unictype/category-Lo-tests (Files): Likewise.
27279         * modules/unictype/category-Lt-tests (Files): Likewise.
27280         * modules/unictype/category-Lu-tests (Files): Likewise.
27281         * modules/unictype/category-M-tests (Files): Likewise.
27282         * modules/unictype/category-Mc-tests (Files): Likewise.
27283         * modules/unictype/category-Me-tests (Files): Likewise.
27284         * modules/unictype/category-Mn-tests (Files): Likewise.
27285         * modules/unictype/category-N-tests (Files): Likewise.
27286         * modules/unictype/category-Nd-tests (Files): Likewise.
27287         * modules/unictype/category-Nl-tests (Files): Likewise.
27288         * modules/unictype/category-No-tests (Files): Likewise.
27289         * modules/unictype/category-P-tests (Files): Likewise.
27290         * modules/unictype/category-Pc-tests (Files): Likewise.
27291         * modules/unictype/category-Pd-tests (Files): Likewise.
27292         * modules/unictype/category-Pe-tests (Files): Likewise.
27293         * modules/unictype/category-Pf-tests (Files): Likewise.
27294         * modules/unictype/category-Pi-tests (Files): Likewise.
27295         * modules/unictype/category-Po-tests (Files): Likewise.
27296         * modules/unictype/category-Ps-tests (Files): Likewise.
27297         * modules/unictype/category-S-tests (Files): Likewise.
27298         * modules/unictype/category-Sc-tests (Files): Likewise.
27299         * modules/unictype/category-Sk-tests (Files): Likewise.
27300         * modules/unictype/category-Sm-tests (Files): Likewise.
27301         * modules/unictype/category-So-tests (Files): Likewise.
27302         * modules/unictype/category-Z-tests (Files): Likewise.
27303         * modules/unictype/category-Zl-tests (Files): Likewise.
27304         * modules/unictype/category-Zp-tests (Files): Likewise.
27305         * modules/unictype/category-Zs-tests (Files): Likewise.
27306         * modules/unictype/category-and-not-tests (Files): Likewise.
27307         * modules/unictype/category-and-tests (Files): Likewise.
27308         * modules/unictype/category-byname-tests (Files): Likewise.
27309         * modules/unictype/category-name-tests (Files): Likewise.
27310         * modules/unictype/category-none-tests (Files): Likewise.
27311         * modules/unictype/category-of-tests (Files): Likewise.
27312         * modules/unictype/category-or-tests (Files): Likewise.
27313         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27314         * modules/unictype/combining-class-tests (Files): Likewise.
27315         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27316         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27317         * modules/unictype/ctype-blank-tests (Files): Likewise.
27318         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27319         * modules/unictype/ctype-digit-tests (Files): Likewise.
27320         * modules/unictype/ctype-graph-tests (Files): Likewise.
27321         * modules/unictype/ctype-lower-tests (Files): Likewise.
27322         * modules/unictype/ctype-print-tests (Files): Likewise.
27323         * modules/unictype/ctype-punct-tests (Files): Likewise.
27324         * modules/unictype/ctype-space-tests (Files): Likewise.
27325         * modules/unictype/ctype-upper-tests (Files): Likewise.
27326         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27327         * modules/unictype/decimal-digit-tests (Files): Likewise.
27328         * modules/unictype/digit-tests (Files): Likewise.
27329         * modules/unictype/mirror-tests (Files): Likewise.
27330         * modules/unictype/numeric-tests (Files): Likewise.
27331         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27332         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27333         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27334         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27335         Likewise.
27336         * modules/unictype/property-bidi-block-separator-tests (Files):
27337         Likewise.
27338         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27339         Likewise.
27340         * modules/unictype/property-bidi-common-separator-tests (Files):
27341         Likewise.
27342         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27343         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27344         Likewise.
27345         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27346         Likewise.
27347         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27348         Likewise.
27349         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27350         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27351         Likewise.
27352         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27353         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27354         Likewise.
27355         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27356         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27357         * modules/unictype/property-bidi-segment-separator-tests (Files):
27358         Likewise.
27359         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27360         * modules/unictype/property-byname-tests (Files): Likewise.
27361         * modules/unictype/property-combining-tests (Files): Likewise.
27362         * modules/unictype/property-composite-tests (Files): Likewise.
27363         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27364         * modules/unictype/property-dash-tests (Files): Likewise.
27365         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27366         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27367         Likewise.
27368         * modules/unictype/property-deprecated-tests (Files): Likewise.
27369         * modules/unictype/property-diacritic-tests (Files): Likewise.
27370         * modules/unictype/property-extender-tests (Files): Likewise.
27371         * modules/unictype/property-format-control-tests (Files): Likewise.
27372         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27373         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27374         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27375         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27376         * modules/unictype/property-hyphen-tests (Files): Likewise.
27377         * modules/unictype/property-id-continue-tests (Files): Likewise.
27378         * modules/unictype/property-id-start-tests (Files): Likewise.
27379         * modules/unictype/property-ideographic-tests (Files): Likewise.
27380         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27381         * modules/unictype/property-ids-trinary-operator-tests (Files):
27382         Likewise.
27383         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27384         * modules/unictype/property-iso-control-tests (Files): Likewise.
27385         * modules/unictype/property-join-control-tests (Files): Likewise.
27386         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27387         * modules/unictype/property-line-separator-tests (Files): Likewise.
27388         * modules/unictype/property-logical-order-exception-tests (Files):
27389         Likewise.
27390         * modules/unictype/property-lowercase-tests (Files): Likewise.
27391         * modules/unictype/property-math-tests (Files): Likewise.
27392         * modules/unictype/property-non-break-tests (Files): Likewise.
27393         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27394         * modules/unictype/property-numeric-tests (Files): Likewise.
27395         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27396         * modules/unictype/property-other-default-ignorable-code-point-tests
27397         (Files): Likewise.
27398         * modules/unictype/property-other-grapheme-extend-tests (Files):
27399         Likewise.
27400         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
27401         * modules/unictype/property-other-id-start-tests (Files): Likewise.
27402         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
27403         * modules/unictype/property-other-math-tests (Files): Likewise.
27404         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
27405         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
27406         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
27407         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
27408         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
27409         * modules/unictype/property-private-use-tests (Files): Likewise.
27410         * modules/unictype/property-punctuation-tests (Files): Likewise.
27411         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
27412         * modules/unictype/property-radical-tests (Files): Likewise.
27413         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
27414         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
27415         * modules/unictype/property-space-tests (Files): Likewise.
27416         * modules/unictype/property-terminal-punctuation-tests (Files):
27417         Likewise.
27418         * modules/unictype/property-test-tests (Files): Likewise.
27419         * modules/unictype/property-titlecase-tests (Files): Likewise.
27420         * modules/unictype/property-unassigned-code-value-tests (Files):
27421         Likewise.
27422         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
27423         * modules/unictype/property-uppercase-tests (Files): Likewise.
27424         * modules/unictype/property-variation-selector-tests (Files): Likewise.
27425         * modules/unictype/property-white-space-tests (Files): Likewise.
27426         * modules/unictype/property-xid-continue-tests (Files): Likewise.
27427         * modules/unictype/property-xid-start-tests (Files): Likewise.
27428         * modules/unictype/property-zero-width-tests (Files): Likewise.
27429         * modules/unictype/scripts-tests (Files): Likewise.
27430         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
27431         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
27432         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
27433         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
27434         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
27435         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
27436         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
27437         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
27438         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
27439         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
27440         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
27441         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
27442         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
27443         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
27444         * modules/uninorm/composition-tests (Files): Likewise.
27445         * modules/uninorm/decomposing-form-tests (Files): Likewise.
27446         * modules/uninorm/decomposition-tests (Files): Likewise.
27447         * modules/uninorm/filter-tests (Files): Likewise.
27448         * modules/uninorm/nfc-tests (Files): Likewise.
27449         * modules/uninorm/nfd-tests (Files): Likewise.
27450         * modules/uninorm/nfkc-tests (Files): Likewise.
27451         * modules/uninorm/nfkd-tests (Files): Likewise.
27452         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
27453         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
27454         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
27455         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
27456         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
27457         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
27458         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
27459         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27460         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
27461         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
27462         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
27463         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
27464         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27465         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
27466         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
27467         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
27468         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
27469         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27470         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
27471         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
27472         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
27473         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
27474         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27475         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
27476         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
27477         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
27478         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
27479         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27480         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27481         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27482         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27483         * modules/uniwidth/u8-width-tests (Files): Likewise.
27484         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27485         * modules/uniwidth/u16-width-tests (Files): Likewise.
27486         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27487         * modules/uniwidth/u32-width-tests (Files): Likewise.
27488         * modules/uniwidth/width-tests (Files): Likewise.
27489         * modules/unlink-tests (Files): Likewise.
27490         * modules/unsetenv-tests (Files): Likewise.
27491         * modules/usleep-tests (Files): Likewise.
27492         * modules/utimens-tests (Files): Likewise.
27493         * modules/utimensat-tests (Files): Likewise.
27494         * modules/vasnprintf-posix-tests (Files): Likewise.
27495         * modules/vasnprintf-tests (Files): Likewise.
27496         * modules/vasprintf-posix-tests (Files): Likewise.
27497         * modules/vasprintf-tests (Files): Likewise.
27498         * modules/vdprintf-posix-tests (Files): Likewise.
27499         * modules/vfprintf-posix-tests (Files): Likewise.
27500         * modules/vprintf-posix-tests (Files): Likewise.
27501         * modules/vsnprintf-posix-tests (Files): Likewise.
27502         * modules/vsnprintf-tests (Files): Likewise.
27503         * modules/vsprintf-posix-tests (Files): Likewise.
27504         * modules/wcrtomb-tests (Files): Likewise.
27505         * modules/wcsnrtombs-tests (Files): Likewise.
27506         * modules/wcsrtombs-tests (Files): Likewise.
27507         * modules/wctype-tests (Files): Likewise.
27508         * modules/wcwidth-tests (Files): Likewise.
27509         * modules/xmemdup0-tests (Files): Likewise.
27510         * modules/xprintf-posix-tests (Files): Likewise.
27511         * modules/xvasprintf-tests (Files): Likewise.
27512
27513 2009-12-24  Eric Blake  <ebb9@byu.net>
27514
27515         test-nanosleep: fix typo
27516         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27517         patch.
27518         Reported by Bruno Haible.
27519
27520 2009-12-24  Bruno Haible  <bruno@clisp.org>
27521
27522         Reduce namespace pollution on glibc systems.
27523         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27524         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27525         systems.
27526         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27527         <getopt.h> on glibc systems.
27528         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27529         systems.
27530         * lib/fcntl.c: Include <unistd.h> here instead.
27531
27532 2009-12-24  Bruno Haible  <bruno@clisp.org>
27533
27534         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27535
27536 2009-12-24  Eric Blake  <ebb9@byu.net>
27537
27538         tests: add signature checks
27539         * tests/signature.h (SIGNATURE_CHECK): New file.
27540         * modules/atexit-tests (Files): Use it.
27541         * modules/btowc-tests (Files): Likewise.
27542         * modules/canonicalize-lgpl-tests (Files): Likewise.
27543         * modules/ceilf-tests (Files): Likewise.
27544         * modules/ceill-tests (Files): Likewise.
27545         * modules/chown-tests (Files): Likewise.
27546         * modules/dprintf-posix-tests (Files): Likewise.
27547         * modules/dup2-tests (Files): Likewise.
27548         * modules/dup3-tests (Files): Likewise.
27549         * modules/duplocale-tests (Files): Likewise.
27550         * modules/fchdir-tests (Files): Likewise.
27551         * modules/fcntl-tests (Files): Likewise.
27552         * modules/fdopendir-tests (Files): Likewise.
27553         * modules/fflush-tests (Files): Likewise.
27554         * modules/flock-tests (Files): Likewise.
27555         * modules/floorf-tests (Files): Likewise.
27556         * modules/floorl-tests (Files): Likewise.
27557         * modules/fnmatch-tests (Files): Likewise.
27558         * modules/fopen-tests (Files): Likewise.
27559         * modules/fprintf-posix-tests (Files): Likewise.
27560         * modules/freopen-tests (Files): Likewise.
27561         * modules/frexp-nolibm-tests (Files): Likewise.
27562         * modules/frexp-tests (Files): Likewise.
27563         * modules/frexpl-nolibm-tests (Files): Likewise.
27564         * modules/frexpl-tests (Files): Likewise.
27565         * modules/fseek-tests (Files): Likewise.
27566         * modules/fseeko-tests (Files): Likewise.
27567         * modules/fsync-tests (Files): Likewise.
27568         * modules/ftell-tests (Files): Likewise.
27569         * modules/ftello-tests (Files): Likewise.
27570         * modules/futimens-tests (Files): Likewise.
27571         * modules/getaddrinfo-tests (Files): Likewise.
27572         * modules/getcwd-tests (Files): Likewise.
27573         * modules/getdelim-tests (Files): Likewise.
27574         * modules/getdtablesize-tests (Files): Likewise.
27575         * modules/getgroups-tests (Files): Likewise.
27576         * modules/gethostname-tests (Files): Likewise.
27577         * modules/getline-tests (Files): Likewise.
27578         * modules/getopt-posix-tests (Files): Likewise.
27579         * modules/gettimeofday-tests (Files): Likewise.
27580         * modules/glob-tests (Files): Likewise.
27581         * modules/iconv-tests (Files): Likewise.
27582         * modules/inet_ntop-tests (Files): Likewise.
27583         * modules/inet_pton-tests (Files): Likewise.
27584         * modules/isblank-tests (Files): Likewise.
27585         * modules/lchown-tests (Files): Likewise.
27586         * modules/ldexpl-tests (Files): Likewise.
27587         * modules/link-tests (Files): Likewise.
27588         * modules/linkat-tests (Files): Likewise.
27589         * modules/lseek-tests (Files): Likewise.
27590         * modules/lstat-tests (Files): Likewise.
27591         * modules/mbrtowc-tests (Files): Likewise.
27592         * modules/mbsinit-tests (Files): Likewise.
27593         * modules/mbsnrtowcs-tests (Files): Likewise.
27594         * modules/mbsrtowcs-tests (Files): Likewise.
27595         * modules/memchr-tests (Files): Likewise.
27596         * modules/memcmp-tests (Files): Likewise.
27597         * modules/memmem-tests (Files): Likewise.
27598         * modules/memrchr-tests (Files): Likewise.
27599         * modules/mkdir-tests (Files): Likewise.
27600         * modules/mkfifo-tests (Files): Likewise.
27601         * modules/mkfifoat-tests (Files): Likewise.
27602         * modules/mknod-tests (Files): Likewise.
27603         * modules/nanosleep-tests (Files): Likewise.
27604         * modules/nl_langinfo-tests (Files): Likewise.
27605         * modules/obstack-printf-tests (Files): Likewise.
27606         * modules/open-tests (Files): Likewise.
27607         * modules/openat-tests (Files): Likewise.
27608         * modules/perror-tests (Files): Likewise.
27609         * modules/pipe2-tests (Files): Likewise.
27610         * modules/poll-tests (Files): Likewise.
27611         * modules/popen-tests (Files): Likewise.
27612         * modules/posix_spawn-tests (Files): Likewise.
27613         * modules/posix_spawnp-tests (Files): Likewise.
27614         * modules/pread-tests (Files): Likewise.
27615         * modules/printf-posix-tests (Files): Likewise.
27616         * modules/pty-tests (Files): Likewise.
27617         * modules/random_r-tests (Files): Likewise.
27618         * modules/rawmemchr-tests (Files): Likewise.
27619         * modules/readlink-tests (Files): Likewise.
27620         * modules/remove-tests (Files): Likewise.
27621         * modules/rename-tests (Files): Likewise.
27622         * modules/renameat-tests (Files): Likewise.
27623         * modules/rmdir-tests (Files): Likewise.
27624         * modules/round-tests (Files): Likewise.
27625         * modules/roundf-tests (Files): Likewise.
27626         * modules/roundl-tests (Files): Likewise.
27627         * modules/select-tests (Files): Likewise.
27628         * modules/setenv-tests (Files): Likewise.
27629         * modules/sigaction-tests (Files): Likewise.
27630         * modules/sleep-tests (Files): Likewise.
27631         * modules/snprintf-posix-tests (Files): Likewise.
27632         * modules/snprintf-tests (Files): Likewise.
27633         * modules/sprintf-posix-tests (Files): Likewise.
27634         * modules/stat-tests (Files): Likewise.
27635         * modules/strcasestr-tests (Files): Likewise.
27636         * modules/strchrnul-tests (Files): Likewise.
27637         * modules/strerror-tests (Files): Likewise.
27638         * modules/strsignal-tests (Files): Likewise.
27639         * modules/strstr-tests (Files): Likewise.
27640         * modules/strtod-tests (Files): Likewise.
27641         * modules/strverscmp-tests (Files): Likewise.
27642         * modules/symlink-tests (Files): Likewise.
27643         * modules/symlinkat-tests (Files): Likewise.
27644         * modules/times-tests (Files): Likewise.
27645         * modules/trunc-tests (Files): Likewise.
27646         * modules/truncf-tests (Files): Likewise.
27647         * modules/truncl-tests (Files): Likewise.
27648         * modules/tsearch-tests (Files): Likewise.
27649         * modules/uname-tests (Files): Likewise.
27650         * modules/unlink-tests (Files): Likewise.
27651         * modules/unsetenv-tests (Files): Likewise.
27652         * modules/usleep-tests (Files): Likewise.
27653         * modules/utimensat-tests (Files): Likewise.
27654         * modules/vasprintf-tests (Files): Likewise.
27655         * modules/vdprintf-posix-tests (Files): Likewise.
27656         * modules/vfprintf-posix-tests (Files): Likewise.
27657         * modules/vprintf-posix-tests (Files): Likewise.
27658         * modules/vsnprintf-posix-tests (Files): Likewise.
27659         * modules/vsnprintf-tests (Files): Likewise.
27660         * modules/vsprintf-posix-tests (Files): Likewise.
27661         * modules/wcrtomb-tests (Files): Likewise.
27662         * modules/wcsnrtombs-tests (Files): Likewise.
27663         * modules/wcsrtombs-tests (Files): Likewise.
27664         * modules/wcwidth-tests (Files): Likewise.
27665         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27666         * tests/test-isinf.c (isinf): Likewise.
27667         * tests/test-isnan.c (isnan): Likewise.
27668         * tests/test-signbit.c (signbit): Likewise.
27669         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27670         declaration, either as macro or with correct signature.
27671         (select): Ensure function under test is declared with correct
27672         signature in correct header.
27673         * tests/test-atexit.c (atexit): Likewise.
27674         * tests/test-btowc.c (btowc): Likewise.
27675         * tests/test-canonicalize-lgpl.c (realpath)
27676         (canonicalize_file_name): Likewise.
27677         * tests/test-ceilf1.c (ceilf): Likewise.
27678         * tests/test-ceill.c (ceill): Likewise.
27679         * tests/test-chown.c (chown): Likewise.
27680         * tests/test-dprintf-posix.c (dprintf): Likewise.
27681         * tests/test-dup2.c (dup2): Likewise.
27682         * tests/test-dup3.c (dup3): Likewise.
27683         * tests/test-duplocale.c (duplocale): Likewise.
27684         * tests/test-fchdir.c (fchdir): Likewise.
27685         * tests/test-fchownat.c (fchownat): Likewise.
27686         * tests/test-fcntl.c (fcntl): Likewise.
27687         * tests/test-fdopendir.c (fdopendir): Likewise.
27688         * tests/test-fflush.c (fflush): Likewise.
27689         * tests/test-flock.c (flock): Likewise.
27690         * tests/test-floorf1.c (floorf): Likewise.
27691         * tests/test-floorl.c (floorl): Likewise.
27692         * tests/test-fnmatch.c (fnmatch): Likewise.
27693         * tests/test-fopen.c (fopen): Likewise.
27694         * tests/test-fprintf-posix.c (fprintf): Likewise.
27695         * tests/test-freopen.c (freopen): Likewise.
27696         * tests/test-frexp.c (frexp): Likewise.
27697         * tests/test-frexpl.c (frexpl): Likewise.
27698         * tests/test-fseek.c (fseek): Likewise.
27699         * tests/test-fseeko.c (fseeko): Likewise.
27700         * tests/test-fstatat.c (fstatat): Likewise.
27701         * tests/test-fsync.c (fsync): Likewise.
27702         * tests/test-ftell.c (ftell): Likewise.
27703         * tests/test-ftello.c (ftello): Likewise.
27704         * tests/test-futimens.c (futimens): Likewise.
27705         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27706         (gai_strerror): Likewise.
27707         * tests/test-getcwd.c (getcwd): Likewise.
27708         * tests/test-getdelim.c (getdelim): Likewise.
27709         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27710         * tests/test-getgroups.c (getgroups): Likewise.
27711         * tests/test-gethostname.c (gethostname): Likewise.
27712         * tests/test-getline.c (getline): Likewise.
27713         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27714         Likewise.
27715         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27716         * tests/test-glob.c (glob, globfree): Likewise.
27717         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27718         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27719         * tests/test-inet_pton.c (inet_pton): Likewise.
27720         * tests/test-isblank.c (isblank): Likewise.
27721         * tests/test-lchown.c (lchown): Likewise.
27722         * tests/test-ldexpl.c (ldexpl): Likewise.
27723         * tests/test-link.c (link): Likewise.
27724         * tests/test-linkat.c (linkat): Likewise.
27725         * tests/test-lseek.c (lseek): Likewise.
27726         * tests/test-lstat.c (lstat): Likewise.
27727         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27728         * tests/test-mbsinit.c (mbsinit): Likewise.
27729         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27730         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27731         * tests/test-memchr.c (memchr): Likewise.
27732         * tests/test-memcmp.c (memcmp): Likewise.
27733         * tests/test-memmem.c (memmem): Likewise.
27734         * tests/test-memrchr.c (memrchr): Likewise.
27735         * tests/test-mkdir.c (mkdir): Likewise.
27736         * tests/test-mkdirat.c (mkdirat): Likewise.
27737         * tests/test-mkfifo.c (mkfifo): Likewise.
27738         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27739         * tests/test-mknod.c (mknod): Likewise.
27740         * tests/test-nanosleep.c (nanosleep): Likewise.
27741         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27742         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27743         Likewise.
27744         * tests/test-open.c (open): Likewise.
27745         * tests/test-openat.c (openat): Likewise.
27746         * tests/test-perror.c (perror): Likewise.
27747         * tests/test-pipe2.c (pipe2): Likewise.
27748         * tests/test-poll.c (poll): Likewise.
27749         * tests/test-popen.c (popen, pclose): Likewise.
27750         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27751         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27752         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27753         (posix_spawn_file_actions_destroy)
27754         (posix_spawn_file_actions_addclose)
27755         (posix_spawn_file_actions_addopen)
27756         (posix_spawn_file_actions_adddup2): Likewise.
27757         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27758         * tests/test-pread.c (pread): Likewise.
27759         * tests/test-printf-posix.c (printf): Likewise.
27760         * tests/test-pty.c (openpty, forkpty): Likewise.
27761         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27762         (random_r): Likewise.
27763         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27764         * tests/test-readlink.c (readlink): Likewise.
27765         * tests/test-remove.c (remove): Likewise.
27766         * tests/test-rename.c (rename): Likewise.
27767         * tests/test-renameat.c (renameat): Likewise.
27768         * tests/test-rmdir.c (rmdir): Likewise.
27769         * tests/test-round1.c (round): Likewise.
27770         * tests/test-roundf1.c (roundf): Likewise.
27771         * tests/test-roundl.c (roundl): Likewise.
27772         * tests/test-setenv.c (setenv): Likewise.
27773         * tests/test-sigaction.c (sigaction): Likewise.
27774         * tests/test-sleep.c (sleep): Likewise.
27775         * tests/test-snprintf.c (snprintf): Likewise.
27776         * tests/test-sprintf-posix.c (sprintf): Likewise.
27777         * tests/test-stat.c (stat): Likewise.
27778         * tests/test-stpncpy.c (stpncpy): Likewise.
27779         * tests/test-strcasestr.c (strcasestr): Likewise.
27780         * tests/test-strchrnul.c (strchrnul): Likewise.
27781         * tests/test-strerror.c (strerror): Likewise.
27782         * tests/test-strsignal.c (strsignal): Likewise.
27783         * tests/test-strstr.c (strstr): Likewise.
27784         * tests/test-strtod.c (strtod): Likewise.
27785         * tests/test-strverscmp.c (strverscmp): Likewise.
27786         * tests/test-symlink.c (symlink): Likewise.
27787         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27788         * tests/test-times.c (times): Likewise.
27789         * tests/test-trunc1.c (trunc): Likewise.
27790         * tests/test-truncf1.c (truncf): Likewise.
27791         * tests/test-truncl.c (truncl): Likewise.
27792         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27793         Likewise.
27794         * tests/test-uname.c (uname): Likewise.
27795         * tests/test-unlink.c (unlink): Likewise.
27796         * tests/test-unlinkat.c (unlinkat): Likewise.
27797         * tests/test-unsetenv.c (unsetenv): Likewise.
27798         * tests/test-usleep.c (usleep): Likewise.
27799         * tests/test-utimensat.c (utimensat): Likewise.
27800         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27801         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27802         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27803         * tests/test-vprintf-posix.c (vprintf): Likewise.
27804         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27805         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27806         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27807         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27808         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27809         * tests/test-wcwidth.c (wcwidth): Likewise.
27810
27811         build: pull in conditional headers during GNULIB_POSIXCHECK
27812         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27813         definitions from any conditionally-included headers.
27814         * lib/stdlib.in.h (includes): Likewise.
27815         * lib/unistd.in.h (includes): Likewise.
27816
27817 2009-12-24  Bruno Haible  <bruno@clisp.org>
27818
27819         * tests/test-argv-iter.c: Include header file being tested immediately
27820         after config.h.
27821         * tests/test-base64.c: Likewise.
27822         * tests/test-flock.c: Likewise.
27823         * tests/test-fsync.c: Likewise.
27824         * tests/test-getdate.c: Likewise.
27825         * tests/test-getndelim2.c: Likewise.
27826         * tests/test-isfinite.c: Likewise.
27827         * tests/test-isinf.c: Likewise.
27828         * tests/test-strerror.c: Likewise.
27829         * tests/test-strsignal.c: Likewise.
27830
27831 2009-12-23  Eric Blake  <ebb9@byu.net>
27832
27833         unistd: work around cygwin bug
27834         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27835         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27836         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27837
27838 2009-12-23  Bruno Haible  <bruno@clisp.org>
27839
27840         localename: More tests.
27841         * tests/test-localename.c (SIZEOF): New macro.
27842         (categories): New variable.
27843         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27844         test_locale_name_default): Add test w.r.t. thread locale.
27845         (test_locale_name_thread): New function.
27846         (main): Invoke it.
27847
27848         localename: Make aware of thread locale.
27849         * lib/localename.h (gl_locale_name_thread): New declaration.
27850         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27851         behaviour with respect to thread locale.
27852         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27853         <langinfo.h>, glthread/lock.h.
27854         (SIZE_BITS): New macro.
27855         (string_hash): New function.
27856         (struct hash_node): New type.
27857         (HASH_TABLE_SIZE): New macro.
27858         (struniq_hash_table, struniq_lock): New variables.
27859         (struniq): New function.
27860         (gl_locale_name_thread): New function.
27861         (gl_locale_name): Invoke it.
27862         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27863         * modules/localename (Depends-on): Add lock.
27864         Reported by Mike Gran <spk121@yahoo.com>.
27865
27866 2009-12-23  Eric Blake  <ebb9@byu.net>
27867
27868         va-args: new module
27869         * modules/va-args: New file.
27870         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27871         * MODULES.html.sh (Core language properties): Mention it.
27872
27873         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27874         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27875         named alias for __attribute__((__unused__)).
27876         * lib/chown.c: Update client.
27877         * lib/fchmodat.c: Likewise.
27878         * lib/fts.c: Likewise.
27879         * lib/getdate.y: Likewise.
27880         * lib/getgroups.c: Likewise.
27881         * lib/getopt.c: Likewise.
27882         * lib/getugroups.c: Likewise.
27883         * lib/mkdir.c: Likewise.
27884         * lib/mkfifo.c: Likewise.
27885         * lib/mkfifoat.c: Likewise.
27886         * lib/mknod.c: Likewise.
27887         * lib/mknodat.c: Likewise.
27888         * lib/readlink.c: Likewise.
27889         * lib/se-context.in.h: Likewise.
27890         * lib/se-selinux.in.h: Likewise.
27891         * lib/sockets.c: Likewise.
27892         * lib/symlink.c: Likewise.
27893         * lib/symlinkat.c: Likewise.
27894         * lib/unicodeio.c: Likewise.
27895         * lib/unistr.h: Likewise.
27896         * tests/test-areadlink.c: Likewise.
27897         * tests/test-areadlinkat.c: Likewise.
27898         * tests/test-filenamecat.c: Likewise.
27899         * tests/test-fseeko.c: Likewise.
27900         * tests/test-ftello.c: Likewise.
27901         * tests/test-getdate.c: Likewise.
27902         * tests/test-getgroups.c: Likewise.
27903         * tests/test-gethostname.c: Likewise.
27904         * tests/test-quotearg.c: Likewise.
27905         * tests/test-version-etc.c: Likewise.
27906         * tests/test-xalloc-die.c: Likewise.
27907         * tests/test-xfprintf-posix.c: Likewise.
27908         * tests/test-xprintf-posix.c: Likewise.
27909         * tests/test-xvasprintf.c: Likewise.
27910
27911         tests: avoid compiler warnings
27912         * tests/test-fcntl.c (main): Delete unused parameters.
27913         * tests/test-freopen-safer.c (main): Likewise.
27914         * tests/test-xalloc-die.c (main): Mark unused parameters.
27915         * tests/test-fseeko.c (main): Likewise.
27916         * tests/test-ftello.c (main): Likewise.
27917         * tests/test-nanosleep.c (main): Avoid declaration warning.
27918         * tests/test-sleep.c (main): Likewise.
27919         * tests/test-unsetenv.c (main): Silence warning about string
27920         literal.
27921         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27922
27923 2009-12-23  Bruno Haible  <bruno@clisp.org>
27924
27925         * tests/test-localename.c (test_locale_name): New function, extracted
27926         from main. Also test mixed situations.
27927         (test_locale_name_posix, test_locale_name_environ,
27928         test_locale_name_default): New functions.
27929         (main): Invoke them all.
27930         * modules/localename-tests (configure.ac): Test for newlocale.
27931
27932 2009-12-23  Bruno Haible  <bruno@clisp.org>
27933
27934         unistd: Ensure getcwd gets declared before being overridden.
27935         * lib/unistd.in.h: Conditionally include <io.h>.
27936
27937 2009-12-22  Bruno Haible  <bruno@clisp.org>
27938
27939         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27940         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27941         (gl_WCHAR_H): Invoke it.
27942         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27943         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27944         Reported by Karl Berry <karl@freefriends.org>.
27945
27946 2009-12-22  Eric Blake  <ebb9@byu.net>
27947
27948         math, unistd: avoid redundant includes
27949         * lib/math.in.h (isnan): No need to re-include <math.h>.
27950         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27951
27952         getsubopt: work around cygwin bug
27953         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27954         avoid conflicting with system getsubopt.
27955         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27956         bug.
27957
27958         getopt: synchronize from glibc
27959         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27960         parameter order.  Adjust all callers.
27961         (_getopt_internal_r, main): Adjust quoting in error messages.
27962         Drop considerations for outdated POSIX 1003.2 error message.
27963         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27964         callers.
27965         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27966
27967         test-getopt: test stderr behavior
27968         * modules/getopt-posix-tests (Depends-on): Add dup2.
27969         * tests/test-getopt.c (ASSERT): Avoid stderr.
27970         (main): Move stderr to a temporary file.
27971         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27972         Instead, add parameter to inform caller if output occurred.
27973         (test_getopt): Adjust all existing tests to expect silence, and
27974         add new tests of leading ":".
27975         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27976         glibc shortcomings with leading "-:" or "+:" in optstring.
27977         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27978         Likewise.
27979         * doc/posix-functions/getopt.texi (getopt): Likewise.
27980
27981         test-getopt: enhance test
27982         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27983         supports optind=0.
27984         * tests/test-getopt.c (OPTIND_MIN): Move...
27985         * tests/test-getopt.h (OPTIND_MIN): ...here.
27986         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27987         Require that optind=0 works, since modern BSD supports it in
27988         addition to optreset, and since coreutils expects it.
27989         (test_getopt_long_only): New test.
27990         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27991         glibc shortcomings with 'W;', and enforcement of optind=0.
27992         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27993         Likewise.
27994
27995 2009-12-21  Bruno Haible  <bruno@clisp.org>
27996
27997         localename: Improvements for MacOS X and Cygwin.
27998         * lib/localename.h (gl_locale_name_environ): New declaration.
27999         * lib/localename.c (gl_locale_name_environ): New function, extracted from
28000         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
28001         (gl_locale_name_posix): Invoke it.
28002         (gl_locale_name_default): Add comments. Use Windows native API also on
28003         Cygwin.
28004
28005 2009-12-21  Bruno Haible  <bruno@clisp.org>
28006
28007         Update list of Win32 locale ids.
28008         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
28009         (LANG_SAMI): Renamed from LANG_SAAMI.
28010         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
28011         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
28012         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
28013         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
28014         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
28015         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
28016         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
28017         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
28018         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
28019         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
28020         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
28021         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
28022         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
28023         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
28024         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
28025         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
28026         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
28027         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
28028         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
28029         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
28030         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
28031         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
28032         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
28033         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
28034         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
28035         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
28036         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
28037         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
28038         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
28039         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
28040         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
28041         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
28042         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
28043         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
28044         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
28045         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
28046         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
28047         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
28048         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
28049         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
28050         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
28051         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
28052         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
28053         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
28054         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
28055         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
28056         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
28057         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
28058         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
28059         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
28060         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
28061         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
28062         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
28063         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
28064         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
28065         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
28066         Add more languages and countries for Sami, Sorbian. Add more countries
28067         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
28068         for Pashto. Change country for Syriac, Tswana.
28069
28070 2009-12-21  Eric Blake  <ebb9@byu.net>
28071
28072         test-utimens: avoid spurious failure
28073         * tests/test-chown.h (nap): Factor...
28074         * tests/nap.h: ...into new file.
28075         * tests/test-lchown.h (nap): Avoid duplication.
28076         * tests/test-utimens-common.h (nap): Use shared implementation,
28077         necessary on file systems with 1-second resolution.
28078         * modules/chown-tests (Files): Include new file.
28079         * modules/fdutimensat-tests (Files): Likewise.
28080         * modules/futimens-tests (Files): Likewise.
28081         * modules/lchown-tests (Files): Likewise.
28082         * modules/openat-tests (Files): Likewise.
28083         * modules/utimens-tests (Files): Likewise.
28084         * modules/utimensat-tests (Files): Likewise.
28085
28086 2009-12-19  Eric Blake  <ebb9@byu.net>
28087
28088         futimens, utimensat: work around Linux bug
28089         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
28090         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28091         * lib/utimensat.c (rpl_utimensat): Work around it.
28092         * lib/futimens.c (rpl_futimens): Adjust comment.
28093
28094         utimens: work around Linux ctime bug
28095         * lib/utimens.c (detect_ctime_bug): New helper function.
28096         (update_timespec): Differentiate between workaround needed for
28097         this bug vs. what is needed for systems that lack utimensat.
28098         (fdutimens, lutimens): Work around bug.
28099
28100         utimens: check for ctime update
28101         * tests/test-utimens-common.h (check_ctime): Define.
28102         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
28103         * tests/test-futimens.h (test_futimens): Likewise.
28104         * tests/test-lutimens.h (test_lutimens): Likewise.
28105         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28106         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28107
28108 2009-12-19  Bruno Haible  <bruno@clisp.org>
28109
28110         dprintf-posix: Check against memory leak fixed on 2009-12-15.
28111         * tests/test-dprintf-posix2.sh: New file.
28112         * tests/test-dprintf-posix2.c: New file.
28113         * modules/dprintf-posix-tests (Files): Add them.
28114         (configure.ac): Check for getrlimit and setrlimit.
28115         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28116
28117 2009-12-19  Bruno Haible  <bruno@clisp.org>
28118
28119         fprintf-posix: Check against memory leak fixed on 2009-12-15.
28120         * tests/test-fprintf-posix3.sh: New file.
28121         * tests/test-fprintf-posix3.c: New file.
28122         * modules/fprintf-posix-tests (Files): Add them.
28123         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28124
28125 2009-12-19  Eric Blake  <ebb9@byu.net>
28126
28127         dirfd: fix prototype
28128         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
28129         * lib/dirfd.c (dirfd): Likewise.
28130
28131         canonicalize: reduce memory usage
28132         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
28133         allocation to size.
28134         Reported by Solar Designer <solar@openwall.com>.
28135
28136 2009-12-19  Bruno Haible  <bruno@clisp.org>
28137
28138         New module attribute 'Applicability'.
28139         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
28140         * gnulib-tool: New option --extract-applicability.
28141         (func_usage): Document it.
28142         (sed_extract_prog): Recognize it.
28143         (func_get_applicability): New function.
28144         (func_import): Generalize handling of 'link-warning' module.
28145         * modules/link-warning (Applicability): New section.
28146         * modules/arg-nonnull (Applicability): New section.
28147         Repoted by Simon Josefsson <simon@josefsson.org>.
28148
28149 2009-12-19  Bruno Haible  <bruno@clisp.org>
28150
28151         fflush: tweak
28152         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
28153         * lib/fseeko.c (rpl_fseeko): Likewise.
28154
28155 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
28156
28157         * lib/gl_list.h: Fix typo in comment.
28158
28159 2009-12-16  Eric Blake  <ebb9@byu.net>
28160
28161         fcntl: use to simplify other modules
28162         * modules/cloexec (Depends-on): Add fcntl.
28163         * modules/fchdir (Depends-on): Likewise.
28164         * modules/fd-safer-flag (Depends-on): Likewise.
28165         * modules/unistd-safer (Depends-on): Likewise.
28166         * modules/dup3 (configure.ac): Set module indicator.
28167         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
28168         missing.
28169         * lib/fchdir.c (_gl_register_dup): Fix comment.
28170         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
28171         * lib/dup-safer.c (dup_safer): Likewise.
28172         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
28173         * lib/dup3.c (dup3): Likewise.
28174         * tests/test-fchdir.c (main): Enhance test.
28175         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
28176
28177         fcntl: port portions of fcntl to mingw
28178         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
28179         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
28180         replacement for mingw.
28181         * modules/fcntl (Description): Update.
28182         (Depends-on): Add dup2.
28183         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
28184         * modules/fcntl-h (Makefile.am): Substitute it.
28185         * lib/fcntl.in.h (fcntl): Update declaration.
28186         (F_DUPFD, F_GETFD): New macros, when needed.
28187         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28188         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
28189         * tests/test-fcntl.c (check_flags, main): Enhance test for items
28190         we now guarantee.
28191
28192         fcntl: work around cygwin bug in F_DUPFD
28193         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
28194         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
28195         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
28196         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
28197         * doc/posix-functions/fcntl.texi (fcntl): Document it.
28198
28199         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
28200         * modules/fcntl (Files): List new files.
28201         (configure.ac): Run a test.
28202         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
28203         * lib/fcntl.c (rpl_fcntl): Likewise.
28204         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
28205         (gl_FCNTL_H): Always replace fcntl.h.
28206         * modules/fcntl-h (Makefile.am): Substitute witnesses.
28207         * lib/fcntl.in.h (fcntl): Declare replacement.
28208         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
28209         needed, plus a witness.
28210         * doc/posix-functions/fcntl.texi (fcntl): Document this.
28211         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28212         * tests/test-fcntl.c: New file.
28213         * modules/fcntl-tests: Likewise.
28214
28215         binary-io: avoid potential compilation warning
28216         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
28217         directives.
28218
28219         fflush: avoid compilation error on NetBSD
28220         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
28221         between off_t and fpos_t, since the latter is sometimes a struct.
28222         * lib/fseeko.c (rpl_fseeko): Likewise.
28223         Reported by Alexander Nasonov <alnsn@yandex.ru>.
28224
28225 2009-12-15  Eric Blake  <ebb9@byu.net>
28226
28227         fcntl-h, stdio, sys_ioctl: fix declarations
28228         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
28229         function must not take arguments.
28230         * lib/sys_ioctl.in.h (ioctl): Likewise.
28231         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
28232         (open): Add a link warning.
28233
28234 2009-12-15  Jim Meyering  <meyering@redhat.com>
28235
28236         areadlink, areadlink-with-size: relax license to LGPLv2+
28237         * modules/areadlink (License): Relax to LGPLv2+.
28238         * modules/areadlink-with-size (License): Likewise.
28239
28240 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
28241             Bruno Haible  <bruno@clisp.org>
28242
28243         *printf: Fix memory leak.
28244         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
28245         * lib/vfprintf.c (vfprintf): Likewise.
28246         * lib/dprintf.c (dprintf): Likewise.
28247         * lib/vdprintf.c (vdprintf): Likewise.
28248
28249 2009-12-14  Eric Blake  <ebb9@byu.net>
28250
28251         accept4: adjust module dependencies
28252         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28253
28254         utimens: one more try at avoiding compiler warning
28255         * lib/utimens.c (lutimens): Lower scope of result.
28256
28257 2009-12-13  Bruno Haible  <bruno@clisp.org>
28258
28259         Move the malloc checking from module 'list' to new module 'xlist'.
28260         * modules/xlist: New file.
28261         * lib/gl_xlist.h: New file.
28262         * lib/gl_xlist.c: New file.
28263         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28264         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28265         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28266         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28267         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28268         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28269         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28270         gl_sortedlist_nx_add): New declarations.
28271         (struct gl_list_implementation): Rename and change methods accordingly.
28272         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28273         (gl_list_nx_create): Renamed from gl_list_create.
28274         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28275         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28276         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28277         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28278         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28279         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28280         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28281         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28282         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28283         gl_list_create_empty.
28284         (gl_list_nx_create): Renamed from gl_list_create.
28285         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28286         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28287         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28288         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28289         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28290         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28291         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28292         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28293         * lib/gl_array_list.c: Don't include xalloc.h.
28294         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28295         NULL upon out-of-memory.
28296         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28297         out-of-memory.
28298         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28299         Change return type to 'int'.
28300         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28301         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28302         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28303         upon out-of-memory.
28304         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28305         upon out-of-memory.
28306         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28307         upon out-of-memory.
28308         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28309         upon out-of-memory.
28310         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28311         out-of-memory.
28312         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28313         Update.
28314         (gl_array_list_implementation): Update.
28315         * lib/gl_carray_list.c: Don't include xalloc.h.
28316         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28317         Return NULL upon out-of-memory.
28318         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28319         out-of-memory.
28320         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28321         Change return type to 'int'.
28322         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28323         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28324         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28325         upon out-of-memory.
28326         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28327         upon out-of-memory.
28328         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28329         out-of-memory.
28330         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28331         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28332         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28333         Update.
28334         (gl_carray_list_implementation): Update.
28335         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28336         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28337         gl_linked_create_empty. Return NULL upon out-of-memory.
28338         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28339         out-of-memory.
28340         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28341         Change return type to 'int'. Return -1 upon out-of-memory.
28342         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28343         out-of-memory.
28344         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28345         upon out-of-memory.
28346         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28347         upon out-of-memory.
28348         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28349         NULL upon out-of-memory.
28350         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28351         upon out-of-memory.
28352         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28353         out-of-memory.
28354         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28355         Update.
28356         * lib/gl_linked_list.c: Don't include xalloc.h.
28357         (gl_linked_list_implementation): Update.
28358         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28359         (add_to_bucket): Change return type to 'int'.
28360         (gl_linkedhash_list_implementation): Update.
28361         * lib/gl_anytree_list1.h (free_subtree): New function.
28362         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28363         gl_tree_create_empty. Return NULL upon out-of-memory.
28364         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28365         Change return type to 'int'. Return -1 upon out-of-memory.
28366         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28367         out-of-memory.
28368         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28369         (gl_tree_remove_node): New function, moved here from
28370         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28371         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28372         Update.
28373         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28374         malloc, not xmalloc. Return NULL upon out-of-memory.
28375         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28376         out-of-memory.
28377         (gl_tree_remove_node_from_tree): New function, extracted from
28378         gl_tree_remove_node.
28379         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28380         upon out-of-memory.
28381         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28382         out-of-memory.
28383         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28384         upon out-of-memory.
28385         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28386         upon out-of-memory.
28387         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28388         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28389         not xmalloc. Return NULL upon out-of-memory.
28390         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28391         out-of-memory.
28392         (gl_tree_remove_node_from_tree): New function, extracted from
28393         gl_tree_remove_node.
28394         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28395         upon out-of-memory.
28396         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28397         out-of-memory.
28398         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28399         upon out-of-memory.
28400         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28401         upon out-of-memory.
28402         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28403         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
28404         gl_anytree_list1.h before gl_anyavltree_list2.h.
28405         (gl_avltree_list_implementation): Update.
28406         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
28407         gl_anytree_list1.h before gl_anyavltree_list2.h.
28408         (gl_rbtree_list_implementation): Update.
28409         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
28410         Change return type to 'int'. Return -1 upon out-of-memory. Use
28411         __builtin_expect.
28412         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
28413         (gl_avltreehash_list_implementation): Update.
28414         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
28415         (gl_rbtreehash_list_implementation): Update.
28416         * modules/array-list (Depends-on): Remove xalloc.
28417         * modules/carray-list (Depends-on): Likewise.
28418         * modules/linked-list (Depends-on): Likewise.
28419         * modules/linkedhash-list (Depends-on): Likewise.
28420         * modules/avltree-list (Depends-on): Likewise.
28421         * modules/rbtree-list (Depends-on): Likewise.
28422         * modules/avltreehash-list (Depends-on): Likewise.
28423         * modules/rbtreehash-list (Depends-on): Likewise.
28424
28425         * modules/xsublist: New file.
28426         * lib/gl_xsublist.h: New file.
28427         * lib/gl_xsublist.c: New file.
28428         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
28429         (gl_sublist_nx_create): New declaration.
28430         * lib/gl_sublist.c: Don't include xalloc.h.
28431         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
28432         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
28433         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
28434         Change return type to 'int'. Return -1 upon out-of-memory.
28435         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
28436         upon out-of-memory.
28437         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
28438         NULL upon out-of-memory.
28439         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
28440         upon out-of-memory.
28441         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
28442         NULL upon out-of-memory.
28443         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
28444         NULL upon out-of-memory.
28445         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
28446         upon out-of-memory.
28447         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
28448         (gl_sublist_list_implementation): Update.
28449         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
28450         upon out-of-memory.
28451         * modules/sublist (Depends-on): Remove xalloc.
28452
28453         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
28454         * tests/test-carray_list.c: Likewise.
28455         * tests/test-linked_list.c: Likewise.
28456         * tests/test-linkedhash_list.c: Likewise.
28457         * tests/test-avltree_list.c: Likewise.
28458         * tests/test-rbtree_list.c: Likewise.
28459         * tests/test-avltreehash_list.c: Likewise.
28460         * tests/test-rbtreehash_list.c: Likewise.
28461         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
28462         * modules/carray-list-tests (Makefile.am): Likewise.
28463         * modules/linked-list-tests (Makefile.am): Likewise.
28464         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28465         * modules/avltree-list-tests (Makefile.am): Likewise.
28466         * modules/rbtree-list-tests (Makefile.am): Likewise.
28467         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28468         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28469
28470         * NEWS: Mention the changes.
28471
28472         * lib/clean-temp.c: Include gl_xlist.h.
28473         * modules/clean-temp (Depends-on): Add xlist.
28474
28475         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
28476         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
28477
28478         * tests/test-array_oset.c: Include gl_xlist.h.
28479         * modules/array-oset-tests (Depends-on): Add xlist.
28480
28481         Reported by José E. Marchesi <jemarch@gnu.org>.
28482
28483 2009-12-13  Bruno Haible  <bruno@clisp.org>
28484
28485         Move the malloc checking from module 'oset' to new module 'xoset'.
28486         * modules/xoset: New file.
28487         * lib/gl_xoset.h: New file.
28488         * lib/gl_xoset.c: New file.
28489         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28490         declarations.
28491         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28492         (struct gl_oset_implementation): Rename and change methods accordingly.
28493         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28494         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28495         'int'. Mark as __warn_unused_result__.
28496         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28497         gl_oset_create_empty.
28498         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28499         'int'.
28500         * lib/gl_array_oset.c: Don't include xalloc.h.
28501         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28502         malloc, not xmalloc.
28503         (grow): Change return type to 'int'. Don't call xalloc_die.
28504         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28505         to 'int'.
28506         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28507         'int'.
28508         (gl_array_oset_implementation): Update.
28509         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28510         gl_tree_create_empty.
28511         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28512         'int'.
28513         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28514         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28515         xmalloc.
28516         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28517         not xmalloc.
28518         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28519         xmalloc.
28520         (gl_avltree_oset_implementation): Update.
28521         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28522         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28523         xmalloc.
28524         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28525         not xmalloc.
28526         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28527         xmalloc.
28528         (gl_rbtree_oset_implementation): Update.
28529         * modules/array-oset (Depends-on): Remove xalloc.
28530         * modules/avltree-oset (Depends-on): Likewise.
28531         * modules/rbtree-oset (Depends-on): Likewise.
28532         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28533         * tests/test-avltree_oset.c: Likewise.
28534         * tests/test-rbtree_oset.c: Likewise.
28535         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28536         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28537         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28538         * NEWS: Mention the change.
28539
28540 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28541
28542         maint.mk: allow a project to override release-prep commands
28543         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28544         commands into a new rule.
28545         (release-prep): New rule.
28546         (release-prep-hook): New overridable variable.
28547
28548 2009-12-13  Bruno Haible  <bruno@clisp.org>
28549
28550         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28551
28552 2009-12-13  Jim Meyering  <meyering@redhat.com>
28553
28554         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28555         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28556
28557 2009-12-12  Bruno Haible  <bruno@clisp.org>
28558
28559         duplocale: Tweak.
28560         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28561
28562 2009-12-12  Karl Berry  <karl@gnu.org>
28563
28564         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28565
28566 2009-12-12  Bruno Haible  <bruno@clisp.org>
28567
28568         * m4/po.m4: Undo incorrect untabification.
28569
28570 2009-12-12  Bruno Haible  <bruno@clisp.org>
28571
28572         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28573         * modules/c-strtod (Depends-on): Add locale.
28574         * modules/c-strtold (Depends-on): Likewise.
28575
28576 2009-12-12  Bruno Haible  <bruno@clisp.org>
28577
28578         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28579
28580 2009-12-11  Eric Blake  <ebb9@byu.net>
28581
28582         setenv: relax requirement in light of POSIX ruling
28583         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28584         not NULL.
28585         * tests/test-setenv.c (main): Relax test.
28586         * tests/test-unsetenv.c (main): Likewise.
28587         * doc/posix-functions/setenv.texi (setenv): Document this.
28588         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28589
28590 2009-12-11  Bruno Haible  <bruno@clisp.org>
28591
28592         New module 'fd-safer-flag'.
28593         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28594         * lib/dup-safer.c (dup_safer_flag): Remove function.
28595         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28596         * lib/fd-safer.c (fd_safer_flag): Remove function.
28597         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28598         * modules/cloexec (configure.ac): Drop indicator macro.
28599         * modules/fd-safer-flag: New file.
28600         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28601         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28602         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28603
28604 2009-12-11  Bruno Haible  <bruno@clisp.org>
28605
28606         Tests for module 'nl_langinfo'.
28607         * modules/nl_langinfo-tests: New file.
28608         * tests/test-nl_langinfo.sh: New file.
28609         * tests/test-nl_langinfo.c: New file.
28610
28611         New module 'nl_langinfo'.
28612         * lib/nl_langinfo.c: New file.
28613         * m4/nl_langinfo.m4: New file.
28614         * modules/nl_langinfo: New file.
28615         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28616
28617 2009-12-11  Bruno Haible  <bruno@clisp.org>
28618
28619         Tests for module 'langinfo'.
28620         * modules/langinfo-tests: New file.
28621         * tests/test-langinfo.c: New file.
28622
28623         New module 'langinfo'.
28624         * lib/langinfo.in.h: New file.
28625         * m4/langinfo_h.m4: New file.
28626         * modules/langinfo: New file.
28627         * doc/posix-headers/langinfo.texi: Mention the new module.
28628
28629 2009-12-11  Bruno Haible  <bruno@clisp.org>
28630
28631         * lib/config.charset: Untabify.
28632
28633 2009-12-11  Bruno Haible  <bruno@clisp.org>
28634
28635         * modules/unistd-safer (configure.ac): Drop indicator macro.
28636
28637 2009-12-11  Bruno Haible  <bruno@clisp.org>
28638
28639         Move pipe2-safer code to its own file.
28640         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28641         * lib/pipe-safer.c (pipe2_safer): Remove function.
28642         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28643         (Makefile.am): Add it to lib_SOURCES.
28644
28645 2009-12-10  Bruno Haible  <bruno@clisp.org>
28646
28647         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28648
28649 2009-12-10  Bruno Haible  <bruno@clisp.org>
28650
28651         Declare which arguments expect non-NULL values, for GCC and clang.
28652         * build-aux/arg-nonnull.h: New file.
28653         * modules/arg-nonnull: New file.
28654         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28655         (inet_ntop, inet_pton): Use it.
28656         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28657         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28658         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28659         (open, openat): Use it.
28660         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28661         (fnmatch): Use it.
28662         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28663         (getopt, getopt_long, getopt_long_only): Use it.
28664         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28665         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28666         Use it.
28667         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28668         (iconv_open): Use it.
28669         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28670         (strtoimax, strtoumax): Use it.
28671         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28672         (duplocale): Use it.
28673         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28674         (frexp, frexpl): Use it.
28675         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28676         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28677         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28678         (tsearch, tfind, tdelete, twalk): Use it.
28679         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28680         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28681         sigpending): Use it.
28682         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28683         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28684         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28685         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28686         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28687         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28688         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28689         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28690         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28691         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28692         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28693         Use it.
28694         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28695         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28696         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28697         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28698         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28699         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28700         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28701         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28702         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28703         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28704         strtoull, unsetenv): Use it.
28705         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28706         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28707         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28708         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28709         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28710         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28711         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28712         (strcasecmp, strncasecmp): Use it.
28713         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28714         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28715         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28716         rpl_setsockopt): Use it.
28717         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28718         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28719         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28720         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28721         (gettimeofday): Use it.
28722         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28723         (times): Use it.
28724         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28725         (uname): Use it.
28726         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28727         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28728         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28729         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28730         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28731         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28732         unlinkat, write): Use it.
28733         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28734         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28735         * lib/argv-iter.h: Include arg-nonnull.h.
28736         (_ATTRIBUTE_NONNULL_): Remove macro.
28737         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28738         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28739         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28740         optimization.
28741         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28742         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28743         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28744         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28745         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28746         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28747         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28748         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28749         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28750         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28751         * modules/dirent (Depends-on): Add arg-nonnull.
28752         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28753         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28754         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28755         * modules/fnmatch (Depends-on): Add arg-nonnull.
28756         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28757         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28758         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28759         * modules/glob (Depends-on): Add arg-nonnull.
28760         (Makefile.am): Insert arg-nonnull.h into glob.h.
28761         * modules/iconv_open (Depends-on): Add arg-nonnull.
28762         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28763         * modules/inttypes (Depends-on): Add arg-nonnull.
28764         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28765         * modules/locale (Depends-on): Add arg-nonnull.
28766         (Makefile.am): Insert arg-nonnull.h into locale.h.
28767         * modules/math (Depends-on): Add arg-nonnull.
28768         (Makefile.am): Insert arg-nonnull.h into math.h.
28769         * modules/netdb (Depends-on): Add arg-nonnull.
28770         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28771         * modules/search (Depends-on): Add arg-nonnull.
28772         (Makefile.am): Insert arg-nonnull.h into search.h.
28773         * modules/signal (Depends-on): Add arg-nonnull.
28774         (Makefile.am): Insert arg-nonnull.h into signal.h.
28775         * modules/spawn (Depends-on): Add arg-nonnull.
28776         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28777         * modules/stdio (Depends-on): Add arg-nonnull.
28778         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28779         * modules/stdlib (Depends-on): Add arg-nonnull.
28780         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28781         * modules/string (Depends-on): Add arg-nonnull.
28782         (Makefile.am): Insert arg-nonnull.h into string.h.
28783         * modules/strings (Depends-on): Add arg-nonnull.
28784         (Makefile.am): Insert arg-nonnull.h into strings.h.
28785         * modules/sys_socket (Depends-on): Add arg-nonnull.
28786         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28787         * modules/sys_stat (Depends-on): Add arg-nonnull.
28788         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28789         * modules/sys_time (Depends-on): Add arg-nonnull.
28790         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28791         * modules/sys_times (Depends-on): Add arg-nonnull.
28792         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28793         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28794         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28795         * modules/time (Depends-on): Add arg-nonnull.
28796         (Makefile.am): Insert arg-nonnull.h into time.h.
28797         * modules/unistd (Depends-on): Add arg-nonnull.
28798         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28799         * modules/wchar (Depends-on): Add arg-nonnull.
28800         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28801         * modules/argv-iter (Depends-on): Add arg-nonnull.
28802         * tests/test-canonicalize.c (null_ptr): New function.
28803         (main): Use it.
28804         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28805         (main): Use it.
28806         * tests/test-memmem.c (null_ptr): New function.
28807         (main): Use it.
28808         Reported by Jim Meyering.
28809
28810 2009-12-10  Bruno Haible  <bruno@clisp.org>
28811
28812         Use spaces for indentation, not tabs.
28813         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28814         * m4/*.m4: Untabify.
28815         * build-aux/*.h: Untabify.
28816         * tests/**/*.[hc]: Untabify.
28817         * README: New section "Indent with spaces, not TABs", based on
28818         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28819         * NEWS: Mention the change.
28820
28821 2009-12-10  Bruno Haible  <bruno@clisp.org>
28822
28823         pty test: Fix link error.
28824         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28825         test_pty_LDADD.
28826
28827 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28828
28829         * modules/pty: New file.
28830         * modules/pty-tests: New file.
28831         * m4/pty.m4: New file.
28832         * tests/test-pty.c: New file.
28833         * doc/glibc-headers/pty.texi: Modified.
28834         * doc/glibc-functions/forkpty.texi: Modified.
28835         * doc/glibc-functions/openpty.texi: Modified.
28836
28837 2009-12-10  Bruno Haible  <bruno@clisp.org>
28838
28839         Avoid syntax error in C++ mode.
28840         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28841
28842 2009-12-10  Bruno Haible  <bruno@clisp.org>
28843
28844         Use sed with option -e.
28845         * gnulib-tool (func_version, func_emit_copyright_notice,
28846         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28847         option -e to sed.
28848         * modules/link-warning (Makefile.am): Likewise.
28849
28850 2009-12-10  Jim Meyering  <meyering@redhat.com>
28851
28852         mgetgroups: do not write bytes beyond end of malloc'd buffer
28853         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28854         username, we call getgroups with a one-element-shorter buffer,
28855         but still told it the length was original, max_n_groups.
28856
28857 2009-12-09  Eric Blake  <ebb9@byu.net>
28858
28859         cloexec: relax license
28860         * modules/cloexec (Maintainer): Add myself.
28861         (License): Use LGPL, not GPL.
28862
28863         link-warning: optimize generation
28864         * modules/link-warning (Makefile.am): Reduce process usage.
28865
28866 2009-12-09  Bruno Haible  <bruno@clisp.org>
28867
28868         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28869         workaround was added on 2009-11-17.
28870
28871 2009-12-09  Jim Meyering  <meyering@redhat.com>
28872             Bruno Haible  <bruno@clisp.org>
28873
28874         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28875         * modules/link-warning (Makefile.am): Make the comment-removing sed
28876         command more robust in the face of bootstrap-prepended comment lines.
28877
28878 2009-12-09  Bruno Haible  <bruno@clisp.org>
28879
28880         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28881         most one group.
28882
28883 2009-12-09  Simon Josefsson <simon@josefsson.org>
28884             Bruno Haible  <bruno@clisp.org>
28885
28886         * build-aux/link-warning.h: Add copyright notice.
28887         * modules/link-warning (Makefile.am): Generate link-warning.h from
28888         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28889         * NEWS: Mention change in link-warning module.
28890         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28891         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28892         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28893         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28894         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28895         * modules/math (Makefile.am): Add dependency to math.h.
28896         * modules/search (Makefile.am): Add dependency to search.h.
28897         * modules/signal (Makefile.am): Add dependency to signal.h.
28898         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28899         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28900         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28901         * modules/string (Makefile.am): Add dependency to string.h.
28902         * modules/strings (Makefile.am): Add dependency to strings.h.
28903         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28904         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28905         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28906         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28907         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28908         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28909         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28910         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28911         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28912
28913 2009-12-09  Bruno Haible  <bruno@clisp.org>
28914
28915         fchdir: Optimize away rpl_fstat when possible.
28916         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28917         REPLACE_OPEN_DIRECTORY.
28918         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28919
28920 2009-12-09  Bruno Haible  <bruno@clisp.org>
28921
28922         * lib/fchdir.c: Update comment.
28923
28924 2009-12-09  Bruno Haible  <bruno@clisp.org>
28925
28926         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28927
28928 2009-12-08  Eric Blake  <ebb9@byu.net>
28929
28930         fchdir: avoid memory leak on re-registration.
28931         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28932
28933 2009-12-08  Jim Meyering  <meyering@redhat.com>
28934
28935         init.sh: avoid Solaris 10 /bin/sh portability problem
28936         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28937         sourced script:
28938           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28939           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28940           bar
28941         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28942         and two tests used that idiom.
28943         * tests/init.sh: Update suggested usage comments.
28944         (path_prepend_): New function, to be used in place
28945         of the --src-path=DIR option.
28946         (setup_): Move PATH-prepending code into path_prepend_.
28947         * tests/test-pread.sh: Adapt to new usage.
28948         * tests/test-xalloc-die.sh: Likewise.
28949
28950 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28951
28952         * doc/gnulib.texi (Glibc pty.h): Add.
28953         * doc/glibc-functions/forkpty.texi: Add.
28954         * doc/glibc-functions/openpty.texi: Add.
28955         Suggested by Bruno Haible.
28956
28957 2009-12-08  Eric Blake  <ebb9@byu.net>
28958
28959         fchdir: fix logic bugs
28960         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28961         * tests/test-fchdir.c (main): Enhance test.
28962         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28963         is in use.
28964
28965         dup2: fix logic bugs
28966         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28967         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28968         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28969         exists.
28970         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28971
28972 2009-12-07  Eric Blake  <ebb9@byu.net>
28973
28974         unlink: fix m4 detection
28975         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28976
28977         unistd-safer: add unit test
28978         * modules/unistd-safer-tests: New file.
28979         * tests/test-dup-safer.c: Likewise.
28980         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28981         * tests/test-dup2.c (setmode): Likewise.
28982         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28983
28984         cloexec: preserve text vs. binary across dup_cloexec
28985         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28986         mode.
28987         * modules/dup2-tests (Depends-on): Add binary-io.
28988         * modules/cloexec-tests (Depends-on): Likewise.
28989         * tests/test-dup2.c (setmode, is_mode): New helpers.
28990         (main): Add tests that translation mode is preserved.
28991         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28992         Reported by Bruno Haible.
28993
28994         mgetgroups: reduce duplicate listings
28995         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28996         resulting array.
28997         * tests/test-chown.h (test_chown): Simplify client.
28998         * tests/test-lchown.h (test_lchown): Likewise.
28999
29000 2009-12-06  Bruno Haible  <bruno@clisp.org>
29001
29002         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
29003         value.
29004
29005 2009-12-06  Bruno Haible  <bruno@clisp.org>
29006
29007         * lib/progname.c: Include stdio.h, stdlib.h.
29008         (set_program_name): Reject a NULL argument.
29009
29010 2009-12-05  Eric Blake  <ebb9@byu.net>
29011
29012         pipe2-safer: new module
29013         * modules/pipe2-safer: New file.
29014         * lib/unistd-safer.h (pipe2_safer): New prototype.
29015         * lib/unistd--.h (pipe2): New wrapper.
29016         * lib/pipe-safer.c (pipe2_safer): New function.
29017         * modules/pipe (Depends-on): Add pipe2-safer.
29018         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
29019
29020         stdlib-safer: preserve cloexec flag for mkostemp[s]
29021         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
29022         fd_safer_flag.
29023
29024         unistd-safer: allow preservation of cloexec status via flag
29025         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
29026         prototypes.
29027         * lib/dup-safer.c (dup_safer_flag): New function.
29028         * lib/fd-safer.c (fd_safer_flag): Likewise.
29029         * modules/cloexec (configure.ac): Set witness.
29030
29031         test-dup2: enhance test
29032         * modules/dup2-tests (Depends-on): Add cloexec.
29033         * tests/test-dup2.c (main): Enhance test.
29034
29035         cloexec: add dup_cloexec
29036         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
29037         header and comments.
29038         * lib/cloexec.c (set_cloexec_flag): Add comments.
29039         (dup_cloexec): New function, with mingw implementation borrowed
29040         from...
29041         * lib/w32spawn.h (dup_noinherit): ...here.
29042         * modules/execute (Depends-on): Add cloexec.
29043         * modules/pipe (Depends-on): Likewise.
29044         * modules/cloexec (Depends-on): Add dup2.
29045         * modules/cloexec-tests (Files): New file.
29046         * tests/test-cloexec.c: Likewise.
29047
29048         test-xalloc-die: fix test for mingw
29049         * modules/xalloc-die-tests (Files): Add tests/init.sh.
29050         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
29051         directory and .exe suffix off argv[0] output.
29052
29053         test-fseeko: fix test for mingw
29054         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
29055         than undefining fseek, so test will pass on mingw.
29056
29057 2009-12-05  Bruno Haible  <bruno@clisp.org>
29058
29059         * lib/progname.h (set_program_name): Clarify specification.
29060         * lib/progname.c (set_program_name): Likewise.
29061         Reported by Jim Meyering.
29062
29063 2009-12-05  Jim Meyering  <meyering@redhat.com>
29064
29065         maint.mk: backslash-escape parens in default regexp
29066         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
29067         backslash-escape the literal parentheses.
29068
29069         maint.mk: news-date-check: use grep -E
29070         * top/maint.mk (today): Define a Make variable, not a...
29071         (news-date-check): ...shell variable.
29072         (news-date-regexp): Use the Make variable.
29073         Use grep's -E option.  Change the failing diagnostic to mention
29074         the variable, $(news-date-regexp).
29075
29076 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
29077
29078         maintainer-makefile: allow customization of NEWS entry format
29079         * top/maint.mk (news-date-regexp): New overridable variable.
29080         (news-date-check): Use it.
29081
29082 2009-12-04  Eric Blake  <ebb9@byu.net>
29083
29084         mgetgroups: add xgetgroups, and avoid ENOSYS failures
29085         * lib/mgetgroups.h (xgetgroups): New prototype.
29086         * lib/mgetgroups.c (xgetgroups): New wrapper.
29087         (mgetgroups): Handle ENOSYS.
29088         * modules/mgetgroups (Depends-on): Add realloc.
29089         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
29090
29091         mgetgroups: avoid argument promotion issues with -1
29092         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
29093         for invalid gid_t.
29094         * tests/test-chown.h (getegid, test_chown): Likewise.
29095         * tests/test-lchown.h (getegid, test_lchown): Likewise.
29096
29097 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
29098
29099         exclude: Fix header file problems.
29100         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
29101
29102 2009-12-01  Jim Meyering  <meyering@redhat.com>
29103
29104         fts: fts_open: do not let an empty string cause immediate failure
29105         This is required in support of GNU rm, for which the command
29106         "rm A '' B" must process and remove both A and B, in spite of
29107         the empty string argument.
29108         * lib/fts.c (fts_open): Do not let the presence of an empty string
29109         cause fts_open to fail immediately.  Most fts-using tools must be
29110         able to process all arguments, in order, and can be expected to
29111         diagnose such arguments themselves.
29112
29113 2009-11-30  Eric Blake  <ebb9@byu.net>
29114
29115         utimens: fix compilation error
29116         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
29117         Declare variable at right scope.
29118
29119 2009-11-29  Jim Meyering  <meyering@redhat.com>
29120
29121         bootstrap: handle perl-5.11's changed --version output
29122         * build-aux/bootstrap (get_version): Handle perl separately,
29123         since perl-5.11's --version output is different.
29124
29125 2009-11-28  Jim Meyering  <meyering@redhat.com>
29126
29127         userspec: depend on the inttostr module, too
29128         * modules/userspec (Depends-on): Add inttostr.
29129
29130         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
29131         * lib/userspec.c (parse_with_separator): Do not accept a user ID
29132         number of MAXUID when it evaluates to (uid_t) -1.
29133         Likewise for group ID.  Reported by Matt McCutchen in
29134         <http://savannah.gnu.org/bugs/?28113>
29135
29136         userspec: reformat to use spaces, not TABs
29137         * lib/userspec.c: Expand TABs to spaces.
29138         Add Emacs' "indent-tabs-mode: nil" hint.
29139
29140 2009-11-27  Eric Blake  <ebb9@byu.net>
29141
29142         getopt-gnu: flush out another BSD bug
29143         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
29144         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
29145         flush out BSD bug.
29146         * tests/test-getopt.h (test_getopt): End lists with NULL.
29147         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29148         (test_getopt_long_posix): Enhance test.
29149         * modules/getopt-posix-tests (Depends-on): Add stdbool.
29150         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
29151         getopt-gnu.
29152         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29153         Likewise.
29154
29155 2009-11-27  Simon Josefsson  <simon@josefsson.org>
29156
29157         * modules/idpriv-droptemp-tests (Notice): Fix text.
29158
29159 2009-11-27  Jim Meyering  <meyering@redhat.com>
29160
29161         test-xalloc-die: avoid spurious failure due to libtool argv difference
29162         In a libtool-enabled project, this test would fail due to a difference
29163         in the emitted program name, e.g.,
29164         -test-xalloc-die: memory exhausted
29165         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
29166         Use program to avoid that.
29167         * modules/xalloc-die-tests (Depends-on): Add progname.
29168         * tests/test-xalloc-die.c: Include progname.h".
29169         (program_name): Remove decl.
29170         (main): Call set_program_name.
29171         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
29172
29173 2009-11-26  Richard Jones  <rjones@redhat.com>
29174
29175         w32sock: leave win32 error in place.
29176         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
29177
29178 2009-11-26  Eric Blake  <ebb9@byu.net>
29179
29180         init.sh: suggest to use skip_ and fail_ functions in comments
29181         * tests/init.sh: Add a sentence.
29182
29183 2009-11-25  Bruno Haible  <bruno@clisp.org>
29184
29185         init.sh: add documentation in comments
29186         * tests/init.sh: Add some developer and user documentation.
29187
29188 2009-11-26  Jim Meyering  <meyering@redhat.com>
29189
29190         init.sh: accommodate even those who specify bogus srcdir manually
29191         * tests/init.sh: Normally, srcdir is guaranteed by automake and
29192         configure-time tests to be sanitized, so that there is no need to
29193         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
29194         (with no double quotes) suffices.  However, since tests may be
29195         invoked manually, and since you may explicitly set srcdir to the
29196         name of a directory containing spaces, do quote its uses here.
29197         * tests/test-pread.sh: Likewise.
29198         Suggested by Bruno Haible.
29199
29200         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
29201         * tests/test-pread.sh: Write no data into the pipe, because
29202         test-pread actually reads none.  This avoids a diagnostic,
29203         "bash: echo: write error: Broken pipe", that arises in the unusual
29204         event something is ignoring SIGPIPE, and might be interpreted
29205         as some sort of failure.  Reported by Bruno Haible.
29206
29207 2009-11-25  Jim Meyering  <meyering@redhat.com>
29208
29209         test-pread: cover failure with ESPIPE and EINVAL
29210         * tests/test-pread.c (main): Test for failure, too.
29211         * tests/test-pread.sh: Invoke with stdin on a pipe.
29212         Suggested by Eric Blake.
29213
29214         pread: improvement and fix
29215         * modules/pread (Depends-on): Depend on lseek, for portability to
29216         e.g., mingw.  Suggested by Eric Blake.
29217         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
29218
29219         unistd.in.h: correct declaration of pread
29220         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
29221         Reported by Richard W.M. Jones.
29222
29223         test-pread.sh: distribute the test script
29224         * modules/pread-tests (Files): Include test-pread.sh.
29225
29226         test-pread.sh: clean up
29227         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
29228         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
29229         That is unnecessary, since it's always ".".
29230         Suggestion from Eric Blake.
29231
29232         test-pread.sh: make executable
29233         * tests/test-pread.sh: Set executable bit.
29234         Reported by Eric Blake.
29235
29236         correct typo in test-pread.sh
29237         * tests/test-pread.sh: Add #! line.
29238
29239         test pread
29240         * tests/test-pread.c: New file.
29241         * tests/test-pread.sh: Likewise.
29242         * modules/pread-tests: Likewise.
29243
29244         pread: new module
29245         * modules/pread: New file.
29246         * lib/unistd.in.h (pread): Define/declare.
29247         * lib/pread.c (pread): New file.
29248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
29249         * modules/unistd (Makefile.am): Substitute witnesses.
29250         * doc/posix-functions/pread.texi (pread): Update.
29251         * MODULES.html.sh: Add pread.
29252
29253 2009-11-25  Jim Meyering  <meyering@redhat.com>
29254
29255         tests/init.sh: new file to be used via most *.sh tests
29256         * tests/init.sh: New file.
29257
29258 2009-11-25  Eric Blake  <ebb9@byu.net>
29259
29260         utimens: work around older Linux failure with symlinks
29261         * lib/utimens.c (lutimensat_works_really): New variable.
29262         (fdutimens, lutimens): Use it to manage kernels that support
29263         nanosecond times on files, but not on symlinks.
29264         Reported by OndÅ™ej Vašík.
29265
29266         utimes: fix configure grammar
29267         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29268
29269 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29270
29271         regex: Fix fastmap for multibyte character ranges.
29272         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29273         characters when a multibyte character range is included.
29274
29275 2009-11-22  Andy Wingo  <wingo@pobox.com>
29276
29277         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29278         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29279
29280 2009-11-24  Bruno Haible  <bruno@clisp.org>
29281
29282         doc: Most *_l functions exist in MacOS X 10.5.
29283         * doc/posix-functions/duplocale.texi: Update platforms list.
29284         * doc/posix-functions/freelocale.texi: Likewise.
29285         * doc/posix-functions/newlocale.texi: Likewise.
29286         * doc/posix-functions/uselocale.texi: Likewise.
29287         * doc/posix-functions/isalnum_l.texi: Likewise.
29288         * doc/posix-functions/isalpha_l.texi: Likewise.
29289         * doc/posix-functions/isblank_l.texi: Likewise.
29290         * doc/posix-functions/iscntrl_l.texi: Likewise.
29291         * doc/posix-functions/isdigit_l.texi: Likewise.
29292         * doc/posix-functions/isgraph_l.texi: Likewise.
29293         * doc/posix-functions/islower_l.texi: Likewise.
29294         * doc/posix-functions/isprint_l.texi: Likewise.
29295         * doc/posix-functions/ispunct_l.texi: Likewise.
29296         * doc/posix-functions/isspace_l.texi: Likewise.
29297         * doc/posix-functions/isupper_l.texi: Likewise.
29298         * doc/posix-functions/iswalnum_l.texi: Likewise.
29299         * doc/posix-functions/iswalpha_l.texi: Likewise.
29300         * doc/posix-functions/iswblank_l.texi: Likewise.
29301         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29302         * doc/posix-functions/iswctype_l.texi: Likewise.
29303         * doc/posix-functions/iswdigit_l.texi: Likewise.
29304         * doc/posix-functions/iswgraph_l.texi: Likewise.
29305         * doc/posix-functions/iswlower_l.texi: Likewise.
29306         * doc/posix-functions/iswprint_l.texi: Likewise.
29307         * doc/posix-functions/iswpunct_l.texi: Likewise.
29308         * doc/posix-functions/iswspace_l.texi: Likewise.
29309         * doc/posix-functions/iswupper_l.texi: Likewise.
29310         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29311         * doc/posix-functions/isxdigit_l.texi: Likewise.
29312         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29313         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29314         * doc/posix-functions/strcoll_l.texi: Likewise.
29315         * doc/posix-functions/strfmon_l.texi: Likewise.
29316         * doc/posix-functions/strftime_l.texi: Likewise.
29317         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29318         * doc/posix-functions/strxfrm_l.texi: Likewise.
29319         * doc/posix-functions/tolower_l.texi: Likewise.
29320         * doc/posix-functions/toupper_l.texi: Likewise.
29321         * doc/posix-functions/towctrans_l.texi: Likewise.
29322         * doc/posix-functions/towlower_l.texi: Likewise.
29323         * doc/posix-functions/towupper_l.texi: Likewise.
29324         * doc/posix-functions/wcscoll_l.texi: Likewise.
29325         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29326         * doc/posix-functions/wctrans_l.texi: Likewise.
29327         * doc/posix-functions/wctype_l.texi: Likewise.
29328         * doc/glibc-functions/strptime_l.texi: Likewise.
29329         * doc/glibc-functions/strtod_l.texi: Likewise.
29330         * doc/glibc-functions/strtof_l.texi: Likewise.
29331         * doc/glibc-functions/strtol_l.texi: Likewise.
29332         * doc/glibc-functions/strtold_l.texi: Likewise.
29333         * doc/glibc-functions/strtoll_l.texi: Likewise.
29334         * doc/glibc-functions/strtoul_l.texi: Likewise.
29335         * doc/glibc-functions/strtoull_l.texi: Likewise.
29336         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29337         * doc/glibc-functions/wcstod_l.texi: Likewise.
29338         * doc/glibc-functions/wcstof_l.texi: Likewise.
29339         * doc/glibc-functions/wcstol_l.texi: Likewise.
29340         * doc/glibc-functions/wcstold_l.texi: Likewise.
29341         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29342         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29343         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29344
29345 2009-11-24  Bruno Haible  <bruno@clisp.org>
29346
29347         duplocale: Fix logic bug.
29348         * lib/duplocale.c: Don't include <langinfo.h>.
29349         (_NL_LOCALE_NAME): Remove macro.
29350         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29351         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29352
29353 2009-11-23  Jim Meyering  <meyering@redhat.com>
29354
29355         test-update-copyright: don't hard-code /usr/bin/perl
29356         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29357         perl to print the current year.  Gilles Espinasse reported that
29358         the replaced use of perl was hard-coded as /usr/bin/perl.
29359
29360 2009-11-23  Bruno Haible  <bruno@clisp.org>
29361
29362         duplocale: Add support for glibc 2.3.x.
29363         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29364
29365 2009-11-22  Bruno Haible  <bruno@clisp.org>
29366
29367         vasnprintf: Tiny optimization.
29368         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29369         MacOS X.
29370
29371 2009-11-22  Bruno Haible  <bruno@clisp.org>
29372
29373         Tests for module 'duplocale'.
29374         * modules/duplocale-tests: New file.
29375         * tests/test-duplocale.c: New file.
29376
29377         New module 'duplocale'.
29378         * m4/duplocale.m4: New file.
29379         * lib/locale.in.h (duplocale): New declaration.
29380         * lib/duplocale.c: New file.
29381         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29382         gl_LOCALE_H_DEFAULTS): New macros.
29383         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29384         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29385         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29386         REPLACE_DUPLOCALE.
29387         * modules/duplocale: New file.
29388         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29389
29390 2009-11-22  Bruno Haible  <bruno@clisp.org>
29391
29392         * modules/locale-tests (configure.ac): Test for newlocale function.
29393         * tests/test-locale.c: When the system has extended locale functions,
29394         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29395
29396         locale: Make locale_t available when possible.
29397         * lib/locale.in.h: Include <xlocale.h> when it exists.
29398         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
29399         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
29400         * modules/locale (Depends-on): Add extensions.
29401         (Makefile.am): Also substitute HAVE_XLOCALE_H.
29402         * doc/posix-headers/locale.texi: Document the problem with locale_t.
29403
29404 2009-11-22  Bruno Haible  <bruno@clisp.org>
29405
29406         Add comments.
29407         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
29408         invocation.
29409         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29410         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29411         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29412
29413 2009-11-22  Bruno Haible  <bruno@clisp.org>
29414
29415         error: account for the possibility of freopen (stdout).
29416         * lib/error.c: Include <unistd.h>.
29417         (flush_stdout): New function, extracted from error and error_at_line.
29418         Determine stdout's fd dynamically.
29419         (error, error_at_line): Invoke flush_stdout.
29420         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
29421         * modules/error (Depends-on): Add unistd.
29422
29423 2009-11-22  Bruno Haible  <bruno@clisp.org>
29424
29425         diffseq: Add comment.
29426         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
29427
29428 2009-11-22  Jim Meyering  <meyering@redhat.com>
29429
29430         c-stack: avoid defining an unused static function
29431         * lib/c-stack.c (find_stack_direction): Do not define this function
29432         when it will not be used.
29433
29434         diffseq: avoid spurious gcc warnings
29435         * lib/diffseq.h (IF_LINT2): Define.
29436         (compareseq): Use it to initialize two members of "part".
29437         This avoids two used-uninitialized warnings.
29438
29439 2009-11-21  Jim Meyering  <meyering@redhat.com>
29440
29441         c-stack: avoid "ignoring return value of `write'" warning
29442         * lib/c-stack.c: Include "ignore-value.h".
29443         (die): Explicitly ignore each write return value.
29444         * modules/c-stack (Depends-on): Add ignore-value.
29445
29446 2009-11-21  Bruno Haible  <bruno@clisp.org>
29447
29448         diffseq: reduce scope of variable 'best'.
29449         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
29450         variable, earlier used for two different purposes.
29451
29452 2009-11-21  Jim Meyering  <meyering@redhat.com>
29453
29454         diffseq: remove useless assignment to "best"
29455         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
29456         assignment.  At that point "best" is already guaranteed to be zero.
29457
29458 2009-11-20  Eric Blake  <ebb9@byu.net>
29459
29460         build: mention ftp redirector in release announcements
29461         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
29462         values that used to come from cfg.mk; mention FTP redirect URL.
29463         * build-aux/announce-gen: Mention the mirror list.
29464         Suggested by Karl Berry.
29465
29466         nanosleep: improve port to mingw
29467         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
29468         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
29469         LIB_NANOSLEEP, but only when needed.
29470         * modules/select (Link): Document LIBSOCKET.
29471         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
29472         enough.
29473
29474         nanosleep: work around cygwin bug
29475         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
29476         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
29477         bug.
29478         (getnow): Delete, not needed.
29479         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29480         LIB_CLOCK_GETTIME.
29481         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29482         clock-time, gettime.
29483         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29484         bug.
29485         * modules/nanosleep-tests: New test.
29486         * tests/test-nanosleep.c: New file.
29487
29488         sleep: work around cygwin bug
29489         * lib/sleep.c (rpl_sleep): Work around the bug.
29490         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29491         (gl_PREREQ_SLEEP): Delete unused macro.
29492         * modules/sleep (Depends-on): Add verify.
29493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29494         * modules/unistd (Makefile.am): Substitute witness.
29495         * lib/unistd.in.h (sleep): Update prototype.
29496         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29497         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29498         * modules/sleep-tests (Depends-on): Check for alarm.
29499
29500 2009-11-20  Jim Meyering  <meyering@redhat.com>
29501
29502         maint.mk: improve sc_prohibit_magic_number_exit
29503         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29504         so it does not match uses like System.exit(1).
29505         Add comments showing how to correct all offenders.
29506
29507 2009-11-19  Eric Blake  <ebb9@byu.net>
29508
29509         xalloc-die-tests: add missing library
29510         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29511
29512         test-xvasprintf: silence compiler warnings
29513         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29514         empty string from gcc.
29515
29516 2009-11-19  Jim Meyering  <meyering@redhat.com>
29517
29518         xfreopen: new module, from coreutils
29519         * modules/xfreopen: New module.
29520         * lib/xfreopen.c: New file.
29521         * lib/xfreopen.h: New file.
29522         * MODULES.html.sh (File stream based Input/Output"): Add it.
29523
29524 2009-11-19  Eric Blake  <ebb9@byu.net>
29525
29526         manywarnings: depend on warnings
29527         * modules/manywarnings (Depends-on): Add warnings.
29528
29529         build: avoid compiler warnings
29530         * lib/select.c (rpl_select): Delete unused variable.
29531         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29532
29533 2009-11-18  Eric Blake  <ebb9@byu.net>
29534
29535         tests: avoid false negative with --with-packager
29536         * tests/test-version-etc.sh: Discard packager information.
29537         * tests/test-argp-version-etc-1.sh: Likewise.
29538         Reported by Mike Frysinger.
29539
29540         utimens: fix regression on Solaris
29541         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29542         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29543         can only change fd timestamps via futimesat.  Instead, use an
29544         additional witness macro to avoid BSD bug.
29545         Reported by Jim Meyering.
29546
29547 2009-11-17  Eric Blake  <ebb9@byu.net>
29548
29549         usleep: use it to simplify tests
29550         * modules/stat-time-tests (Depends-on): Add usleep.
29551         (configure.ac): Drop usleep check.
29552         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29553         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29554         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29555         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29556         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29557         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29558         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29559         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29560         Likewise.
29561         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29562         * tests/test-lchown.h (nap): Likewise.
29563         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29564         * tests/test-stat-time.c (nap): Likewise.
29565         * tests/test-utimens-common.h (nap): Update comments.
29566
29567         usleep: new module
29568         * modules/usleep: New file.
29569         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29570         * lib/usleep.c (usleep): Likewise.
29571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29572         * modules/unistd (Makefile.am): Substitute witnesses.
29573         * lib/unistd.in.h (usleep): Add declaration.
29574         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29575         * MODULES.html.sh (Date and time): Likewise.
29576         * modules/usleep-tests (Depends-on): New test.
29577         * tests/test-usleep.c: New file.
29578
29579         chown: work around OpenBSD bug
29580         * lib/chown.c (rpl_chown): Work around the bug.
29581         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29582         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29583         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29584         * modules/chown (Depends-on): Add stdbool.
29585         * modules/lchown (Depends-on): Likewise.
29586         * doc/posix-functions/chown.texi (chown): Document the bug.
29587         * doc/posix-functions/lchown.texi (lchown): Likewise.
29588         * tests/test-lchown.h (test_chown): Relax test.
29589
29590         mkstemp: avoid conflict with C++ keyword template
29591         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29592         * lib/mkostemp.c (mkostemp): Likewise.
29593         * lib/mkostemps.c (mkostemps): Likewise.
29594         * lib/mkstemp.c (mkstemp): Likewise.
29595         * lib/mkstemps.c (mkstemps): Likewise.
29596
29597         xalloc-die-tests: optimize
29598         * tests/test-xalloc-die.sh: Reduce number of processes.
29599
29600 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29601
29602         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29603         patch from ludo@gnu.org (Ludovic Courtès).
29604
29605 2009-11-17  Jim Meyering  <meyering@redhat.com>
29606
29607         version-etc: use proper license string
29608         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29609         * modules/version-etc-fsf: Likewise.
29610
29611 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29612
29613         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29614         printed to stdout.  Deal with EOL differences.
29615
29616 2009-11-17  Eric Blake  <ebb9@byu.net>
29617
29618         unsetenv: work around Solaris bug
29619         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29620         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29621         Reported by Jim Meyering.
29622
29623         vasnprintf: avoid compiler warnings
29624         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29625         variables.
29626         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29627
29628 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29629
29630         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29631         settings since xalloc-die is no longer the self test,
29632         xalloc-die.sh is.
29633
29634 2009-11-17  Jim Meyering  <meyering@redhat.com>
29635
29636         test-xalloc-die.sh: make the code agree with the commit log
29637         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29638         at the end, just in case you happen to have a test-xalloc-die
29639         program in some other PATH directory.
29640
29641         test-xalloc-die.sh: fix a portability bug
29642         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29643         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29644         Otherwise, argv[0] (as often seen in diagnostics) would be too
29645         system-dependent, sometimes with, and sometimes without the leading "./".
29646
29647         version-etc-fsf: relax license to LGPLv3+
29648         * modules/version-etc-fsf (License): Relax license.
29649
29650 2009-11-16  Eric Blake  <ebb9@byu.net>
29651
29652         xalloc-die-tests: avoid printing null pointer
29653         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29654         shell script.
29655         * tests/test-xalloc-die.c (program_name): Declare.
29656         * tests/test-xalloc-die.sh (tmpfiles): New file.
29657
29658         setenv, unsetenv: work around various bugs
29659         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29660         (setenv) [HAVE_SETENV]: Work around bugs.
29661         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29662         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29663         for bugs.
29664         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29665         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29667         * modules/stdlib (Makefile.am): Update substitutions.
29668         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29669         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29670         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29671         * modules/setenv-tests: New test.
29672         * modules/unsetenv-tests: Likewise.
29673         * tests/test-setenv.c: New file.
29674         * tests/test-unsetenv.c: Likewise.
29675
29676 2009-11-16  Jim Meyering  <meyering@redhat.com>
29677
29678         version-etc: relax license to LGPLv3+
29679         * modules/version-etc (License): Relax license.
29680
29681         better AC_REQUIRE expanded-before-required-warning avoidance
29682         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29683         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29684         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29685         which is no longer needed.
29686
29687 2009-11-16  Eric Blake  <ebb9@byu.net>
29688
29689         test-freading: clean up temporary file
29690         * tests/test-freading.c (main): Remove file on success, and use
29691         ASSERT more liberally.
29692         Reported by Jim Meyering.
29693
29694 2009-11-16  Jim Meyering  <meyering@redhat.com>
29695
29696         avoid new AC_REQUIRE expanded-before-required warnings
29697         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29698         merely using it.
29699         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29700         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29701
29702 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29703
29704         * tests/test-xalloc-die.c: New file.
29705         * modules/xalloc-die-tests: New file.
29706         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29707         XFAIL_TESTS so it can be appended by modules.
29708
29709 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29710
29711         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29712         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29713
29714 2009-11-14  Eric Blake  <ebb9@byu.net>
29715
29716         fnmatch: avoid compiler warning
29717         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29718         to silence compiler warning about mismatch signedness in ?:.
29719         Reported by Robert Millan.
29720
29721         intprops: add double-inclusion guard
29722         * lib/intprops.h: Allow idempotent includes.
29723         Suggested by Bruce Korb.
29724
29725         openat: detect Solaris fchownat bug
29726         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29727         penalizing glibc chownat when only lchownat is broken.
29728         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29729         trailing slash bugs.
29730         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29731         * modules/openat-tests (Files): Include more files.
29732         (Depends-on): Add mgetgroups, sleep, stat-time.
29733         (configure.ac): Add additional checks.
29734         (Makefile.am): Build new test.
29735         * tests/test-fchownat.c: New file.
29736
29737         lchown: detect Solaris and FreeBSD bug
29738         * lib/lchown.c (rpl_lchown): Work around bug.
29739         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29741         * modules/unistd (Makefile.am): Populate it.
29742         * lib/unistd.in.h (lchown): Update declaration.
29743         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29744         * modules/lchown-tests: New file.
29745         * tests/test-lchown.h (test_lchown): Likewise.
29746         * tests/test-lchown.c (main): Likewise.
29747
29748         chown: detect Solaris and FreeBSD bug
29749         * lib/chown.c (rpl_chown): Work around bug.
29750         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29751         (gl_PREREQ_CHOWN): Delete.
29752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29753         * modules/unistd (Makefile.am): Populate it.
29754         * lib/unistd.in.h (chown): Update declaration.
29755         * lib/lchown.c (chown): Update client.
29756         * modules/lchown (Depends-on): Add lstat.
29757         * doc/posix-functions/chown.texi (chown): Document the bug.
29758         * doc/posix-functions/getgroups.texi (getgroups): Document
29759         getgroups pitfall.
29760         * modules/chown-tests: New file.
29761         * tests/test-chown.h (test_chown): Likewise.
29762         * tests/test-chown.c (main): Likewise.
29763
29764 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29765
29766         gnulib-tool: correctly detect absence of m4 directories
29767         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29768
29769 2009-11-14  Jim Meyering  <meyering@redhat.com>
29770
29771         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29772         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29773
29774 2009-11-14  John W. Eaton  <jwe@gnu.org>
29775
29776         strftime.h: wrap funtion declaration in extern "C" block
29777         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29778
29779 2009-11-13  Eric Blake  <ebb9@byu.net>
29780
29781         getgroups: avoid compiler warning
29782         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29783
29784         getgroups: work around FreeBSD bug
29785         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29786         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29787         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29788         * tests/test-getgroups.c (main): Fix buffer overrun.
29789
29790         getgroups: avoid compilation failure
29791         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29792         * modules/getgroups (Depends-on): Add stdint.
29793
29794 2009-11-13  Jim Meyering  <meyering@redhat.com>
29795
29796         test-getgroups: avoid compilation failure
29797         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29798
29799 2009-11-13  Eric Blake  <ebb9@byu.net>
29800
29801         mgetgroups: new module, taken from coreutils
29802         * modules/mgetgroups: New file.
29803         * lib/mgetgroups.h: Likewise.
29804         * lib/mgetgroups.c (mgetgroups): Likewise.
29805         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29806         * MODULES.html.sh (Users and groups): Mention it.
29807
29808         getgroups: don't expose GETGROUPS_T to user
29809         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29810         an element at a time if GETGROUPS_T is wrong size.
29811         * lib/getugroups.h (getugroups): Change signature.
29812         * lib/unistd.in.h (getgroups): Likewise.
29813         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29814         signature needs fixing.
29815         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29816         AC_TYPE_GETGROUPS.
29817         * modules/group-member (Depends-on): Add getgroups.
29818         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29819         (group_member): Rely on getgroups replacement.
29820         * lib/getugroups.c (getugroups): Use gid_t.
29821         * tests/test-getgroups.c (main): Likewise.
29822         * NEWS: Mention the signature change.
29823         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29824         problem with signature.
29825         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29826         GETGROUPS_T is still useful for setgroups.
29827
29828         getgroups, getugroups: provide stubs for mingw
29829         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29830         * lib/getugroups.c (getugroups): Likewise.
29831         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29832         function.  Modernize replacement scheme.
29833         (gl_PREREQ_GETGROUPS): Delete.
29834         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29835         * modules/getgroups (configure.ac): Declare witness.
29836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29837         * modules/unistd (Depends-on): Substitute witness.
29838         * lib/unistd.in.h (getgroups): Declare replacement.
29839
29840         getgroups: avoid calling exit
29841         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29842         drop xalloc.
29843         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29844         dependencies.
29845         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29846         exiting, in the rare case of malloc failure.
29847
29848         getgroups: fix logic error
29849         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29850         has more than 20 groups.
29851         * modules/getgroups-tests: New test.
29852         * tests/test-getgroups.c: New file.
29853
29854 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29855
29856         * tests/test-base64.c: Improve.
29857
29858 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29859
29860         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29861         Blake <ebb9@byu.net>.
29862
29863 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29864
29865         * tests/test-xvasprintf.c: Add %s%s related checks.
29866
29867 2009-11-12  Eric Blake  <ebb9@byu.net>
29868
29869         version-etc: match standards.texi style
29870         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29871         and use <> only for URLs.
29872
29873 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29874
29875         fts: do not fail on a submount during traversal
29876         * lib/fts.c (fts_build): Read the stat info again after opening
29877         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29878         Original report at http://bugzilla.redhat.com/501848.
29879
29880 2009-11-12  Jim Meyering  <meyering@redhat.com>
29881
29882         bootstrap: sync from coreutils
29883         * build-aux/bootstrap (bootstrap_epilogue): New function.
29884         Use git_modules_config in one more place.  This make bootstrap's
29885         --gnulib-srcdir option more useful for testing.
29886
29887         bootstrap: generalize autoheader check
29888         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29889         AC_CONFIG_HEADERS.
29890
29891 2009-11-11  Eric Blake  <ebb9@byu.net>
29892
29893         mkfifoat: use new modules for Solaris and BSD bugs
29894         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29895         * lib/mkfifoat.c (mknodat): Split...
29896         * lib/mknodat.c (mknodat): ...into new file.
29897         * modules/mkfifoat (Files): Ship new file.
29898         (Depends-on): Add mkfifo, mknod.
29899         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29900         (Depends-on): Add symlink.
29901         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29902         redundant with test_mkfifo.h.
29903         (do_mkfifoat, do_mknodat): New helpers.
29904
29905         mknod: new module
29906         * modules/mknod: New file.
29907         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29908         * lib/mknod.c (mknod): Likewise.
29909         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29910         defaults.
29911         * modules/sys_stat (Makefile.am): Substitute them.
29912         * lib/sys_stat.in.h (mknod): Declare replacement.
29913         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29914         Document it.
29915         * doc/posix-functions/mknod.texi (mknod): Likewise.
29916         * modules/mknod-tests: New test.
29917         * tests/test-mknod.c: Likewise.
29918
29919         mkfifo: new module
29920         * modules/mkfifo: New file.
29921         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29922         * lib/mkfifo.c (mkfifo): Likewise.
29923         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29924         defaults.
29925         * modules/sys_stat (Makefile.am): Substitute them.
29926         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29927         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29928         Document it.
29929         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29930         * modules/mkfifo-tests: New test.
29931         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29932         from test-mkfifoat.c.
29933         * tests/test-mkfifo.c: New file.
29934
29935         readlink: detect FreeBSD bug
29936         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29937         slash on symlink.
29938         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29939         * tests/test-readlink.h (test_readlink): Enhance test.
29940
29941         symlink: detect FreeBSD bug
29942         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29943         slash on symlink.
29944         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29945         * tests/test-symlink.h (test_symlink): Enhance test.
29946
29947 2009-11-10  Eric Blake  <ebb9@byu.net>
29948
29949         link: detect FreeBSD bug
29950         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29951         symlink.
29952         * doc/posix-functions/link.texi (link): Document the bug.
29953         * tests/test-link.h (test_link): Enhance test.
29954         * tests/test-linkat.c (main): Update caller.
29955
29956         unlink, remove: detect FreeBSD bug
29957         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29958         slash on symlink.
29959         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29960         * doc/posix-functions/remove.texi (remove): Likewise.
29961         * tests/test-unlink.h (test_unlink): Enhance test.
29962         * tests/test-remove.c (main): Likewise.
29963
29964 2009-11-09  Eric Blake  <ebb9@byu.net>
29965
29966         rename: detect FreeBSD bug
29967         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29968         slash on symlink.
29969         * modules/renameat-tests (Depends-on): Add filenamecat.
29970         * tests/test-rename.h (test_rename): Allow one more errno.
29971         * tests/test-renameat.c (main): Likewise.
29972         * doc/posix-functions/rename.texi (rename): Document the bug.
29973
29974         open: detect FreeBSD bug
29975         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29976         symlink.
29977         * doc/posix-functions/open.texi (open): Document the bug.
29978         * doc/posix-functions/utimes.texi (utimes): Likewise.
29979         * tests/test-open.h (test_open): Add parameters, and test symlink
29980         handling.
29981         * tests/test-open.c (main): Adjust caller.
29982         * tests/test-fcntl-safer.c (main): Likewise.
29983         * modules/open-tests (Depends-on): Add stdbool, symlink.
29984         * modules/fcntl-safer-tests (Depends-on): Likewise.
29985         * tests/test-openat.c (main): Add test-open tests.
29986
29987         stat: detect FreeBSD bug
29988         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29989         symlink.
29990         * doc/posix-functions/stat.texi (stat): Document the bug.
29991         * tests/test-stat.h (test_stat_func): Add argument.
29992         * tests/test-stat.c (main): Adjust caller.
29993         * tests/test-fstatat.c (main): Likewise.
29994         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29995         Reported by Jim Meyering.
29996
29997 2009-11-09  James Youngman  <jay@gnu.org>
29998
29999         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
30000         * lib/strftime.c: Correct placement of #include "ignore-value.h".
30001
30002 2009-11-08  Jim Meyering  <meyering@redhat.com>
30003
30004         utimens: remove invalid futimesat call
30005         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
30006         It used the file descriptor of the target file as the DIR_FD
30007         parameter and NULL as the file name.  That caused failure with
30008         errno == EFAULT on FreeBSD-8.0-rc2
30009
30010 2009-11-07  Eric Blake  <ebb9@byu.net>
30011
30012         fflush, freadseek: use fseeko, not fseek
30013         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30014         (clear_ungetc_buffer): Avoid potential problems on large files.
30015         * lib/freadseek.c (freadseek): Likewise.
30016         * modules/freadseek (Depends-on): Add fseeko.
30017         * modules/fseek (configure.ac): Set a witness.
30018         * tests/test-fflush.c (main): Use fseeko.
30019         * tests/test-fpurge.c (fseek): Disable link warning.
30020         * tests/test-freadable.c (fseek): Likewise.
30021         * tests/test-freading.c (fseek): Likewise.
30022         * tests/test-fseeko.c (fseek): Likewise.
30023         * tests/test-ftell.c (fseek): Likewise.
30024         * tests/test-ftello.c (fseek): Likewise.
30025         * tests/test-fwritable.c (fseek): Likewise.
30026         * tests/test-fwriting.c (fseek): Likewise.
30027
30028 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30029
30030         * modules/memchr (Depends-on): Drop getpagesize dependency.
30031
30032 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30033
30034         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
30035         Reported by Ludovic Courtès.
30036         * build-aux/pmccabe2html: Improve example usage.
30037         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
30038
30039 2009-11-06  Jim Meyering  <meyering@redhat.com>
30040
30041         do-release-commit-and-tag: New module.
30042         Automate the release-commit and tag process.
30043         * build-aux/do-release-commit-and-tag: New script, from coreutils.
30044         * modules/do-release-commit-and-tag: New file.
30045         * MODULES.html.sh (Support for maintaining and releasing): Add it.
30046
30047 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30048
30049         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
30050         because test-select.c uses inet_pton.
30051
30052 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30053
30054         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
30055         GETADDRINFO_LIB.  Bump serial number.
30056         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
30057         Suggested by Eric Blake <ebb9@byu.net>.
30058
30059 2009-11-05  Eric Blake  <ebb9@byu.net>
30060
30061         strtod: detect darwin bug
30062         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
30063         Reported by Leo Davis.
30064
30065         freopen-safer: new module
30066         * modules/freopen-safer: New module.
30067         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
30068         * lib/freopen-safer.c (freopen_safer): New file.
30069         * lib/stdio-safer.h (freopen_safer): New declaration.
30070         * lib/stdio--.h (freopen): New override.
30071         * MODULES.html.sh (File stream based Input/Output): Mention it.
30072         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
30073         freopen-safer module.
30074         * doc/posix-functions/stderr.texi (stderr): Likewise.
30075         * doc/posix-functions/stdin.texi (stdin): Likewise.
30076         * doc/posix-functions/stdout.texi (stdout): Likewise.
30077         * modules/freopen-safer-tests: New test.
30078         * tests/test-reopen-safer.c: New file.
30079
30080 2009-11-05  Jim Meyering  <meyering@redhat.com>
30081
30082         maint.mk: Prohibit inclusion of "close-stream.h" without use.
30083         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30084
30085 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30086
30087         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
30088
30089 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30090
30091         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
30092
30093 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30094
30095         Fix link error.
30096         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30097         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30098
30099 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30100
30101         * tests/test-func.c: Also test value of __func__.
30102
30103 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30104
30105         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
30106         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
30107
30108 2009-11-05  Bruno Haible  <bruno@clisp.org>
30109
30110         Fix link error.
30111         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30112         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30113         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
30114
30115 2009-11-05  Bruno Haible  <bruno@clisp.org>
30116
30117         Tests for module 'inet_pton'.
30118         * modules/inet_pton-tests: New file.
30119         * tests/test-inet_pton.c: New file.
30120
30121 2009-11-05  Bruno Haible  <bruno@clisp.org>
30122
30123         Tests for module 'inet_ntop'.
30124         * modules/inet_ntop-tests: New file.
30125         * tests/test-inet_ntop.c: New file.
30126
30127 2009-11-04  Eric Blake  <ebb9@byu.net>
30128
30129         stdlib-safer: wrap all mkstemp variants
30130         * modules/mkostemp (configure.ac): Set witness.
30131         * modules/mkostemps (configure.ac): Likewise.
30132         * modules/mkstemps (configure.ac): Likewise.
30133         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
30134         (mkstemps_safer): Wrap more functions.
30135         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
30136         wrapping.
30137         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
30138         (mkstemps_safer): Implement the wrappers.
30139
30140         mkstemps, mkostemps: new modules
30141         * modules/mkostemps: New module.
30142         * modules/mkstemps: Likewise.
30143         * lib/mkostemps.c (mkostemps): New file.
30144         * lib/mkstemps.c (mkstemps): Likewise.
30145         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
30146         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
30147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
30148         * modules/stdlib (Makefile.am): Substitute them.
30149         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
30150         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
30151         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30152         * doc/gnulib.texi (Glibc stdlib.h): Include them.
30153         * MODULES.html.sh (File system functions): Mention them.
30154
30155         tempname: resync from glibc
30156         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
30157         same values for __GT_FILE as glibc.  Abort even when assertions
30158         are disabled.
30159         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
30160         match its value otherwise.  Allow idempotent inclusion.
30161         * lib/mkdtemp.c (mkdtemp): Adjust caller.
30162         * lib/mkostemp.c (mkostemp): Likewise.
30163         * lib/mkstemp.c (mkstemp): Likewise.
30164         * lib/tmpfile.c (tmpfile): Likewise.
30165         * NEWS: Document this.
30166
30167         utimens: fix use of futimens on older Linux
30168         * lib/utimens.c (fdutimens): Use updated, rather than original,
30169         timespec to avoid bug in older Linux kernel.
30170         Reported by Simon Josefsson.
30171
30172 2009-11-04  Bruno Haible  <bruno@clisp.org>
30173
30174         Make num_processors more flexible and consistent.
30175         * lib/nproc.h (enum nproc_query): New type.
30176         (num_processors): Add a 'query' argument.
30177         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
30178         (num_processors): Add a 'query' argument. Test the value of the
30179         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
30180         mingw, count the number of CPUs available for the current process.
30181         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
30182         Check for sched_getaffinity and sched_getaffinity_np.
30183         * modules/nproc (Depends-on): Add c-ctype, extensions.
30184         * NEWS: Mention the change.
30185
30186 2009-11-03  Bruno Haible  <bruno@clisp.org>
30187
30188         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
30189
30190 2009-11-03  Jim Meyering  <meyering@redhat.com>
30191
30192         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
30193         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
30194         if it is defined.
30195
30196 2009-11-02  Eric Blake  <ebb9@byu.net>
30197
30198         mktime, timegm: share common declaration
30199         * lib/mktime-internal.h: New file.
30200         * lib/mktime.c: Use it rather than open-coding a declaration.
30201         * lib/timegm.c: Likewise.
30202         * modules/mktime (Files): Ship it.
30203         * modules/timegm (Files): Likewise.
30204         Suggested by Bruno Haible.
30205
30206         test-update-copyright: update test to match script changes
30207         * tests/test-update-copyright.sh: Avoid hard-coding perl
30208         location.  Don't update *.bak created by earlier runs.
30209
30210 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30211             Simon Josefsson  <simon@josefsson.org>
30212             Bruno Haible  <bruno@clisp.org>
30213
30214         Fix link error on Solaris 8.
30215         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
30216         also in libnsl. Define also INET_PTON_LIB.
30217         * modules/inet_pton (Link): New section.
30218
30219 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30220             Bruno Haible  <bruno@clisp.org>
30221
30222         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
30223         * modules/inet_ntop (Link): New section.
30224         Reported by Boyan Kasarov <bkasarov@gmail.com>.
30225
30226 2009-11-02  Eric Blake  <ebb9@byu.net>
30227
30228         maint: avoid compiler warnings in m4 macros
30229         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
30230         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
30231
30232 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30233
30234         * m4/pmccabe2html.m4: Remove file.
30235         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
30236         function.  Change maintainer.
30237         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
30238         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
30239         Courtès).
30240
30241 2009-10-31  Eric Blake  <ebb9@byu.net>
30242
30243         fseeko: fix m4 regression
30244         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
30245         regression from 2009-10-27.
30246         Reported by Ralf Wildenhues.
30247
30248 2009-10-31  Jim Meyering  <meyering@redhat.com>
30249
30250         inttostr: aesthetics and improved (compile-time) safety
30251         Define inttype_is_signed rather than inttype_is_unsigned,
30252         since the sole use is via "#if inttype_is_signed".
30253         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30254         inttype_is_unsigned.
30255         * lib/offtostr.c (inttype_is_signed): Likewise.
30256         * lib/uinttostr.c (inttype_is_signed): Likewise.
30257         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30258         * lib/inttostr.c (inttostr): Use verify to cross-check the
30259         inttype_is_signed value and the signedness of the actual type.
30260         * modules/inttostr (Depends-on): Add verify.
30261
30262 2009-10-30  Eric Blake  <ebb9@byu.net>
30263
30264         build: avoid compiler warnings
30265         * lib/fchmodat.c (lchmod): Mark unused variables.
30266         * lib/getopt.c (_getopt_initialize): Likewise.
30267         * lib/mktime.c (__mktime_internal): Provide prototype.
30268         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30269         older gcc that do not understand #pragma GCC diagnostic.
30270         * lib/uinttostr.c (inttype_is_unsigned): Define.
30271         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30272
30273 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30274
30275         stat: fix compilation on AIX
30276         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30277         only see struct stat64.
30278
30279 2009-10-30  Eric Blake  <ebb9@byu.net>
30280
30281         exclude: make more robust
30282         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30283         rather than masking a coding bug.
30284         Suggested by Bruno Haible.
30285
30286 2009-10-30  Jim Meyering  <meyering@redhat.com>
30287
30288         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30289         Rather than putting #!/usr/bin/perl on the first line,
30290         start with a variant of what's recommended by "man perlrun" that
30291         invokes the first "perl" program from your shell's search path.
30292         * build-aux/gitlog-to-changelog: Replace #!... as above.
30293         Add a "Local Variables" perl mode setting.
30294         Prompted by a patch from Ludovic Courtès.
30295         Improved by Eric Blake.
30296         * build-aux/useless-if-before-free: Likewise.
30297         * build-aux/announce-gen: Likewise.
30298         * build-aux/update-copyright: Likewise.
30299
30300 2009-10-29  Eric Blake  <ebb9@byu.net>
30301
30302         filenamecat-lgpl: adjust clients
30303         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30304         filenamecat.
30305         * modules/renameat (Depends-on): Likewise.
30306
30307         filenamecat: split into filenamecat-lgpl
30308         * modules/filenamecat-lgpl: New module.
30309         * modules/filenamecat (Files): Move library-safe files into
30310         filenamecat-lgpl.
30311         (Depends-on): Add filenamecat-lgpl.
30312         (configure.ac): Declare witness.
30313         * lib/filenamecat.h (file_name_concat): Only declare when using
30314         GPL module.
30315         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30316         Move...
30317         * lib/filenamecat-lgpl.c: ...into new file.
30318         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30319         (gl_FILE_NAME_CONCAT): Use it.
30320         * MODULES.html.sh (File system functions): Mention new module.
30321
30322         argp: avoid memory leak
30323         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30324         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30325         base_name, since the latter malloc()s and can call exit().
30326         Leak introduced 2006-07-03.
30327
30328         dirname-lgpl: adjust clients that don't need full dirname
30329         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30330         * modules/filenamecat (Depends-on): Likewise.
30331         * modules/linkat (Depends-on): Likewise.
30332         * modules/mkancesdirs (Depends-on): Likewise.
30333         * modules/mkdir (Depends-on): Likewise.
30334         * modules/openat (Depends-on): Likewise.
30335         * modules/savewd (Depends-on): Likewise.
30336         * modules/rename (Depends-on): Likewise.
30337         (License): Relax license.
30338         * modules/mkdir-tests (Depends-on): Drop progname.
30339         (Makefile.am): Delete unneeded LDADD.
30340         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30341
30342         dirname: split into dirname-lgpl
30343         * modules/dirname-lgpl: New module.
30344         * modules/dirname (Files): Move library-safe files into
30345         dirname-lgpl.
30346         (Depends-on): Add dirname-lgpl.
30347         (configure.ac): Declare witness.
30348         * modules/double-slash-root (License): Relax license.
30349         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30350         module.
30351         * lib/dirname.c (dir_len, mdir_name): Move...
30352         * lib/dirname-lgpl.c: ...into new file.
30353         * lib/basename.c (last_component, base_len): Move...
30354         * lib/basename-lgpl.c: ...into new file.
30355         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30356         (gl_DIRNAME): Use it.
30357         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30358         Mention new module.
30359         * modules/dirname-tests (Depends-on): Add progname.
30360         * tests/test-dirname.c (program_name): Delete.
30361
30362         mkdir: make safe for libraries
30363         * modules/mkdir (Depends-on): Drop xalloc.
30364         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30365         exit.
30366
30367         tests: avoid some compiler warnings
30368         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30369         literals.
30370         * tests/test-memchr.c (main): Avoid type mismatch.
30371         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30372         * tests/test-base64.c (main): Likewise.
30373         * tests/test-getdelim.c (main): Likewise.
30374         * tests/test-gethostname.c (main): Likewise.
30375         * tests/test-getline.c (main): Likewise.
30376         * tests/test-netinet_in.c (main): Likewise.
30377         * tests/test-select.c (open_server_socket, main): Likewise.
30378         * tests/test-select-stdin.c (main): Likewise.
30379         * tests/test-sockets.c (main): Likewise.
30380         * tests/test-strsignal.c (main): Likewise.
30381         * tests/test-sys_select.c (main): Likewise.
30382         * tests/test-sys_socket.c (main): Likewise.
30383         * tests/test-u64.c (main): Likewise.
30384         * tests/test-xfprintf-posix.c (main): Likewise.
30385         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30386
30387         sockets: avoid compiler warning
30388         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30389
30390         maint: detect usage(1) and other suspicious exits
30391         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30392
30393 2009-10-29  Jim Meyering  <meyering@redhat.com>
30394
30395         timespec: long-to-int truncation could make timespec_cmp malfunction
30396         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
30397         a multiple of 2^32 nanoseconds as no difference.
30398
30399 2009-10-28  Jim Meyering  <meyering@redhat.com>
30400
30401         fprintftime: wrap macro code argument in "do {...} while(0)"
30402         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
30403         cpy macro must be a statement that can be followed by a semicolon.
30404         Now that the else clause contains a comment and is hence longer
30405         than one line, I require curly braces.  That in turn requires
30406         that we wrap this code block in the standard do...while(0).
30407
30408         fprintftime: remove stray semicolon from previous change
30409         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
30410
30411         fprintftime: avoid a warning about ignored fwrite return value
30412         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
30413         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
30414         that is unsafe.
30415         * modules/fprintftime (Depends-on): Add ignore-value.
30416
30417         exclude: avoid an unwarranted warning
30418         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
30419
30420 2009-10-27  Eric Blake  <ebb9@byu.net>
30421
30422         fseek: avoid compilation failure when fflush is replaced
30423         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
30424         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
30425         module is in use.
30426         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
30427         module is not in use; since REPLACE_FSEEK worked otherwise.
30428         (GNULIB_FTELLO): Likewise for ftell.
30429         Reported by Ian Beckwith and others.
30430
30431 2009-10-27  Bruno Haible  <bruno@clisp.org>
30432
30433         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
30434         Reported by Jim Meyering.
30435
30436 2009-10-27  Jim Meyering  <jim@meyering.net>
30437             Bruno Haible  <bruno@clisp.org>
30438
30439         Avoid warning despite dropping the return value of fwrite.
30440         * lib/unicodeio.c: Include ignore-value.h.
30441         (fwrite_success_callback): Explicitly ignore fwrite's return value.
30442         * modules/unicodeio (Depends-on): Add ignore-value.
30443
30444 2009-10-26  Eric Blake  <ebb9@byu.net>
30445
30446         areadlinkat: fix fallback path
30447         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
30448         pointer and zero.
30449
30450 2009-10-22  Pádraig Brady  <P@draigBrady.com>
30451
30452         Use a better IO block size for modern systems
30453         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
30454         * lib/md2.c: Likewise.
30455         * lib/md4.c: Likewise.
30456         * lib/md5.c: Likewise.
30457         * lib/sha1.c: Likewise.
30458         * lib/sha256.c: Likewise.
30459         * lib/sha512.c: Likewise.
30460
30461 2009-10-22  Eric Blake  <ebb9@byu.net>
30462
30463         tests: avoid several compiler warnings
30464         * tests/test-getcwd.c (main): Avoid buffer underflow.
30465         * tests/test-getdate.c (main): String literals are not safe with
30466         putenv, so use setenv.  Declare unused argument.
30467         * modules/getdate-tests (Depends-on): Add setenv.
30468         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
30469         problems with string literals in char *.
30470         * tests/test-hash.c (main): Avoid shadowing declaration.
30471         (insert_new): Treat string literals as char const *.
30472         * tests/test-getopt.h (test_getopt): Likewise.
30473         (getopt_loop): Alter types to minimize casting elsewhere.
30474         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
30475         (test_getopt_long_posix): Likewise.
30476         (do_getopt_long): Add wrapper to minimize casting.
30477         * tests/test-atexit.c (clear_temp_file): Use void.
30478         * tests/test-areadlink-with-size.c (main): Declare unused
30479         arguments.
30480         * tests/test-areadlink.c (main): Likewise.
30481         * tests/test-areadlinkat-with-size.c (main): Likewise.
30482         * tests/test-areadlinkat.c (main): Likewise.
30483         * tests/test-canonicalize-lgpl.c (main): Likewise.
30484         * tests/test-canonicalize.c (main): Likewise.
30485         * tests/test-dirent-safer.c (main): Likewise.
30486         * tests/test-dirname.c (main): Likewise.
30487         * tests/test-dup2.c (main): Likewise.
30488         * tests/test-fchdir.c (main): Likewise.
30489         * tests/test-fcntl-h.c (main): Likewise.
30490         * tests/test-fcntl-safer.c (main): Likewise.
30491         * tests/test-fdopendir.c (main): Likewise.
30492         * tests/test-fdutimensat.c (main): Likewise.
30493         * tests/test-fflush.c (main): Likewise.
30494         * tests/test-filenamecat.c (main): Likewise.
30495         * tests/test-filevercmp.c (main): Likewise.
30496         * tests/test-fopen-safer.c (main): Likewise.
30497         * tests/test-fopen.c (main): Likewise.
30498         * tests/test-fpending.c (main): Likewise.
30499         * tests/test-fpurge.c (main): Likewise.
30500         * tests/test-freading.c (main): Likewise.
30501         * tests/test-fstatat.c (main): Likewise.
30502         * tests/test-fsync.c (main): Likewise.
30503         * tests/test-futimens.c (main): Likewise.
30504         * tests/test-getndelim2.c (main): Likewise.
30505         * tests/test-gettimeofday.c (main): Likewise.
30506         * tests/test-getopt.c (main): Likewise.
30507         * tests/test-i-ring.c (main): Likewise.
30508         * tests/test-inttypes.c (main): Likewise.
30509         * tests/test-link.c (main): Likewise.
30510         * tests/test-lstat.c (main): Likewise.
30511         * tests/test-math.c (main): Likewise.
30512         * tests/test-md5.c (main): Likewise.
30513         * tests/test-memchr2.c (main): Likewise.
30514         * tests/test-memrchr.c (main): Likewise.
30515         * tests/test-mkdir.c (main): Likewise.
30516         * tests/test-mkdirat.c (main): Likewise.
30517         * tests/test-mkfifoat.c (main): Likewise.
30518         * tests/test-open.c (main): Likewise.
30519         * tests/test-openat-safer.c (main): Likewise.
30520         * tests/test-openat.c (main): Likewise.
30521         * tests/test-quotearg.c (main): Likewise.
30522         * tests/test-rawmemchr.c (main): Likewise.
30523         * tests/test-readlink.c (main): Likewise.
30524         * tests/test-remove.c (main): Likewise.
30525         * tests/test-rename.c (main): Likewise.
30526         * tests/test-renameat.c (main): Likewise.
30527         * tests/test-rmdir.c (main): Likewise.
30528         * tests/test-sha1.c (main): Likewise.
30529         * tests/test-signal.c (main): Likewise.
30530         * tests/test-sigaction.c (main): Likewise.
30531         * tests/test-stat.c (main): Likewise.
30532         * tests/test-stat-time.c (main): Likewise.
30533         * tests/test-stddef.c (main): Likewise.
30534         * tests/test-stdint.c (main): Likewise.
30535         * tests/test-stdio.c (main): Likewise.
30536         * tests/test-stdlib.c (main): Likewise.
30537         * tests/test-strchrnul.c (main): Likewise.
30538         * tests/test-strerror.c (main): Likewise.
30539         * tests/test-string.c (main): Likewise.
30540         * tests/test-strtod.c (main): Likewise.
30541         * tests/test-strverscmp.c (main): Likewise.
30542         * tests/test-symlink.c (main): Likewise.
30543         * tests/test-symlinkat.c (main): Likewise.
30544         * tests/test-sys_stat.c (main): Likewise.
30545         * tests/test-sys_time.c (main): Likewise.
30546         * tests/test-time.c (main): Likewise.
30547         * tests/test-unistd.c (main): Likewise.
30548         * tests/test-unlink.c (main): Likewise.
30549         * tests/test-unlinkat.c (main): Likewise.
30550         * tests/test-utimens.c (main): Likewise.
30551         * tests/test-utimensat.c (main): Likewise.
30552         * tests/test-version-etc.c (main): Likewise.
30553         * tests/test-wchar.c (main): Likewise.
30554         * tests/test-wctype.c (main): Likewise.
30555         * tests/test-xprintf-posix.c (main): Likewise.
30556         * tests/test-posixtm.c (main): Likewise.
30557         (STREQ): Delete unused macro.
30558         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30559         shadowed variables.
30560         * tests/test-memchr.c (main): Likewise.
30561
30562 2009-10-21  Eric Blake  <ebb9@byu.net>
30563
30564         areadlinkat: avoid failure on older glibc
30565         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30566         rather than mis-comparing 0 against FUNC_RESULT of char*.
30567
30568 2009-10-21  Bruno Haible  <bruno@clisp.org>
30569
30570         * modules/stpncpy (License): Relicense under LGPLv2+.
30571         Reported by David Lutterkort <lutter@redhat.com>.
30572
30573 2009-10-20  Eric Blake  <ebb9@byu.net>
30574
30575         utimensat: work around Solaris 9 bug
30576         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30577         has trailing slash bugs.
30578         * tests/test-lutimens.h (test_lutimens): Enhance test.
30579         * tests/test-utimens.h (test_utimens): Likewise.
30580         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30581         * doc/posix-functions/utimes.texi (utimes): Likewise.
30582         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30583         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30584         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30585         * doc/posix-functions/futimens.texi (futimens): Likewise.
30586
30587         fdutimensat: new module
30588         * modules/fdutimensat: New file.
30589         * lib/fdutimensat.c (fdutimensat): Likewise.
30590         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30591         * MODULES.html.sh (File system functions): Mention module.
30592         * modules/fdutimensat-tests: New test.
30593         * tests/test-fdutimensat.c: Likewise.
30594
30595         doc: regenerate INSTALL
30596         * doc/INSTALL: Reflect recent autoconf update.
30597         * doc/INSTALL.ISO: Likewise.
30598         * doc/INSTALL.UTF-8: Likewise.
30599
30600 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30601
30602         acl: warn if ACL support is not detected
30603         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30604
30605 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30606
30607         * lib/nproc.h: Add extern "C" block for C++.
30608
30609 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30610             Bruno Haible  <bruno@clisp.org>
30611
30612         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30613         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30614         * doc/posix-functions/isalpha.texi: Likewise.
30615         * doc/posix-functions/isblank.texi: Likewise.
30616         * doc/posix-functions/iscntrl.texi: Likewise.
30617         * doc/posix-functions/isdigit.texi: Likewise.
30618         * doc/posix-functions/isgraph.texi: Likewise.
30619         * doc/posix-functions/islower.texi: Likewise.
30620         * doc/posix-functions/isprint.texi: Likewise.
30621         * doc/posix-functions/ispunct.texi: Likewise.
30622         * doc/posix-functions/isspace.texi: Likewise.
30623         * doc/posix-functions/isupper.texi: Likewise.
30624         * doc/posix-functions/isxdigit.texi: Likewise.
30625
30626 2009-10-18  Bruno Haible  <bruno@clisp.org>
30627
30628         Tests for module 'isblank'.
30629         * modules/isblank-tests: New file.
30630         * tests/test-isblank.c: New file.
30631
30632         New module 'isblank'.
30633         * lib/isblank.c: New file.
30634         * m4/isblank.m4: New file.
30635         * modules/isblank: New file.
30636         * doc/posix-functions/isblank.texi: Mention the new module.
30637
30638 2009-10-18  Bruno Haible  <bruno@clisp.org>
30639
30640         New module 'ctype'.
30641         * lib/ctype.in.h: New file.
30642         * m4/ctype.m4: New file.
30643         * modules/ctype: New file.
30644         * doc/posix-headers/ctype.texi: Mention the new module.
30645
30646 2009-10-18  Jim Meyering  <meyering@redhat.com>
30647
30648         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30649         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30650         right after its initialization, rather than farther down.
30651         Keeping these in close proximity makes it easier to ensure
30652         that each such variable is initialized.  E.g.,
30653
30654             LIB_CLOCK_GETTIME=
30655             AC_SUBST([LIB_CLOCK_GETTIME])
30656
30657         This change also increments these serial numbers.
30658         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30659         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30661
30662 2009-10-18  Bruno Haible  <bruno@clisp.org>
30663
30664         Don't let environment variables perturb build.
30665         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30666         (gl_PREREQ_GETHRXTIME): ... not here.
30667
30668 2009-10-18  Bruno Haible  <bruno@clisp.org>
30669
30670         Avoid symlink attack in localcharset module.
30671         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30672         (O_NOFOLLOW): Define fallback.
30673         (get_charset_aliases): Don't open the file if it is a symbolic link.
30674         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30675         gl_FCNTL_H.
30676         (gl_FCNTL_H): Require it.
30677         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30678         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30679         Reported by Fergal Glynn <fglynn@veracode.com>.
30680
30681 2009-10-18  Bruno Haible  <bruno@clisp.org>
30682
30683         Implement nproc for mingw.
30684         * lib/nproc.c: Include <windows.h>
30685         (num_processors): On native Windows platforms, try GetSystemInfo.
30686
30687 2009-10-18  Bruno Haible  <bruno@clisp.org>
30688
30689         Implement nproc for IRIX.
30690         * lib/nproc.c: Include <sys/sysmp.h>.
30691         (num_processors): On IRIX systems, try sysmp.
30692         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30693
30694 2009-10-18  Bruno Haible  <bruno@clisp.org>
30695
30696         Implement nproc for HP-UX.
30697         * lib/nproc.c: Include <sys/pstat.h>
30698         (num_processors): On HP-UX systems, try pstat_getdynamic.
30699         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30700         pstat_getdynamic.
30701
30702 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30703             Bruno Haible  <bruno@clisp.org>
30704
30705         Implement nproc for NetBSD, OpenBSD.
30706         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30707         (ARRAY_SIZE): New macro.
30708         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30709         * m4/nproc.m4: New file.
30710         * modules/nproc (Files): Add m4/nproc.m4.
30711         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30712         (Makefile.am): Instead, augment lib_SOURCES.
30713
30714 2009-10-18  Bruno Haible  <bruno@clisp.org>
30715
30716         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30717         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30718         sys/param.h.
30719
30720 2009-10-16  Eric Blake  <ebb9@byu.net>
30721
30722         utimensat: new module
30723         * modules/utimensat: New file.
30724         * lib/utimensat.c (utimensat): Likewise.
30725         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30726         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30727         so we can work around Linux bugs.
30728         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30729         * modules/sys_stat (Makefile.am): Substitute them.
30730         * lib/sys_stat.in.h (utimensat): Declare it.
30731         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30732         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30733         * modules/utimensat-tests: New test.
30734         * tests/test-utimensat.c: Likewise.
30735
30736         utimens: let lutimens work on non-symlinks
30737         * lib/utimens.c (lutimens): Fall back to utimens rather than
30738         failing with ENOSYS, when file is not a symlink.
30739         (utimens): Reduce redirection.
30740         * tests/test-lutimens.h (test_lutimens): Update test to cover
30741         non-symlinks.
30742         * tests/test-utimens.h (test_utimens): Update test to cover
30743         symlinks.
30744         * tests/test-utimens.c (main): Update caller.
30745
30746         utimens: cache whether utimensat syscall works
30747         * lib/utimens.c (utimensat_works_really): New cache variable.
30748         (fdutimens, lutimens): Use it to avoid failing syscall.
30749
30750         test-stat-time, test-utimens: improve portability
30751         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30752         ext4 on alpha, and for cygwin.
30753         * tests/test-utimens-common.h: New file.
30754         (nap): Factor delays into single function.
30755         * tests/test-lutimens.h (test_lutimens): Use new header.
30756         * tests/test-futimens.h (test_futimens): Likewise.
30757         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30758         timestamps to occur from same machine, as was done previously for
30759         test_utimens.
30760         * modules/utimens-tests (Files): Ship new file.
30761         * modules/futimens-tests (Files): Likewise.
30762         Reported in part by Jim Meyering.
30763
30764         sys_stat: sort replacement declarations
30765         * lib/sys_stat.in.h: Sort declarations.
30766         * lib/futimens.c (futimens): Fix typo.
30767
30768 2009-10-15  Jim Meyering  <meyering@redhat.com>
30769
30770         don't let environment settings perturb build
30771         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30772         could cause a configure-time and/or build-time malfunction.
30773         Typically, a configure-time function-in-library test is performed
30774         via code like this:
30775
30776           LIB_VAR=
30777           AC_SUBST([LIB_VAR])
30778           prefix_saved_LIBS=$LIBS
30779             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30780                        [test "$ac_cv_search_FUNC" = "none required" ||
30781                         LIB_VAR=$ac_cv_search_FUNC])
30782           LIBS=$prefix_saved_LIBS
30783
30784         However, in each of the files affected by this change, the LIB_VAR=
30785         initialization was omitted.  Thus, when set in the environment, its
30786         value would propagate into generated Makefiles when FUNC is not found
30787         in LIB_NAME.
30788         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30789         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30790         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30791
30792 2009-10-14  Eric Blake  <ebb9@byu.net>
30793
30794         fchdir: avoid infinite recursion in mingw
30795         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30796         recursing.
30797
30798         test-stat-time: port to mingw
30799         * tests/test-stat-time.c (force_unlink): Return a value.
30800         (test_ctime) [W32]: Fix compilation error.
30801         (nap): Don't call usleep with too large an argument.  Use
30802         force_unlink.
30803         * doc/pastposix-functions/usleep.texi (usleep): Document the
30804         portability issue.
30805
30806 2009-10-13  Jim Meyering  <meyering@redhat.com>
30807
30808         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30809         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30810         * modules/pipe-filter-ii: Likewise.
30811         * modules/sys_socket-tests: Likewise.
30812         * modules/tsearch-tests: Likewise.
30813         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30814         (check): Depend on it.
30815
30816 2009-10-12  Eric Blake  <ebb9@byu.net>
30817
30818         utimens-tests: port to NFS file systems
30819         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30820         comparisons to avoid spurious failures from timestamp drift
30821         between NFS machines.
30822
30823 2009-10-12  Eric Blake  <ebb9@byu.net>
30824
30825         stat-time-tests: minor cleanups
30826         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30827         * tests/test-stat-time.c (nap): Separate assignment from call.
30828         Suggested by Paolo Bonzini and Bruno Haible.
30829
30830         sys_stat: guarantee struct timespec
30831         * lib/sys_stat.in.h (includes): Always include <time.h>
30832         * modules/sys_stat (Depends-on): Add time.
30833         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30834         mode_t permission values.
30835         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30836         get at subsecond timestamps.
30837
30838 2009-10-10  Eric Blake  <ebb9@byu.net>
30839
30840         futimens: new module
30841         * modules/futimens: New file.
30842         * lib/futimens.c (futimens): Likewise.
30843         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30844         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30845         we can work around Linux bugs.
30846         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30847         * modules/sys_stat (Makefile.am): Substitute them.
30848         * lib/sys_stat.in.h (futimens): Declare it.
30849         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30850         * doc/posix-functions/futimens.texi (futimens): Likewise.
30851         * modules/futimens-tests: New test.
30852         * tests/test-futimens.c: Likewise.
30853
30854         utimens: introduce fdutimens
30855         * lib/utimens.h (fdutimens): New prototype.
30856         * lib/utimens.c (gl_futimens): Move guts...
30857         (fdutimens): ...to new interface.
30858         * tests/test-utimens.c (do_fdutimens): Use it.
30859
30860         utimens: add UTIME_NOW and UTIME_OMIT support
30861         * lib/utimens.c (validate_timespec, update_timespec): New helper
30862         functions.
30863         (gl_futimens, lutimens): Use them.
30864         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30865         stdbool, sys_stat.
30866         (Link): Mention resulting library dependency.
30867         * modules/utimecmp (Link): Likewise.
30868         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30869         (Makefile.am): Pick up library dependency.
30870         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30871         definition.
30872         * tests/test-sys_stat.c: Test the definitions.
30873         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30874         * NEWS: Document library dependency.
30875
30876         utimecmp: support symlink timestamps
30877         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30878         hashing when possible.  Use pathconf when available.
30879         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30880         * modules/utimecmp (Depends-on): Add lstat.
30881
30882         utimens: add lutimens interface
30883         * lib/utimens.c (lutimens): New function.
30884         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30885         * lib/utimens.h (lutimens): Declare new interface.
30886         * tests/test-utimens.c (main): Enhance test.
30887         * tests/test-lutimens.h (test_lutimens): New file.
30888         * modules/utimens-tests (Files): Distribute it.
30889         (Depends-on): Add symlink.
30890         (configure.ac): Check for usleep.
30891
30892         utimens: validate futimens usage
30893         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30894         fewer syscalls on failure later on.  Avoid compiler warning on
30895         mingw.
30896         * modules/utimens (Depends-on): Add dup2.
30897
30898         utimens: add test
30899         * modules/utimens-tests: New test.
30900         * tests/test-utimens.h: New file.
30901         * tests/test-futimens.h: Likewise.
30902         * tests/test-utimens.c: Likewise.
30903
30904         doc: mention timestamp portability issues
30905         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30906         instead.
30907         * doc/posix-functions/utime.texi (utime): Likewise.
30908         * doc/posix-functions/utimes.texi (utimes): Likewise.
30909         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30910         instead.
30911         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30912         module.
30913         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30914         Mention weakness with symlink timestamps.
30915         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30916         to utimensat/futimens instead.
30917         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30918
30919         test-dup2: enhance test
30920         * tests/test-dup2.c (main): Also check AT_FDCWD.
30921
30922         test-stat-time: avoid more spurious failures
30923         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30924         xfs; and avoid race if the two timestamps cross quantization edge.
30925
30926         relocatable: prefer 'file system' over 'filesystem'
30927         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30928         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30929         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30930         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30931         * lib/relocatable.c (compute_curr_prefix): Likewise.
30932
30933 2009-10-10  Jim Meyering  <meyering@redhat.com>
30934
30935         stat-time-tests: check for the usleep function
30936         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30937
30938 2009-10-10  Bruno Haible  <bruno@clisp.org>
30939
30940         * modules/xnanosleep: Put the Link section after the Include section.
30941
30942 2009-10-09  Eric Blake  <ebb9@byu.net>
30943
30944         dup2: work around FreeBSD 6.1 bug
30945         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30946         * doc/posix-functions/dup2.texi (dup2): Document it.
30947         Reported by Nelson H. F. Beebe and Jim Meyering.
30948
30949         test-stat-time: port to buggy NFS clients
30950         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30951         (test_ctime): Also skip test if mtime and ctime are skewed.
30952
30953         maint: prefer 'file system' over 'filesystem'
30954         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30955         * doc/posix-functions/lstat.texi (lstat): Likewise.
30956         * lib/file-has-acl.c (file_has_acl): Likewise.
30957         * lib/fwriteerror.c [TEST]: Likewise.
30958         * tests/test-areadlink.h (test_areadlink): Likewise.
30959         * tests/test-areadlinkat-with-size.c (main): Likewise.
30960         * tests/test-areadlinkat.c (main): Likewise.
30961         * tests/test-canonicalize-lgpl.c (main): Likewise.
30962         * tests/test-canonicalize.c (main): Likewise.
30963         * tests/test-fstatat.c (main): Likewise.
30964         * tests/test-linkat.c (main): Likewise.
30965         * tests/test-lstat.h (test_lstat_func): Likewise.
30966         * tests/test-mkdir.h (test_mkdir): Likewise.
30967         * tests/test-readlink.h (test_readlink): Likewise.
30968         * tests/test-remove.c (main): Likewise.
30969         * tests/test-rename.h (test_rename): Likewise.
30970         * tests/test-renameat.c (main): Likewise.
30971         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30972         * tests/test-symlink.h (test_symlink): Likewise.
30973         * tests/test-symlinkat.c (main): Likewise.
30974         * tests/test-unlink.h (test_unlink_func): Likewise.
30975         * tests/test-unlinkat.c (main): Likewise.
30976
30977         maint: make realtime library usage explicit
30978         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30979         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30980         * modules/settime (Link): Likewise.
30981         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30982
30983         test-stat-time: speed up execution
30984         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30985         warning on mingw.
30986         (nap): New helper function.
30987         (prepare_test): Use it to reduce sleep time.
30988         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30989         execution.
30990         * modules/stat-time-tests (configure.ac): Check for usleep.
30991
30992 2009-10-09  Jim Meyering  <meyering@redhat.com>
30993
30994         selinux-h: always use getfilecon wrappers
30995         * lib/getfilecon.c: New file.
30996         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30997         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30998         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30999         (fgetfilecon): Provide a stub.
31000         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
31001         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
31002         file unconditionally.
31003         When <selinux/selinux.h> is found, arrange to use wrappers.
31004         * modules/selinux-h (Files): Add getfilecon.c.
31005         (Makefile.am): Substitute include-next-related bits
31006         into the now-always-generated selinux/selinux.h file.
31007         * doc/glibc-functions/lgetfilecon.texi: New file.
31008         * doc/glibc-functions/fgetfilecon.texi: New file.
31009         * doc/glibc-functions/getfilecon.texi: New file.
31010         * doc/glibc-functions/getfilecon-desc.texi: New file.
31011         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
31012         which to pull in the new files.
31013         * MODULES.html.sh (Misc): Add selinux-h.
31014
31015 2009-10-08  Jim Meyering  <meyering@redhat.com>
31016
31017         unistd: fix comment typo
31018         * lib/unistd.in.h (euidaccess): Fix a comment typo.
31019
31020 2009-10-08  Eric Blake  <ebb9@byu.net>
31021
31022         areadlink: use SIZE_MAX consistently
31023         * modules/areadlink (Depends-on): Add stdint.
31024         * modules/areadlink-with-size (Depends-on): Likewise.
31025         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
31026         gives NULL; drop sys/types, since unistd gives size_t; and add
31027         stdint for SIZE_MAX.
31028         (SIZE_MAX): Rely on headers.
31029         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
31030         and add stdint.
31031         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
31032         (SIZE_MAX): Likewise.
31033         (INITIAL_BUF_SIZE): Turn into enum.
31034         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
31035
31036 2009-10-08  Jim Meyering  <meyering@redhat.com>
31037
31038         areadlinkat: avoid compilation failure
31039         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
31040         Fix typo in comment.
31041
31042 2009-10-07  Eric Blake  <ebb9@byu.net>
31043
31044         areadlinkat-with-size: new module
31045         * modules/areadlinkat-with-size: New module.
31046         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
31047         * lib/areadlink.h (areadlinkat): Declare it.
31048         * MODULES.html.sh (File system functions): Mention it.
31049         * modules/areadlinkat-with-size-tests: New test.
31050         * tests/test-areadlinkat-with-size.c: New file.
31051
31052         xreadlinkat: new module
31053         * modules/xreadlinkat: New module.
31054         * lib/xreadlinkat.c (xreadlinkat): New file.
31055         * lib/xreadlink.h (xreadlinkat): Declare it.
31056         * MODULES.html.sh (File system functions): Mention it.
31057
31058         areadlinkat: new module
31059         * lib/at-func.c (FUNC_FAIL): New define.
31060         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
31061         * modules/areadlinkat: New module.
31062         * lib/linkat.c (areadlinkat): Move...
31063         * lib/areadlinkat.c (areadlinkat): ...to new file.
31064         * lib/areadlink.h (areadlinkat): Declare it.
31065         * modules/linkat (Depends-on): Add areadlinkat.
31066         * MODULES.html.sh (File system functions): Mention it.
31067         * modules/areadlinkat-tests: New test.
31068         * tests/test-areadlinkat.c: New file.
31069
31070         areadlink, areadlink-with-size: add tests
31071         * modules/areadlink-tests: New test.
31072         * modules/areadlink-with-size-tests: Likewise.
31073         * tests/test-areadlink.h: New file.
31074         * tests/test-areadlink.c: Likewise.
31075         * tests/test-areadlink-with-size.c: Likewise.
31076
31077         maint: minor cleanups
31078         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
31079         _UNUSED_PARAMETER_ instead.
31080         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
31081         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
31082         * modules/linkat-tests (Files): Distribute test-link.h.
31083
31084         openat, utimens: whitespace cleanup
31085         * lib/openat.c: Prefer space throughout, rather than mix of 8
31086         spaces vs. tabs.
31087         * lib/at-func.c: Likewise.
31088         * lib/utimens.c: Likewise.
31089
31090         openat: avoid using wrong fd
31091         * lib/openat.c (openat_permissive): Reject user's fd if saving the
31092         working directory chooses same fd.
31093         * lib/at-func.c (AT_FUNC_NAME): Likewise.
31094
31095         mkdir, mkdirat: fix cygwin 1.5.x bug
31096         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
31097         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
31098         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
31099         bug.
31100         (gl_PREREQ_MKDIR): Delete unused macro.
31101         * modules/mkdir (Files): Track file rename.
31102         (configure.ac): Update macro name.
31103         * modules/openat (Depends-on): Add mkdir.
31104         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
31105
31106         mkdir, mkdirat: add tests
31107         * modules/mkdir-tests: New test.
31108         * tests/test-mkdir.h: New file.
31109         * tests/test-mkdir.c: Likewise.
31110         * tests/test-mkdirat.c: Likewise.
31111         * modules/openat-tests (Files): Add new files.
31112         (Makefile.am): Run new test.
31113
31114 2009-10-06  Eric Blake  <ebb9@byu.net>
31115
31116         doc: tweak *at function documentation
31117         * doc/posix-functions/faccessat.texi (faccessat): Mention
31118         known issue with replacement.
31119         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
31120         * doc/posix-functions/linkat.texi (linkat): Likewise.
31121         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31122         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31123         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31124         * doc/posix-functions/renameat.texi (renameat): Likewise.
31125         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31126
31127         openat: fix GNU/Hurd bug in unlinkat
31128         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
31129         broken.
31130         * doc/posix-functions/unlink.texi (unlink): Document this.
31131         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
31132
31133         fdopendir: fix GNU/Hurd bug
31134         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
31135         allowing non-directory fds.
31136         * lib/fdopendir.c (rpl_fdopendir): Work around it.
31137         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31138         * modules/dirent (Makefile.am): Substitute it.
31139         * lib/dirent.in.h (fdopendir): Declare replacement.
31140         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
31141         * tests/test-fdopendir.c (main): Test something other than
31142         /dev/null, since on Hurd that behaves like a directory.
31143
31144         test-symlink: port to GNU/Hurd
31145         * tests/test-symlink.h (test_symlink): Relax expected errno.
31146
31147         doc: tweak more cygwin information
31148         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
31149         now compatible with glibc.
31150         * doc/posix-functions/getopt.texi (getopt): Likewise.
31151
31152         getopt-gnu: add another test
31153         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
31154         guarantee behavior relied on by m4.
31155         * tests/test-getopt.c (main): Use it.
31156         * modules/getopt-posix-tests (Depends-on): Add setenv.
31157         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
31158
31159         getopt: fix compilation on darwin
31160         * lib/getopt.in.h (includes): Leave breadcrumbs during system
31161         include.
31162         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
31163         Reported by Ludovic Courtès.
31164
31165 2009-10-06  Bruno Haible  <bruno@clisp.org>
31166
31167         * modules/size_max (Description): Discourage its use.
31168         Reported by Simon Josefsson.
31169
31170 2009-10-06  Jim Meyering  <meyering@redhat.com>
31171
31172         linkat: avoid compilation failure
31173         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
31174
31175 2009-10-05  Eric Blake  <ebb9@byu.net>
31176
31177         linkat: support Linux 2.6.17
31178         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
31179         linkat on Linux, but allow cache variable override.
31180         * lib/linkat.c (rpl_linkat): Define override.
31181         * modules/linkat (Depends-on): Add symlinkat.
31182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
31183         * modules/unistd (Makefile.am): Substitute it.
31184         * lib/unistd.in.h (linkat): Declare replacement.
31185         Reported by Pádraig Brady.
31186
31187         quotearg: port test to systems with C.UTF-8 locale
31188         * tests/test-quotearg.c (struct result_strings): Add another
31189         member, differentiating between C.ASCII and C.UTF-8 handling.
31190         (compare_strings): Add parameter.
31191         (main): Adjust all callers.
31192
31193         getopt: avoid clash with FreeBSD _getopt_internal
31194         * lib/getopt.in.h (_getopt_internal): Override the name.
31195         * lib/getopt_int.h (includes): Pick up any overrides.
31196         Reported by Reuben Thomas.
31197
31198         hash: allow C89 compilation
31199         * lib/hash.c (check_tuning): Move declaration before statement.
31200         Reported by Reuben Thomas.
31201
31202 2009-10-05  Karl Berry  <karl@gnu.org>
31203
31204         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
31205
31206 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
31207             Bruno Haible  <bruno@clisp.org>
31208
31209         * lib/uname.c (uname): Use a table-driven algorithm to compute
31210         Windows NT versions.
31211
31212 2009-10-04  Bruno Haible  <bruno@clisp.org>
31213
31214         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
31215         program_invocation_short_name.
31216         * modules/progname (configure.ac): Test for presence of
31217         program_invocation_short_name.
31218         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31219
31220 2009-10-04  Bruno Haible  <bruno@clisp.org>
31221
31222         * lib/progname.c (set_program_name): Fix comment.
31223         Reported by Jim Meyering.
31224
31225 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31226             Bruno Haible  <bruno@clisp.org>
31227
31228         * lib/uname.c: Include <string.h>.
31229         (uname): Do only one call to GetVersionEx in the common case.
31230
31231 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31232             Bruno Haible  <bruno@clisp.org>
31233
31234         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
31235         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
31236         (uname): Add support for Windows CE and various non-x86 CPU types.
31237
31238 2009-10-03  Bruno Haible  <bruno@clisp.org>
31239
31240         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
31241         invocation to tests/configure.ac.
31242         Reported by Ian Beckwith <ianb@erislabs.net>.
31243
31244 2009-10-02  Eric Blake  <ebb9@byu.net>
31245
31246         fchdir: avoid compiler warning
31247         * lib/fchdir.c (canonicalize_file_name)
31248         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
31249
31250         test-open: support mingw errno values
31251         * tests/test-open.h (test_open): Relax test.
31252         * tests/test-fopen.h (test_fopen): Likewise.
31253         * tests/test-openat-safer.c (main): Likewise.
31254
31255         open: fix opening directory on mingw
31256         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31257
31258         test-open: on GNU/Hurd, /dev/null is a directory
31259         * tests/test-fopen.h (main): Rename...
31260         (test_fopen): ...to this.  Use a guaranteed non-directory when
31261         confirming open behavior on trailing slash.
31262         * tests/test-openat-safer.c (main): Likewise.
31263         * tests/test-open.h (main): Likewise....
31264         (test_open): ...to this.
31265         * tests/test-fopen.c (main): Adjust caller.
31266         * tests/test-fopen-safer.c (main): Likewise.
31267         * tests/test-open.c (main): Likewise.
31268         * tests/test-fcntl-safer.c (main): Likewise.
31269         Reported by Samuel Thibault.
31270
31271         rename, fchdir: don't ignore chdir failure
31272         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31273         * lib/rename.c (rpl_rename) [W32]: Likewise.
31274         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31275         an empty destination directory if source cannot be renamed,
31276         although there is still possibility for failure.
31277         * doc/posix-functions/rename.texi (rename): Document the race.
31278         Reported by Jim Meyering.
31279
31280         maint: cleanup whitespace in recent commits
31281         * lib/rename.c (rpl_rename): Remove tabs.
31282         * tests/test-link.h (test_link): Likewise.
31283         * lib/fchdir.c (get_name): Likewise.
31284         Reported by Jim Meyering.
31285
31286 2009-10-02  Ben Pfaff  <blp@gnu.org>
31287
31288         relocatable-prog-wrapper: Add missing dependency on
31289         double-slash-root.
31290         * modules/relocatable-prog-wrapper: Add dependency.
31291         Reported by Ian Beckwith <ianb@erislabs.net>.
31292
31293 2009-10-02  Eric Blake  <ebb9@byu.net>
31294
31295         renameat: fix Solaris bugs
31296         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31297         needed fixing.
31298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31299         * modules/stdio (Makefile.am): Substitute it.
31300         * lib/stdio.in.h (renameat): Declare replacement.
31301         * lib/renameat.c (rpl_renameat): Implement fix.
31302
31303         renameat: new module
31304         * modules/renameat: New file.
31305         * lib/renameat.c (renameat): Likewise.
31306         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31308         * modules/stdio (Makefile.am): Substitute them.
31309         * lib/stdio.in.h (renameat): Declare it.
31310         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31311         * doc/posix-functions/renameat.texi (renameat): Likewise.
31312         * modules/renameat-tests: New test.
31313         * tests/test-renameat.c: Likewise.
31314
31315         rename: fix mingw bugs
31316         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31317         directory overwrite bugs.
31318
31319         rename: fix another cygwin 1.5 bug
31320         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31321         checks.
31322         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31323         unnecessary cygwin workarounds.  Also work around bug with moving
31324         full directory onto an empty one.
31325         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31326
31327         rename-dest-slash: merge into rename module
31328         * modules/rename-dest-slash (Status): Mark obsolete.
31329         (Depends-on): Add rename.
31330         (Files): Let rename do it all.
31331         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31332         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31333         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31334         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31335         * lib/rename.c (rpl_rename): Update comments.
31336
31337         rename: fix cygwin 1.5.x bugs
31338         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31339         * lib/rename.c (rpl_rename): Work around them.
31340         * modules/rename (Depends-on): Add same-inode.
31341
31342         rename: fix Solaris 10 bug
31343         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31344         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31345         was the only bug.
31346
31347         rename: fix Solaris 9 bug
31348         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31349         on non-directory.  Avoid calling exit.
31350         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31351         strdup.
31352         * modules/rename-tests (Depends-on): Drop lstat.
31353         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31354         (gl_PREREQ_RENAME): Delete unused macro.
31355
31356         rename-dest-slash: fix NetBSD bug
31357         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31358         links.
31359         * modules/rename-dest-slash (Depends-on): Add same-inode.
31360
31361         rename-tests: new test, exposes several platform bugs
31362         * modules/rename-tests: New file.
31363         * tests/test-rename.h: Likewise.
31364         * tests/test-rename.c: Likewise.
31365         * doc/posix-functions/rename.texi (rename): Improve documentation,
31366         including bugs that will eventually be fixed in gnulib.
31367
31368 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31369
31370         * lib/uname.c: Include <stdlib.h>
31371         (uname): Assume version info is available.
31372
31373 2009-10-02  Jim Meyering  <meyering@redhat.com>
31374
31375         gnu-web-doc-update: correct --help output
31376         * build-aux/gnu-web-doc-update: Make --help output relevant.
31377
31378         gnu-web-doc-update: add standard options
31379         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31380
31381         gnu-web-doc-update: New module.
31382         Use this script to automatically update the on-line web documentation
31383         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31384         * modules/gnu-web-doc-update: New file, from coreutils.
31385         * build-aux/gnu-web-doc-update: New script.
31386
31387 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31388
31389         link: LoadLibrary is not needed.
31390         * lib/link.c: Use GetModuleHandle.
31391
31392 2009-10-01  Eric Blake  <ebb9@byu.net>
31393
31394         getopt: bump serial number
31395         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31396         change.
31397
31398         tests: tighten link, rmdir, and remove tests
31399         * tests/test-link.h (includes): No need to use <config.h> here.
31400         Clean up if directory hard link was created, otherwise test for
31401         trailing '.'.
31402         * tests/test-linkat.c (main): Simplify.
31403         * tests/test-remove.c (main): Enhance test for trailing '.'.
31404         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31405
31406 2009-10-01  Jim Meyering  <meyering@redhat.com>
31407
31408         maint.mk: requiring "make major" was annoying, for a "minor" release.
31409         What is intended is "stable", to contrast with alpha and beta,
31410         so require "make stable", not "make major".
31411         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
31412         (get_tool_versions): Likewise.
31413         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
31414
31415 2009-09-30  Ben Pfaff  <blp@gnu.org>
31416
31417         Fix broken build of replacement for Windows tmpfile().
31418         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
31419         flags argument added along with the 'mkostemp' module.
31420
31421 2009-09-28  Bruno Haible  <bruno@clisp.org>
31422
31423         Avoid identifier clash with POSIX function 'remove' defined as a macro.
31424         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
31425         to 'remove_elt'.
31426         (gl_list_remove): Update.
31427         * lib/gl_list.c (gl_list_remove): Update.
31428         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
31429         to 'remove_elt'.
31430         (gl_oset_remove): Update.
31431         * lib/gl_list.c (gl_oset_remove): Update.
31432         Reported by Eric Blake.
31433
31434 2009-09-28  Eric Blake  <ebb9@byu.net>
31435
31436         doc: mention yet more cygwin 1.7 status
31437         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
31438         cygwin.
31439         * doc/glibc-functions/execvpe.texi (execvpe): New file.
31440         * doc/gnulib.texi (Glibc unistd.h): Mention it.
31441
31442         argp: fix test failure
31443         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
31444         that are not upper-case.  Pass correct range to tolower.
31445
31446 2009-09-27  Jim Meyering  <meyering@redhat.com>
31447
31448         test-yesno: work around sparc-dash here-document infelicity
31449         Without this change, the literal \177 byte in a here document
31450         would make dash 0.5.5.1-3 access uninitialized memory.
31451         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
31452         Instead, use a marker, "@", and filter through tr to create the desired
31453         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
31454
31455 2009-09-27  Bruno Haible  <bruno@clisp.org>
31456
31457         Disable untested support for new flavours of ACLs on AIX.
31458         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
31459         progress.
31460         * lib/set-mode-acl.c (qset_acl): Likewise.
31461
31462 2008-12-07  Bruno Haible  <bruno@clisp.org>
31463
31464         Add support for new flavours of ACLs on AIX. (Untested.)
31465         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
31466         (file_has_acl): Add support for newer AIX.
31467         * lib/set-mode-acl.c (qset_acl): Likewise.
31468         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
31469         Rainer Tammer <tammer@tammer.net>.
31470
31471 2009-09-26  Eric Blake  <ebb9@byu.net>
31472
31473         argp: fix compilation of getopt
31474         * lib/getopt.in.h (includes): Use different guard than glibc.
31475         Reported by Sergey Poznyakoff.
31476
31477         doc: mention more cygwin 1.7 status
31478         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
31479         bug.
31480         * doc/posix-functions/execl.texi (execl): Likewise.
31481         * doc/posix-functions/execle.texi (execle): Likewise.
31482         * doc/posix-functions/execlp.texi (execlp): Likewise.
31483         * doc/posix-functions/execv.texi (execv): Likewise.
31484         * doc/posix-functions/execve.texi (execve): Likewise.
31485         * doc/posix-functions/execvp.texi (execvp): Likewise.
31486         * doc/glibc-functions/canonicalize_file_name.texi
31487         (canonicalize_file_name): Cygwin 1.7 now provides this.
31488         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31489         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31490         on AT_SYMLINK_NOFOLLOW.
31491
31492 2009-09-24  Eric Blake  <ebb9@byu.net>
31493
31494         test-linkat: make test more robust
31495         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31496
31497         getopt: fix inclusion guards for cygwin
31498         * modules/getopt-posix (Depends-on): Add include-next.
31499         (Makefile.am): Substitute more items in replacement header.
31500         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31501         <getopt.h>.
31502         * lib/getopt.in.h (includes): Use split inclusion guard, and
31503         prefer <getopt.h> over include <unistd.h> when one is present.
31504         (option): Also override name of 'struct option'.
31505
31506         same-inode: revert prior change; it is not yet ready
31507         * NEWS: Undo mention of this change.
31508         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31509         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31510         * lib/cycle-check.c (cycle_check): Likewise.
31511         * lib/same.c (same_name): Likewise.
31512         * lib/at-func2.c (at_func2): Likewise.
31513
31514 2009-09-23  Eric Blake  <ebb9@byu.net>
31515
31516         linkat: new module
31517         * modules/linkat: New file.
31518         * lib/at-func2.c (at_func2): Likewise.
31519         * lib/linkat.c (linkat): Likewise.
31520         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31521         * lib/openat-priv.h (at_func2): Add declaration.
31522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31523         * modules/unistd (Makefile.am): Substitute them.
31524         * lib/unistd.in.h (linkat): Declare it.
31525         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31526         * doc/posix-functions/linkat.texi (linkat): Likewise.
31527         * doc/posix-functions/link.texi (link): Tweak wording.
31528         * tests/test-link.c (main): Move guts...
31529         * tests/test-link.h (test_link): ...into new file.
31530         * modules/linkat-tests: New test.
31531         * tests/test-linkat.c: Likewise.
31532         * modules/link-tests (Files): Ship new file.
31533         (Depends-on): Add stdbool.
31534
31535         dirname: add library-safe mdir_name
31536         * lib/dirname.h (mdir_name): New prototype.
31537         * lib/dirname.c (dir_name): Move guts...
31538         (mdir_name): ...to new function that avoids xalloc_die.
31539
31540         fchdir: another mingw fix
31541         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31542         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31543         on mingw (where it has not yet been ported), and make it optional
31544         elsewhere.
31545         (_gl_register_fd): Use it.
31546
31547         same-inode: make SAME_INODE tri-state, to port to mingw
31548         * NEWS: Mention this change.
31549         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31550         st_ino always being 0.
31551         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31552         * lib/cycle-check.c (cycle_check): Likewise.
31553         * lib/same.c (same_name): Likewise.
31554
31555         lstat: avoid mingw compilation error
31556         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31557         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31558         lstat ourselves.
31559         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31560         was adequate.
31561         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31562         the checks for lstat.
31563         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31564
31565         link: fix test failure on Solaris 9
31566         * lib/link.c (rpl_link): Don't assume link will catch bogus
31567         trailing slash on source.
31568
31569         test-symlinkat: enhance test
31570         * tests/test-readlink.c (main): Move guts...
31571         * tests/test-readlink.h (test_readlink): ...into new file.
31572         * tests/test-symlink.c (main): Move guts...
31573         * tests/test-symlink.h (test_symlink): ...into new file.
31574         * tests/test-symlinkat.c (main): Use new files for further
31575         coverage.
31576         (do_symlink, do_readlink): New helper functions.
31577         * modules/symlink-tests (Files): Ship new file.
31578         (Depends-on): Add stdbool.
31579         * modules/readlink-tests (Files): Ship new file.
31580         (Depends-on): Add stdbool.
31581         * modules/symlinkat-tests (Files): Use new files.
31582
31583 2009-09-23  Eric Blake  <ebb9@byu.net>
31584
31585         readlink: document portability issue with symlink length
31586         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31587         systems have bogus st_size on symlinks, and mention the
31588         areadlink-with-size module.
31589         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31590         * doc/posix-functions/readlink.texi (readlink): Mention the
31591         areadlink module, and ERANGE failure.
31592         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31593         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31594
31595         readlink: fix Solaris 9 bug with trailing slash
31596         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31597         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31598         * doc/posix-functions/readlink.texi (readlink): Document this.
31599         * modules/readlink-tests: New test.
31600         * tests/test-readlink.c: Likewise.
31601
31602         readlink: fix cygwin 1.5.x bug with return type
31603         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31604         * lib/unistd.in.h (readlink): Use ssize_t.
31605         * lib/readlink.c (readlink): Likewise.
31606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31607         * modules/unistd (Makefile.am): Substitute it.
31608         * lib/unistd.in.h (readlink): Declare replacement.
31609         * doc/posix-functions/readlink.texi (readlink): Document this.
31610
31611         symlink: use throughout gnulib
31612         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31613         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31614         symlink is not used.
31615         * modules/symlinkat (Depends-on): Add symlink.
31616         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31617         * modules/canonicalize-tests (Depends-on): Likewise.
31618         * modules/lstat-tests (Depends-on): Likewise.
31619         * modules/openat-tests (Depends-on): Likewise.
31620         * modules/remove-tests (Depends-on): Likewise.
31621         * modules/rmdir-tests (Depends-on): Likewise.
31622         * modules/unlink-tests (Depends-on): Likewise.
31623         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31624         * tests/test-canonicalize.c (symlink): Likewise.
31625         * tests/test-fstatat.c (symlink): Likewise.
31626         * tests/test-lstat.c (symlink): Likewise.
31627         * tests/test-remove.c (symlink): Likewise.
31628         * tests/test-rmdir.c (symlink): Likewise.
31629         * tests/test-unlink.c (symlink): Likewise.
31630         * tests/test-unlinkat.c (symlink): Likewise.
31631
31632         symlink: new module, for Solaris 9 bug
31633         * modules/symlink: New file.
31634         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31635         * lib/symlink.c: Likewise.
31636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31637         * modules/unistd (Makefile.am): Substitute them.
31638         * lib/unistd.in.h (symlink): Declare replacement.
31639         * MODULES.html.sh (File system functions): Mention it.
31640         * doc/posix-functions/symlink.texi (symlink): Likewise.
31641         * modules/symlink-tests: New test.
31642         * tests/test-symlink.c: Likewise.
31643
31644 2009-09-23  Bruno Haible  <bruno@clisp.org>
31645
31646         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31647         when needed.
31648         Test case: gnulib-tool --import --with-tests atexit inttypes.
31649         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31650
31651 2009-09-23  Bruno Haible  <bruno@clisp.org>
31652
31653         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31654         subcommand, not in a subshell.
31655
31656 2009-09-22  Eric Blake  <ebb9@byu.net>
31657
31658         unistd: sort replacement declarations
31659         * lib/unistd.in.h: Sort declarations.
31660
31661         open, openat: minor optimization
31662         * lib/open.c (open): If open succeeded, len is non-zero.
31663         * lib/openat.c (rpl_openat): Likewise.
31664
31665         link-follow: ensure correct result
31666         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31667         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31668         distinguish between possible failures.
31669
31670 2009-09-21  Eric Blake  <ebb9@byu.net>
31671
31672         fts: avoid compiler warning
31673         * lib/fts.c (dirent_inode_sort_may_be_useful)
31674         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31675
31676 2009-09-19  Bruno Haible  <bruno@clisp.org>
31677
31678         * lib/progreloc.c (canonicalize_file_name): New declaration.
31679
31680 2009-09-19  Eric Blake  <ebb9@byu.net>
31681
31682         link: fix quoting
31683         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31684
31685         openat: fix openat bugs on Solaris 9
31686         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31687         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31688         * modules/openat (Depends-on): Add open.
31689         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31690         * modules/fcntl-h (Makefile.am): Substitute it.
31691         * lib/fcntl.in.h (openat): Declare replacement.
31692         * doc/posix-functions/openat.texi (openat): Document this.
31693
31694         openat: move fstatat and unlinkat into correct files
31695         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31696         compiled.
31697         * lib/openat.c (fstatat, unlinkat): Move...
31698         * lib/fstatat.c (fstatat): ...into correct files.
31699         * lib/unlinkat.c (unlinkat): Likewise.
31700
31701         openat: fix unlinkat bugs on Solaris 9
31702         * lib/unlinkat.c (unlinkat): New file.
31703         * modules/openat (Depends-on): Add unlink.
31704         (Files): Distribute it.
31705         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31706         trailing slash behavior is broken.
31707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31708         * modules/unistd (Makefile.am): Substitute it.
31709         * lib/unistd.in.h (unlinkat): Declare replacement.
31710         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31711
31712         openat: fix fstatat bugs on Solaris 9
31713         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31714         stat.
31715         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31716
31717         test-unlinkat: enhance test, to expose Solaris 9 bug
31718         * tests/test-unlink.c (main): Factor guts...
31719         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31720         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31721         * tests/test-rmdir.c (main): Adjust caller.
31722         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31723         (unlinker): New helper function.
31724         (rmdirat): Enhance check.
31725         * modules/rmdir-tests (Depends-on): Add stdbool.
31726         * modules/unlink-tests (Depends-on): Likewise.
31727         (Files): Add test-unlink.h.
31728         * modules/openat-tests (Files): Likewise.
31729         (Depends-on): Add unlinkdir.
31730
31731         test-fstatat: new test, to expose Solaris 9 bugs
31732         * tests/test-stat.c (main): Factor guts...
31733         * tests/test-stat.h (test_stat_func): ...into new file.
31734         * tests/test-lstat.c (main): Factor guts...
31735         * tests/test-lstat.h (test_lstat_func): ...into new file.
31736         * tests/test-fstatat.c: New file.
31737         * modules/stat-tests (Files): Add test-stat.h.
31738         * modules/lstat-tests (Files): Add test-lstat.h.
31739         (Depends-on): Add stdbool.
31740         * modules/openat-tests (Depends-on): Add pathmax.
31741         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31742         (Makefile.am): Run new test.
31743
31744         remove: new module, for mingw and Solaris 9 bugs
31745         * modules/remove: New file.
31746         * lib/remove.c: Likewise.
31747         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31749         * modules/stdio (Makefile.am): Use them.
31750         * lib/stdio.in.h (remove): Declare replacement.
31751         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31752         * doc/posix-functions/remove.texi (remove): Likewise.
31753         * modules/remove-tests: New test.
31754         * tests/test-remove.c: Likewise.
31755
31756         unlink: new module, for Solaris 9 bug
31757         * modules/unlink: New file.
31758         * lib/unlink.c: Likewise.
31759         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31761         * modules/unistd (Makefile.am): Use them.
31762         * lib/unistd.in.h (stat): Declare replacement.
31763         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31764         * doc/posix-functions/unlink.texi (unlink): Likewise.
31765         * modules/unlink-tests: New test.
31766         * tests/test-unlink.c: Likewise.
31767
31768         lstat: fix Solaris 9 bug
31769         * lib/lstat.c (lstat): Also check for trailing slash on
31770         non-symlink, non-directories.  Use stat module to simplify logic.
31771         * doc/posix-functions/lstat.texi (lstat): Document it.
31772         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31773         (configure.ac): Check for symlink.
31774         * tests/test-lstat.c (main): Add more tests.
31775
31776         stat: add as dependency to other modules
31777         * modules/chown (Depends-on): Add stat.
31778         * modules/euidaccess (Depends-on): Likewise.
31779         * modules/fchdir (Depends-on): Likewise.
31780         * modules/isdir (Depends-on): Likewise.
31781         * modules/link (Depends-on): Likewise.
31782         * modules/lstat (Depends-on): Likewise.
31783         * modules/mkdir-p (Depends-on): Likewise.
31784         * modules/modechange (Depends-on): Likewise.
31785         * modules/open (Depends-on): Likewise.
31786         * modules/readlink (Depends-on): Likewise.
31787         * modules/same (Depends-on): Likewise.
31788
31789         stat: fix Solaris 9 bug
31790         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31791         slash.
31792         * lib/stat.c (rpl_stat): Work around it.
31793         * doc/posix-functions/stat.texi (stat): Update documentation.
31794
31795         stat: new module, for mingw bug
31796         * modules/stat: New file.
31797         * lib/stat.c: Likewise.
31798         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31799         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31800         * modules/sys_stat (Makefile.am): Use them.
31801         * lib/sys_stat.in.h (stat): Declare replacement.
31802         * lib/openat.c (fstatat): Deal with lstat and stat being function
31803         macros.
31804         * modules/openat (Depends-on): Add inline.
31805         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31806         * doc/posix-functions/stat.texi (stat): Likewise.
31807         * modules/stat-tests: New test.
31808         * tests/test-stat.c: Likewise.
31809
31810 2009-09-19  Jim Meyering  <meyering@redhat.com>
31811
31812         syntax-check: detect unnecessary inclusion of canonicalize.h
31813         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31814
31815 2009-09-19  Eric Blake  <ebb9@byu.net>
31816
31817         canonicalize-lgpl: adjust clients to use correct header
31818         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31819         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31820         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31821         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31822         * lib/progreloc.c (includes): Likewise.
31823
31824 2009-09-19  Jim Meyering  <meyering@redhat.com>
31825
31826         test-posixtm.c: correct a comment
31827         * tests/test-posixtm.c: Correct first-line comment.
31828         Spotted by Eric Blake.
31829
31830 2009-09-16  Jim Meyering  <meyering@redhat.com>
31831
31832         posixtm-tests: make T const-correct; add a test case
31833         * tests/test-posixtm.c (T): Declare const.
31834         Add a test for -(2^31+1).
31835         Remove useless can-succeed-only-in-2002 test.
31836
31837         posixtm-tests: adjust the sole failing test
31838         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31839         expected output matches what mktime now produces.  Cross-checked via
31840         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31841
31842         posixtm: move #ifdef'd tests into a new module
31843         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31844         * tests/test-posixtm.c: ... this new file.
31845         * modules/posixtm-tests: New module.
31846
31847 2009-09-19  Eric Blake  <ebb9@byu.net>
31848
31849         openat: simplify use of at-func.c
31850         * lib/at-func.c (includes): Include prerequisites here, to
31851         simplify requirements on client files.
31852         * lib/openat-priv.h: Add double-inclusion guard.
31853         * lib/faccessat.c (includes): Simplify.
31854         * lib/fchmodat.c (includes): Likewise.
31855         * lib/fchownat.c (includes): Likewise.
31856         * lib/mkdirat.c (includes): Likewise.
31857         * lib/mkfifoat.c (includes): Likewise.
31858         * lib/symlinkat.c (includes): Likewise.
31859
31860         openat: allow return of fd 0
31861         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31862         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31863         unistd-safer.
31864         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31865         <fcntl.h>; this module does not leak fds.
31866         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31867         must be allowed to return 0, leaving openat_safer to add the
31868         safety.
31869         (openat_permissive): Avoid writing to just-opened fd 2 if
31870         restoring the current directory fails.
31871         * lib/openat-die.c (openat_restore_fail): Add comment.
31872         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31873         (save_cwd): Guarantee safe fd, but without use of open_safer.
31874         * tests/test-openat.c: New test.
31875         * modules/openat-tests (Files, Makefile.am): Distribute and build
31876         new file.
31877
31878         relocatable-prog-wrapper: fix build
31879         * modules/relocatable-prog-wrapper (Files): Update name of
31880         canonicalize m4 file, broken on 2009-09-17.
31881         Reported by emad hajjar <aleppos@hotmail.com>.
31882
31883 2009-09-19  Bruno Haible  <bruno@clisp.org>
31884
31885         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31886         * lib/safe-alloc.c: Likewise.
31887         Reported by Ian Beckwith <ianb@erislabs.net>.
31888
31889 2009-09-18  Bruno Haible  <bruno@clisp.org>
31890
31891         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31892         Reported by <erobles@sensacd.com.mx>.
31893
31894 2009-09-17  Eric Blake  <ebb9@byu.net>
31895
31896         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31897         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31898         slashes when checking if last component is missing.
31899         * tests/test-canonicalize.c (main): Test this.
31900
31901         canonicalize, canonicalize-lgpl: honor // if distinct from /
31902         * modules/canonicalize (Files): Add double-slash-root.m4.
31903         * modules/canonicalize-lgpl (Files): Likewise.
31904         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31905         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31906         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31907         fallback definition.
31908         (canonicalize_filename_mode): Use it to protect //.
31909         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31910         (__realpath): Likewise.
31911         * tests/test-canonicalize.c (main): Test this.
31912         * tests/test-canonicalize-lgpl.c (main): Likewise.
31913         * modules/canonicalize-tests (Depends-on): Add same-inode.
31914         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31915
31916         canonicalize-lgpl: fix glibc bug with trailing slash
31917         * m4/canonicalize-lgpl.m4: Move contents...
31918         * m4/canonicalize.m4: ...here.
31919         (gl_CANONICALIZE_LGPL): Factor realpath check...
31920         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31921         glibc 2.3.5 bug, fixed 2005-04-27.
31922         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31923         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31924         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31925         * modules/canonicalize-lgpl (Files): Manage file rename.
31926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31927         * modules/stdlib (Makefile.am): Substitute witness.
31928         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31929         is needed.
31930         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31931         replacement is required.
31932         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31933         * doc/glibc-functions/canonicalize_file_name.texi
31934         (canonicalize_file_name): Document this.
31935         * doc/posix-functions/realpath.texi (realpath): Likewise.
31936
31937         canonicalize-lgpl: reject non-directory with trailing slash
31938         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31939         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31940         catches failures in glibc 2.3.5.
31941         * tests/test-canonicalize.c (main): Likewise.
31942
31943         canonicalize-lgpl: use native realpath if it works
31944         * lib/canonicalize-lgpl.c (realpath): Guard with
31945         FUNC_REALPATH_WORKS.
31946         * lib/stdlib.in.h (realpath): Make declaration optional based on
31947         HAVE_REALPATH.
31948         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31949         native realpath works.
31950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31951         * modules/stdlib (Makefile.am): Substitute witness.
31952
31953         canonicalize, canonicalize-lgpl: use <stdlib.h>
31954         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31955         (Include): Mention <stdlib.h>.
31956         (configure.ac): Mention functions we provide.
31957         * modules/canonicalize (configure.ac): Likewise.
31958         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31959         realpath if canonicalize_file_name is missing.
31960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31961         * modules/stdlib (Makefile.am): Substitute witnesses.
31962         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31963         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31964         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31965         * NEWS: Document this.
31966         * doc/glibc-functions/canonicalize_file_name.texi
31967         (canonicalize_file_name): Likewise.
31968         * doc/posix-functions/realpath.texi (realpath): Likewise.
31969         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31970
31971         test-canonicalize: consolidate into single C program
31972         * tests/test-canonicalize.sh: Delete; move setup into...
31973         * tests/test-canonicalize.c (main): ...the program, making it
31974         easier to run in debugger.  Add some tests.
31975         * modules/canonicalize-tests (Files): Remove unused file.
31976         (Depends-on): Add progname.
31977         (configure.ac, Makefile.am): Simplify.
31978
31979         test-canonicalize-lgpl: consolidate into single C program
31980         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31981         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31982         easier to run in debugger.  Add some tests.
31983         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31984         (configure.ac, Makefile.am): Simplify.
31985
31986         canonicalize: avoid resolvepath
31987         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31988         unnecessary checks.
31989         * lib/canonicalize.c (includes): Simplify.
31990         (canonicalize_file_name): Drop resolvepath implementation.
31991         * modules/canonicalize (Depends-on): Drop filenamecat.
31992
31993         canonicalize: don't lose errno
31994         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31995         over calls to free.
31996
31997         canonicalize: simplify errno handling
31998         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31999         assignment.
32000
32001         canonicalize, canonicalize-lgpl: update module dependencies
32002         * modules/canonicalize (Depends-on): Add extensions, lstat,
32003         pathmax, stdlib.
32004         (Files): Drop pathmax.h.
32005         (configure.ac): Adjust macro name.
32006         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
32007         lstat, stdlib, sys_stat.
32008         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
32009         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
32010         extensions.
32011         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
32012         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
32013         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
32014         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
32015         declaration, if available.
32016         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
32017         we can rely on the readlink module.
32018         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
32019         (includes): Use <unistd.h> unconditionally.
32020
32021 2009-09-17  Eric Blake  <ebb9@byu.net>
32022
32023         maint: make Include sections of modules consistent
32024         * modules/alloca: Use only header name; no need to list #include.
32025         * modules/alloca-opt: Likewise.
32026         * modules/arpa_inet: Likewise.
32027         * modules/canon-host: Likewise.
32028         * modules/configmake: Likewise.
32029         * modules/dirent: Likewise.
32030         * modules/eealloc: Likewise.
32031         * modules/environ: Likewise.
32032         * modules/fchdir: Likewise.
32033         * modules/fcntl: Likewise.
32034         * modules/fcntl-h: Likewise.
32035         * modules/gethrxtime: Likewise.
32036         * modules/gettime: Likewise.
32037         * modules/ignore-value: Likewise.
32038         * modules/inet_ntop: Likewise.
32039         * modules/inet_pton: Likewise.
32040         * modules/inttypes: Likewise.
32041         * modules/isnand-nolibm: Likewise.
32042         * modules/isnanf-nolibm: Likewise.
32043         * modules/mbchar: Likewise.
32044         * modules/mbfile: Likewise.
32045         * modules/mbiter: Likewise.
32046         * modules/mbuiter: Likewise.
32047         * modules/netdb: Likewise.
32048         * modules/netinet_in: Likewise.
32049         * modules/nproc: Likewise.
32050         * modules/pagealign_alloc: Likewise.
32051         * modules/poll: Likewise.
32052         * modules/printf-frexp: Likewise.
32053         * modules/pthread: Likewise.
32054         * modules/putenv: Likewise.
32055         * modules/random_r: Likewise.
32056         * modules/relocatable-prog: Likewise.
32057         * modules/search: Likewise.
32058         * modules/select: Likewise.
32059         * modules/selinux-h: Likewise.
32060         * modules/settime: Likewise.
32061         * modules/signal: Likewise.
32062         * modules/size_max: Likewise.
32063         * modules/socklen: Likewise.
32064         * modules/ssize_t: Likewise.
32065         * modules/stdarg: Likewise.
32066         * modules/stdbool: Likewise.
32067         * modules/stddef: Likewise.
32068         * modules/stdint: Likewise.
32069         * modules/stdio: Likewise.
32070         * modules/stdlib: Likewise.
32071         * modules/string: Likewise.
32072         * modules/strings: Likewise.
32073         * modules/sys_file: Likewise.
32074         * modules/sys_ioctl: Likewise.
32075         * modules/sys_select: Likewise.
32076         * modules/sys_socket: Likewise.
32077         * modules/sys_stat: Likewise.
32078         * modules/sys_time: Likewise.
32079         * modules/sys_times: Likewise.
32080         * modules/sys_utsname: Likewise.
32081         * modules/sys_wait: Likewise.
32082         * modules/sysexits: Likewise.
32083         * modules/time: Likewise.
32084         * modules/times: Likewise.
32085         * modules/tmpfile: Likewise.
32086         * modules/trim: Likewise.
32087         * modules/unistd: Likewise.
32088         * modules/wchar: Likewise.
32089         * modules/wctype: Likewise.
32090
32091 2009-09-17  Bruno Haible  <bruno@clisp.org>
32092
32093         Make getdate.y compile on QNX and NetBSD 5 / i386.
32094         * m4/getdate.m4 (gl_GETDATE): Conditionally define
32095         TIME_T_FITS_IN_LONG_INT.
32096         * lib/getdate.y (long_time_t): New type.
32097         (relative_time): Change type of 'seconds' field to long_time_t.
32098         (get_date): Update types of local variables. Check against overflow
32099         during conversion from long_time_t to time_t.
32100         Reported by Matt Kraai <kraai@ftbfs.org>
32101         and Hasso Tepper <hasso@netbsd.org>.
32102
32103 2009-09-17  Bruno Haible  <bruno@clisp.org>
32104
32105         * modules/COPYING: Update copyright years.
32106         * modules/README: Likeiwse.
32107         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
32108         Reported by Ian Beckwith <ianb@erislabs.net>.
32109
32110 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32111
32112         * users.txt: Update references for gnuit package.
32113
32114 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32115
32116         * m4/getdelim.m4: Fix typo in copyright line.
32117
32118 2009-09-17  Bruno Haible  <bruno@clisp.org>
32119
32120         * lib/atoll.c: Use the standard header with GPL copyright.
32121         * lib/argz.in.h: Likewise.
32122         * lib/glob.c: Likewise.
32123         * lib/glob-libc.h: Likewise.
32124         * lib/random_r.c: Likewise.
32125         * lib/siglist.h: Likewise.
32126         * lib/strsignal.c: Likewise.
32127         Reported by Ian Beckwith <ianb@erislabs.net>.
32128
32129 2009-09-17  Eric Blake  <ebb9@byu.net>
32130
32131         rmdir: ensure correct dependency order
32132         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
32133
32134 2009-09-17  Bruno Haible  <bruno@clisp.org>
32135
32136         Disable assertion that fails on NetBSD 5 / i386.
32137         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
32138         Reported by Sam Steingold <sds@gnu.org>
32139         and Hasso Tepper <hasso@netbsd.org>.
32140
32141 2009-09-16  Eric Blake  <ebb9@byu.net>
32142
32143         unlinkdir: port to mingw
32144         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
32145         on which no one can unlink a directory.
32146
32147         stdlib: sort witness names
32148         * modules/stdlib (Makefile.am): Sort replacements.
32149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32150         * lib/stdlib.in.h: Likewise.
32151
32152         parse-duration-tests: avoid link failure
32153         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
32154         LIBINTL.
32155         Reported by Tom G. Christensen.
32156
32157         openat-tests: ensure unlinkat behaves like rmdir
32158         * tests/test-rmdir.c (main): Factor guts...
32159         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
32160         * modules/rmdir-tests (Files): Ship new file.
32161         * modules/openat-tests: New test.
32162         * tests/test-unlinkat.c: Likewise.
32163
32164         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
32165         * modules/rmdir-errno (Status, Notice): Now obsolete.
32166
32167         rmdir: work around cygwin 1.5.x and mingw bugs
32168         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
32169         * lib/rmdir.c (rmdir): Work around it.
32170         * modules/rmdir (Status, Notice): No longer obsolete.
32171         (Files): Add dos.m4.
32172         (Depends-on): Add unistd.
32173         (configure.ac): Set witnesses.
32174         (License): Relax to LGPLv2+.
32175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
32176         * modules/unistd (Makefile.am): Substitute witnesses.
32177         * lib/unistd.in.h (rmdir): Declare replacement.
32178         * doc/posix-functions/rmdir.texi (rmdir): Document this.
32179         * modules/rmdir-tests: New tests.
32180         * tests/test-rmdir.c: Likewise.
32181
32182 2009-09-15  Eric Blake  <ebb9@byu.net>
32183
32184         fchdir: improve use of replacement functions
32185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
32186         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
32187         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
32188         REPLACE_CLOSEDIR.
32189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
32190         * modules/sys_stat (Makefile.am): Substitute correct witness.
32191         * modules/dirent (Makefile.am): Likewise.
32192         * modules/unistd (Makefile.am): Likewise.
32193         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
32194         * lib/unistd.in.h (dup): Likewise.
32195         * lib/sys_stat.in.h (fstat): Likewise.
32196
32197         maint: ignore gnulib-tool temp files
32198         * .gitignore: Ignore files created during gnulib-tool --test.
32199
32200 2009-09-13  Jim Meyering  <meyering@redhat.com>
32201
32202         posixtm: don't reject a time that specify "60" as the number of seconds
32203         * lib/posixtm.c (posixtime): The code to reject invalid dates
32204         would also reject a time specified with the .60 suffix.
32205         But POSIX allows that, in order to accommodate leap seconds.
32206         So don't reject it.
32207         (main): Adjust tests accordingly.
32208         * modules/posixtm (Depends-on): Add stpcpy.
32209
32210 2009-09-11  Jim Meyering  <meyering@redhat.com>
32211
32212         announce-gen: include [$release_type] in emitted Subject:
32213         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
32214         e.g., [stable] in the emitted Subject: line.
32215
32216 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32217
32218         Remove obsolete macros from several modules.
32219         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
32220         obsolete Autoconf macros with their modern counterparts.
32221         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
32222         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
32223         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
32224         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32225         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
32226         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32227         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32228         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32229         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32230         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
32231         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32232         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32233         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
32234         * m4/sockets.m4 (gl_SOCKETS): Likewise.
32235         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
32236         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
32237         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32238         * m4/time_r.m4 (gl_TIME_R): Likewise.
32239         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
32240         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
32241         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32242
32243         Fix copyright header in build-aux scripts.
32244         * build-aux/git-version-gen: Fix copyright header to match GPLv3
32245         recommendation.
32246         * build-aux/ncftpput-ftp: Likewise.
32247         * build-aux/update-copyright: Likewise.
32248
32249 2009-09-09  Eric Blake  <ebb9@byu.net>
32250
32251         test-link: allow Linux choice of errno
32252         * tests/test-link.c (main): Relax test for alternate error.
32253
32254         strndup: fix improper m4 caching
32255         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32256         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32257         (gl_PREREQ_STRNDUP): Delete.
32258         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32259         * modules/string (Makefile.am): Substitute it.
32260         * lib/string.in.h (strndup): Modernize prototype.
32261
32262         getcwd: port to mingw
32263         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32264         different from the POSIX assumptions made throughout the getcwd
32265         module; fortunately, the mingw getcwd does not need replacement.
32266         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32267         * modules/getcwd-tests: New test.
32268         * tests/test-getcwd.c: Likewise.
32269
32270         link: fix platform bugs
32271         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32272         * lib/link.c (link): Work around them.  Fix related mingw bug.
32273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32274         * modules/unistd (Makefile.am): Substitute it.
32275         * lib/unistd.in.h (link): Declare replacement.
32276         * doc/posix-functions/link.texi (link): Document this.
32277         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32278
32279         test-link: consolidate into single C program, test more cases
32280         * tests/test-link.sh: Delete.
32281         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32282         at least Cygwin and Solaris.
32283         * modules/link-tests (Files): Remove unused file.
32284         (Depends-on): Add errno, sys_stat.
32285         (Makefile.am): Simplify.
32286
32287 2009-09-08  Bruno Haible  <bruno@clisp.org>
32288
32289         Work around towlower, towupper bug on mingw.
32290         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32291         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32292         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32293         * doc/posix-functions/towupper.texi: Likewise.
32294         Reported by Eric Blake.
32295
32296 2009-09-08  Jim Meyering  <meyering@redhat.com>
32297
32298         build: don't try to run autoheader if we don't use it
32299         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32300         is not used in configure.ac.
32301
32302 2009-09-08  Eric Blake  <ebb9@byu.net>
32303
32304         euidaccess: fix compilation error
32305         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32306
32307         rawmemchr: relax license
32308         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32309         okay.
32310         Reported by Jim Meyering.
32311
32312         mkfifoat: new module
32313         * modules/mkfifoat: New file.
32314         * lib/mkfifoat.c: Likewise.
32315         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32316         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32317         * modules/sys_stat (Makefile.am): Use them.
32318         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32319         * MODULES.html.sh (File system functions): Mention module.
32320         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32321         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32322         * modules/mkfifoat-tests: New test.
32323         * tests/test-mkfifoat.c: Likewise.
32324
32325         strchrnul: relax license
32326         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32327         okay.
32328         Reported by Jim Meyering.
32329
32330 2009-09-08  Eric Blake  <ebb9@byu.net>
32331
32332         fstatat: fix compilation on Solaris
32333         * lib/fstatat.c (includes): Add fcntl.h.
32334         Reported by Pádraig Brady.
32335
32336 2009-09-07  Eric Blake  <ebb9@byu.net>
32337
32338         rename: modernize replacement
32339         * modules/rename (Depends-on): Add stdio.
32340         (configure.ac): Declare witness.
32341         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32342         stdio take care of replacement.
32343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32344         * modules/stdio (Makefile.am): Substitute them.
32345         * lib/stdio.in.h (rename): Declare replacement.
32346         * lib/rename.c (includes): Allow cross-compilation to non-windows
32347         machines.
32348         * doc/posix-functions/rename.texi (rename): Improve
32349         documentation.
32350
32351         stdio: sort witness names
32352         * modules/stdio (Makefile.am): Sort replacements.
32353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32354         * lib/stdio.in.h: Likewise.
32355
32356         getcwd: minor cleanups
32357         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32358         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32359
32360         openat: provide more convenience names
32361         * modules/faccessat (configure.ac): Add C witness.
32362         * lib/unistd.in.h (readlinkat): Fix typo.
32363         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32364         convenience wrappers.
32365         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32366         wrappers in syntax checks.
32367
32368 2009-09-06  Eric Blake  <ebb9@byu.net>
32369
32370         doc: fix comments in recent patches
32371         * lib/faccessat.c: Mention correct function.
32372         * lib/fchmodat.c: Likewise.
32373         * lib/fchownat.c: Likewise.
32374         * lib/symlinkat.c: Likewise.
32375         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32376         constants.
32377
32378         faccessat, symlinkat: continue cleanup of previous patch
32379         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32380         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32381         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32383         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32384         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32385         set.
32386
32387 2009-09-06  Bruno Haible  <bruno@clisp.org>
32388
32389         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32390         (fstatat): Declare if GNULIB_FSTATAT is set.
32391         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32392         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32393         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32394         * modules/fcntl-h (Files): Remove m4/openat.m4.
32395         * modules/sys_stat (Files): Remove m4/openat.m4.
32396         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
32397         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
32398         * modules/unistd (Files): Remove m4/openat.m4.
32399         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
32400         GNULIB_OPENAT.
32401         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
32402         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
32403         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
32404         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
32405         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
32406         gl_OPENAT_DEFAULTS.
32407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
32408         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
32409         Don't require gl_OPENAT_DEFAULTS.
32410         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
32411         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
32412         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
32413         (gl_OPENAT_DEFAULTS): Remove macro.
32414
32415 2009-09-06  Bruno Haible  <bruno@clisp.org>
32416
32417         * modules/openat (configure.ac): Remove unneeded witness.
32418
32419 2009-09-06  Bruno Haible  <bruno@clisp.org>
32420
32421         Set errno to ENOSYS when a function is entirely unsupported.
32422         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
32423         EOPNOTSUPP.
32424         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32425         * modules/chown (Depends-on): Remove errno.
32426
32427 2009-09-06  Bruno Haible  <bruno@clisp.org>
32428
32429         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
32430
32431 2009-09-06  Bruno Haible  <bruno@clisp.org>
32432
32433         * lib/sys_stat.in.h: Fix preprocessor command indentation.
32434
32435 2009-09-06  Ben Pfaff  <blp@gnu.org>
32436             Bruno Haible  <bruno@clisp.org>
32437
32438         Work around a glibc bug in strtok_r.
32439         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
32440         Undefine if UNDEFINE_STRTOK_R is set.
32441         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
32442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32443         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
32444         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
32445         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
32446         UNDEFINE_STRTOK_R.
32447         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
32448
32449 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32450
32451         exclude: minor fix
32452         * lib/exclude.c: Include wctype.h
32453
32454 2009-09-06  Akim Demaille  <demaille@gostai.com>
32455
32456         bootstrap: improve error message
32457         * build-aux/bootstrap (find_tool): Upon failure, report the list
32458         of candidates.
32459         Honor the initial value of the envvar.
32460
32461 2009-09-05  Eric Blake  <ebb9@byu.net>
32462
32463         symlinkat: new module
32464         * modules/symlinkat: New file.
32465         * lib/symlinkat.c: Likewise.
32466         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
32467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32468         * modules/unistd (Makefile.am): Use them.
32469         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
32470         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
32471         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
32472         * MODULES.html.sh (File system functions): Mention module.
32473         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32474         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32475         * modules/symlinkat-tests: New test.
32476         * tests/test-symlinkat.c: Likewise.
32477
32478         test-openat-safer: add more checks
32479         * tests/test-openat-safer.c (main): Check more code paths.
32480
32481 2009-09-05  Jim Meyering  <meyering@redhat.com>
32482
32483         syntax-check: detect unnecessary inclusion of openat.h
32484         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32485
32486 2009-09-05  Bruno Haible  <bruno@clisp.org>
32487
32488         Support towlower, towupper.
32489         * doc/posix-functions/towlower.texi: Mention module wctype.
32490         * doc/posix-functions/towupper.texi: Likewise.
32491         * lib/wctype.in.h (towlower, towupper): New functions.
32492         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32493         (ASSERT): New macro.
32494         (e): New variable.
32495         (main): Test also towlower, towupper. Test WEOF argument.
32496         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32497
32498 2009-09-05  Bruno Haible  <bruno@clisp.org>
32499
32500         Fix conversion behaviour when the input is invalid.
32501         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32502         mark occurring in first pass of indirect conversion.
32503         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32504         input.
32505         Found by clang's static analyzer.
32506
32507 2009-09-05  Bruno Haible  <bruno@clisp.org>
32508
32509         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32510         where direct conversion is possible.
32511
32512 2009-09-04  Eric Blake  <ebb9@byu.net>
32513
32514         openat: fail with ENOENT on empty name
32515         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32516         buffer.
32517
32518         link-follow: fix logic bug in prior patch
32519         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32520         reversed sense of yes and no in prior patch.  Avoid confusing
32521         compilation failure with desired semantics.
32522
32523         link-follow: accomodate mingw and cross-compilation
32524         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32525         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32526         cross-compilation results to -1, to make linkat easier to
32527         implement when cross-compiling.  Trivially support mingw.
32528         * modules/link-follow (configure.ac): Call new name.
32529         * NEWS: Mention this.
32530
32531 2009-09-03  Eric Blake  <ebb9@byu.net>
32532
32533         faccessat: compile replacement
32534         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32535         needed.
32536
32537         fts: fix compilation error
32538         * lib/fts.c (includes): Re-add "openat.h", for
32539         openat_needs_fchdir.
32540
32541         faccessat: new module
32542         * modules/faccessat: New file.
32543         * lib/faccessat.c: Likewise.
32544         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32546         * modules/unistd (Makefile.am): Use it.
32547         * lib/unistd.in.h (faccessat): Declare it.
32548         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32549         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32550         * MODULES.html.sh (File system functions): Mention it.
32551         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32552         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32553
32554         euidaccess: prefer POSIX over non-standard implementation
32555         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32556         * lib/euidaccess.c (euidaccess): Use it if available.
32557
32558         openat: make template easier to use
32559         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32560         AT_FUNC_F2 to be undefined.
32561         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32562         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32563         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32564         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32565         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32566         Likewise.
32567         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32568         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32569         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32570         Likewise.
32571
32572         openat: declare in POSIX headers
32573         * NEWS: Mention this.
32574         * modules/openat (configure.ac): Declare witnesses.
32575         (Depends-on): Add fcntl-h, sys_stat, unistd.
32576         (Include): Mention correct headers.
32577         * modules/fcntl-h (Depends-on): Add link-warning.
32578         (Files): Add openat.m4.
32579         (Makefile.am): Substitute witnesses.
32580         * modules/sys_stat (Files, Makefile.am): Likewise.
32581         * modules/unistd (Files, Makefile.am): Likewise.
32582         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32583         (gl_OPENAT_DEFAULTS): New macro.
32584         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32587         (SYS_STAT_H): Remove unused variable.
32588         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32589         * lib/fcntl--.h (includes): Remove unneeded header.
32590         * lib/openat-safer.c (includes): Likewise.
32591         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32592         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32593         appropriate headers.
32594         (__OPENAT_PREFIX): Delete.
32595         * lib/fcntl.in.h (openat): Provide declaration.
32596         (AT_FDCWD): Fix Solaris bug.
32597         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32598         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32599         * lib/fchmodat.c (includes):  Adjust to find declaration.
32600         * lib/fchownat.c (includes): Likewise.
32601         * lib/mkdirat.c (includes): Likewise.
32602         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32603         still visible.
32604
32605 2009-09-02  Eric Blake  <ebb9@byu.net>
32606
32607         errno: use consistently
32608         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32609         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32610         * lib/canonicalize.c (ELOOP): Likewise.
32611         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32612         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32613         * lib/lchown.c (EOPNOTSUPP): Likewise.
32614         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32615         * lib/savewd.c (ESTALE): Likewise.
32616         * lib/settime.c (ENOSYS): Likewise.
32617         * lib/utimens.c (ENOSYS): Likewise.
32618         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32619         * lib/chdir-safer.c (ELOOP): Likewise.
32620         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32621         * modules/c-stack (Depends-on): Add errno.
32622         * modules/canonicalize (Depends-on): Likewise.
32623         * modules/chdir-safer (Depends-on): Likewise.
32624         * modules/fdopendir (Depends-on): Likewise.
32625         * modules/inet_ntop (Depends-on): Likewise.
32626         * modules/inet_pton (Depends-on): Likewise.
32627         * modules/lchown (Depends-on): Likewise.
32628         * modules/openat (Depends-on): Likewise.
32629         * modules/savewd (Depends-on): Likewise.
32630         * modules/settime (Depends-on): Likewise.
32631         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32632
32633         fts: avoid leaking fds
32634         * modules/fts (Depends-on): Add cloexec.
32635         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32636         flag.
32637
32638         fts: make directory fds more robust
32639         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32640         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32641
32642         backupfile, chdir-long, fts, savedir: make safer
32643         * lib/backupfile.c (includes): Use "dirent--.h", since
32644         numbered_backup can write to stderr during readdir.
32645         * lib/savedir.c (includes): Likewise.
32646         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32647         emulation can write to stderr on failure.
32648         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32649         * lib/getcwd.c: Document why opendir_safer is unused.
32650         * lib/glob.c: Likewise.
32651         * lib/scandir.c: Likewise.
32652         * lib/openat-proc.c: Likewise, for open_safer.
32653         * modules/backupfile (Depends-on): Add dirent-safer.
32654         * modules/savedir (Depends-on): Likewise.
32655         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32656         * modules/chdir-long (Depends-on): Add openat-safer.
32657
32658         openat-safer: new module
32659         * modules/openat-safer: New file.
32660         * lib/openat-safer.c: Likewise.
32661         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32662         * lib/fcntl-safer.h (openat_safer): Declare.
32663         * lib/fcntl--.h (openat): Override.
32664         * MODULES.html.sh (File descriptor based I/O): Mention it.
32665         * lib/openat.h: Add double-inclusion guards.
32666         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32667         "fcntl--.h", so we can implement openat.
32668         * modules/openat-safer-tests: New test.
32669         * tests/test-openat-safer.c: New file.
32670
32671         dirent-safer: new module
32672         * modules/dirent-safer: New file.
32673         * lib/dirent--.h: Likewise.
32674         * lib/dirent-safer.h: Likewise.
32675         * lib/opendir-safer.c: Likewise.
32676         * m4/dirent-safer.m4: Likewise.
32677         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32678         * modules/dirent-safer-tests: New test.
32679         * tests/test-dirent-safer.c: New file.
32680         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32681
32682         fdopendir: optimize on mingw
32683         * lib/unistd.in.h (_gl_directory_name): New prototype.
32684         * lib/fchdir.c (_gl_directory_name): Implement it.
32685         (fchdir): Use it to simplify implementation.
32686         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32687         fchdir, when available, to avoid calling [f]chdir().
32688
32689         fdopendir: split into its own module
32690         * lib/openat.c (fdopendir): Move...
32691         * lib/fdopendir.c: ...into new file.
32692         * modules/fdopendir: New module.
32693         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32694         * modules/openat (Depends-on): Add fdopendir.
32695         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32696         fdopendir here.
32697         * modules/savedir (Depends-on): Only need fdopendir, not full
32698         openat.
32699         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32700         * lib/openat.h (fdopendir): Drop prototype.
32701         * lib/dirent.in.h (fdopendir): Provide prototype.
32702         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32703         * modules/dirent (Makefile.am): Substitute them.
32704         * MODULES.html.sh (File system functions): Mention it.
32705         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32706         * modules/fdopendir-tests: New file.
32707         * tests/test-fdopendir.c: Likewise.
32708
32709         fchdir: use more consistent macro convention
32710         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32711         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32712         REPLACE_FCHDIR, rather than relying on config.h macros.
32713         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32714         inside a single make-time REPLACE_FCHDIR block, rather than using
32715         the config.h FCHDIR_REPLACEMENT.
32716         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32717         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32718         Manage fstat replacement.
32719         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32720         REPLACE_FCHDIR.
32721         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32722         (Makefile.am): Substitute REPLACE_FCHDIR.
32723         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32724         FCHDIR_REPLACEMENT.
32725         * lib/dup-safer.c (dup_safer): Likewise.
32726         * lib/dup2.c (rpl_dup2): Likewise.
32727         * lib/dup3.c (rpl_dup3): Likewise.
32728         * lib/open.c (rpl_open): Likewise.
32729
32730         fchdir: simplify error handling, and support dup3
32731         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32732         stdbool, malloc-posix, realloc-posix.
32733         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32734         (ensure_dirs_slot): Return false on allocation failure.
32735         (rpl_dup2): Delete.
32736         (_gl_register_dup): New function.
32737         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32738         (_gl_register_fd): Close fd on allocation failure.
32739         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32740         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32741         prototype.
32742         (rpl_dup2_fchdir): Delete prototype.
32743         * lib/open.c (open): Update caller.
32744         * lib/dup2.c (dup2): Track fchdir metadata.
32745         * lib/dup3.c (dup3): Likewise.
32746         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32747         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32748
32749 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32750
32751         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32752         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32753         don't pass arguments to AC_OUTPUT.
32754
32755 2009-09-02  Bruno Haible  <bruno@clisp.org>
32756
32757         * modules/mkdtemp (License): Relicense under LGPLv2+.
32758         Reported by Paolo Bonzini.
32759
32760 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32761
32762         Replace uses of obsolete autoconf macros in Jim's modules.
32763         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32764         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32765         can evoke a warning from autoconf when run with -Wobsolete
32766         enabled.  They were declared obsolete for good reasons (see
32767         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32768         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32769         should not continue using the deprecated macros.
32770         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32771         obsolete Autoconf macros with modern counterparts.
32772         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32773         * m4/dos.m4 (gl_AC_DOS): Likewise.
32774         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32775         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32776         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32777         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32778         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32779         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32780         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32781         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32782         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32783         Likewise.
32784         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32785         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32786         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32787         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32788         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32789         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32790
32791 2009-09-01  Eric Blake  <ebb9@byu.net>
32792
32793         fchdir: fix off-by-one bug in previous patch
32794         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32795         (_gl_unregister_fd): Delete useless if.
32796
32797 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32798
32799         maint.mk: sort the list of syntax-check rules
32800         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32801         easier to get a sense of progress when the rules are run sequentially
32802         and take a long time.
32803
32804 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32805
32806         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32807         * modules/netinet_in: Likewise.
32808         * modules/sys_file: Likewise.
32809         * modules/sys_ioctl: Likewise.
32810         * modules/sys_select: Likewise.
32811         * modules/sys_socket: Likewise.
32812         * modules/sys_stat: Likewise.
32813         * modules/sys_time: Likewise.
32814         * modules/sys_times: Likewise.
32815         * modules/sys_utsname: Likewise.
32816         * modules/sys_wait: Likewise.
32817
32818 2009-09-01  Jim Meyering  <meyering@redhat.com>
32819
32820         fts: help ensure that return values are not ignored
32821         * lib/fts_.h (__GNUC_PREREQ): Define.
32822         (__attribute_warn_unused_result__): Define.
32823         (fts_children, fts_close, fts_open, fts_read): Declare with
32824         __attribute_warn_unused_result__.
32825
32826         fts: fts_close now fails also when closing a dir file descriptor fails
32827         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32828         and propagate to caller, along with errno.
32829
32830         announce-gen: correct formatting in --help output
32831         * build-aux/announce-gen (usage): Move the one-line description in
32832         --help output "up", to where it belongs, just after Usage:.
32833
32834 2009-08-31  Eric Blake  <ebb9@byu.net>
32835
32836         fchdir: port to mingw
32837         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32838         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32839         opened, then use a substitute.
32840         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32841         replacement.
32842         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32843         (_gl_register_fd): No need to check stat if open already filters
32844         all directories.
32845         (fchdir): Fix error condition to match POSIX.
32846         * modules/fchdir (Depends-on): Add sys_stat.
32847         * doc/posix-functions/open.texi (open): Document the limitation.
32848         * modules/fchdir-tests: New file.
32849         * tests/test-fchdir.c: Likewise.
32850
32851         canonicalize: allow cross-testing from cygwin to mingw
32852         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32853         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32854         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32855         Likewise.
32856         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32857         target does not support symlinks.
32858         * tests/test-canonicalize-lgpl.sh: Likewise.
32859
32860         chown: avoid compilation warning on mingw
32861         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32862         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32863         mingw.
32864         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32865         * modules/chown (Depends-on): Add errno.
32866
32867 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32868
32869         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32870         command.
32871
32872 2009-08-31  Jim Meyering  <meyering@redhat.com>
32873
32874         canonicalize: remove useless initialization
32875         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32876         initialization of local, "end".
32877
32878 2009-08-30  Bruno Haible  <bruno@clisp.org>
32879
32880         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32881         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32882         ENOSYS.
32883
32884 2009-08-30  Bruno Haible  <bruno@clisp.org>
32885
32886         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32887         /usr/xpg4/bin/tr when it exists.
32888         * tests/test-pipe-filter-gi1.sh: Likewise.
32889
32890 2009-08-30  Bruno Haible  <bruno@clisp.org>
32891
32892         Work around deficient /usr/bin/id program on Solaris.
32893         * tests/test-file-has-acl.sh (ID): New variable.
32894         * tests/test-set-mode-acl.sh (ID): Likewise.
32895         * tests/test-copy-acl.sh (ID): Likewise.
32896         * tests/test-copy-file.sh (ID): Likewise.
32897
32898 2009-08-30  Bruno Haible  <bruno@clisp.org>
32899
32900         New module 'xstriconveh'.
32901         * lib/xstriconveh.h: New file.
32902         * lib/xstriconveh.c: New file.
32903         * modules/xstriconveh: New file.
32904
32905 2009-08-30  Bruno Haible  <bruno@clisp.org>
32906
32907         Make it easier to use mem_cd_iconveh.
32908         * lib/striconveh.h (iconveh_t): New type.
32909         (iconveh_open, iconveh_close): New declarations.
32910         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32911         with a single 'const iconveh_t *' argument.
32912         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32913         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32914         with a single 'const iconveh_t *' argument.
32915         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32916         * tests/test-striconveh.c (main): Update.
32917         * NEWS: Mention the change.
32918
32919 2009-08-30  Bruno Haible  <bruno@clisp.org>
32920
32921         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32922         problem.
32923
32924 2009-08-30  Bruno Haible  <bruno@clisp.org>
32925
32926         Work around iconv_open problem on Solaris.
32927         * lib/iconv_open-solaris.gperf: New file.
32928         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32929         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32930         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32931         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32932         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32933         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32934
32935 2009-08-29  Jim Meyering  <meyering@redhat.com>
32936
32937         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32938         * top/maint.mk (cvs-check): Remove target; it was just an alias
32939         to the better-named vc-diff-check.
32940         (maintainer-distcheck): Remove rule.  It was used only from
32941         the (alpha/beta/major) target, and all of its commands but one
32942         were coreutils-specific.
32943         (vc-dist): Remove rule.
32944         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32945         Run vc-diff-check, not vc-dist.
32946         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32947
32948 2009-08-27  Bruno Haible  <bruno@clisp.org>
32949
32950         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32951         of 0.
32952
32953 2009-08-27  Bruno Haible  <bruno@clisp.org>
32954
32955         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32956         compilers.
32957         * doc/func.texi: Document the SunPRO C bug.
32958
32959 2009-08-27  Bruno Haible  <bruno@clisp.org>
32960
32961         Fix link error on Solaris.
32962         * tests/test-parse-duration.c (xstrdup): Remove function.
32963
32964 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32965
32966         ignore-value: handle pointer types, too
32967         * lib/ignore-value.h (__attribute__): Remove definition.
32968         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32969         of a more concise and more-often effective "(void) i" statement.
32970         (ignore_ptr): New function to suppress warnings from functions that
32971         return pointers, and to make it explicit that one function doesn't
32972         handle all cases.
32973
32974 2009-08-25  Bruno Haible  <bruno@clisp.org>
32975
32976         dup2: work around a Linux bug.
32977         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32978         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32979         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32980         Reported by Simon Josefsson.
32981
32982 2009-08-25  Jim Meyering  <meyering@redhat.com>
32983
32984         libguestfs uses gnulib
32985         * users.txt: Add libguestfs.
32986
32987 2009-08-24  Eric Blake  <ebb9@byu.net>
32988
32989         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32990         * lib/pipe2.c (includes): Add binary-io.h.
32991         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32992
32993 2009-08-24  Bruno Haible  <bruno@clisp.org>
32994
32995         Tolerate declared but missing accept4 syscall.
32996         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32997         available.
32998         * lib/sys_socket.in.h (accept4): If the function is already present,
32999         override it.
33000         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
33001         * modules/accept4 (Makefile.am): Compile accept4.c always.
33002         Reported by Paolo Bonzini and Eric Blake.
33003
33004 2009-08-23  Bruno Haible  <bruno@clisp.org>
33005
33006         New module 'accept4'.
33007         * lib/sys_socket.in.h (accept4): New declaration.
33008         * lib/accept4.c: New file.
33009         * m4/accept4.m4: New file.
33010         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33011         GNULIB_ACCEPT4, HAVE_ACCEPT4.
33012         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
33013         HAVE_ACCEPT4.
33014         * modules/accept4: New file.
33015         * doc/glibc-functions/accept4.texi: Mention the new module.
33016
33017 2009-08-24  Jim Meyering  <meyering@redhat.com>
33018
33019         progname: also set global program_invocation_name, when possible
33020         Before this change, a libtool-enabled program that calls glibc's
33021         error function would report the program name as
33022         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
33023         * modules/progname (configure.ac): Check for a declaration of
33024         program_invocation_name.
33025         * lib/progname.c:  Include <errno.h>.
33026         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
33027         Set program_invocation_name.
33028
33029 2009-08-23  Bruno Haible  <bruno@clisp.org>
33030
33031         * lib/dup3.c: Include <string.h>.
33032
33033 2009-08-23  Bruno Haible  <bruno@clisp.org>
33034
33035         * lib/dup3.c (dup3): Test only once whether the system actually exists.
33036         * lib/pipe2.c (pipe2): Likewise.
33037         Suggested by Eric Blake.
33038
33039 2009-08-23  Bruno Haible  <bruno@clisp.org>
33040
33041         Tolerate declared but missing dup3 syscall.
33042         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
33043         * lib/unistd.in.h (dup3): If the function is already present,
33044         override it.
33045         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
33046         * modules/dup3 (Makefile.am): Compile dup3.c always.
33047         Reported by Paolo Bonzini.
33048
33049 2009-08-23  Bruno Haible  <bruno@clisp.org>
33050
33051         Tolerate declared but missing pipe2 syscall.
33052         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
33053         available.
33054         * lib/unistd.in.h (pipe2): If the function is already present,
33055         override it.
33056         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
33057         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
33058         Reported by Paolo Bonzini.
33059
33060 2009-08-23  Bruno Haible  <bruno@clisp.org>
33061
33062         * lib/pipe2.c (pipe2): Move #ifs inside function.
33063
33064 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33065
33066         quotearg: document limitations of quote_these_too
33067         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
33068         those limitations are created.
33069         * lib/quotearg.h (set_char_quoting): Document that digits and
33070         letters that are special after backslash are not permitted.
33071         (quotearg_char): Cross-reference set_char_quoting documentation.
33072
33073 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
33074
33075         quotearg: implement custom_quoting_style
33076         * lib/quotearg.c: (struct quoting_options): Add left_quote and
33077         right_quote fields.
33078         (set_custom_quoting): New public function.
33079         (quotearg_buffer_restyled): Add left_quote and right_quote
33080         arguments, handle them very much like locale quoting, and update
33081         all uses.
33082         (quotearg_n_custom): New public function.
33083         (quotearg_n_custom_mem): New public function.
33084         (quotearg_custom): New public function.
33085         (quotearg_custom_mem): New public function.
33086         * lib/quotearg.h: Prototype and document new public functions.
33087         (enum quoting_style): For escape_quoting_style and
33088         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
33089         ignored even though they're otherwise like c_quoting_style.
33090         Add custom_quoting_style member and document with comparison to
33091         clocale_quoting_style.
33092         * tests/test-quotearg.c (custom_quotes): New array.
33093         (custom_results): New array.
33094         (main): Extend to test custom quoting.
33095
33096 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33097
33098         quotearg: fix right quote escaping when it's in quote_these_too
33099         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
33100         quote, be sure to prepend only one backslash.
33101         * tests/test-quotearg.c (use_quote_double_quotes): New function.
33102         (main): Test it.
33103
33104 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33105
33106         quotearg-tests: test escaping of embedded locale quotes
33107         * tests/test-quotearg.c (struct result_strings): Add member for
33108         new input.
33109         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
33110         (inputs): Add new input.
33111         (results_g): Add expected results.
33112         (flag_results): Likewise.
33113         (locale_results): Likewise.
33114         (compare_strings): Check those.
33115
33116 2009-08-23  Bruno Haible  <bruno@clisp.org>
33117
33118         Tests for module 'dup3'.
33119         * modules/dup3-tests: New file.
33120         * tests/test-dup3.c: New file.
33121
33122         New module 'dup3'.
33123         * lib/unistd.in.h (dup3): New declaration.
33124         * lib/dup3.c: New file.
33125         * m4/dup3.m4: New file.
33126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
33127         HAVE_DUP3.
33128         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
33129         * modules/dup3: New file.
33130         * doc/glibc-functions/dup3.texi: Mention the new module.
33131
33132 2009-08-23  Bruno Haible  <bruno@clisp.org>
33133
33134         Tweak the dup2 test.
33135         * tests/test-dup2.c (main): Create the test file empty. Verify that an
33136         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
33137         the test file is still empty. Fix argument order of lseek.
33138
33139 2009-08-23  Bruno Haible  <bruno@clisp.org>
33140
33141         Avoid test link errors when the modules getopt-gnu, gettext are used.
33142         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
33143         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33144
33145 2009-08-23  Bruno Haible  <bruno@clisp.org>
33146
33147         Fix getdtablesize() on mingw.
33148         * lib/getdtablesize.c (getdtablesize): Implement differently.
33149         * lib/unistd.in.h (getdtablesize): Improve comment.
33150
33151 2009-08-23  Bruno Haible  <bruno@clisp.org>
33152
33153         New module 'mkostemp'.
33154         Based on Ulrich Drepper's 2007-08-10 change in glibc.
33155         * lib/stdlib.in.h (mksotemp): New declaration.
33156         * lib/mkostemp.c: New file, from glibc with modifications.
33157         * lib/tempname.h (GT_FILE): Remove outdated comment.
33158         (gen_tempname): Add flags argument.
33159         * lib/tempname.c (__GT_BIGFILE): Remove macro.
33160         (__GT_FILE): Map to 1.
33161         (small_open, large_open): Remove macros.
33162         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
33163         * lib/mkstemp.c (mkstemp): Update.
33164         * lib/mkdtemp.c (mkdtemp): Likewise.
33165         * m4/mkostemp.m4: New file.
33166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
33167         HAVE_MKOSTEMP.
33168         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
33169         HAVE_MKOSTEMP.
33170         * modules/mkostemp: New file, based on modules/mkstemp.
33171         * doc/glibc-functions/mkostemp.texi: Mention the new module.
33172         * NEWS: Mention the change.
33173
33174 2009-08-23  Bruno Haible  <bruno@clisp.org>
33175
33176         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
33177         Reported by Eric Blake.
33178
33179 2009-08-23  Bruno Haible  <bruno@clisp.org>
33180
33181         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
33182         Reported by Eric Blake.
33183
33184 2009-08-23  Bruno Haible  <bruno@clisp.org>
33185
33186         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
33187         * modules/pipe2 (Depends-on): Likewise.
33188
33189 2009-08-23  Eric Blake  <ebb9@byu.net>
33190
33191         fcntl-h: add O_TTY_INIT support
33192         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
33193         * tests/test-fcntl-h.c (o): Test it.
33194         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33195
33196         fcntl-h: rename from fcntl, in preparation for fcntl(2)
33197         * modules/fcntl: Move <fcntl.h> header replacement...
33198         * modules/fcntl-h: ...to new name, so as not to collide with
33199         like-named function.
33200         * tests/test-fcntl.c: Rename...
33201         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
33202         * modules/fcntl-tests: Rename...
33203         * modules/fcntl-h-tests: ...to this.  Update test file name.
33204         * modules/chdir-long (Depends-on): Update clients.
33205         * modules/chdir-safer (Depends-on): Likewise.
33206         * modules/fcntl-safer (Depends-on): Likewise.
33207         * modules/fts (Depends-on): Likewise.
33208         * modules/mkancesdirs (Depends-on): Likewise.
33209         * modules/mkdir-p (Depends-on): Likewise.
33210         * modules/open (Depends-on): Likewise.
33211         * modules/savewd (Depends-on): Likewise.
33212         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
33213         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33214
33215 2009-08-22  Bruno Haible  <bruno@clisp.org>
33216
33217         * modules/binary-io (License): Relicense under LGPL.
33218         * modules/pipe2 (License): Likewise.
33219
33220 2009-08-22  Bruno Haible  <bruno@clisp.org>
33221
33222         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
33223         return value.
33224         * lib/pipe-filter-gi.c (filter_init): Likewise.
33225         Reported by Eric Blake.
33226
33227 2009-08-22  Bruno Haible  <bruno@clisp.org>
33228
33229         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
33230         * modules/pipe (Depends-on): Add pipe2.
33231
33232 2009-08-22  Bruno Haible  <bruno@clisp.org>
33233
33234         Tests for module 'pipe2'.
33235         * modules/pipe2-tests: New file.
33236         * tests/test-pipe2.c: New file.
33237
33238         New module 'pipe2'.
33239         * lib/unistd.in.h (pipe2): New declaration.
33240         * lib/pipe2.c: New file.
33241         * m4/pipe2.m4: New file.
33242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
33243         HAVE_PIPE2.
33244         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
33245         * modules/pipe2: New file.
33246         * doc/glibc-functions/pipe2.texi: Mention the new module.
33247
33248 2009-08-22  Bruno Haible  <bruno@clisp.org>
33249
33250         Reference some new glibc functions.
33251         * doc/glibc-functions/accept4.texi: New file.
33252         * doc/glibc-functions/dup3.texi: New file.
33253         * doc/glibc-functions/mkostemp.texi: New file.
33254         * doc/glibc-functions/pipe2.texi: New file.
33255         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33256         (Glibc sys/socket.h): Refer to accept4.
33257         (Glibc unistd.h): Refer to dup3, pipe2.
33258         Reported by Eric Blake.
33259
33260 2009-08-22  Jim Meyering  <meyering@redhat.com>
33261             Bruno Haible  <bruno@clisp.org>
33262
33263         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33264         This makes it so packages using automake-1.11's silent-rules option
33265         can print e.g., a single "GEN    configmake.h" line, rather than
33266         the 30+ statements that perform the job.  If you want to see the
33267         actual commands, you can still run "make V=1".
33268         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33269         so that make output is abbreviated when those variables are defined
33270         appropriately.
33271         * modules/argz: Likewise.
33272         * modules/arpa_inet: Likewise.
33273         * modules/byteswap: Likewise.
33274         * modules/configmake: Likewise.
33275         * modules/dirent: Likewise.
33276         * modules/errno: Likewise.
33277         * modules/fcntl: Likewise.
33278         * modules/float: Likewise.
33279         * modules/fnmatch: Likewise.
33280         * modules/getopt-posix: Likewise.
33281         * modules/glob: Likewise.
33282         * modules/iconv_open: Likewise.
33283         * modules/inttypes: Likewise.
33284         * modules/localcharset: Likewise.
33285         * modules/locale: Likewise.
33286         * modules/math: Likewise.
33287         * modules/netdb: Likewise.
33288         * modules/netinet_in: Likewise.
33289         * modules/poll: Likewise.
33290         * modules/posix_spawnp-tests: Likewise.
33291         * modules/sched: Likewise.
33292         * modules/search: Likewise.
33293         * modules/selinux-h: Likewise.
33294         * modules/signal: Likewise.
33295         * modules/spawn: Likewise.
33296         * modules/stdarg: Likewise.
33297         * modules/stdbool: Likewise.
33298         * modules/stddef: Likewise.
33299         * modules/stdint: Likewise.
33300         * modules/stdio: Likewise.
33301         * modules/stdlib: Likewise.
33302         * modules/string: Likewise.
33303         * modules/strings: Likewise.
33304         * modules/sys_file: Likewise.
33305         * modules/sys_ioctl: Likewise.
33306         * modules/sys_select: Likewise.
33307         * modules/sys_socket: Likewise.
33308         * modules/sys_stat: Likewise.
33309         * modules/sys_time: Likewise.
33310         * modules/sys_times: Likewise.
33311         * modules/sys_utsname: Likewise.
33312         * modules/sys_wait: Likewise.
33313         * modules/sysexits: Likewise.
33314         * modules/time: Likewise.
33315         * modules/unistd: Likewise.
33316         * modules/wchar: Likewise.
33317         * modules/wctype: Likewise.
33318
33319 2009-08-22  Jim Meyering  <meyering@redhat.com>
33320
33321         announce-gen: detect write failure
33322         * build-aux/announce-gen: Add Coda at end.
33323         Remove equivalent-but-more-verbose block at top.
33324
33325 2009-08-19  Akim Demaille  <demaille@gostai.com>
33326
33327         bootstrap: --help to stdout.
33328         * bootstrap (usage): Don't send --help to stderr.
33329         Use a here doc instead of a long string.
33330
33331 2009-08-21  Eric Blake  <ebb9@byu.net>
33332
33333         test-popen-safer: split from test-popen
33334         * tests/test-popen.c (main): Move...
33335         * tests/test-popen.h: ...into new file.
33336         * tests/test-popen-safer2.c: New file.
33337         * modules/popen-tests (Files): Add test-popen.h.
33338         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33339         Suggested by Bruno Haible.
33340
33341         test-fcntl-safer: split from test-open
33342         * tests/test-open.c (main): Move...
33343         * tests/test-open.h: ...into new file.
33344         * tests/test-fcntl-safer.c: New file.
33345         * modules/open-tests (Files): Add test-open.h.
33346         * modules/fcntl-safer-tests: New file.
33347         Suggested by Bruno Haible.
33348
33349         test-fopen-safer: split from test-fopen
33350         * tests/test-fopen.c (main): Move...
33351         * tests/test-fopen.h: ...into new file.
33352         * tests/test-fopen-safer.c: New file.
33353         * modules/fopen-tests (Files): Add test-fopen.h.
33354         * modules/fopen-safer-tests: New file.
33355         Suggested by Bruno Haible.
33356
33357 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33358
33359         popen-safer: test O_CLOEXEC at run-time.
33360         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33361
33362 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33363
33364         fcntl: move more flags to the header
33365         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33366         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33367         * lib/fcntl.in.h: Do both things here.
33368
33369 2009-08-21  Jim Meyering  <meyering@redhat.com>
33370
33371         consistently remove $@-t before redirecting to it
33372         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33373         * modules/alloca-opt: Likewise.
33374         * modules/byteswap: Likewise.
33375         * modules/fnmatch: Likewise.
33376         * modules/getopt-posix: Likewise.
33377         * modules/glob: Likewise.
33378         * modules/poll: Likewise.
33379         * modules/posix_spawnp-tests: Likewise.
33380         * modules/sys_socket: Likewise.
33381         * modules/sysexits: Likewise.
33382
33383 2009-08-21  Eric Blake  <ebb9@byu.net>
33384
33385         popen: simplify access to original popen
33386         * lib/popen.c (rpl_popen): No need to worry about popen being a
33387         macro.
33388         Reported by Bruno Haible.
33389
33390 2009-08-20  Eric Blake  <ebb9@byu.net>
33391
33392         build: avoid some compiler warnings
33393         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33394         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33395         type.
33396         (new_exclude_segment, excluded_file_pattern_p)
33397         (excluded_file_name_p): Reduce scope.
33398         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
33399         old-style declaration.
33400
33401 2009-08-20  Simon Josefsson  <simon@josefsson.org>
33402
33403         * tests/test-exclude1.sh: Handle Windows EOL.
33404         * tests/test-exclude2.sh: Likewise.
33405         * tests/test-exclude3.sh: Likewise.
33406         * tests/test-exclude4.sh: Likewise.
33407         * tests/test-exclude5.sh: Likewise.
33408         * tests/test-exclude6.sh: Likewise.
33409         * tests/test-exclude7.sh: Likewise.
33410
33411 2009-08-19  Akim Demaille  <demaille@gostai.com>
33412
33413         bootstrap: find sha1sum when named gsha1sum.
33414         * bootstrap (find_tool): New.
33415         ($SHA1SUM): New.
33416         Use it.
33417
33418 2009-08-20  Jim Meyering  <meyering@redhat.com>
33419
33420         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
33421         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
33422         expression that converts "." in a file name to "\." in the resulting
33423         regexp.  Start with a dummy statement, so that prior shell variable
33424         definitions are expanded portably.  Reported by Simon Josefsson.
33425
33426 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
33427
33428         Fix polling for writeability of a screen buffer.
33429         * lib/poll.c: Distinguish input and screen buffers for the
33430         Win32 implementation.
33431         * lib/select.c: Likewise.
33432
33433 2009-08-19  Eric Blake  <ebb9@byu.net>
33434
33435         popen-safer: prevent popen from clobbering std descriptors
33436         * modules/popen-safer: New file.
33437         * lib/popen-safer.c: Likewise.
33438         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
33439         * lib/stdio--.h (popen): Provide override.
33440         * lib/stdio-safer.h (popen_safer): Provide declaration.
33441         * tests/test-popen.c (includes): Partially test this.
33442         * modules/popen-safer-tests: New file, for more tests.
33443         * tests/test-popen-safer.c: Likewise.
33444         * MODULES.html.sh (file stream based Input/Output): Mention it.
33445
33446         tests: test some of the *-safer modules
33447         * modules/fopen-safer (Depends-on): Add fopen.
33448         * modules/fcntl-safer (Depends-on): Add fcntl.
33449         * modules/stdlib-safer (Depends-on): Add stdlib.
33450         (configure.ac): Set indicator.
33451         * modules/unistd-safer (configure.ac): Likewise.
33452         * modules/tmpfile-safer (configure.ac): Likewise.
33453         (Depends-on): Add tmpfile.
33454         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
33455         active.
33456         * tests/test-fopen.c (includes): Test safer versions when they are
33457         in use.
33458         * tests/test-open.c (includes): Likewise.
33459
33460         popen: fix cygwin 1.5 bug when stdin closed
33461         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
33462         * modules/popen: New file.
33463         * modules/popen-tests: Likewise.
33464         * tests/test-popen.c: Likewise.
33465         * m4/popen.m4: Likewise.
33466         * lib/popen.c: Likewise.
33467         * lib/stdio.in.h (popen): New declaration.
33468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
33469         * modules/stdio (Makefile.am): Likewise.
33470         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
33471
33472 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
33473
33474         maint.mk: give full control over update-copyright exclusions
33475         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
33476         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
33477         (update-copyright): Don't force inclusion of top-level
33478         ChangeLog.  Don't force exclusion of all COPYING files, but make
33479         them the default exclusion instead.
33480
33481 2009-08-16  Bruno Haible  <bruno@clisp.org>
33482
33483         Fix test failures on Solaris 10.
33484         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33485         tests when Solaris iconv() is used.
33486         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33487         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33488         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33489         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33490         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33491
33492 2009-08-16  Bruno Haible  <bruno@clisp.org>
33493
33494         Fix test failures on Solaris 10.
33495         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33496         'tr' program and pass it as first argument.
33497         * tests/test-pipe-filter-gi1.sh: Likewise.
33498         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33499         program as first argument.
33500         * tests/test-pipe-filter-gi1.c (main): Likewise.
33501
33502 2009-08-16  Eric Blake  <ebb9@byu.net>
33503
33504         fpurge: fix previous commits
33505         * modules/fpurge (Makefile.am): Make replacement conditional,
33506         partially reverting 2007-04-29 change; missed in previous
33507         attempt.
33508         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33509         is missing.
33510
33511 2009-08-16  Bruno Haible  <bruno@clisp.org>
33512
33513         Clarify fpurge's effect on the file position.
33514         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33515         * tests/test-fpurge.c (main): Make a second pass for checking the file
33516         position.
33517
33518 2009-08-16  Bruno Haible  <bruno@clisp.org>
33519
33520         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33521         declaration of fpurge is missing.
33522         * tests/test-fpurge.c (main): Check that the file has not more contents
33523         than expected. Close the file before removing it.
33524
33525 2009-08-15  Eric Blake  <ebb9@byu.net>
33526
33527         fpurge: don't wrap working cygwin implementation
33528         * lib/fpurge.c (fpurge): Fix comment typo.
33529         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33530         1.7 to avoid replacement.
33531         * tests/test-fpurge.c (main): Enhance test.
33532
33533 2009-08-15  Eric Blake  <ebb9@byu.net>
33534         and Jim Meyering  <meyering@redhat.com>
33535
33536         test-update-copyright: skip if perl is insufficient
33537         * tests/test-update-copyright.sh: Failure to run maintainer tool
33538         should not cause testsuite failure on cygwin 1.5.
33539
33540 2009-08-14  Eric Blake  <ebb9@byu.net>
33541
33542         doc: mention more functions added in cygwin 1.7.0
33543         * doc/posix-headers/limits.texi (limits.h): Update for recent
33544         cygwin additions.
33545         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33546         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33547         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33548         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33549         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33550
33551 2009-08-14  Eric Blake  <ebb9@byu.net>
33552
33553         maint.mk: simplify update-copyright rule
33554         * top/maint.mk (update-copyright-local): Delete, and document how
33555         to do it in cfg.mk instead.
33556         (update-copyright-exclude-regexp): Delete, and document how to do
33557         it in .x-update-copyright instead.
33558         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33559         exclude ChangeLog.
33560
33561 2009-08-14  Bruno Haible  <bruno@clisp.org>
33562
33563         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33564
33565 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33566
33567         maint.mk: support update-copyright-env
33568         * top/maint.mk (update-copyright-env): Define place-holder.
33569         (update-copyright): Expand $(update-copyright-env) before
33570         invoking update-copyright.
33571
33572 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33573
33574         update-copyright: implement forced reformatting
33575         * build-aux/update-copyright: Implement and document
33576         UPDATE_COPYRIGHT_FORCE.
33577         * tests/test-update-copyright.sh: Test it.
33578
33579 2009-08-14  Eric Blake  <ebb9@byu.net>
33580         and Bruno Haible  <bruno@clisp.org>
33581
33582         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33583         * tests/test-locale.c: Revert previous patch related to NULL.
33584         * tests/test-stdio.c: Likewise.
33585         * tests/test-stdlib.c: Likewise.
33586         * tests/test-string.c: Likewise.
33587         * tests/test-unistd.c: Likewise.
33588         * modules/time-tests (Depends-on): Add verify.
33589         * modules/wchar-tests (Depends-on): Likewise.
33590         * tests/test-time.c: Test for NULL compliance.
33591         * tests/test-wchar.c: Likewise.
33592         * modules/locale (Depends-on): Add stddef.
33593         * modules/stdio (Depends-on): Likewise.
33594         * modules/stdlib (Depends-on): Likewise.
33595         * modules/string (Depends-on): Likewise.
33596         * modules/time (Depends-on): Likewise.
33597         * modules/unistd (Depends-on): Likewise.
33598         * modules/wchar (Depends-on): Likewise.
33599         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33600         * lib/stdlib.in.h (includes): Likewise.
33601         * lib/string.in.h (includes): Likewise.
33602         * lib/time.in.h (includes): Likewise.
33603         * lib/unistd.in.h (includes): Likewise.
33604         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33605         replaced.
33606         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33607         * m4/stddef_h.m4: New file.
33608         * modules/stddef: Likewise.
33609         * lib/stddef.in.h: Likewise.
33610         * modules/stddef-tests: Likewise.
33611         * tests/test-stddef.c: Likewise.
33612         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33613         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33614         * doc/posix-headers/locale.texi (locale.h): Likewise.
33615         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33616         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33617         * doc/posix-headers/string.texi (string.h): Likewise.
33618         * doc/posix-headers/time.texi (time.h): Likewise.
33619         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33620         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33621
33622 2009-08-14  Eric Blake  <ebb9@byu.net>
33623
33624         doc: improve git diff of texinfo files
33625         * .gitattributes: Add rule for *.texi files, with hint on how to
33626         use it.
33627         Copied from m4, and based on a report by Bruno Haible.
33628
33629 2009-08-14  Bruno Haible  <bruno@clisp.org>
33630
33631         Disable multithread support by default on Cygwin 1.5.x for real.
33632         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33633
33634 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33635
33636         update-copyright: much ado about intervals
33637         * build-aux/update-copyright: Implement and document
33638         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33639         of copyright year intervals.
33640         Also, document UPDATE_COPYRIGHT_YEAR.
33641         * tests/test-update-copyright.sh: Test it.
33642
33643         update-copyright: convert 2-digit to 4-digit years
33644         * build-aux/update-copyright: Implement and document.
33645         * tests/test-update-copyright.sh: Update.
33646
33647 2009-08-14  Jim Meyering  <meyering@redhat.com>
33648
33649         test-exclude: avoid coreutils "make check" failure
33650         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33651         just as in test-argmatch.c.
33652
33653 2009-08-13  Eric Blake  <ebb9@byu.net>
33654
33655         test-dup2: fix bad assumption
33656         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33657         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33658
33659         test-version-etc: fix CRLF portability issue
33660         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33661         recognize \r.
33662         * tests/test-argp-version-etc-1.sh: Likewise.
33663
33664         getopt: update client modules
33665         * modules/argp (Depends-on): Use getopt-gnu.
33666         * modules/git-merge-changelog (Depends-on): Likewise.
33667         * modules/long-options (Depends-on): Likewise.
33668         * modules/xstrtol (Depends-on): Likewise.
33669
33670 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33671
33672         * tests/test-version-etc.sh: Don't fail on different
33673         project/version.  Don't fail on CRLF differences.  Rewrite to use
33674         multiple -e instead of multiple sed forks, suggested by Eric Blake
33675         <ebb9@byu.net>.
33676         * tests/test-argp-version-etc-1.sh: Likewise.
33677
33678 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33679
33680         * tests/test-version-etc.sh: Don't fail on different
33681         project/version.
33682
33683 2009-08-12  Bruno Haible  <bruno@clisp.org>
33684
33685         Tests for modules 'getopt-posix', 'getopt-gnu'.
33686         * modules/getopt-posix-tests: New file.
33687         * tests/test-getopt.c: New file.
33688         * tests/test-getopt.h: New file.
33689         * tests/test-getopt_long.h: New file.
33690
33691         New modules 'getopt-posix', 'getopt-gnu'.
33692         * modules/getopt-gnu: New file, renamed from modules/getopt.
33693         * modules/getopt-posix: New file.
33694         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33695         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33696         (gl_GETOPT): Remove macro.
33697         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33698         Disable the test against BSD systems that declare optreset. Test
33699         against mingw bug. Test against lack of support of optional arguments
33700         on many platforms.
33701         * doc/glibc-headers/getopt.texi: Update module name and list of
33702         relevant platforms.
33703         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33704         'getopt-gnu' and more portability problems.
33705         * NEWS: Mention the changes.
33706
33707 2009-08-12  Bruno Haible  <bruno@clisp.org>
33708
33709         Ensure that optarg etc. get declared by <unistd.h>.
33710         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33711         AC_USE_SYSTEM_EXTENSIONS.
33712         * modules/getopt (Depends-on): Add 'extensions'.
33713
33714 2009-08-12  Bruno Haible  <bruno@clisp.org>
33715
33716         Avoid test link errors.
33717         * modules/pipe-filter-ii-tests (Makefile.am): Define
33718         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33719         * modules/pipe-filter-gi-tests (Makefile.am): Define
33720         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33721         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33722
33723 2009-08-12  Bruno Haible  <bruno@clisp.org>
33724
33725         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33726         gl_GETOPT_SUBSTITUTE before.
33727         (gl_GETOPT): Use it.
33728         * m4/argp.m4 (gl_ARGP): Update.
33729         Reported by Sergey Poznyakoff.
33730
33731         * m4/getopt.m4: Reorder macros.
33732         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33733         (gl_GETOPT_SUBSTITUTE): Remove macro.
33734
33735 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33736
33737         Minor improvement in gitlog-to-changelog
33738
33739         * build-aux/gitlog-to-changelog: New option `--format' makes
33740         output format string configurable.
33741
33742 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33743
33744         Optimize exclude: use hash tables for non-wildcard patterns.
33745
33746         * lib/exclude.c: Include hash.h and mbuiter.h
33747         (struct exclude_pattern, exclude_segment): New data types.
33748         (struct exclude): Rewrite.
33749         (fnmatch_pattern_has_wildcards): New function.
33750         (new_exclude_segment, free_exclude_segment): New functions.
33751         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33752         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33753         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33754         * modules/exclude: Depend on hash and mbuiter.
33755
33756         * modules/exclude-tests: New file.
33757         * tests/test-exclude.c: New file.
33758         * tests/test-exclude1.sh: New file.
33759         * tests/test-exclude2.sh: New file.
33760         * tests/test-exclude3.sh: New file.
33761         * tests/test-exclude4.sh: New file.
33762         * tests/test-exclude5.sh: New file.
33763         * tests/test-exclude6.sh: New file.
33764         * tests/test-exclude7.sh: New file.
33765
33766 2009-08-12  Bruno Haible  <bruno@clisp.org>
33767
33768         Ensure that getopt() gets declared by <unistd.h>.
33769         * lib/unistd.in.h: Conditionally include getopt.h.
33770         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33771         Set GNULIB_UNISTD_H_GETOPT.
33772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33773         GNULIB_UNISTD_H_GETOPT.
33774         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33775
33776 2009-08-12  Bruno Haible  <bruno@clisp.org>
33777
33778         Clarify logic.
33779         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33780         gl_replace_getopt instead of GETOPT_H.
33781
33782 2009-08-12  Bruno Haible  <bruno@clisp.org>
33783
33784         * m4/getopt.m4: Add comments.
33785
33786 2009-08-12  Bruno Haible  <bruno@clisp.org>
33787
33788         Disable multithread support by default on Cygwin 1.5.x.
33789         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33790         set gl_use_threads=no if not specified otherwise.
33791
33792 2009-08-11  Bruno Haible  <bruno@clisp.org>
33793
33794         Avoid compilation error on NetBSD 5.0.
33795         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33796         * tests/test-stdio.c: Likewise.
33797         * tests/test-stdlib.c: Likewise.
33798         * tests/test-string.c: Likewise.
33799         * tests/test-unistd.c: Likewise.
33800         Reported by Greg Troxel <gdt@ir.bbn.com>
33801         at <https://savannah.gnu.org/support/?106973>.
33802
33803 2009-08-11  Bruno Haible  <bruno@clisp.org>
33804
33805         * modules/dup2-tests (Depends-on): Remove close.
33806
33807         Undo 2009-07-19 commit.
33808         * modules/acl-tests (Depends-on): Remove close.
33809         * modules/binary-io-tests (Depends-on): Likewise.
33810         * modules/closein-tests (Depends-on): Likewise.
33811         * modules/flock-tests (Depends-on): Likewise.
33812         * modules/fsync-tests (Depends-on): Likewise.
33813         * modules/lseek-tests (Depends-on): Likewise.
33814         * modules/pipe-tests (Depends-on): Likewise.
33815         * modules/posix_spawn-tests (Depends-on): Likewise.
33816         * modules/posix_spawnp-tests (Depends-on): Likewise.
33817         * modules/stat-time-tests (Depends-on): Likewise.
33818         * modules/yesno-tests (Depends-on): Likewise.
33819
33820 2009-08-10  Bruno Haible  <bruno@clisp.org>
33821
33822         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33823
33824 2009-08-10  Bruno Haible  <bruno@clisp.org>
33825
33826         Fix a gcc warning.
33827         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33828
33829 2009-08-10  Bruno Haible  <bruno@clisp.org>
33830
33831         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33832         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33833         not only the first time.
33834         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33835         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33836         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33837         is 1, not only the the first time.
33838
33839 2009-08-10  Bruno Haible  <bruno@clisp.org>
33840
33841         Make it possible to use module 'gethostname' without module 'close'.
33842         * lib/unistd.in.h (close): Evoke a link error only if
33843         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33845         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33846         * modules/unistd (Makefile.am): Substitute
33847         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33848         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33849         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33850         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33851         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33852         * modules/sys_ioctl (Makefile.am): Substitute
33853         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33854         * modules/socket (configure.ac): On native Windows, set
33855         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33856         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33857         Reported by Sam Steingold <sds@gnu.org>.
33858
33859 2009-08-10  Bruno Haible  <bruno@clisp.org>
33860
33861         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33862         * modules/ioctl (configure.ac): Likewise.
33863
33864 2009-08-10  Bruno Haible  <bruno@clisp.org>
33865
33866         Avoid collision between gnulib wrapper and libintl wrapper.
33867         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33868         already defined in intl/printf.c.
33869         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33870         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33871
33872 2009-08-09  Bruno Haible  <bruno@clisp.org>
33873
33874         Make <sys/select.h> really self-contained, also on Solaris 10.
33875         * lib/sys_select.in.h: Include <string.h>.
33876         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33877         Solaris 10 problem.
33878         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33879         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33880         Reported by Jim Meyering.
33881
33882 2009-08-09  Bruno Haible  <bruno@clisp.org>
33883
33884         Avoid warnings from 'aclocal' that are due to a use of macro name
33885         AM_XGETTEXT_OPTION that is not defined in automake.
33886         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33887         automake.
33888         * modules/error (configure.ac): Likewise.
33889         * modules/propername (configure.ac): Likewise.
33890         * modules/vasprintf (configure.ac): Likewise.
33891         * modules/verror (configure.ac): Likewise.
33892         * modules/xprintf (configure.ac): Likewise.
33893         * modules/xvasprintf (configure.ac): Likewise.
33894
33895 2009-08-08  Bruno Haible  <bruno@clisp.org>
33896
33897         Avoid compilation error in C++ mode.
33898         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33899         Reported by Sam Steingold <sds@gnu.org>.
33900
33901 2009-08-08  Bruno Haible  <bruno@clisp.org>
33902
33903         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33904         for the various Unix platforms.
33905         * doc/posix-headers/limits.texi: Update platforms list regarding
33906         HOST_NAME_MAX.
33907         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33908
33909 2009-08-07  Jim Meyering  <meyering@redhat.com>
33910
33911         selinux-at: fix typo in a comment
33912         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33913         Spotted by Paolo Bonzini.
33914
33915         selinux-at: remove redundant m4 code, add documentation
33916         * modules/selinux-at (configure.ac): Remove redundant code.
33917         LIB_SELINUX is already set via the dependent module, selinux-h.
33918         (Include): Add quotes around selinux-at.h.
33919         * lib/selinux-at.h: Add documentation.
33920         Reported by Bruno Haible in
33921         http://marc.info/?l=gnulib-bug&m=124958988300749
33922
33923 2009-08-07  Bruno Haible  <bruno@clisp.org>
33924
33925         Avoid link error on MacOS X 10.3 and 10.4.
33926         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33927         on non-ELF systems.
33928         * lib/argp-pv.c (argp_program_version): Likewise.
33929         Reported by Simon Josefsson.
33930
33931 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33932
33933         * tests/test-version-etc.sh: Use $EXEEXT.
33934
33935 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33936
33937         update-copyright: update documentation to point to maint.mk
33938         * build-aux/update-copyright: Here.
33939
33940 2009-08-06  Jim Meyering  <meyering@redhat.com>
33941
33942         maint.mk: support update-copyright-local
33943         * top/maint.mk (update-copyright-local): Define place-holder.
33944         (update-copyright): Depend on $(update-copyright-local).
33945
33946 2009-08-06  Jim Meyering  <meyering@redhat.com>
33947
33948         selinux-at: new module
33949         Initially written for coreutils, this module will soon be
33950         used by findutils, too.
33951         * MODULES.html.sh [Misc]: Add selinux-at.
33952         * lib/selinux-at.h: New file, from coreutils.
33953         * lib/selinux-at.c: Likewise.
33954         * modules/selinux-at: Likewise.
33955         (License): Change from LGPL to GPL, since it depends
33956         on the GPL'd openat module.
33957
33958         doc: update README
33959         * README: Remove references to cogito.
33960         Remove cvs-repo-updating instructions from 2007.
33961         Don't imply that CVS is better if you have limited disk space.
33962
33963 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33964
33965         update-copyright: support C-style comments
33966         * build-aux/update-copyright: Implement and document.
33967         * tests/test-update-copyright.sh: Test.
33968
33969 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33970
33971         update-copyright: support omitted "(C)"
33972         * build-aux/update-copyright: Implement and document.  Also,
33973         allow variable whitespace before "(C)".
33974         * tests/test-update-copyright.sh: Test.
33975
33976 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33977
33978         update-copyright: don't trip on non-FSF copyright statements
33979         * build-aux/update-copyright: Fix so that the first correctly
33980         formatted FSF copyright statement is recognized no matter what
33981         appears before it.  Update documentation.
33982         * tests/test-update-copyright.sh: Test that.
33983
33984 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33985
33986         update-copyright: clean up code a little
33987         * build-aux/update-copyright: Append "_re" to the name of any
33988         variable holding a regular expression.
33989         Replace "old" and "new" with "stmt" in variable names.
33990         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33991         handled correctly.
33992         Format code more consistently.
33993
33994 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33995
33996         update-copyright-tests: improve portability
33997         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33998         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33999
34000 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34001
34002         update-copyright: support @copyright{} and &copy;
34003         * build-aux/update-copyright: Implement and document.
34004         * tests/test-update-copyright.sh: Test.
34005
34006 2009-08-04  Jim Meyering  <meyering@redhat.com>
34007
34008         update-copyright-tests: correctly test EOL=\r\n handling
34009         * tests/test-update-copyright.sh: Put \r at the end of some lines
34010         for the dos-eol tests.  Based on a patch by Joel E. Denny.
34011
34012         maint.mk: make update-copyright exclusion list more configurable
34013         * top/maint.mk (update-copyright): Default to excluding COPYING,
34014         but allow an override, in case someone does want to update that file.
34015
34016         maint.mk: don't update copyright date in COPYING
34017         * top/maint.mk (update-copyright): Exclude COPYING.
34018
34019         maint.mk: add a copyright-updating rule
34020         * top/maint.mk (update-copyright): New rule.
34021         Derived from coreutils/Makefile.am.
34022
34023         update-copyright: rename some variables
34024         * build-aux/update-copyright: Rename a few variables for clarity.
34025         Tweak syntax.  List Joel E. Denny as coauthor.
34026
34027 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34028
34029         update-copyright: fix bug for 2-digit last year and add tests
34030         * build-aux/update-copyright: Fix bug.
34031         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
34032         specified.
34033         * modules/update-copyright-tests: New
34034         * tests/test-update-copyright.sh: New.
34035
34036 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34037
34038         update-copyright: handle leading tabs in line prefix
34039         * build-aux/update-copyright: Count leading tabs as 8 spaces
34040         when computing margin.  This helps with the formatting of
34041         ChangeLogs, for example.
34042         Fix documentation a little.
34043
34044 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34045
34046         update-copyright: support EOL=\r\n
34047         * build-aux/update-copyright: Implement that.
34048
34049 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34050
34051         update-copyright: automatically format copyright statements
34052         * build-aux/update-copyright: Implement that.
34053         Also, be a little more predictable and safer by always failing
34054         when the full copyright format is not perfectly recognized as an
34055         unbroken whole.  Discussed at
34056         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
34057         Rewrite documentation.
34058
34059 2009-08-03  Bruno Haible  <bruno@clisp.org>
34060
34061         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
34062
34063 2009-08-02  Bruno Haible  <bruno@clisp.org>
34064
34065         Tests for module 'uname'.
34066         * modules/uname-tests: New file.
34067         * tests/test-uname.c: New file.
34068
34069         New module 'uname'.
34070         * lib/uname.c: New file.
34071         * m4/uname.m4: New file.
34072         * modules/uname: New file.
34073         * doc/posix-functions/uname.texi: Mention the new module.
34074
34075 2009-08-02  Bruno Haible  <bruno@clisp.org>
34076
34077         Tests for module 'sys_utsname'.
34078         * modules/sys_utsname-tests: New file.
34079         * tests/test-sys_utsname.c: New file.
34080
34081         New module 'sys_utsname'.
34082         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
34083         * m4/sys_utsname_h.m4: New file.
34084         * modules/sys_utsname: New file.
34085         * doc/posix-headers/sys_utsname.texi: Mention the new module.
34086
34087 2009-08-02  Bruno Haible  <bruno@clisp.org>
34088
34089         Implicitly initialize the sockets library.
34090         * lib/gethostname.c: Include sockets.h.
34091         (rpl_gethostname): Invoke gl_sockets_startup.
34092         * lib/socket.c: Include sockets.h.
34093         (rpl_socket): Invoke gl_sockets_startup.
34094         * modules/gethostname (Depends-on): Add sockets.
34095         * modules/socket (Depends-on): Likewise.
34096         * tests/test-poll.c: Don't include sockets.h.
34097         (main): Don't invoke gl_sockets_startup.
34098         * tests/test-select.c: Don't include sockets.h.
34099         (main): Don't invoke gl_sockets_startup.
34100
34101 2009-08-02  Bruno Haible  <bruno@clisp.org>
34102
34103         Allow multiple calls to gl_sockets_startup.
34104         * lib/sockets.c (initialized_sockets_version): New variable.
34105         (gl_sockets_startup): Do nothing if already called for this or a higher
34106         version.
34107         (gl_sockets_cleanup): Reset initialized_sockets_version.
34108
34109 2009-08-03  Simon Josefsson  <simon@josefsson.org>
34110
34111         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
34112         different project/version.
34113
34114 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
34115             Bruno Haible  <bruno@clisp.org>
34116
34117         Tests for module 'pipe-filter-gi'.
34118         * modules/pipe-filter-gi-tests: New file.
34119         * tests/test-pipe-filter-gi1.sh: New file.
34120         * tests/test-pipe-filter-gi1.c: New file.
34121         * tests/test-pipe-filter-gi2.sh: New file.
34122         * tests/test-pipe-filter-gi2-main.c: New file.
34123         * tests/test-pipe-filter-gi2-child.c: New file.
34124
34125         New module 'pipe-filter-gi'.
34126         * lib/pipe-filter-gi.c: New file.
34127         * modules/pipe-filter-gi: New file.
34128
34129 2009-08-02  Bruno Haible  <bruno@clisp.org>
34130             Paolo Bonzini  <bonzini@gnu.org>
34131
34132         Tests for module 'pipe-filter-ii'.
34133         * modules/pipe-filter-ii-tests: New file.
34134         * tests/test-pipe-filter-ii1.sh: New file.
34135         * tests/test-pipe-filter-ii1.c: New file.
34136         * tests/test-pipe-filter-ii2.sh: New file.
34137         * tests/test-pipe-filter-ii2-main.c: New file.
34138         * tests/test-pipe-filter-ii2-child.c: New file.
34139
34140         New module 'pipe-filter-ii'.
34141         * lib/pipe-filter.h: New file.
34142         * lib/pipe-filter-ii.c: New file.
34143         * lib/pipe-filter-aux.h: New file.
34144         * modules/pipe-filter-ii: New file.
34145
34146 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34147
34148         * lib/gc-libgcrypt.c: Change copyright to FSF.
34149         * lib/gc-gnulib.c: Likewise.
34150
34151 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
34152
34153         * lib/gethostname.c: Include limits.h.
34154
34155 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34156             Bruno Haible  <bruno@clisp.org>
34157
34158         Ensure HOST_NAME_MAX as part of the gethostname module.
34159         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
34160         define also HOST_NAME_MAX.
34161         * tests/test-gethostname.c: Include <limits.h>.
34162         (main): Check also HOST_NAME_MAX.
34163         * doc/posix-headers/limits.texi: Document the mingw problem.
34164
34165 2009-08-02  Bruno Haible  <bruno@clisp.org>
34166
34167         * lib/gethostname.c (gethostname): Fix handling of large len argument.
34168         Add comments.
34169
34170 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34171
34172         * lib/gethostname.c: Add Windows wrapper.
34173         * m4/gethostname.m4: Look for gethostname in -lws2_32.
34174         * modules/gethostname: Depend on sys_socket & errno, for also
34175         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
34176         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
34177
34178 2009-07-31  Jim Meyering  <meyering@redhat.com>
34179
34180         getloadavg: fix symbol name in comment
34181         * lib/getloadavg.c: Correct a typo I introduced when adding
34182         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
34183         Matt Kraai spotted the problem.
34184
34185 2009-07-29  Matt Kraai  <mkraai@beckman.com>
34186
34187         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
34188         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
34189         code also if ! defined N_NAME_POINTER.
34190         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
34191         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
34192         but the n_name member is a 12-byte array.
34193
34194 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
34195
34196         update-copyright: generalize comment handling
34197         * build-aux/update-copyright: Handle copyright statements
34198         within more comment styles.
34199         Document usage.
34200         Report any file with an external copyright holder or parse failure.
34201
34202 2009-07-29  Jim Meyering  <meyering@redhat.com>
34203
34204         mktime: correct setting of REPLACE_MKTIME
34205         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
34206
34207         update-copyright: new module
34208         * modules/update-copyright: New file.
34209         * build-aux/update-copyright: New file.
34210         * MODULES.html.sh (maint+release support): Add update-copyright.
34211
34212 2009-07-27  Bruno Haible  <bruno@clisp.org>
34213
34214         Fix compilation error when <ctime> is used and mktime is replaced.
34215         * lib/time.in.h (mktime): New declaration.
34216         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
34217         REPLACE_MKTIME instead of defining mktime in config.h.
34218         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
34219         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
34220         Reported by Ross McFarland <rwmcfa1@neces.com>.
34221
34222 2009-07-27  Bruno Haible  <bruno@clisp.org>
34223
34224         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
34225         Reported by Matt Kraai <mkraai@beckman.com>.
34226
34227 2009-07-25  Jim Meyering  <meyering@redhat.com>
34228
34229         maint.mk: avoid warnings about missing files
34230         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
34231         diagnostic when .prev-version does not exist.
34232         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
34233         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
34234         nonexistent cfg.mk.
34235         Suggestions from Simon Josefsson.
34236
34237 2009-07-25  Bruno Haible  <bruno@clisp.org>
34238
34239         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
34240         defined as macros. Needed on QNX 6.4.1.
34241         Reported by Matt Kraai <mkraai@beckman.com>.
34242
34243 2009-07-23  Jim Meyering  <meyering@redhat.com>
34244
34245         maint.mk: invoke "make dist" with a working value of XZ_OPT
34246         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
34247
34248 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
34249
34250         Make fseeko.c compile on QNX.
34251         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
34252
34253 2009-07-22  Peter Simons  <simons@cryp.to>
34254
34255         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34256         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34257         * lib/md4.h: Likewise.
34258         * lib/md5.h: Likewise.
34259         * lib/sha1.h: Likewise.
34260         * lib/sha256.h: Likewise.
34261         * lib/sha512.h: Likewise.
34262
34263         tests-sha1: don't assign literal string to 'char *' variable
34264         * tests/test-sha1.c (main): Declare locals with "const" to match
34265         attributes of the right hand side.
34266
34267 2009-07-21  Eric Blake  <ebb9@byu.net>
34268
34269         dup2: fix more mingw problems
34270         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34271         fd to itself.
34272         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34273         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34274         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34275         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34276         care of mingw bugs.
34277
34278 2009-07-21  Jim Meyering  <meyering@redhat.com>
34279
34280         vc-list-files: avoid failure when /bin/sh is dash
34281         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34282         On some Debian based systems, /bin/sh is a symlink to dash, and running
34283         this command would omit the "/" following each 'tests' prefix:
34284           dash -x build-aux/vc-list-files -C . tests
34285         That is because bash and dash work differently:
34286           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34287           bash ok
34288           dash odd
34289
34290 2009-07-21  Eric Blake  <ebb9@byu.net>
34291
34292         dup2-tests: test previous patch
34293         * modules/dup2-tests: New file.
34294         * tests/test-dup2.c: Likewise.
34295         * tests/test-open.c (main): Avoid unspecified behavior.
34296         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34297         test.
34298
34299         dup2: work around mingw and cygwin 1.5 bug
34300         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34302         * modules/unistd (Makefile.am): Substitute it.
34303         * lib/unistd.in.h (dup2): Declare the replacement.
34304         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34305         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34306         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34307         * modules/execute (Depends-on): Add dup2.
34308         * modules/fseterr (Depends-on): Likewise.
34309         * modules/pipe (Depends-on): Likewise.
34310         * modules/posix_spawn-internal (Depends-on): Likewise.
34311
34312 2009-07-21  Bruno Haible  <bruno@clisp.org>
34313
34314         * modules/.gitattributes: New file.
34315
34316 2009-07-20  Bruno Haible  <bruno@clisp.org>
34317
34318         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34319         (main): Use it.
34320
34321 2009-07-20  Eric Blake  <ebb9@byu.net>
34322
34323         test-pipe: make a bit more robust.
34324         * tests/test-pipe.c (myerr): Allow error messages regardless of
34325         what we do to stderr.
34326         (test_pipe): Rearrange to avoid deadlock.
34327         (child_main): Try a larger read, to ensure we avoided deadlock.
34328         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34329         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34330         if misused.
34331
34332 2009-07-19  Jim Meyering  <meyering@redhat.com>
34333
34334         fts: avoid false-positive cycle-detection
34335         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34336         for each new command line argument.
34337
34338 2009-07-19  Bruno Haible  <bruno@clisp.org>
34339
34340         Fix build error on mingw with the modules sys_select and unistd.
34341         * modules/acl-tests (Depends-on): Add close.
34342         * modules/binary-io-tests (Depends-on): Likewise.
34343         * modules/closein-tests (Depends-on): Likewise.
34344         * modules/flock-tests (Depends-on): Likewise.
34345         * modules/fsync-tests (Depends-on): Likewise.
34346         * modules/lseek-tests (Depends-on): Likewise.
34347         * modules/pipe-tests (Depends-on): Likewise.
34348         * modules/posix_spawn-tests (Depends-on): Likewise.
34349         * modules/posix_spawnp-tests (Depends-on): Likewise.
34350         * modules/stat-time-tests (Depends-on): Likewise.
34351         * modules/yesno-tests (Depends-on): Likewise.
34352
34353 2009-07-19  Bruno Haible  <bruno@clisp.org>
34354
34355         Unify conditionals.
34356         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34357         macros, not at the compiler macros.
34358         * lib/pipe.c: Likewise.
34359         * lib/execute.c: Likewise.
34360         * lib/spawni.c: Likewise.
34361
34362 2009-07-19  Bruno Haible  <bruno@clisp.org>
34363
34364         Fix handling of closed stdin/stdout/stderr on mingw.
34365         * lib/w32spawn.h: Include unistd.h.
34366         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34367         file descriptor with O_NOINHERIT flag.
34368         (fd_safer_noinherit): New function, based on fd-safer.c.
34369         (dup_safer_noinherit): New function, based on dup-safer.c.
34370         (undup_safer_noinherit): New function.
34371         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34372         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34373         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34374         instead of fd_safer.
34375         * tests/test-pipe.c: Include <windows.h>.
34376         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34377         result.
34378
34379         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34380         from main.
34381         (test_pipe): Pass an extra argument for disambiguation.
34382         (main): Invoke parent_main or child_main.
34383
34384         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34385         consistently.
34386
34387 2009-07-18  Eric Blake  <ebb9@byu.net>
34388
34389         test-pipe: fix mingw build
34390         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34391
34392 2009-07-18  Bruno Haible  <bruno@clisp.org>
34393
34394         * modules/pipe-tests (Makefile.am): Fix typo.
34395
34396 2009-07-18  Eric Blake  <ebb9@byu.net>
34397
34398         error: fix mingw build
34399         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
34400         Reported by Bruno Haible.
34401
34402         error: avoid undefined use of stdout
34403         * lib/error.c (error, error_at_line): Check that fd 1 is open
34404         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
34405         is handling faults and the close_stdout module wants to report the
34406         detection of closed stdout as an error.
34407
34408 2009-07-17  Eric Blake  <ebb9@byu.net>
34409
34410         pipe: be robust in face of closed fds
34411         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
34412         should cause child to misbehave.
34413         * modules/pipe-tests: New module.
34414         * tests/test-pipe.c: New file.
34415         * tests/test-pipe.sh: New file.
34416         Reported by Akim Demaille.
34417
34418 2009-07-14  Bruno Haible  <bruno@clisp.org>
34419
34420         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
34421         Reported by anonymous kc.
34422
34423 2009-07-07  Jim Meyering  <meyering@redhat.com>
34424
34425         maint.mk: don't look for translatable strings in *.m4 or *.mk
34426         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
34427         when searching for translatable strings.
34428
34429 2009-07-05  Jim Meyering  <meyering@redhat.com>
34430
34431         remove superfluous parentheses in STREQ definition
34432         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
34433         * lib/getugroups.c (STREQ): Likewise.
34434         * lib/fnmatch.c (STREQ): Likewise.
34435         Spotted by Bruno Haible.
34436
34437 2009-07-04  Jim Meyering  <meyering@redhat.com>
34438
34439         argv-iter: new module
34440         * MODULES.html.sh: Add argv-iter.
34441         * lib/argv-iter.c, lib/argv-iter.h: New files.
34442         * modules/argv-iter: New file.
34443         * modules/argv-iter-tests: New file.
34444         * tests/test-argv-iter.c: Test it.
34445
34446 2009-07-04  Bruno Haible  <bruno@clisp.org>
34447
34448         Fix assertion.
34449         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
34450         contains more exact copies of a given entry than file2, leave the extra
34451         copies unpaired rather than aborting.
34452         Reported by Eric Blake.
34453
34454 2009-07-02  Bruno Haible  <bruno@clisp.org>
34455
34456         Speedup git-merge-changelog for git cherry-pick.
34457         * lib/git-merge-changelog.c (struct entries_mapping): New type.
34458         (entries_mapping_get): New function, extracted from compute_mapping.
34459         (entries_mapping_reverse_get): New function.
34460         (compute_mapping): Add a 'full' argument. Return the result in a
34461         'struct entries_mapping'.
34462         (main): Update. Access the mappings through entries_mapping_get.
34463         Reported by Eric Blake.
34464
34465 2009-07-02  Bruno Haible  <bruno@clisp.org>
34466
34467         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
34468         best_i.
34469
34470 2009-07-02  Bruno Haible  <bruno@clisp.org>
34471
34472         Speed up approximate search for matching ChangeLog entries.
34473         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
34474         argument. Call fstrcmp_bounded instead of fstrcmp.
34475         (compute_mapping, try_split_merged_entry, main): Update callers.
34476
34477 2009-07-02  Bruno Haible  <bruno@clisp.org>
34478
34479         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34480
34481 2009-06-30  Bruno Haible  <bruno@clisp.org>
34482
34483         Reduce the number of uc_is_cased calls.
34484         * lib/unicase.h (casing_suffix_context_t): Add
34485         'first_char_except_ignorable' field.
34486         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34487         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34488         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34489         Update initializer.
34490         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34491         case-ignorable characters.
34492         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34493         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34494         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34495         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34496         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34497
34498 2009-06-30  Bruno Haible  <bruno@clisp.org>
34499
34500         Tests for module 'unicase/ignorable'.
34501         * modules/unicase/ignorable-tests: New file.
34502         * tests/unicase/test-ignorable.c: New file, generated by
34503         gen-uni-tables.
34504
34505         Tests for module 'unicase/cased'.
34506         * modules/unicase/cased-tests: New file.
34507         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34508         * tests/unicase/test-predicate-part1.h: New file, derived from
34509         tests/unictype/test-predicate-part1.h.
34510         * tests/unicase/test-predicate-part2.h: New file, same as
34511         tests/unictype/test-predicate-part2.h.
34512
34513         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34514         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34515         (output_casing_properties): New function.
34516         (main): Call it.
34517         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34518         * lib/unicase/cased.c: Include unictype/bitmap.h.
34519         (uc_is_cased): Define through a bitmap lookup.
34520         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34521         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34522         (uc_is_case_ignorable): Define through a bitmap lookup.
34523         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34524         lib/unictype/bitmap.h.
34525         (Depends-on): Add inline. Clean up.
34526         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34527         lib/unictype/bitmap.h.
34528         (Depends-on): Add inline. Clean up.
34529         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34530         recognition.
34531         * tests/unicase/test-u16-tolower.c (main): Likewise.
34532         * tests/unicase/test-u32-tolower.c (main): Likewise.
34533
34534 2009-06-30  Bruno Haible  <bruno@clisp.org>
34535
34536         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34537         * lib/unicase/u16-casemap.c: Likewise.
34538         * lib/unicase/u32-casemap.c: Likewise.
34539
34540 2009-06-29  Bruno Haible  <bruno@clisp.org>
34541
34542         Define u32_casefold as a wrapper around u32_ct_casefold.
34543         * lib/unicase/u32-casefold.c: Update.
34544         * modules/unicase/u32-casefold (Depends-on): Add
34545         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34546         unicase/empty-suffix-context. Clean up.
34547
34548         Define u16_casefold as a wrapper around u16_ct_casefold.
34549         * lib/unicase/u16-casefold.c: Update.
34550         * modules/unicase/u16-casefold (Depends-on): Add
34551         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34552         unicase/empty-suffix-context. Clean up.
34553
34554         Define u8_casefold as a wrapper around u8_ct_casefold.
34555         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34556         * lib/unicase/u8-casefold.c: Update.
34557         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34558         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34559
34560         Define u32_totitle as a wrapper around u32_ct_totitle.
34561         * lib/unicase/u32-totitle.c: Update.
34562         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34563         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34564
34565         Define u16_totitle as a wrapper around u16_ct_totitle.
34566         * lib/unicase/u16-totitle.c: Update.
34567         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34568         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34569
34570         Define u8_totitle as a wrapper around u8_ct_totitle.
34571         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34572         functions.
34573         (FUNC): Delegate to U_CT_TOTITLE.
34574         * lib/unicase/u8-totitle.c: Update.
34575         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34576         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34577
34578         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34579         invocation.
34580         * modules/unicase/u32-tolower (Depends-on): Add
34581         unicase/empty-prefix-context, unicase/empty-suffix-context.
34582
34583         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34584         invocation.
34585         * modules/unicase/u16-tolower (Depends-on): Add
34586         unicase/empty-prefix-context, unicase/empty-suffix-context.
34587
34588         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34589         * modules/unicase/u8-tolower (Depends-on): Add
34590         unicase/empty-prefix-context, unicase/empty-suffix-context.
34591
34592         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34593         invocation.
34594         * modules/unicase/u32-toupper (Depends-on): Add
34595         unicase/empty-prefix-context, unicase/empty-suffix-context.
34596
34597         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34598         invocation.
34599         * modules/unicase/u16-toupper (Depends-on): Add
34600         unicase/empty-prefix-context, unicase/empty-suffix-context.
34601
34602         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34603         * modules/unicase/u8-toupper (Depends-on): Add
34604         unicase/empty-prefix-context, unicase/empty-suffix-context.
34605
34606         New module 'unicase/u32-ct-casefold'.
34607         * lib/unicase/u32-ct-casefold.c: New file.
34608         * modules/unicase/u32-ct-casefold: New file.
34609
34610         New module 'unicase/u16-ct-casefold'.
34611         * lib/unicase/u16-ct-casefold.c: New file.
34612         * modules/unicase/u16-ct-casefold: New file.
34613
34614         New module 'unicase/u8-ct-casefold'.
34615         * lib/unicase/u8-ct-casefold.c: New file.
34616         * lib/unicase/u-ct-casefold.h: New file, derived from
34617         lib/unicase/u-casefold.h.
34618         * modules/unicase/u8-ct-casefold: New file.
34619
34620         New module 'unicase/u32-ct-totitle'.
34621         * lib/unicase/u32-ct-totitle.c: New file.
34622         * modules/unicase/u32-ct-totitle: New file.
34623
34624         New module 'unicase/u16-ct-totitle'.
34625         * lib/unicase/u16-ct-totitle.c: New file.
34626         * modules/unicase/u16-ct-totitle: New file.
34627
34628         New module 'unicase/u8-ct-totitle'.
34629         * lib/unicase/u8-ct-totitle.c: New file.
34630         * lib/unicase/u-ct-totitle.h: New file, derived from
34631         lib/unicase/u-totitle.h.
34632         * modules/unicase/u8-ct-totitle: New file.
34633
34634         New module 'unicase/u32-ct-tolower'.
34635         * lib/unicase/u32-ct-tolower.c: New file.
34636         * modules/unicase/u32-ct-tolower: New file.
34637
34638         New module 'unicase/u16-ct-tolower'.
34639         * lib/unicase/u16-ct-tolower.c: New file.
34640         * modules/unicase/u16-ct-tolower: New file.
34641
34642         New module 'unicase/u8-ct-tolower'.
34643         * lib/unicase/u8-ct-tolower.c: New file.
34644         * modules/unicase/u8-ct-tolower: New file.
34645
34646         New module 'unicase/u32-ct-toupper'.
34647         * lib/unicase/u32-ct-toupper.c: New file.
34648         * modules/unicase/u32-ct-toupper: New file.
34649
34650         New module 'unicase/u16-ct-toupper'.
34651         * lib/unicase/u16-ct-toupper.c: New file.
34652         * modules/unicase/u16-ct-toupper: New file.
34653
34654         New module 'unicase/u8-ct-toupper'.
34655         * lib/unicase/u8-ct-toupper.c: New file.
34656         * modules/unicase/u8-ct-toupper: New file.
34657
34658         Add context arguments to u*_casemap functions.
34659         * lib/unicase/unicasemap.h: Include unicase.h.
34660         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34661         suffix_context arguments.
34662         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34663         functions.
34664         (FUNC): Add prefix_context and suffix_context arguments. Use
34665         uc_is_cased and uc_is_case_ignorable.
34666         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34667         * lib/unicase/u16-casemap.c: Likewise.
34668         * lib/unicase/u32-casemap.c: Likewise.
34669         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34670         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34671         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34672         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34673         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34674         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34675
34676         New module 'unicase/u32-suffix-context'.
34677         * lib/unicase/u32-suffix-context.c: New file.
34678         * modules/unicase/u32-suffix-context: New file.
34679
34680         New module 'unicase/u16-suffix-context'.
34681         * lib/unicase/u16-suffix-context.c: New file.
34682         * modules/unicase/u16-suffix-context: New file.
34683
34684         New module 'unicase/u8-suffix-context'.
34685         * lib/unicase/u8-suffix-context.c: New file.
34686         * lib/unicase/u-suffix-context.h: New file.
34687         * modules/unicase/u8-suffix-context: New file.
34688
34689         New module 'unicase/empty-suffix-context'.
34690         * lib/unicase/empty-suffix-context.c: New file.
34691         * modules/unicase/empty-suffix-context: New file.
34692
34693         New module 'unicase/u32-prefix-context'.
34694         * lib/unicase/u32-prefix-context.c: New file.
34695         * modules/unicase/u32-prefix-context: New file.
34696
34697         New module 'unicase/u16-prefix-context'.
34698         * lib/unicase/u16-prefix-context.c: New file.
34699         * modules/unicase/u16-prefix-context: New file.
34700
34701         New module 'unicase/u8-prefix-context'.
34702         * lib/unicase/u8-prefix-context.c: New file.
34703         * lib/unicase/u-prefix-context.h: New file.
34704         * lib/unicase/context.h: New file.
34705         * modules/unicase/u8-prefix-context: New file.
34706
34707         New module 'unicase/empty-prefix-context'.
34708         * lib/unicase/empty-prefix-context.c: New file.
34709         * modules/unicase/empty-prefix-context: New file.
34710
34711         New module 'unicase/ignorable'.
34712         * lib/unicase/ignorable.c: New file.
34713         * modules/unicase/ignorable: New file.
34714
34715         New module 'unicase/cased'.
34716         * lib/unicase/caseprop.h: New file.
34717         * lib/unicase/cased.c: New file.
34718         * modules/unicase/cased: New file.
34719
34720         New functions for case mapping of substrings.
34721         * lib/unicase.h (casing_prefix_context_t): New type.
34722         (unicase_empty_prefix_context): New variable.
34723         (u8_casing_prefix_context, u16_casing_prefix_context,
34724         u32_casing_prefix_context, u8_casing_prefixes_context,
34725         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34726         declarations.
34727         (casing_suffix_context_t): New type.
34728         (unicase_empty_suffix_context): New variable.
34729         (u8_casing_suffix_context, u16_casing_suffix_context,
34730         u32_casing_suffix_context, u8_casing_suffixes_context,
34731         u16_casing_suffixes_context, u32_casing_suffixes_context,
34732         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34733         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34734         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34735         declarations.
34736
34737 2009-06-28  Jim Meyering  <meyering@redhat.com>
34738
34739         boostrap: indent only with spaces
34740         * build-aux/bootstrap: Indent only with spaces, never TABs.
34741
34742         bootstrap: split long lines
34743         * build-aux/bootstrap: Keep line length < 80.
34744
34745         bootstrap: sync from coreutils
34746         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34747         just as autoreconf does.  Verify a list of prerequisite
34748         package-name,version-number pairs if defined in bootstrap.conf.
34749         Refer to README-prereq, if prerequisites are not satisfied.
34750
34751 2009-06-27  Eric Blake  <ebb9@byu.net>
34752
34753         tests: add test for bogus NULL definition
34754         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34755         * tests/test-stdlib.c: Likewise.
34756         * tests/test-string.c: Likewise.
34757         * tests/test-locale.c: Likewise.
34758         * tests/test-unistd.c: Likewise.
34759         * modules/stdio-tests (Depends-on): Add verify.
34760         * modules/stdlib-tests (Depends-on): Likewise.
34761         * modules/string-tests (Depends-on): Likewise.
34762         * modules/locale-tests (Depends-on): Likewise.
34763         * modules/unistd-tests (Depends-on): Likewise.
34764
34765 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34766
34767         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34768         self-explaining comment.
34769         * m4/selinux-selinux-h: Update serial.
34770         (gl_LIBSELINUX): New macro, adding a warning for missing development
34771         packages to code extracted from...
34772         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34773         Add warning for missing development packages here, too.
34774
34775 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34776
34777         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34778
34779 2009-06-25  Eric Blake  <ebb9@byu.net>
34780
34781         version-etc: fix regression
34782         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34783         gcc.
34784         (version_etc): Use it, to catch bugs with trailing NULL.
34785         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34786         (version_etc_va): Fix logic bug.
34787         * modules/version-etc-tests: Add test.
34788         * tests/test-version-etc.c: New file.
34789         * tests/test-version-etc.sh: Likewise.
34790
34791 2009-06-25  Sam Steingold  <sds@gnu.org>
34792
34793         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34794         mbtowc declaration.
34795
34796 2009-06-25  Eric Blake  <ebb9@byu.net>
34797
34798         fpurge: migrate into <stdio.h>
34799         * lib/fpurge.h: Delete...
34800         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34801         * lib/fpurge.c (fpurge): Change declaring header.
34802         * modules/fpurge (Files): Drop deleted file.
34803         (Depends-on): Add stdio.
34804         (configure.ac): Set witness.
34805         * modules/stdio (Makefile.am): Support fpurge macros.
34806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34807         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34808         * lib/fflush.c: Update client.
34809         * tests/test-fpurge.c: Likewise.
34810         * NEWS: Mention the change.
34811
34812 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34813
34814         * lib/argp-version-etc.c (program_authors): Add const
34815         qualifier.
34816         * lib/version-etc.c: Fix typos in the comments.
34817         * modules/argp-version-etc: Depends on version-etc.
34818
34819 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34820
34821         argp-version-etc: new module.
34822
34823         * lib/argp-version-etc.c: New file.
34824         * lib/argp-version-etc.h: New file.
34825         * modules/argp-version-etc: New file.
34826         * modules/argp-version-etc-tests: New file.
34827         * tests/test-argp-version-etc.c: New test.
34828         * tests/test-argp-version-etc-1.sh: New test.
34829
34830 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34831
34832         Provide additional interfaces and documentation for version-etc
34833         module.
34834
34835         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34836         interfaces.
34837         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34838         prototypes.
34839
34840 2009-06-24  Bruno Haible  <bruno@clisp.org>
34841
34842         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34843         HAVE_LIB${NAME} macro.
34844         Reported by Sam Steingold <sds@gnu.org>.
34845
34846 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34847
34848         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34849         needed.
34850
34851 2009-06-21  Bruno Haible  <bruno@clisp.org>
34852
34853         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34854         work.
34855         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34856         together with LIB${NAME}, LTLIB${NAME}.
34857         Reported by Sam Steingold <sds@gnu.org>.
34858
34859 2009-06-20  Jim Meyering  <meyering@redhat.com>
34860
34861         tests: make sc_require_test_exit_idiom more generic
34862         * top/maint.mk (Exit_witness_file): New overridable variable.
34863         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34864         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34865
34866 2009-06-19  Jim Meyering  <meyering@redhat.com>
34867
34868         hash: reverse order of src/dst parameters in an internal interface
34869         * lib/hash.c (transfer_entries): Reverse order of parameters to
34870         put DST before SRC.  Adjust callers.
34871
34872         tests: test-hash: avoid wholesale duplication
34873         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34874         Instead, use a loop and add a single conditional.
34875
34876         tests: test-hash: allow seed selection via a command line argument
34877         * tests/test-hash.c (get_seed): New function.
34878         (main): Use it.
34879
34880 2009-06-19  Eric Blake  <ebb9@byu.net>
34881
34882         hash: avoid memory leak on allocation failure
34883         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34884         failure.  Factor repeated algorithm...
34885         (transfer_entries): ...into new helper routine.
34886         (hash_delete): React to hash_rehash return value.
34887
34888         hash: reduce memory pressure in hash_rehash no-op case
34889         * lib/hash.c (next_prime): Avoid overflow.
34890         (hash_initialize): Factor bucket size computation...
34891         (compute_bucket_size): ...into new helper function.
34892         (hash_rehash): Use new function and open coding to reduce memory
34893         pressure, and avoid a memory leak in USE_OBSTACK code.
34894         Reported by Jim Meyering.
34895
34896 2009-06-18  Eric Blake  <ebb9@byu.net>
34897
34898         hash: make rotation more obvious
34899         * modules/hash (Depends-on): Add bitrotate and stdint.
34900         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34901         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34902         (SIZE_MAX): Rely on headers for definition.
34903         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34904         (raw_hasher): Use rotr_sz.
34905         Suggested by Jim Meyering.
34906
34907         hash: fix memory leak in last patch
34908         * lib/hash.c (hash_rehash): Avoid memory leak.
34909
34910         hash: avoid no-op rehashing
34911         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34912
34913         hash: provide default callback functions
34914         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34915         (hash_initialize): Use them as defaults.
34916         * tests/test-hash.c (main): Test this.
34917
34918         hash: minor optimization
34919         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34920         when possible.
34921         (hash_initialize): Document this promise.
34922         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34923         * tests/test-hash.c (hash_compare_strings): Test this.
34924
34925 2009-06-18  Bruno Haible  <bruno@clisp.org>
34926
34927         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34928         going to be replaced anyway.
34929
34930 2009-06-18  Bruno Haible  <bruno@clisp.org>
34931
34932         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34933         in one place.
34934         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34935         be replaced anyway.
34936
34937 2009-06-18  Eric Blake  <ebb9@byu.net>
34938
34939         hash: check for resize before insertion
34940         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34941         threshold before insertion, so that a pathological hash_rehash
34942         that fills every bucket can still trigger another rehash.
34943
34944 2009-06-18  Jim Meyering  <meyering@redhat.com>
34945
34946         hash-tests: add a loop around the small tests
34947         * tests/test-hash.c (main): Repeat small tests with selected
34948         small initial table sizes.
34949
34950 2009-06-17  Eric Blake  <ebb9@byu.net>
34951
34952         hash: minor cleanups
34953         * lib/hash.h (hash_entry): Make opaque, by moving...
34954         * lib/hash.c (hash_entry): ...here.
34955         (hash_insert): Clarify restrictions on what can be inserted.
34956         (hash_get_next): Clarify when it is safe to remove an element
34957         during traversal.
34958         (check_tuning): Skip verification when tuning is known safe.
34959         (hash_initialize): Clarify restrictions on tuning.
34960
34961 2009-06-17  Jim Meyering  <jim@meyering.net>
34962         and Eric Blake  <ebb9@byu.net>
34963
34964         hash-tests: new module
34965         * modules/hash-tests: New file.
34966         * tests/test-hash.c: New file.
34967
34968 2009-06-17  Eric Blake  <ebb9@byu.net>
34969
34970         strstr-simple: document new module
34971         * MODULES.html.sh: Document new module.
34972
34973         strstr, strcasestr: replace on platforms with broken memchr
34974         * modules/strstr: Split into...
34975         * modules/strstr-simple: ...new module that does not care about
34976         performance, but does care about glibc bug.
34977         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34978         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34979         if platform memchr is broken, per Debian bug 521737.
34980         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34981         memchr.
34982         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34983         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34984         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34985         * modules/mountlist (Depends-on): Add strstr-simple.
34986         * modules/gen-uni-tables (Depends-on): Likewise.
34987         * modules/argz (Depends-on): Add strstr.
34988
34989 2009-06-17  Bruno Haible  <bruno@clisp.org>
34990
34991         * modules/posix_spawn-internal (Depends-on): Add errno.
34992
34993 2009-06-17  Bruno Haible  <bruno@clisp.org>
34994
34995         Define missing ESTALE on Interix 3.5.
34996         * lib/errno.in.h (ESTALE): Assign a value if missing.
34997         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34998         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34999         missing.
35000         * doc/posix-headers/errno.texi: Mention the Interix bug.
35001         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
35002
35003 2009-06-15  Eric Blake  <ebb9@byu.net>
35004
35005         memchr, memchr2: add valgrind exception
35006         * lib/memchr.valgrind: New file.
35007         * lib/memchr2.valgrind: New file.
35008         * modules/memchr (Files): Distribute valgrind file.
35009         * modules/memchr2 (Files): Likewise.
35010
35011         docs: memchr is no longer obsolete
35012         * MODULES.html.sh: Move memchr from obsolete to string.h section.
35013         * lib/string.in.h (memchr): Simplify logic.
35014
35015 2009-06-14  Jim Meyering  <meyering@redhat.com>
35016
35017         link-follow: fix the "checking..." message to not mention trailing slash
35018         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
35019         never considered trailing slashes.
35020
35021 2009-06-14  Bruno Haible  <bruno@clisp.org>
35022
35023         * m4/memchr.m4: Mention also the bug on IA-64.
35024         * doc/posix-functions/memchr.texi: Likewise.
35025
35026 2009-06-12  Eric Blake  <ebb9@byu.net>
35027
35028         memchr: detect broken x86_64 and alpha implementations
35029         * modules/memchr-tests (Depends-on): Move mmap detection...
35030         * modules/memchr (Depends-on): ...here.
35031         (configure.ac): Set indicator.
35032         * lib/string.in.h (memchr): Declare replacement.
35033         * modules/string (Makefile.am): Trigger replacement.
35034         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35035         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
35036         bugs.
35037         * doc/posix-functions/memchr.texi (memchr): Document the bug.
35038         * modules/getpagesize (License): Relax license.
35039
35040 2009-06-11  Bruno Haible  <bruno@clisp.org>
35041
35042         * lib/idpriv.h: Add more references.
35043
35044 2009-06-08  Bruno Haible  <bruno@clisp.org>
35045
35046         Tests for module 'idpriv-droptemp'.
35047         * modules/idpriv-droptemp-tests: New file.
35048         * tests/test-idpriv-droptemp.sh: New file.
35049         * tests/test-idpriv-droptemp.su.sh: New file.
35050         * tests/test-idpriv-droptemp.c: New file.
35051
35052         New module 'idpriv-droptemp'.
35053         * lib/idpriv-droptemp.c: New file.
35054         * modules/idpriv-droptemp: New file.
35055
35056 2009-06-08  Bruno Haible  <bruno@clisp.org>
35057
35058         Tests for module 'idpriv-drop'.
35059         * modules/idpriv-drop-tests: New file.
35060         * tests/test-idpriv-drop.sh: New file.
35061         * tests/test-idpriv-drop.su.sh: New file.
35062         * tests/test-idpriv-drop.c: New file.
35063
35064         New module 'idpriv-drop'.
35065         * lib/idpriv.h: New file.
35066         * lib-idpriv-drop.c: New file.
35067         * m4/idpriv.m4: New file.
35068         * modules/idpriv-drop: New file.
35069
35070 2009-06-08  Bruno Haible  <bruno@clisp.org>
35071
35072         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
35073         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35074         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35075         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35076         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35077         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35078         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35079
35080 2009-06-08  Eric Blake  <ebb9@byu.net>
35081
35082         test-strstr: use memory fence, when possible
35083         * tests/test-strstr.c (main): Use memory fence, in order to be
35084         more likely to trigger Debian bug 521737.
35085         * modules/strstr-tests (Files): Pull in additional files.
35086
35087         memchr: no longer obsolete, for wider field testing
35088         * modules/memchr (Status, Notice): Delete, this module is no
35089         longer obsolete.
35090         * modules/vasnprintf (Depends-on): Add memchr.
35091
35092 2009-06-07  Jim Meyering  <meyering@redhat.com>
35093
35094         hash: declare some functions with the warn_unused_result attribute
35095         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
35096
35097 2009-06-07  Bruno Haible  <bruno@clisp.org>
35098
35099         * tests/test-alignof.c: Don't test int64_t if it does not exist.
35100         Reported by Eric Blake.
35101
35102 2009-06-06  Eric Blake  <ebb9@byu.net>
35103
35104         test-alignof: fix typo with long double
35105         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
35106         compiler error.
35107
35108 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
35109
35110         Escape non-texinfo { and }s.
35111         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
35112         markup error.
35113
35114 2009-06-04  Jim Meyering  <meyering@redhat.com>
35115
35116         gitlog-to-changelog: don't infloop on an empty commit log
35117         * build-aux/gitlog-to-changelog: Warn about an empty log message.
35118         Reported by Boris Petersen <transacid@centerim.org>.
35119
35120 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
35121
35122         version-etc: extend for packagers
35123         Add three new configure options, intended for packagers:
35124           --with-packager="packager name"
35125           --with-packager-version="packager-specific version"
35126           --with-packager-bug-reports="packager bug reporting"
35127         An example with coreutils:
35128           $ ./configure \
35129             --with-packager=Gentoo \
35130             --with-packager-bug-report=http://bugs.gentoo.org/ \
35131             --with-packager-version="patchset 1.6"
35132           $ ./src/ls --version | head -n2
35133           ls (GNU coreutils) 7.1-dirty
35134           Packaged by Gentoo (patchset 1.6)
35135         Note that the bug reporting info via --help doesn't show up because
35136         coreutils uses its own custom emit_bug_reporting_address() implementation
35137         in src/system.h.  If it didn't, it'd look like:
35138           $ ./src/ls --help | tail -n4
35139           Report bugs to <bug-coreutils@gnu.org>.
35140           Report Gentoo bugs to <http://bugs.gentoo.org/>.
35141           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
35142           General help using GNU software: <http://www.gnu.org/gethelp/>.
35143         * lib/version-etc.c: Print new information, if provided.
35144         * m4/version-etc.m4: New file.
35145         * modules/version-etc (Files): Add m4/version-etc.m4.
35146         (configure.ac): Add gl_VERSION_ETC.
35147
35148 2009-05-31  Bruno Haible  <bruno@clisp.org>
35149
35150         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
35151         and 'int64_t'.
35152         * modules/alignof-tests (Dependencies): Add stdint.
35153         Reported by Eric Blake.
35154
35155 2009-05-31  Bruno Haible  <bruno@clisp.org>
35156
35157         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
35158         restriction due to compiler bugs.
35159         Reported by Eric Blake.
35160
35161 2009-05-31  Simon Josefsson  <simon@josefsson.org>
35162             Bruno Haible  <bruno@clisp.org>
35163
35164         Fix test-alignof failure.
35165         * lib/alignof.h (alignof_slot): New macro.
35166         (alignof_type): New macro, with the same semantics as the previous
35167         'alignof'.
35168         (alignof): Alias to alignof_slot.
35169         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
35170         check that the results are usable as constant expressions.
35171
35172 2009-05-31  Bruno Haible  <bruno@clisp.org>
35173
35174         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
35175         * tests/test-memchr.c (main): Check that memchr does not read past the
35176         first occurrence of the byte.
35177         * tests/test-strstr.c (main): Update comment.
35178         Suggested by Eric Blake.
35179
35180 2009-05-30  Bruno Haible  <bruno@clisp.org>
35181
35182         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
35183         detail how to use dumpbin.
35184         Reported by David Byron <dbyron@dbyron.com>.
35185
35186 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35187
35188         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
35189
35190 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35191
35192         * m4/manywarnings.m4: Add GCC 4.4 warnings.
35193
35194 2009-05-28  Bruno Haible  <bruno@clisp.org>
35195
35196         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
35197         build-aux/ files.
35198
35199 2009-05-28  Simon Josefsson  <simon@josefsson.org>
35200
35201         * gnulib-tool (func_import): Transform license on build-aux/ files too.
35202
35203 2009-05-27  Simon Josefsson  <simon@josefsson.org>
35204
35205         * gnulib-tool (sed_transform_main_lib_file)
35206         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
35207         regexps.
35208
35209 2009-05-26  Simon Josefsson  <simon@josefsson.org>
35210
35211         * tests/test-strstr.c: Add another self-test.
35212         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
35213         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
35214
35215 2009-05-23  Bruno Haible  <bruno@clisp.org>
35216
35217         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
35218         change.
35219
35220 2009-05-21  Bruno Haible  <bruno@clisp.org>
35221
35222         Simplify use of mode_t varargs.
35223         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
35224         uses 'mode_t' or 'int'.
35225         * lib/openat.c (openat): Likewise.
35226         * lib/open-safer.c (open_safer): Likewise.
35227         * m4/mode_t.m4: New file.
35228         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
35229         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
35230         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
35231         * modules/open (Files): Add m4/mode_t.m4.
35232         * modules/openat (Files): Likewise.
35233         * modules/fcntl-safer (Files): Likewise.
35234         Suggested by Eric Blake.
35235
35236 2009-05-21  Pádraig Brady  <P@draigbrady.com>
35237
35238         * doc/glibc-functions/fallocate.texi: New file.
35239         * doc/gnulib.texi: Include it.
35240
35241 2009-05-21  Eric Blake  <ebb9@byu.net>
35242             Bruno Haible  <bruno@clisp.org>
35243
35244         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
35245         invocations.
35246         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35247
35248 2009-05-21  Eric Blake  <ebb9@byu.net>
35249             Bruno Haible  <bruno@clisp.org>
35250
35251         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
35252         include_next. Fix of 2008-11-20 commit.
35253         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35254         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35255         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35256         NEXT_MATH_H.
35257         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35258         instead of NEXT_MATH_H.
35259
35260 2009-05-21  Bruno Haible  <bruno@clisp.org>
35261
35262         Avoid redefinition warnings for SIZE_MAX.
35263         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35264         Reported by Simon Josefsson.
35265
35266 2009-05-21  Bruno Haible  <bruno@clisp.org>
35267
35268         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35269         AC_CACHE_VAL.
35270
35271 2009-05-20  Bruno Haible  <bruno@clisp.org>
35272
35273         Make zeroptr.h work on mingw.
35274         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35275         mprotect.
35276         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35277         * modules/memchr2-tests (configure.ac): Likewise.
35278         * modules/memcmp-tests (configure.ac): Likewise.
35279         * modules/memmem-tests (configure.ac): Likewise.
35280         * modules/memrchr-tests (configure.ac): Likewise.
35281         Reported by Simon Josefsson.
35282
35283 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35284
35285         * tests/test-glob.c: Include string.h for strcmp prototype.
35286
35287 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35288
35289         * modules/getdelim (Depends-on): Add explicit stdint, although it
35290         was implicitly already pulled in via realloc-posix.
35291         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35292
35293 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35294
35295         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35296         G. Christensen" <tgc@jupiterrise.com>.
35297         * m4/sys_socket_h.m4: Check for sa_family_t.
35298         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35299         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35300         * tests/test-sys_socket.c: Check that sa_family_t works.
35301
35302 2009-05-18  Eric Blake  <ebb9@byu.net>
35303
35304         maint.mk: allow gnulib_dir in VPATH build
35305         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35306
35307 2009-05-15  Jim Meyering  <meyering@redhat.com>
35308
35309         maint.mk: Give gnulib_dir a default definition.
35310         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35311         Thus, most packages no longer need to specify this variable in cfg.mk
35312
35313 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35314
35315         rename.m4: fix typos that would make non-mingw cross-configure fail
35316         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35317
35318 2009-05-13  Eric Blake  <ebb9@byu.net>
35319
35320         mmap-anon: avoid out-of-order autoconf expansion
35321         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35322         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35323         * modules/memchr-tests (Depends-on): Add extensions.
35324         * modules/memchr2-tests (Depends-on): Add extensions.
35325         * modules/memcmp-tests (Depends-on): Add extensions.
35326         * modules/memmem-tests (Depends-on): Add extensions.
35327         * modules/memrchr-tests (Depends-on): Add extensions.
35328
35329 2009-05-13  Bruno Haible  <bruno@clisp.org>
35330
35331         Make some tests ISO C 99 compliant.
35332         * tests/zerosize-ptr.h: New file.
35333         * tests/test-memchr.c: Include zerosize-ptr.h.
35334         (main): Use a zero-size object pointer instead of NULL.
35335         * tests/test-memchr2.c: Include zerosize-ptr.h.
35336         (main): Use a zero-size object pointer instead of NULL.
35337         * tests/test-memcmp.c: Include zerosize-ptr.h.
35338         (main): Use a zero-size object pointer instead of NULL.
35339         * tests/test-memmem.c: Include zerosize-ptr.h.
35340         (main): Use a zero-size object pointer instead of NULL.
35341         * tests/test-memrchr.c: Include zerosize-ptr.h.
35342         (main): Use a zero-size object pointer instead of NULL.
35343         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35344         m4/mmap-anon.m4.
35345         (Depends-on): Add getpagesize.
35346         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35347         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35348         m4/mmap-anon.m4.
35349         (Depends-on): Add getpagesize.
35350         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35351         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35352         m4/mmap-anon.m4.
35353         (Depends-on): Add getpagesize.
35354         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35355         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35356         m4/mmap-anon.m4.
35357         (Depends-on): Add getpagesize.
35358         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35359         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35360         m4/mmap-anon.m4.
35361         (Depends-on): Add getpagesize.
35362         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35363
35364 2009-05-12  Bruno Haible  <bruno@clisp.org>
35365
35366         Tests for module 'alignof'.
35367         * modules/alignof-tests: New file.
35368         * tests/test-alignof.c: New file.
35369
35370 2009-05-12  Bruno Haible  <bruno@clisp.org>
35371
35372         Fix alignof macro.
35373         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35374         vendor compilers that are always correct.
35375
35376 2009-05-12  Bruno Haible  <bruno@clisp.org>
35377
35378         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35379         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35380         not whether its fully works.
35381
35382 2009-05-12  Bruno Haible  <bruno@clisp.org>
35383
35384         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35385
35386 2009-05-12  Jim Meyering  <meyering@redhat.com>
35387
35388         * top/maint.mk: Adjust backslash alignment.
35389
35390 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35391
35392         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35393
35394 2009-05-11  Eric Blake  <ebb9@byu.net>
35395
35396         argp: avoid undefined behavior
35397         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
35398         macros.
35399
35400 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35401
35402         * tests/test-vc-list-files-git.sh: Do git config of user.email and
35403         user.name to prevent git commit from complaining.
35404
35405 2009-05-10  Bruno Haible  <bruno@clisp.org>
35406
35407         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
35408         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
35409         it rewrites every file name only once.
35410         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
35411
35412 2009-05-08  Bruno Haible  <bruno@clisp.org>
35413
35414         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
35415         instead of 'max'.
35416
35417 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35418
35419         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
35420         sockaddr_storage test.
35421
35422 2009-05-07  Simon Josefsson  <simon@josefsson.org>
35423
35424         * modules/sys_socket (Makefile.am): Substitute
35425         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
35426         * m4/sys_socket_h.m4: Check for sockaddr_storage.
35427         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
35428         * tests/test-sys_socket.c: Check sockaddr_storage.
35429
35430 2009-05-08  Bruno Haible  <bruno@clisp.org>
35431
35432         New module 'alignof'.
35433         * lib/alignof.h: New file.
35434         * modules/alignof: New file.
35435
35436 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35437             Bruno Haible  <bruno@clisp.org>
35438
35439         Fix test-file-has-acl on FreeBSD.
35440         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
35441         mask is implicitly added.
35442         * tests/test-file-has-acl.c: Include <signal.h>.
35443         (main): Terminate the test after 5 seconds.
35444         * modules/acl-tests (configure.ac): Check for alarm function.
35445
35446 2009-05-04  Bruno Haible  <bruno@clisp.org>
35447
35448         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
35449         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
35450         * modules/errno (configure.ac): Drop AC_REQUIRE.
35451         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
35452         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
35453
35454 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35455
35456         * modules/glob-tests: New module.
35457         * tests/test-glob.c: Add.
35458
35459 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35460
35461         * modules/fnmatch-tests: New module.
35462         * tests/test-fnmatch.c: Add.
35463
35464 2009-05-04  Eric Blake  <ebb9@byu.net>
35465
35466         maint: make the new no-submodule-changes rule VPATH-safe
35467         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
35468
35469 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35470             Bruno Haible  <bruno@clisp.org>
35471
35472         acl: Fix infinite loop on FreeBSD.
35473         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
35474         of return value from acl_get_entry.
35475         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
35476         Likewise.
35477
35478 2009-05-03  Bruno Haible  <bruno@clisp.org>
35479
35480         * lib/acl-internal.h (acl_entries): Clarify return value.
35481         * lib/acl_entries.c (acl_entries): Likewise.
35482
35483 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35484
35485         Bug fix in acl module.
35486         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35487
35488 2009-05-03  Bruno Haible  <bruno@clisp.org>
35489
35490         Create gperf-generated file in the source dir, not in the build dir.
35491         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35492         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35493         * modules/unicase/locale-language (unicase/locale-languages.h):
35494         Likewise.
35495         * modules/unicase/special-casing (unicase/special-casing-table.h):
35496         Likewise.
35497         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35498         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35499         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35500         Reported by Ralf Wildenhues.
35501
35502 2009-05-03  Bruno Haible  <bruno@clisp.org>
35503
35504         * modules/fnmatch (Description, configure.ac): Taken from
35505         fnmatch-posix.
35506         * modules/fnmatch-posix: Turn into a symbolic reference to the
35507         'fnmatch' module, and deprecate.
35508         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35509
35510 2009-05-03  Bruno Haible  <bruno@clisp.org>
35511
35512         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35513         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35514         Reported by Ralf Wildenhues.
35515
35516 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35517
35518         * m4/fnmatch.m4: Fix fnmatch re-define.
35519
35520 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35521
35522         priv-set: new module and tests; adapt write-any-file
35523         * lib/priv-set.c: New file.
35524         * lib/priv-set.h: New file.
35525         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35526         * lib/write-any-file.c: Simplify by using priv-set module.
35527         * m4/priv-set.m4: New file.
35528         * modules/priv-set: New file.
35529         * modules/unlinkdir: Add dependency on priv-set module.
35530         * modules/write-any-file: Likewise.
35531
35532         Tests for module 'priv-set'.
35533         * modules/priv-set-tests: New file.
35534         * tests/test-priv-set.c: New file.
35535
35536 2009-05-03  Jim Meyering  <meyering@redhat.com>
35537             Bruno Haible  <bruno@clisp.org>
35538
35539         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35540         use the converted UTF-8 variant of the name instead.
35541
35542 2009-05-03  Jim Meyering  <meyering@redhat.com>
35543
35544         tests: tighten some getdate tests
35545         * tests/test-getdate.c (main): Tighten tests: require equality,
35546         not just greater than.  Set TZ envvar to UTC0.
35547
35548 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35549
35550         getdate: correctly interpret "next monday" when run on a Monday
35551         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35552         that e.g., "next tues" (when run on a tuesday) results in a date
35553         that is one week in the future, and not today's date.
35554         I.e., add a week when the wday is the same as the current one.
35555         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35556         and earlier by Martin Bernreuther and Jan Minář.
35557         * tests/test-getdate.c (main): Check that "next DAY" is always in
35558         the future and that "last DAY" is always in the past.
35559
35560 2009-05-02  Jim Meyering  <meyering@redhat.com>
35561
35562         build: ensure that a release build fails when a submodule is unclean
35563         * top/maint.mk (no-submodule-changes): New rule.
35564         (alpha beta major): Depend on it.
35565
35566 2009-05-02  Bruno Haible  <bruno@clisp.org>
35567
35568         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35569         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35570         shell variable gl_fnmatch_required to detect which variant is
35571         requested.
35572         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35573         gl_FUNC_FNMATCH_POSIX.
35574         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35575         exclude fnmatch-posix.
35576
35577 2009-05-02  Bruno Haible  <bruno@clisp.org>
35578
35579         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35580         * modules/mbsrtowcs (License): Change to LGPLv2+.
35581         * modules/strnlen1 (License): Likewise.
35582         Reported by Simon Josefsson.
35583
35584 2009-05-02  Bruno Haible  <bruno@clisp.org>
35585
35586         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35587         "cross".
35588         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35589         gnulib-tool was called with option --source-base=lib.
35590
35591 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35592
35593         Use automake *-local hooks without commands, for extensibility.
35594         * modules/localcharset (Makefile.am): Rename install-exec-local
35595         rule to install-exec-localcharset, and make it a prerequisite of
35596         install-exec-local.  Likewise, rename the uninstall-local rule to
35597         uninstall-localcharset, and make it a prerequisite of the former.
35598
35599 2009-05-01  Bruno Haible  <bruno@clisp.org>
35600
35601         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35602         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35603         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35604         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35605         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35606         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35607         m4/locale-zh.m4, m4/codeset.m4.
35608
35609         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35610         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35611         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35612         m4/locale-zh.m4.
35613
35614         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35615         REPLACE_WCRTOMB if mbstate_t must be replaced.
35616         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35617         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35618
35619 2009-05-01  Bruno Haible  <bruno@clisp.org>
35620
35621         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35622         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35623         dngettext, dcngettext, textdomain, bindtextdomain,
35624         bind_textdomain_codeset): Undefine before redefining.
35625
35626 2009-04-30  Bruno Haible  <bruno@clisp.org>
35627
35628         Fix bug introduced on 2009-04-25.
35629         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35630         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35631         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35632         is defined.
35633         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35634         is defined.
35635         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35636         is defined.
35637         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35638
35639 2009-04-28  Bruno Haible  <bruno@clisp.org>
35640
35641         Comment tweaks.
35642         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35643         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35644         * lib/unicase.h (u*_casexfrm): Likewise.
35645         Reported by Paolo Bonzini.
35646
35647 2009-04-28  Bruno Haible  <bruno@clisp.org>
35648
35649         Fix a compilation error.
35650         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35651         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35652         Reported by Jim Meyering.
35653
35654 2009-04-27  Bruno Haible  <bruno@clisp.org>
35655
35656         New module 'libunistring'.
35657         * modules/libunistring: New file.
35658         * m4/libunistring.m4: New file.
35659         * MODULES.html.sh (Unicode string functions): Add it.
35660
35661 2009-04-27  Eric Blake  <ebb9@byu.net>
35662
35663         maint.mk: allow package-specific header to provide <config.h>
35664         * top/maint.mk (sc_require_config_h): New variable.
35665         (sc_require_config_h, sc_require_config_h_first): Use it.
35666
35667 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35668
35669         * top/maint.mk (sc_avoid_if_before_free): Except
35670         useless-if-before-free script.
35671
35672 2009-04-27  Eric Blake  <ebb9@byu.net>
35673
35674         maintainer-makefile: depend on all required helper scripts
35675         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35676         useless-if-before-free.
35677         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35678         version, rather than assuming gnulib checkout is available.
35679         Reported by Simen Josefsson.
35680
35681 2009-04-26  Bruno Haible  <bruno@clisp.org>
35682
35683         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35684         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35685         "../" or "..".
35686
35687 2009-04-26  Bruno Haible  <bruno@clisp.org>
35688
35689         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35690         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35691         AC_LIB_HAVE_LINKFLAGS.
35692
35693 2009-04-26  Bruno Haible  <bruno@clisp.org>
35694
35695         Simplify calling convention of u*_conv_from_encoding.
35696         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35697         u32_conv_from_encoding): Expect a resultbuf argument and return the
35698         result directly as a pointer.
35699         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35700         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35701         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35702         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35703         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35704         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35705         Update.
35706         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35707         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35708         * lib/vasnprintf.c (VASNPRINTF): Update.
35709         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35710         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35711         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35712         * NEWS: Mention the change.
35713
35714 2009-04-26  Bruno Haible  <bruno@clisp.org>
35715
35716         Simplify calling convention of u*_conv_to_encoding.
35717         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35718         u32_conv_to_encoding): Expect a resultbuf argument and return the
35719         result directly as a pointer.
35720         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35721         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35722         freeing scaled_offsets if mem_iconveha failed.
35723         * lib/unicase/u-casexfrm.h (FUNC): Update.
35724         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35725         * lib/vasnprintf.c (VASNPRINTF): Update.
35726         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35727         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35728         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35729         * NEWS: Mention the change.
35730
35731 2009-04-26  Bruno Haible  <bruno@clisp.org>
35732
35733         Avoid test failures on AIX and OSF/1.
35734         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35735         malloc(0).
35736         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35737         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35738         Likewise.
35739         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35740         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35741         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35742         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35743         * doc/posix-functions/malloc.texi: Document the portability problem
35744         related to malloc(0).
35745
35746 2009-04-26  Bruno Haible  <bruno@clisp.org>
35747
35748         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35749         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35750         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35751
35752 2009-04-25  Bruno Haible  <bruno@clisp.org>
35753
35754         Avoid link error when creating a namespace clean library.
35755         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35756         as macro with arguments if already defined as an alias.
35757         * lib/signbitf.c (gl_signbitf): Don't undefine.
35758         * lib/signbitd.c (gl_signbitd): Don't undefine.
35759         * lib/signbitl.c (gl_signbitl): Don't undefine.
35760
35761 2009-04-25  Jim Meyering  <meyering@redhat.com>
35762
35763         vc-list-files: fix another quoting bug
35764         * build-aux/vc-list-files: Avoid sed backslash expansion
35765         of pathological directory names.
35766
35767 2009-04-25  Eric Blake  <ebb9@byu.net>
35768
35769         vc-list-files: fix shell quoting error
35770         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35771         timestamp.
35772
35773 2009-04-25  Jim Meyering  <meyering@redhat.com>
35774
35775         vc-list-files: restore lost functionality with subdir argument
35776         * build-aux/vc-list-files: When given a non-"." sub-directory
35777         argument, substitute the $dir/ prefix back onto each resulting name.
35778         Otherwise, coreutils' root_tests check would fail.
35779
35780 2009-04-24  Eric Blake  <ebb9@byu.net>
35781
35782         vc-list-files: ignore git symlinks
35783         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35784         than ls-files, to ignore git symlinks.
35785
35786         maint.mk: import improvements from m4
35787         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35788         (move_if_change): Delete unused macro.
35789         (news-date-check, vc-diff-check): Support VPATH builds.
35790         (announcement): Likewise.  Split --bootstrap-tools list...
35791         (boostrap-tools): ...into separate list, which can be overridden
35792         in cfg.mk.
35793         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35794         requiring dependency on useless-if-before-free module.
35795         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35796         Support VPATH builds.
35797
35798 2009-04-24  Jim Meyering  <meyering@redhat.com>
35799
35800         maint.mk: remove coreutils-specific rules and variables
35801         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35802         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35803         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35804
35805         maint.mk: remove obsolete rule
35806         * top/maint.mk (rel-check): Remove rule.
35807         (WGET, WGETFLAGS): Remove now-unused variables.
35808
35809 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35810
35811         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35812         consistency.
35813
35814         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35815         '$(PATH_SEPARATOR)' instead of ':'.
35816
35817 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35818
35819         * lib/getopt1.c (main): Use 'const' for static array.
35820
35821 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35822
35823         * top/maint.mk: Sync with coreutils.
35824         * NEWS: Explain incompatibilities.
35825
35826 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35827             Bruno Haible  <bruno@clisp.org>
35828
35829         Fix cross-compilation results.
35830         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35831         statement, as third argument of AC_TRY_RUN.
35832         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35833         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35834         Likewise.
35835         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35836         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35837         Likewise.
35838         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35839         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35840         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35841
35842 2009-04-20  Bruno Haible  <bruno@clisp.org>
35843
35844         Avoid test failure on mingw.
35845         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35846
35847 2009-04-20  Bruno Haible  <bruno@clisp.org>
35848
35849         Avoid compilation error on mingw.
35850         * modules/localename-tests (Depends-on): Add locale.
35851
35852 2009-04-19  Bruno Haible  <bruno@clisp.org>
35853
35854         Support for building a shared library on Windows platforms.
35855         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35856         (main): Test the presence of UNINORM_NFC here.
35857         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35858         (main): Test the presence of UNINORM_NFD here.
35859         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35860         (main): Test the presence of UNINORM_NFKC here.
35861         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35862         (main): Test the presence of UNINORM_NFKD here.
35863
35864 2009-04-19  Bruno Haible  <bruno@clisp.org>
35865
35866         Avoid a compiler warning.
35867         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35868         Change type of variable 'sequence'.
35869
35870 2009-04-19  Bruno Haible  <bruno@clisp.org>
35871
35872         * modules/configmake (Makefile.am): When the contents of configmake.h
35873         does not change, arrange to preserve its modification time.
35874
35875 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35876
35877         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35878         gettext domain.
35879
35880 2009-04-16  Jim Meyering  <meyering@redhat.com>
35881
35882         useless-if-before-free: improve conversion code
35883         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35884         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35885
35886 2009-04-14  Bruno Haible  <bruno@clisp.org>
35887
35888         * modules/fcntl (Depends-on): Add extensions.
35889         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35890
35891 2009-04-12  Ben Pfaff  <blp@gnu.org>
35892
35893         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35894         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35895
35896 2009-03-20  Ben Pfaff  <blp@gnu.org>
35897
35898         Make rename replace existing destinations on Windows.
35899         * m4/rename.m4: Add test for Mingw.
35900         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35901         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35902         * doc/posix-functions/rename.texi: Document.
35903
35904 2009-04-10  Bruno Haible  <bruno@clisp.org>
35905
35906         New include file "iconveh.h".
35907         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35908         * lib/striconveh.h: Include it.
35909         (enum iconv_ilseq_handler): Remove definition.
35910         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35911         striconveh.h.
35912         * lib/striconveha.c: Include striconveh.h.
35913         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35914         * modules/striconveh (Files): Add lib/iconveh.h.
35915         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35916         lib/striconveh.h.
35917
35918 2009-04-10  Bruno Haible  <bruno@clisp.org>
35919
35920         * lib/uniconv.h: Update comment.
35921
35922 2009-04-10  Bruno Haible  <bruno@clisp.org>
35923
35924         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35925         always.
35926         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35927         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35928         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35929         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35930         "unistring-notinline.h", so that the function gets defined always.
35931         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35932         * lib/unistr/u8-uctomb.c: Likewise.
35933         * lib/unistr/u16-mbtouc.c: Likewise.
35934         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35935         * lib/unistr/u16-uctomb.c: Likewise.
35936         * lib/unistr/u32-mbtouc.c: Likewise.
35937         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35938         * lib/unistr/u32-uctomb.c: Likewise.
35939
35940 2009-04-10  Bruno Haible  <bruno@clisp.org>
35941
35942         Mark 'utime' obsolete.
35943         * modules/utime (Status, Notice): New sections.
35944         Suggested by Jim Meyering.
35945
35946         Fix cross-compile guess for utime test.
35947         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35948         autoconf.
35949         * doc/posix-functions/utime.texi: Give more precisions.
35950         Reported by Jan <ipif@ymail.com>.
35951
35952 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35953
35954         filevercmp: correct today's change
35955         * lib/filevercmp.c: Also handle coreutils' test inputs.
35956         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35957
35958         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35959         for reporting it.
35960         * lib/filevercmp.c: Special handle for "", "." and "..".
35961         * tests/test-filevercmp.c: Enlarge the set suite.
35962
35963 2009-04-07  Jim Meyering  <meyering@redhat.com>
35964
35965         useless-if-before-free: show how to remove braced useless free, too
35966         * build-aux/useless-if-before-free: still only in a comment, though.
35967
35968 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35969
35970         maint.mk: import changes to syntax-check macros from coreutils
35971         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35972         Use them in the relevant macros.
35973
35974 2009-04-06  Bruno Haible  <bruno@clisp.org>
35975
35976         Fix unportable use of bit-fields.
35977         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35978         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35979         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35980
35981 2009-04-06  Bruno Haible  <bruno@clisp.org>
35982
35983         Avoid test failures on AIX and OSF/1.
35984         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35985         that malloc(0) = NULL.
35986         * tests/unicase/test-u8-tolower.c (check): Likewise.
35987         * tests/unicase/test-u8-totitle.c (check): Likewise.
35988         * tests/unicase/test-u8-toupper.c (check): Likewise.
35989         * tests/unicase/test-u16-casefold.c (check): Likewise.
35990         * tests/unicase/test-u16-tolower.c (check): Likewise.
35991         * tests/unicase/test-u16-totitle.c (check): Likewise.
35992         * tests/unicase/test-u16-toupper.c (check): Likewise.
35993         * tests/unicase/test-u32-casefold.c (check): Likewise.
35994         * tests/unicase/test-u32-tolower.c (check): Likewise.
35995         * tests/unicase/test-u32-totitle.c (check): Likewise.
35996         * tests/unicase/test-u32-toupper.c (check): Likewise.
35997         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35998         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35999         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
36000         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
36001         * tests/uninorm/test-u16-nfc.c (check): Likewise.
36002         * tests/uninorm/test-u16-nfd.c (check): Likewise.
36003         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
36004         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
36005         * tests/uninorm/test-u32-nfc.c (check): Likewise.
36006         * tests/uninorm/test-u32-nfd.c (check): Likewise.
36007         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
36008         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
36009
36010 2009-04-05  Bruno Haible  <bruno@clisp.org>
36011
36012         Work around an autoconf limitation.
36013         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
36014         comment line if it would be longer than 3 KB.
36015
36016 2009-04-05  Bruno Haible  <bruno@clisp.org>
36017
36018         Avoid test failure with libiconv-1.13.
36019         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
36020         of the expected test results.
36021
36022 2009-04-05  Bruno Haible  <bruno@clisp.org>
36023
36024         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
36025         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
36026         that it should be installed.
36027
36028 2009-04-05  Bruno Haible  <bruno@clisp.org>
36029
36030         * gnulib-tool: New option --copy-file.
36031         (func_usage): Document it.
36032         (func_dest_tmpfilename): Moved out of func_import.
36033         (func_add_file, func_update_file): New functions, extracted from
36034         func_import.
36035         (func_import): Update.
36036
36037 2009-04-05  Karl Berry  <karl@gnu.org>
36038
36039         * README: prominently mention gnulib-tool.
36040         Rearrange sections so getting the code is near the top.
36041
36042 2009-04-05  Bruno Haible  <bruno@clisp.org>
36043
36044         * lib/unicase.h: Mention u*_cmp2.
36045         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36046         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
36047         * lib/unicase/ulc-casecmp.c: Likewise.
36048         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
36049         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
36050         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
36051         unistr/u8-cmp.
36052         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
36053         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
36054         unistr/u16-cmp.
36055         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
36056         unistr/u32-cmp.
36057
36058         * lib/uninorm.h: Mention u*_cmp2.
36059         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36060         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
36061         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
36062         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
36063         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
36064         unistr/u8-cmp.
36065         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
36066         unistr/u16-cmp.
36067         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
36068         unistr/u32-cmp.
36069
36070         New module 'unistr/u32-cmp2'.
36071         * lib/unistr/u32-cmp2.c: New file.
36072         * modules/unistr/u32-cmp2: New file.
36073
36074         New module 'unistr/u16-cmp2'.
36075         * lib/unistr/u16-cmp2.c: New file.
36076         * modules/unistr/u16-cmp2: New file.
36077
36078         New module 'unistr/u8-cmp2'.
36079         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
36080         * lib/unistr/u8-cmp2.c: New file.
36081         * lib/unistr/u-cmp2.h: New file.
36082         * modules/unistr/u8-cmp2: New file.
36083
36084 2009-04-05  Bruno Haible  <bruno@clisp.org>
36085
36086         * lib/unictype.h (uc_property_is_valid): New macro.
36087         * tests/unictype/test-pr_byname.c (main): Use it.
36088
36089         * lib/unistr.h: Doc fixes.
36090         * lib/uniconv.h: Doc fixes.
36091         * lib/unictype.h: Doc fixes.
36092
36093 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
36094
36095         Port coreutils 7.2 to Solaris 8.
36096
36097         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
36098         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
36099         for Solaris 8.  This is a bit of a hack, as it means it's the
36100         caller's responsibility to add -lnsl if needed, but most likely it
36101         won't be needed since only getaddrinfo uses this and getaddrinfo
36102         isn't needed on Solaris 8.
36103
36104         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
36105         problem to Solaris 8 encountered with coreutils 7.2, which
36106         resulted in a message "fnmatch.c:292: warning: passing argument 4
36107         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
36108         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
36109
36110 2009-04-03  Simon Josefsson  <simon@josefsson.org>
36111
36112         * m4/ld-version-script.m4: Add FIXME comment.
36113
36114 2009-04-02  Simon Josefsson  <simon@josefsson.org>
36115
36116         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
36117         SOVERSION variable.
36118
36119 2009-04-02  Bruno Haible  <bruno@clisp.org>
36120
36121         * Makefile (info, html, dvi, pdf): Combine the rules.
36122         Suggested by Jim Meyering.
36123
36124 2009-04-01  Bruno Haible  <bruno@clisp.org>
36125
36126         * Makefile (info, html, dvi, pdf): New targets.
36127         Reported by Reuben Thomas <rrt@sc3d.org>.
36128
36129 2009-04-01  Bruno Haible  <bruno@clisp.org>
36130
36131         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
36132         can be put into PATH.
36133         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
36134
36135 2009-04-01  Bruno Haible  <bruno@clisp.org>
36136
36137         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
36138
36139 2009-04-01  Bruno Haible  <bruno@clisp.org>
36140
36141         Rename module 'visibility'.
36142         * modules/lib-symbol-visibility: Renamed from modules/visibility.
36143         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
36144         * doc/gnulib.texi: Update.
36145         * MODULES.html.sh (Misc): Update.
36146         * NEWS: Mention the change.
36147
36148 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36149
36150         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
36151         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
36152         Eric Blake <ebb9@byu.net> for review.
36153         * MODULES.html.sh: Add lib-msvc-compat.
36154         * doc/gnulib.texi: Link to new section.
36155         * m4/ld-output-def.m4: New file.
36156         * doc/ld-output-def.texi: New file.
36157
36158 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36159
36160         Rename ld-version-script to lib-symbol-versions.  Suggested by
36161         Bruno Haible <bruno@clisp.org>.
36162         * modules/ld-version-script: Renamed to lib-symbol-versions.
36163         * doc/ld-version-script.texi: Fix module name.
36164         * MODULES.html.sh: Add lib-symbol-versions.
36165
36166 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36167
36168         * modules/u64-tests: New file.
36169         * tests/test-u64.c: New file.
36170
36171 2009-03-04  Simon Josefsson  <simon@josefsson.org>
36172
36173         * MODULES.html.sh: Mention u64.
36174         * modules/u64: New module.
36175         * modules/crypto/sha512: Depend on u64 module instead of providing
36176         u64.h.
36177
36178 2009-03-27  Eric Blake  <ebb9@byu.net>
36179
36180         test-strerror: make debugging EAI_SYSTEM easier
36181         * modules/getaddrinfo-tests (Depends-on): Add strerror.
36182         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
36183         failure was EAI_SYSTEM.
36184
36185 2009-03-25  Bruno Haible  <bruno@clisp.org>
36186
36187         Fix a problem with --enable-relocatable on Solaris 7.
36188         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
36189         since 2008-02-24.
36190
36191 2009-03-25  Eric Blake  <ebb9@byu.net>
36192
36193         test-sockets: avoid gcc warning
36194         * tests/test-sockets.c (main): Silence compiler warning.
36195
36196 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36197
36198         New modules nproc, pthread, contributed by Glen Lenker.
36199
36200         * MODULES.html.sh: Add pthread, nproc.
36201         * lib/nproc.c: New file.
36202         * lib/nproc.h: New file.
36203         * lib/pthread.in.h: New file.
36204         * m4/pthread.m4: New file.
36205         * modules/nproc: New file.
36206         * modules/pthread: New file.
36207
36208 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36209
36210         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36211         New variable.
36212
36213 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
36214
36215         filevercmp: handle simple~ and numbered.~3~ backup suffixes
36216         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
36217         * tests/test-filevercmp.c: Add tests for backup suffixes.
36218
36219 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36220
36221         * modules/stdlib (Depends-on): Add stdint, needed when defining
36222         struct random_data on, for example, HP-UX 10.20.  Reported by
36223         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36224
36225 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36226
36227         * lib/readline.c (readline): Call fflush on stdout after printing
36228         prompt.
36229
36230 2009-03-20  Bruno Haible  <bruno@clisp.org>
36231
36232         Remove dependency from 'close' module to -lws2_32 on native Windows.
36233         * lib/close-hook.h: New file.
36234         * lib/close-hook.c: New file.
36235         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
36236         w32sock.h.
36237         (_gl_close_fd_maybe_socket): Remove function.
36238         (rpl_close): Invoke execute_all_close_hooks instead of
36239         _gl_close_fd_maybe_socket.
36240         * lib/sockets.c: Include close-hook.h, w32sock.h.
36241         (close_fd_maybe_socket): New function, essentially from lib/close.c.
36242         (close_sockets_hook): New variable.
36243         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
36244         (gl_sockets_cleanup): Unregister it.
36245         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
36246         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
36247         * modules/close-hook: New file.
36248         * modules/close (Files): Remove lib/w32sock.h.
36249         (Depends-on): Add close-hook.
36250         (Link): Remove section.
36251         * modules/sockets (Files): Add lib/w32sock.h.
36252         (Depends-on): Add close-hook.
36253         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36254         invocation.
36255         * NEWS: Mention that LIB_CLOSE is gone.
36256
36257 2009-03-23  Eric Blake  <ebb9@byu.net>
36258
36259         signal-tests: test previous patch
36260         * tests/test-signal.c: New file.
36261         * modules/signal-tests: Likewise.
36262
36263         signal.h: always support 'volatile sig_atomic_t'
36264         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36265         (gl_SIGNAL_H_DEFAULTS): Add a default.
36266         * modules/signal (Makefile.am): Substitute if needed.
36267         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36268         users can blindly add volatile.
36269         * doc/posix-headers/signal.texi (signal.h): Document it.
36270         Reported by Matthew Woehlke.
36271
36272 2009-03-23  Jim Meyering  <meyering@redhat.com>
36273
36274         pathmax: PATH_MAX: use pathconf only when available
36275         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36276         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36277         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36278         This avoids a link failure in a PSP cross-compilation environment
36279         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36280
36281         * lib/vasnprintf.c (divide): Fix typo in comment.
36282
36283 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36284
36285         * gnulib-tool (func_filter_filelist): Fix comment.
36286
36287 2009-03-20  Bruno Haible  <bruno@clisp.org>
36288
36289         Make sockets.h self-contained.
36290         * lib/sockets.c: Include sockets.h first.
36291         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36292
36293 2009-03-19  Eric Blake  <ebb9@byu.net>
36294
36295         doc: mention more functions added in cygwin 1.7.0
36296         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36297         addition.
36298         * doc/posix-functions/log2f.texi: Likewise.
36299
36300 2009-03-19  Jim Meyering  <meyering@redhat.com>
36301
36302         fsusage: avoid syntax error due to statement-before-declaration
36303         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36304         after all declarations.  Reported by Matthew Woehlke in
36305         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36306
36307 2009-03-18  Eric Blake  <ebb9@byu.net>
36308
36309         build-aux/compile: sync from automake
36310         * build-aux/compile: New file, from automake.
36311         * config/srclist.txt: Mention build-aux/compile.
36312
36313 2009-03-17  Bruno Haible  <bruno@clisp.org>
36314
36315         * lib/git-merge-changelog.c: Fix typo in comment.
36316         Reported by Reuben Thomas <rrt@sc3d.org>.
36317
36318 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36319
36320         * m4/regex.m4: update and improve help for
36321         --without-included-regex.
36322
36323 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36324
36325         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36326         failure on missing include files.
36327
36328 2009-03-17  Eric Blake  <ebb9@byu.net>
36329
36330         doc: mention more functions added in cygwin 1.7.0
36331         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36332         addition.
36333         * doc/posix-functions/fwscanf.texi: Likewise.
36334         * doc/posix-functions/swprintf.texi: Likewise.
36335         * doc/posix-functions/swscanf.texi: Likewise.
36336         * doc/posix-functions/vfwprintf.texi: Likewise.
36337         * doc/posix-functions/vfwscanf.texi: Likewise.
36338         * doc/posix-functions/vswprintf.texi: Likewise.
36339         * doc/posix-functions/vswscanf.texi: Likewise.
36340         * doc/posix-functions/vwprintf.texi: Likewise.
36341         * doc/posix-functions/vwscanf.texi: Likewise.
36342         * doc/posix-functions/wcscasecmp.texi: Likewise.
36343         * doc/posix-functions/wcsdup.texi: Likewise.
36344         * doc/posix-functions/wcsftime.texi: Likewise.
36345         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36346         * doc/posix-functions/wprintf.texi: Likewise.
36347         * doc/posix-functions/wscanf.texi: Likewise.
36348         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36349
36350 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36351
36352         maint.mk: really add $(AM_MAKEFLAGS)
36353         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36354         was inadvertently omitted in the last commit.
36355         Spotted by Bruno Haible.
36356
36357         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36358         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36359         $(AM_MAKEFLAGS)' rather than plain `make'.
36360
36361         gnulib-tool: execute $MAKE not make
36362         * gnulib-tool: Default $MAKE to 'make'.
36363         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36364         than make.  Initialize $MAKE in the do-autobuild script.
36365
36366         gnulib-tool: use $MAKE not make in generated files
36367         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36368         make, in generated files.  Initialize $MAKE in the do-autobuild
36369         script.
36370
36371         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36372
36373         GNUmakefile: disable parallelism only for multiple, recursive targets
36374         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36375         additions in the Makefile.
36376         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36377         by Automake.
36378         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36379         are listed on the command line and at least one of them is
36380         listed in $(ALL_RECURSIVE_TARGETS).
36381
36382 2009-03-14  Bruno Haible  <bruno@clisp.org>
36383
36384         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36385         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36386         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36387         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36388         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36389         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36390         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36391         unistr/u8-uctomb.
36392         * modules/unistr/u8-strchr (Depends-on): Likewise.
36393         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36394         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36395         unistr/u16-uctomb.
36396         * modules/unistr/u16-strchr (Depends-on): Likewise.
36397         * modules/unistr/u16-strrchr (Depends-on): Likewise.
36398
36399 2009-03-12  Bruno Haible  <bruno@clisp.org>
36400
36401         Work around select() bug on Interix 3.5.
36402         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
36403         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
36404         * m4/select.m4: New file.
36405         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
36406         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
36407         * modules/select (Files): Add m4/select.m4.
36408         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
36409         * modules/nanosleep (Depends-on): Add select.
36410         * modules/poll (Depends-on): Likewise.
36411         * doc/posix-functions/select.texi: Mention the Interix bug.
36412         Reported by Markus Duft <mduft@gentoo.org>.
36413
36414         * lib/select.c: Renamed from lib/winsock-select.c.
36415         * modules/select (Files): Add lib/select.c, remove
36416         lib/winsock-select.c.
36417         (configure.ac): Update.
36418
36419 2009-03-12  Jim Meyering  <meyering@redhat.com>
36420
36421         avoid gcc warnings about unused macro definitions
36422         * lib/readtokens.c (STREQ): Remove unused definition.
36423         * lib/xmalloc.c (SIZE_MAX): Likewise.
36424         * lib/openat-die.c (N_): Likewise.
36425         * lib/mountlist.c (SIZE_MAX): Remove definition.
36426         Instead, include <stdint.h>.
36427         * lib/readutmp.c: Likewise.
36428         * modules/readutmp (Depends-on): Add stdint.
36429         * modules/mountlist (Depends-on): Add stdint.
36430         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
36431
36432 2009-03-10  Bruno Haible  <bruno@clisp.org>
36433
36434         Tests for module 'mbmemcasecoll'.
36435         * modules/mbmemcasecoll-tests: New file.
36436         * tests/test-mbmemcasecoll1.sh: New file.
36437         * tests/test-mbmemcasecoll2.sh: New file.
36438         * tests/test-mbmemcasecoll3.sh: New file.
36439         * tests/test-mbmemcasecoll.c: New file.
36440
36441         New module 'mbmemcasecoll'.
36442         * lib/mbmemcasecoll.h: New file.
36443         * lib/mbmemcasecoll.c: New file.
36444         * modules/mbmemcasecoll: New file.
36445
36446         * tests/test-mbmemcasecmp.h: New file, extracted from
36447         tests/test-mbmemcasecmp.c.
36448         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
36449         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
36450         (main): Update.
36451         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
36452
36453 2009-03-09  Bruno Haible  <bruno@clisp.org>
36454
36455         Tests for module 'mbmemcasecmp'.
36456         * modules/mbmemcasecmp-tests: New file.
36457         * tests/test-mbmemcasecmp1.sh: New file.
36458         * tests/test-mbmemcasecmp2.sh: New file.
36459         * tests/test-mbmemcasecmp3.sh: New file.
36460         * tests/test-mbmemcasecmp.c: New file.
36461
36462         New module 'mbmemcasecmp'.
36463         * lib/mbmemcasecmp.h: New file.
36464         * lib/mbmemcasecmp.c: New file.
36465         * modules/mbmemcasecmp: New file.
36466
36467 2009-03-09  Bruno Haible  <bruno@clisp.org>
36468
36469         Tests for module 'unicase/ulc-casecoll'.
36470         * modules/unicase/ulc-casecoll-tests: New file.
36471         * tests/unicase/test-ulc-casecoll1.sh: New file.
36472         * tests/unicase/test-ulc-casecoll2.sh: New file.
36473         * tests/unicase/test-ulc-casecoll.c: New file.
36474
36475         New module 'unicase/ulc-casecoll'.
36476         * lib/unicase.h (ulc_casecoll): New declaration.
36477         * lib/unicase/ulc-casecoll.c: New file.
36478         * modules/unicase/ulc-casecoll: New file.
36479
36480         New module 'unicase/ulc-casexfrm'.
36481         * lib/unicase.h (ulc_casexfrm): New declaration.
36482         * lib/unicase/ulc-casexfrm.c: New file.
36483         * modules/unicase/ulc-casexfrm: New file.
36484
36485 2009-03-09  Bruno Haible  <bruno@clisp.org>
36486
36487         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36488         invocations.
36489
36490         * m4/mbscasecmp.m4: Remove file.
36491         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36492         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36493
36494         * m4/mbscasestr.m4: Remove file.
36495         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36496         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36497
36498         * m4/mbschr.m4: Remove file.
36499         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36500         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36501
36502         * m4/mbscspn.m4: Remove file.
36503         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36504         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36505
36506         * m4/mbslen.m4: Remove file.
36507         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36508         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36509
36510         * m4/mbsncasecmp.m4: Remove file.
36511         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36512         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36513
36514         * m4/mbsnlen.m4: Remove file.
36515         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36516         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36517
36518         * m4/mbspbrk.m4: Remove file.
36519         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36520         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36521
36522         * m4/mbspcasecmp.m4: Remove file.
36523         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36524         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36525
36526         * m4/mbsrchr.m4: Remove file.
36527         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36528         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36529
36530         * m4/mbssep.m4: Remove file.
36531         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36532         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36533
36534         * m4/mbsspn.m4: Remove file.
36535         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36536         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36537
36538         * m4/mbsstr.m4: Remove file.
36539         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36540         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36541
36542         * m4/mbstok_r.m4: Remove file.
36543         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36544         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36545
36546         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36547
36548         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36549         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36550
36551         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36552
36553 2009-03-08  Bruno Haible  <bruno@clisp.org>
36554
36555         Tests for module 'unicase/ulc-casecmp'.
36556         * modules/unicase/ulc-casecmp-tests: New file.
36557         * tests/unicase/test-ulc-casecmp1.sh: New file.
36558         * tests/unicase/test-ulc-casecmp2.sh: New file.
36559         * tests/unicase/test-ulc-casecmp.c: New file.
36560
36561         New module 'unicase/ulc-casecmp'.
36562         * lib/unicase.h (ulc_casecmp): New declaration.
36563         * lib/unicase/ulc-casecmp.c: New file.
36564         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36565         'const SRC_UNIT *'.
36566         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36567         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36568         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36569         * modules/unicase/ulc-casecmp: New file.
36570
36571         Tests for module 'unicase/u32-is-cased'.
36572         * modules/unicase/u32-is-cased-tests: New file.
36573         * tests/unicase/test-u32-is-cased.c: New file.
36574
36575         Tests for module 'unicase/u16-is-cased'.
36576         * modules/unicase/u16-is-cased-tests: New file.
36577         * tests/unicase/test-u16-is-cased.c: New file.
36578
36579         Tests for module 'unicase/u8-is-cased'.
36580         * modules/unicase/u8-is-cased-tests: New file.
36581         * tests/unicase/test-u8-is-cased.c: New file.
36582         * tests/unicase/test-is-cased.h: New file.
36583
36584         New module 'unicase/u32-is-cased'.
36585         * lib/unicase/u32-is-cased.c: New file.
36586         * modules/unicase/u32-is-cased: New file.
36587
36588         New module 'unicase/u16-is-cased'.
36589         * lib/unicase/u16-is-cased.c: New file.
36590         * modules/unicase/u16-is-cased: New file.
36591
36592         New module 'unicase/u8-is-cased'.
36593         * lib/unicase/u8-is-cased.c: New file.
36594         * lib/unicase/u-is-cased.h: New file.
36595         * modules/unicase/u8-is-cased: New file.
36596
36597         Tests for module 'unicase/u32-is-casefolded'.
36598         * modules/unicase/u32-is-casefolded-tests: New file.
36599         * tests/unicase/test-u32-is-casefolded.c: New file.
36600
36601         Tests for module 'unicase/u16-is-casefolded'.
36602         * modules/unicase/u16-is-casefolded-tests: New file.
36603         * tests/unicase/test-u16-is-casefolded.c: New file.
36604
36605         Tests for module 'unicase/u8-is-casefolded'.
36606         * modules/unicase/u8-is-casefolded-tests: New file.
36607         * tests/unicase/test-u8-is-casefolded.c: New file.
36608         * tests/unicase/test-is-casefolded.h: New file.
36609
36610         New module 'unicase/u32-is-casefolded'.
36611         * lib/unicase/u32-is-casefolded.c: New file.
36612         * modules/unicase/u32-is-casefolded: New file.
36613
36614         New module 'unicase/u16-is-casefolded'.
36615         * lib/unicase/u16-is-casefolded.c: New file.
36616         * modules/unicase/u16-is-casefolded: New file.
36617
36618         New module 'unicase/u8-is-casefolded'.
36619         * lib/unicase/u8-is-casefolded.c: New file.
36620         * modules/unicase/u8-is-casefolded: New file.
36621
36622         Tests for module 'unicase/u32-is-titlecase'.
36623         * modules/unicase/u32-is-titlecase-tests: New file.
36624         * tests/unicase/test-u32-is-titlecase.c: New file.
36625
36626         Tests for module 'unicase/u16-is-titlecase'.
36627         * modules/unicase/u16-is-titlecase-tests: New file.
36628         * tests/unicase/test-u16-is-titlecase.c: New file.
36629
36630         Tests for module 'unicase/u8-is-titlecase'.
36631         * modules/unicase/u8-is-titlecase-tests: New file.
36632         * tests/unicase/test-u8-is-titlecase.c: New file.
36633         * tests/unicase/test-is-titlecase.h: New file.
36634
36635         New module 'unicase/u32-is-titlecase'.
36636         * lib/unicase/u32-is-titlecase.c: New file.
36637         * modules/unicase/u32-is-titlecase: New file.
36638
36639         New module 'unicase/u16-is-titlecase'.
36640         * lib/unicase/u16-is-titlecase.c: New file.
36641         * modules/unicase/u16-is-titlecase: New file.
36642
36643         New module 'unicase/u8-is-titlecase'.
36644         * lib/unicase/u8-is-titlecase.c: New file.
36645         * modules/unicase/u8-is-titlecase: New file.
36646
36647         Tests for module 'unicase/u32-is-lowercase'.
36648         * modules/unicase/u32-is-lowercase-tests: New file.
36649         * tests/unicase/test-u32-is-lowercase.c: New file.
36650
36651         Tests for module 'unicase/u16-is-lowercase'.
36652         * modules/unicase/u16-is-lowercase-tests: New file.
36653         * tests/unicase/test-u16-is-lowercase.c: New file.
36654
36655         Tests for module 'unicase/u8-is-lowercase'.
36656         * modules/unicase/u8-is-lowercase-tests: New file.
36657         * tests/unicase/test-u8-is-lowercase.c: New file.
36658         * tests/unicase/test-is-lowercase.h: New file.
36659
36660         New module 'unicase/u32-is-lowercase'.
36661         * lib/unicase/u32-is-lowercase.c: New file.
36662         * modules/unicase/u32-is-lowercase: New file.
36663
36664         New module 'unicase/u16-is-lowercase'.
36665         * lib/unicase/u16-is-lowercase.c: New file.
36666         * modules/unicase/u16-is-lowercase: New file.
36667
36668         New module 'unicase/u8-is-lowercase'.
36669         * lib/unicase/u8-is-lowercase.c: New file.
36670         * modules/unicase/u8-is-lowercase: New file.
36671
36672         Tests for module 'unicase/u32-is-uppercase'.
36673         * modules/unicase/u32-is-uppercase-tests: New file.
36674         * tests/unicase/test-u32-is-uppercase.c: New file.
36675
36676         Tests for module 'unicase/u16-is-uppercase'.
36677         * modules/unicase/u16-is-uppercase-tests: New file.
36678         * tests/unicase/test-u16-is-uppercase.c: New file.
36679
36680         Tests for module 'unicase/u8-is-uppercase'.
36681         * modules/unicase/u8-is-uppercase-tests: New file.
36682         * tests/unicase/test-u8-is-uppercase.c: New file.
36683         * tests/unicase/test-is-uppercase.h: New file.
36684
36685         New module 'unicase/u32-is-uppercase'.
36686         * lib/unicase/u32-is-uppercase.c: New file.
36687         * modules/unicase/u32-is-uppercase: New file.
36688
36689         New module 'unicase/u16-is-uppercase'.
36690         * lib/unicase/u16-is-uppercase.c: New file.
36691         * modules/unicase/u16-is-uppercase: New file.
36692
36693         New module 'unicase/u8-is-uppercase'.
36694         * lib/unicase/u8-is-uppercase.c: New file.
36695         * modules/unicase/u8-is-uppercase: New file.
36696
36697         New module 'unicase/u32-is-invariant'.
36698         * lib/unicase/u32-is-invariant.c: New file.
36699         * modules/unicase/u32-is-invariant: New file.
36700
36701         New module 'unicase/u16-is-invariant'.
36702         * lib/unicase/u16-is-invariant.c: New file.
36703         * modules/unicase/u16-is-invariant: New file.
36704
36705         New module 'unicase/u8-is-invariant'.
36706         * lib/unicase/u8-is-invariant.c: New file.
36707         * lib/unicase/invariant.h: New file.
36708         * lib/unicase/u-is-invariant.h: New file.
36709         * modules/unicase/u8-is-invariant: New file.
36710
36711         Tests for module 'unicase/u32-casecoll'.
36712         * modules/unicase/u32-casecoll-tests: New file.
36713         * tests/unicase/test-u32-casecoll.c: New file.
36714
36715         Tests for module 'unicase/u16-casecoll'.
36716         * modules/unicase/u16-casecoll-tests: New file.
36717         * tests/unicase/test-u16-casecoll.c: New file.
36718
36719         Tests for module 'unicase/u8-casecoll'.
36720         * modules/unicase/u8-casecoll-tests: New file.
36721         * tests/unicase/test-u8-casecoll.c: New file.
36722
36723         New module 'unicase/u32-casecoll'.
36724         * lib/unicase/u32-casecoll.c: New file.
36725         * modules/unicase/u32-casecoll: New file.
36726
36727         New module 'unicase/u16-casecoll'.
36728         * lib/unicase/u16-casecoll.c: New file.
36729         * modules/unicase/u16-casecoll: New file.
36730
36731         New module 'unicase/u8-casecoll'.
36732         * lib/unicase/u8-casecoll.c: New file.
36733         * lib/unicase/u-casecoll.h: New file.
36734         * modules/unicase/u8-casecoll: New file.
36735
36736         New module 'unicase/u32-casexfrm'.
36737         * lib/unicase/u32-casexfrm.c: New file.
36738         * modules/unicase/u32-casexfrm: New file.
36739
36740         New module 'unicase/u16-casexfrm'.
36741         * lib/unicase/u16-casexfrm.c: New file.
36742         * modules/unicase/u16-casexfrm: New file.
36743
36744         New module 'unicase/u8-casexfrm'.
36745         * lib/unicase/u8-casexfrm.c: New file.
36746         * lib/unicase/u-casexfrm.h: New file.
36747         * modules/unicase/u8-casexfrm: New file.
36748
36749         Tests for module 'unicase/u32-casecmp'.
36750         * modules/unicase/u32-casecmp-tests: New file.
36751         * tests/unicase/test-u32-casecmp.c: New file.
36752
36753         Tests for module 'unicase/u16-casecmp'.
36754         * modules/unicase/u16-casecmp-tests: New file.
36755         * tests/unicase/test-u16-casecmp.c: New file.
36756
36757         Tests for module 'unicase/u8-casecmp'.
36758         * modules/unicase/u8-casecmp-tests: New file.
36759         * tests/unicase/test-u8-casecmp.c: New file.
36760         * tests/unicase/test-casecmp.h: New file.
36761
36762         New module 'unicase/u32-casecmp'.
36763         * lib/unicase/u32-casecmp.c: New file.
36764         * modules/unicase/u32-casecmp: New file.
36765
36766         New module 'unicase/u16-casecmp'.
36767         * lib/unicase/u16-casecmp.c: New file.
36768         * modules/unicase/u16-casecmp: New file.
36769
36770         New module 'unicase/u8-casecmp'.
36771         * lib/unicase/u8-casecmp.c: New file.
36772         * lib/unicase/u-casecmp.h: New file.
36773         * modules/unicase/u8-casecmp: New file.
36774
36775         Tests for module 'unicase/u32-casefold'.
36776         * modules/unicase/u32-casefold-tests: New file.
36777         * tests/unicase/test-u32-casefold.c: New file.
36778
36779         Tests for module 'unicase/u16-casefold'.
36780         * modules/unicase/u16-casefold-tests: New file.
36781         * tests/unicase/test-u16-casefold.c: New file.
36782
36783         Tests for module 'unicase/u8-casefold'.
36784         * modules/unicase/u8-casefold-tests: New file.
36785         * tests/unicase/test-u8-casefold.c: New file.
36786
36787         New module 'unicase/u32-casefold'.
36788         * lib/unicase/u32-casefold.c: New file.
36789         * modules/unicase/u32-casefold: New file.
36790
36791         New module 'unicase/u16-casefold'.
36792         * lib/unicase/u16-casefold.c: New file.
36793         * modules/unicase/u16-casefold: New file.
36794
36795         New module 'unicase/u8-casefold'.
36796         * lib/unicase/u8-casefold.c: New file.
36797         * lib/unicase/u-casefold.h: New file.
36798         * modules/unicase/u8-casefold: New file.
36799
36800         New module 'unicase/tocasefold'.
36801         * lib/unicase/casefold.h: New file.
36802         * lib/unicase/tocasefold.c: New file.
36803         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36804         * modules/unicase/tocasefold: New file.
36805
36806         Tests for module 'unicase/u32-totitle'.
36807         * modules/unicase/u32-totitle-tests: New file.
36808         * tests/unicase/test-u32-totitle.c: New file.
36809
36810         Tests for module 'unicase/u16-totitle'.
36811         * modules/unicase/u16-totitle-tests: New file.
36812         * tests/unicase/test-u16-totitle.c: New file.
36813
36814         Tests for module 'unicase/u8-totitle'.
36815         * modules/unicase/u8-totitle-tests: New file.
36816         * tests/unicase/test-u8-totitle.c: New file.
36817
36818         New module 'unicase/u32-totitle'.
36819         * lib/unicase/u32-totitle.c: New file.
36820         * modules/unicase/u32-totitle: New file.
36821
36822         New module 'unicase/u16-totitle'.
36823         * lib/unicase/u16-totitle.c: New file.
36824         * modules/unicase/u16-totitle: New file.
36825
36826         New module 'unicase/u8-totitle'.
36827         * lib/unicase/u8-totitle.c: New file.
36828         * lib/unicase/u-totitle.h: New file.
36829         * modules/unicase/u8-totitle: New file.
36830
36831         Tests for module 'unicase/u32-tolower'.
36832         * modules/unicase/u32-tolower-tests: New file.
36833         * tests/unicase/test-u32-tolower.c: New file.
36834
36835         Tests for module 'unicase/u16-tolower'.
36836         * modules/unicase/u16-tolower-tests: New file.
36837         * tests/unicase/test-u16-tolower.c: New file.
36838
36839         Tests for module 'unicase/u8-tolower'.
36840         * modules/unicase/u8-tolower-tests: New file.
36841         * tests/unicase/test-u8-tolower.c: New file.
36842
36843         New module 'unicase/u32-tolower'.
36844         * lib/unicase/u32-tolower.c: New file.
36845         * modules/unicase/u32-tolower: New file.
36846
36847         New module 'unicase/u16-tolower'.
36848         * lib/unicase/u16-tolower.c: New file.
36849         * modules/unicase/u16-tolower: New file.
36850
36851         New module 'unicase/u8-tolower'.
36852         * lib/unicase/u8-tolower.c: New file.
36853         * modules/unicase/u8-tolower: New file.
36854
36855         Tests for module 'unicase/u32-toupper'.
36856         * modules/unicase/u32-toupper-tests: New file.
36857         * tests/unicase/test-u32-toupper.c: New file.
36858
36859         Tests for module 'unicase/u16-toupper'.
36860         * modules/unicase/u16-toupper-tests: New file.
36861         * tests/unicase/test-u16-toupper.c: New file.
36862
36863         Tests for module 'unicase/u8-toupper'.
36864         * modules/unicase/u8-toupper-tests: New file.
36865         * tests/unicase/test-u8-toupper.c: New file.
36866
36867         New module 'unicase/u32-toupper'.
36868         * lib/unicase/u32-toupper.c: New file.
36869         * modules/unicase/u32-toupper: New file.
36870
36871         New module 'unicase/u16-toupper'.
36872         * lib/unicase/u16-toupper.c: New file.
36873         * modules/unicase/u16-toupper: New file.
36874
36875         New module 'unicase/u8-toupper'.
36876         * lib/unicase/u8-toupper.c: New file.
36877         * modules/unicase/u8-toupper: New file.
36878
36879         New module 'unicase/u32-casemap'.
36880         * lib/unicase/u32-casemap.c: New file.
36881         * modules/unicase/u32-casemap: New file.
36882
36883         New module 'unicase/u16-casemap'.
36884         * lib/unicase/u16-casemap.c: New file.
36885         * modules/unicase/u16-casemap: New file.
36886
36887         New module 'unicase/u8-casemap'.
36888         * lib/unicase/unicasemap.h: New file.
36889         * lib/unicase/u8-casemap.c: New file.
36890         * lib/unicase/u-casemap.h: New file.
36891         * modules/unicase/u8-casemap: New file.
36892
36893         New module 'unicase/special-casing'.
36894         * lib/unicase/special-casing.h: New file.
36895         * lib/unicase/special-casing.c: New file.
36896         * lib/unicase/special-casing-table.gperf: New file, generated by
36897         gen-uni-tables.c.
36898         * modules/unicase/special-casing: New file.
36899
36900         Tests for module 'unicase/locale-language'.
36901         * modules/unicase/locale-language-tests: New file.
36902         * tests/unicase/test-locale-language.sh: New file.
36903         * tests/unicase/test-locale-language.c: New file.
36904
36905         New module 'unicase/locale-language'.
36906         * lib/unicase/locale-language.c: New file.
36907         * lib/unicase/locale-languages.gperf: New file.
36908         * modules/unicase/locale-language: New file.
36909
36910         Generate more tables for case conversion and case folding.
36911         * lib/gen-uni-tables.c (SCC_*): New enum items.
36912         (struct special_casing_rule): New type.
36913         (casing_rules, num_casing_rules, allocated_casing_rules): New
36914         variables.
36915         (add_casing_rule, fill_casing_rules): New functions.
36916         (struct casefold_rule): New type.
36917         (casefolding_rules, num_casefolding_rules,
36918         allocated_casefolding_rules): New variables.
36919         (fill_casefolding_rules): New function.
36920         (unicode_casefold): New variable.
36921         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36922         sort_casing_rules, output_casing_rules): New functions.
36923         (main): Accept to more arguments: SpecialCasing.txt and
36924         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36925         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36926         Output mapping for casefolding.
36927
36928         * lib/unicase.h: Include stdbool.h, uninorm.h.
36929         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36930         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36931         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36932         arguments.
36933         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36934         resultp arguments.
36935         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36936         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36937         resultp arguments.
36938         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36939         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36940         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36941         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36942         declarations.
36943         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36944
36945 2009-03-08  Bruno Haible  <bruno@clisp.org>
36946
36947         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36948         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36949         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36950         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36951
36952 2009-03-07  Bruno Haible  <bruno@clisp.org>
36953
36954         Adjust u*_normcmp, u*_normcoll API.
36955         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36956         u16_normcoll, u32_normcoll): Change failure conventions.
36957         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36958         errno and return -1.
36959         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36960
36961 2009-03-07  Bruno Haible  <bruno@clisp.org>
36962
36963         Tests for module 'uninorm/u32-normcoll'.
36964         * modules/uninorm/u32-normcoll-tests: New file.
36965         * tests/uninorm/test-u32-normcoll.c: New file.
36966
36967         Tests for module 'uninorm/u16-normcoll'.
36968         * modules/uninorm/u16-normcoll-tests: New file.
36969         * tests/uninorm/test-u16-normcoll.c: New file.
36970
36971         Tests for module 'uninorm/u8-normcoll'.
36972         * modules/uninorm/u8-normcoll-tests: New file.
36973         * tests/uninorm/test-u8-normcoll.c: New file.
36974
36975 2009-03-07  Bruno Haible  <bruno@clisp.org>
36976
36977         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36978         tests/uninorm/test-u32-normcmp.c.
36979         * tests/uninorm/test-u32-normcmp.c: Include it.
36980         (test_nonascii): New function, extracted from main. Add some more
36981         tests.
36982         (main): Invoke test_ascii and test_nonascii.
36983         * modules/uninorm/u32-normcmp-tests (Files): Add
36984         tests/uninorm/test-u32-normcmp.h.
36985         (Depends-on): Remove uninorm/u32-normcmp.
36986
36987         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36988         tests/uninorm/test-u16-normcmp.c.
36989         * tests/uninorm/test-u16-normcmp.c: Include it.
36990         (test_nonascii): New function, extracted from main. Add some more
36991         tests.
36992         (main): Invoke test_ascii and test_nonascii.
36993         * modules/uninorm/u16-normcmp-tests (Files): Add
36994         tests/uninorm/test-u16-normcmp.h.
36995         (Depends-on): Remove uninorm/u16-normcmp.
36996
36997         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36998         tests/uninorm/test-u8-normcmp.c.
36999         * tests/uninorm/test-u8-normcmp.c: Include it.
37000         (test_nonascii): New function, extracted from main. Add some more
37001         tests.
37002         (main): Invoke test_ascii and test_nonascii.
37003         * modules/uninorm/u8-normcmp-tests (Files): Add
37004         tests/uninorm/test-u8-normcmp.h.
37005         (Depends-on): Remove uninorm/u8-normcmp.
37006
37007 2009-03-07  Bruno Haible  <bruno@clisp.org>
37008
37009         New module 'uninorm/u32-normcoll'.
37010         * lib/uninorm/u32-normcoll.c: New file.
37011         * modules/uninorm/u32-normcoll: New file.
37012
37013         New module 'uninorm/u16-normcoll'.
37014         * lib/uninorm/u16-normcoll.c: New file.
37015         * modules/uninorm/u16-normcoll: New file.
37016
37017         New module 'uninorm/u8-normcoll'.
37018         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
37019         declarations.
37020         * lib/uninorm/u8-normcoll.c: New file.
37021         * lib/uninorm/u-normcoll.h: New file.
37022         * modules/uninorm/u8-normcoll: New file.
37023
37024         New module 'uninorm/u32-normxfrm'.
37025         * lib/uninorm/u32-normxfrm.c: New file.
37026         * modules/uninorm/u32-normxfrm: New file.
37027
37028         New module 'uninorm/u16-normxfrm'.
37029         * lib/uninorm/u16-normxfrm.c: New file.
37030         * modules/uninorm/u16-normxfrm: New file.
37031
37032         New module 'uninorm/u8-normxfrm'.
37033         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
37034         declarations.
37035         * lib/uninorm/u8-normxfrm.c: New file.
37036         * lib/uninorm/u-normxfrm.h: New file.
37037         * modules/uninorm/u8-normxfrm: New file.
37038
37039 2009-03-07  Bruno Haible  <bruno@clisp.org>
37040
37041         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
37042         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
37043         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
37044
37045 2009-03-07  Bruno Haible  <bruno@clisp.org>
37046
37047         New module 'memxfrm'.
37048         * lib/memxfrm.h: New file.
37049         * lib/memxfrm.c: New file.
37050         * modules/memxfrm: New file.
37051
37052 2009-03-07  Bruno Haible  <bruno@clisp.org>
37053
37054         New module 'memcmp2'.
37055         * lib/memcmp2.h: New file.
37056         * lib/memcmp2.c: New file.
37057         * modules/memcmp2: New file.
37058
37059 2009-03-07  Bruno Haible  <bruno@clisp.org>
37060
37061         Tests for module 'uninorm/decomposing-form'.
37062         * modules/uninorm/decomposing-form-tests: New file.
37063         * tests/uninorm/test-decomposing-form.c: New file.
37064
37065         New module 'uninorm/decomposing-form'.
37066         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
37067         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
37068         Add 'decomposing_variant' field.
37069         * lib/uninorm/decomposing-form.c: New file.
37070         * lib/uninorm/nfc.c (uninorm_nfc): Update.
37071         * lib/uninorm/nfd.c (uninorm_nfd): Update.
37072         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
37073         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
37074         * modules/uninorm/decomposing-form: New file.
37075         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
37076         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
37077
37078 2009-03-07  Bruno Haible  <bruno@clisp.org>
37079
37080         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
37081         strings.
37082
37083 2009-03-06  Bruno Haible  <bruno@clisp.org>
37084
37085         Tests for module 'uninorm/u32-normcmp'.
37086         * tests/uninorm/test-u32-normcmp.c: New file.
37087         * modules/uninorm/u32-normcmp-tests: New file.
37088
37089         Tests for module 'uninorm/u16-normcmp'.
37090         * tests/uninorm/test-u16-normcmp.c: New file.
37091         * modules/uninorm/u16-normcmp-tests: New file.
37092
37093         Tests for module 'uninorm/u8-normcmp'.
37094         * tests/uninorm/test-u8-normcmp.c: New file.
37095         * modules/uninorm/u8-normcmp-tests: New file.
37096
37097         New module 'uninorm/u32-normcmp'.
37098         * lib/uninorm/u32-normcmp.c: New file.
37099         * modules/uninorm/u32-normcmp: New file.
37100
37101         New module 'uninorm/u16-normcmp'.
37102         * lib/uninorm/u16-normcmp.c: New file.
37103         * modules/uninorm/u16-normcmp: New file.
37104
37105         New module 'uninorm/u8-normcmp'.
37106         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
37107         declarations.
37108         * lib/uninorm/u8-normcmp.c: New file.
37109         * lib/uninorm/u-normcmp.h: New file.
37110         * modules/uninorm/u8-normcmp: New file.
37111
37112 2009-03-06  Bruno Haible  <bruno@clisp.org>
37113
37114         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
37115         Reported by Eric Blake.
37116
37117 2009-03-06  Eric Blake  <ebb9@byu.net>
37118             Bruno Haible  <bruno@clisp.org>
37119
37120         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
37121         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
37122         condition.
37123         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37124         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
37125         condition.
37126         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37127
37128 2009-03-06  Eric Blake  <ebb9@byu.net>
37129
37130         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
37131         to avoid compiler warnings.
37132         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
37133
37134 2009-03-05  Bruno Haible  <bruno@clisp.org>
37135
37136         * tests/test-ftell.c (main): Disable test beyond end of file on
37137         FreeMiNT.
37138         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37139
37140 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
37141
37142         * lib/filevercmp.c: Move hidden files up in ordering.
37143         * tests/test-filevercmp.c: Add tests for hidden files.
37144
37145 2009-03-04  Bruno Haible  <bruno@clisp.org>
37146
37147         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
37148         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
37149         AM_CFLAGS.
37150         Reported by Simon Josefsson.
37151
37152 2009-03-03  Bruno Haible  <bruno@clisp.org>
37153
37154         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
37155         Reported by Simon Josefsson.
37156
37157         * doc/ld-version-script.texi: Update node reference.
37158
37159 2009-03-03  Bruno Haible  <bruno@clisp.org>
37160
37161         * modules/visibility (License): Change to 'unlimited'.
37162         Suggested by Simon Josefsson.
37163
37164 2009-03-03  Jim Meyering  <meyering@redhat.com>
37165
37166         unlinkdir: cannot_unlink_dir may modify process state
37167         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
37168         it's neither thread-safe nor appropriate for use in a library.
37169
37170 2009-03-03  Eric Blake  <ebb9@byu.net>
37171
37172         test-closein: silence test under Darwin
37173         * tests/test-closein.sh: Ignore stderr from cat, since we don't
37174         care if it dies from EPIPE or EBADF.
37175
37176 2009-03-03  Bruno Haible  <bruno@clisp.org>
37177
37178         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
37179         earlier.
37180         * doc/visibility.texi: Fix @node and @section.
37181
37182 2009-03-03  Simon Josefsson  <simon@josefsson.org>
37183
37184         * doc/gnulib.texi: Link to sections for ld version script and
37185         visibility.
37186         * doc/visibility.texi: Add @node and @section.
37187         * modules/ld-version-script: New module.
37188         * m4/ld-version-script.m4: New file.
37189         * doc/ld-version-script.texi: New file.
37190
37191 2009-03-02  David Lutterkort  <lutter@redhat.com>
37192
37193         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
37194         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37195
37196 2009-03-02  Bruno Haible  <bruno@clisp.org>
37197
37198         * doc/visibility.texi: Mention libtool's -export-symbols option.
37199
37200 2009-03-02  Jim Meyering  <meyering@redhat.com>
37201
37202         announce-gen: new option: --no-print-checksums
37203         * build-aux/announce-gen (usage): Describe it.
37204         (print_checksums): Print a newline here, not in the [*] footnote.
37205         (main): Honor it.
37206
37207 2009-03-01  Bruno Haible  <bruno@clisp.org>
37208
37209         Use socklen_t in the native Windows replacements prototypes.
37210         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
37211         instead of 'int'.
37212         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37213         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37214         * modules/getsockopt (Depends-on): Add socklen.
37215         * modules/setsockopt (Depends-on): Add socklen.
37216
37217 2009-03-01  Bruno Haible  <bruno@clisp.org>
37218
37219         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
37220         least 4.2.
37221
37222 2009-03-01  Eric Blake  <ebb9@byu.net>
37223             Bruno Haible  <bruno@clisp.org>
37224
37225         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
37226         error messages.
37227         * lib/wait-process.c (wait_subprocess): Omit error message about
37228         deadly signal sent to the child of termsigp != NULL.
37229
37230 2009-03-01  Eric Blake  <ebb9@byu.net>
37231
37232         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
37233
37234 2009-03-01  Bruno Haible  <bruno@clisp.org>
37235
37236         Avoid a gcc warning.
37237         * tests/test-sched.c (b): Make global.
37238         Reported by Eric Blake.
37239
37240 2009-01-19  Martin Lambers  <marlam@marlam.de>
37241
37242         Provide POSIX semantics for socket timeout options on W32.
37243         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
37244         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
37245         * modules/setsockopt: Depend on sys_time module for struct timeval.
37246         * modules/getsockopt: Depend on sys_time module for struct timeval.
37247
37248 2009-03-01  Simon Josefsson  <simon@josefsson.org>
37249
37250         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
37251         __USE_GNU, for consistency with netdb.in.h.
37252         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37253
37254 2009-03-01  Bruno Haible  <bruno@clisp.org>
37255
37256         More support for FreeMiNT.
37257         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37258         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37259
37260 2009-03-01  Bruno Haible  <bruno@clisp.org>
37261
37262         More support for FreeMiNT.
37263         * lib/fpurge.c (fpurge): Correct last commit.
37264         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37265
37266 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37267
37268         Fix unportable awk script in vc-list-files.
37269         * build-aux/vc-list-files: In the replacement awk script, use
37270         substr with a second argument of 1, not zero.
37271         Report by Simon Josefsson.
37272
37273 2009-02-28  Bruno Haible  <bruno@clisp.org>
37274
37275         More support for FreeMiNT.
37276         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37277         to FreeMiNT today.
37278         * lib/fwriting.c (fwriting): Likewise.
37279         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37280
37281 2009-02-28  Bruno Haible  <bruno@clisp.org>
37282
37283         * tests/test-freadseek.c (main): Disable test beyond end of file on
37284         FreeMiNT.
37285         * tests/test-ftello.c (main): Likewise.
37286         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37287
37288 2009-02-28  Bruno Haible  <bruno@clisp.org>
37289
37290         Add tentative support for FreeMiNT.
37291         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37292         * lib/fpurge.c (fpurge): Likewise.
37293         * lib/freadable.c (freadable): Likewise.
37294         * lib/freading.c (freading): Likewise.
37295         * lib/freadptr.c (freadptr): Likewise.
37296         * lib/freadseek.c (freadptrinc): Likewise.
37297         * lib/fseeko.c (rpl_fseeko): Likewise.
37298         * lib/fseterr.c (fseterr): Likewise.
37299         * lib/fwritable.c (fwritable): Likewise.
37300         * lib/fwriting.c (fwriting): Likewise.
37301         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37302         Hourihane.
37303         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37304
37305 2009-02-28  Bruno Haible  <bruno@clisp.org>
37306
37307         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37308         SIGCHLD.
37309         Reported by Jim Meyering.
37310
37311 2009-02-28  Bruno Haible  <bruno@clisp.org>
37312
37313         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37314         Mention the results of these tests on various platforms.
37315         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37316         order.
37317         * doc/posix-functions/printf.texi: Likewise.
37318         * doc/posix-functions/snprintf.texi: Likewise.
37319         * doc/posix-functions/sprintf.texi: Likewise.
37320         * doc/posix-functions/vfprintf.texi: Likewise.
37321         * doc/posix-functions/vprintf.texi: Likewise.
37322         * doc/posix-functions/vsnprintf.texi: Likewise.
37323         * doc/posix-functions/vsprintf.texi: Likewise.
37324         * doc/glibc-functions/obstack_printf.texi: Likewise.
37325         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37326
37327 2009-02-28  Bruno Haible  <bruno@clisp.org>
37328
37329         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37330         Reported by Loïc Minier <lool@dooz.org>.
37331
37332 2009-02-27  Bruno Haible  <bruno@clisp.org>
37333
37334         * gnulib-tool (func_import): Make the sed expression used to create the
37335         sed script for updating the .gitignore file POSIX compliant.
37336         Reported by Eric Blake.
37337
37338 2009-02-27  Bruno Haible  <bruno@clisp.org>
37339
37340         * gnulib-tool (sed): Don't alias as "sed --posix".
37341         Reported by Eric Blake.
37342
37343 2009-02-27  Bruno Haible  <bruno@clisp.org>
37344
37345         Avoid test link errors.
37346         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37347         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37348         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37349         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37350         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37351
37352 2009-02-27  Bruno Haible  <bruno@clisp.org>
37353
37354         Avoid spurious "(cached)" in configure output.
37355         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37356         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37357         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37358         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37359         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37360         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37361         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37362         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37363         Reported by Eric Blake.
37364
37365 2009-02-27  Eric Blake  <ebb9@byu.net>
37366
37367         printf: fix regression in previous patch
37368         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37369
37370 2009-02-27  Bruno Haible  <bruno@clisp.org>
37371
37372         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37373         value.
37374         * lib/stdint.in.h: Likewise.
37375         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37376
37377 2009-02-27  Eric Blake  <ebb9@byu.net>
37378
37379         doc: mention more functions added in cygwin 1.7.0
37380         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37381         addition.
37382         * doc/posix-functions/open_wmemstream.texi: Likewise.
37383         * doc/posix-functions/wcsnlen.texi: Likewise.
37384         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37385         * doc/posix-functions/wcstod.texi: Likewise.
37386         * doc/posix-functions/wcstof.texi: Likewise.
37387         * doc/posix-functions/wcstoimax.texi: Likewise.
37388         * doc/posix-functions/wcstok.texi: Likewise.
37389         * doc/posix-functions/wcstoumax.texi: Likewise.
37390
37391         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37392         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37393         * doc/posix-functions/fprintf.texi: Update.
37394         * doc/posix-functions/printf.texi: Update.
37395         * doc/posix-functions/snprintf.texi: Update.
37396         * doc/posix-functions/sprintf.texi: Update.
37397         * doc/posix-functions/vfprintf.texi: Update.
37398         * doc/posix-functions/vprintf.texi: Update.
37399         * doc/posix-functions/vsnprintf.texi: Update.
37400         * doc/posix-functions/vsprintf.texi: Update.
37401         * doc/glibc-functions/obstack_printf.texi: Update.
37402         * doc/glibc-functions/obstack_vprintf.texi: Update.
37403
37404 2009-02-26  Eric Blake  <ebb9@byu.net>
37405
37406         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
37407         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
37408         compilation bug by using runtime conversion.
37409         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37410         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
37411         * modules/ceill-tests (Files): Use nan.h.
37412         * modules/floorl-tests (Files): Likewise.
37413         * modules/frexpl-tests (Files): Likewise.
37414         * modules/isnanl-tests (Files): Likewise.
37415         * modules/ldexpl-tests (Files): Likewise.
37416         * modules/roundl-tests (Files): Likewise.
37417         * modules/truncl-tests (Files): Likewise.
37418         * tests/test-ceill.c (main): Use a working NaN.
37419         * tests/test-floorl.c (main): Likewise.
37420         * tests/test-frexpl.c (main): Likewise.
37421         * tests/test-isnan.c (test_long_double): Likewise.
37422         * tests/test-isnanl.h (main): Likewise.
37423         * tests/test-ldexpl.h (main): Likewise.
37424         * tests/test-roundl.h (main): Likewise.
37425         * tests/test-truncl.h (main): Likewise.
37426         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
37427
37428 2009-02-26  Eric Blake  <ebb9@byu.net>
37429             Bruno Haible  <bruno@clisp.org>
37430
37431         Work around a *printf bug with %ls on Solaris.
37432         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
37433         precision is specified, sprintf stops converting the wide string
37434         argument when the number of bytes that have been produced by this
37435         conversion equals or exceeds the precision.
37436         * doc/posix-functions/fprintf.texi: Update.
37437         * doc/posix-functions/printf.texi: Update.
37438         * doc/posix-functions/snprintf.texi: Update.
37439         * doc/posix-functions/sprintf.texi: Update.
37440         * doc/posix-functions/vfprintf.texi: Update.
37441         * doc/posix-functions/vprintf.texi: Update.
37442         * doc/posix-functions/vsnprintf.texi: Update.
37443         * doc/posix-functions/vsprintf.texi: Update.
37444         * doc/glibc-functions/obstack_printf.texi: Update.
37445         * doc/glibc-functions/obstack_vprintf.texi: Update.
37446
37447 2009-02-26  Eric Blake  <ebb9@byu.net>
37448
37449         stdlib: favor compiler check of random.h
37450         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
37451         to avoid an ObjC random.h installed by Swarm.
37452
37453 2009-02-26  Bruno Haible  <bruno@clisp.org>
37454
37455         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
37456         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
37457         Reported by Gary V. Vaughan <gary@gnu.org>.
37458
37459 2009-02-26  Bruno Haible  <bruno@clisp.org>
37460
37461         Fix *printf behaviour regarding the %ls directive.
37462         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
37463         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
37464         NEED_PRINTF_DIRECTIVE_LS.
37465         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
37466         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37467         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37468         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
37469         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
37470         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
37471         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37472         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37473         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37474         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37475         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37476         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
37477         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37478         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37479         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37480         * doc/posix-functions/fprintf.texi: Update.
37481         * doc/posix-functions/printf.texi: Update.
37482         * doc/posix-functions/snprintf.texi: Update.
37483         * doc/posix-functions/sprintf.texi: Update.
37484         * doc/posix-functions/vfprintf.texi: Update.
37485         * doc/posix-functions/vprintf.texi: Update.
37486         * doc/posix-functions/vsnprintf.texi: Update.
37487         * doc/posix-functions/vsprintf.texi: Update.
37488         * doc/glibc-functions/obstack_printf.texi: Update.
37489         * doc/glibc-functions/obstack_vprintf.texi: Update.
37490         Reported by Eric Blake.
37491
37492 2009-02-25  Bruno Haible  <bruno@clisp.org>
37493
37494         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37495         with known value.
37496         Reported by Gary V. Vaughan <gary@gnu.org>.
37497
37498 2009-02-25  Bruno Haible  <bruno@clisp.org>
37499
37500         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37501         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37502         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37503         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37504         Reported by Gary V. Vaughan <gary@gnu.org>.
37505
37506 2009-02-25  Bruno Haible  <bruno@clisp.org>
37507
37508         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37509         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37510         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37511         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37512         Reported by Gary V. Vaughan <gary@gnu.org>.
37513
37514 2009-02-25  Eric Blake  <ebb9@byu.net>
37515
37516         tests: skip fseek/ftell tests if ungetc is broken
37517         * m4/ungetc.m4: New file.
37518         * modules/fseek-tests: Split test, so ungetc dependency is
37519         separate from rest of test.
37520         * modules/fseeko-tests: Likewise.
37521         * modules/ftell-tests: Likewise.
37522         * modules/ftello-tests: Likewise.
37523         * tests/test-fseek.c (main): Isolate ungetc dependency.
37524         * tests/test-fseeko.c (main): Likewise.
37525         * tests/test-ftell.c (main): Likewise.
37526         * tests/test-ftello.c (main): Likewise.
37527         * tests/test-fseek2.sh: New file.
37528         * tests/test-fseeko2.sh: Likewise.
37529         * tests/test-ftell2.sh: Likewise.
37530         * tests/test-ftello2.sh: Likewise.
37531
37532 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37533
37534         test-getaddrinfo: fix usage of skip return code 77
37535         * tests/test-gettaddrinfo.c: Return skip code 77 only
37536         for first occurance of skip (4x77 is not 77)
37537
37538 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37539
37540         strtod: avoid C99 decl-after-statement
37541         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37542
37543 2009-02-24  Eric Blake  <ebb9@byu.net>
37544
37545         strtod: detect HP-UX 11.31 bug
37546         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37547         Reported by Gary V. Vaughan.
37548
37549 2009-02-23  Bruno Haible  <bruno@clisp.org>
37550
37551         Fix invalid read past end of memory block.
37552         * lib/vasnprintf.c (DCHAR_SET): Define.
37553         (local_wcslen): Define only when needed.
37554         (local_strnlen, local_wcsnlen): New functions.
37555         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37556         directives that involve a conversion ourselves.
37557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37558         wcsnlen, mbrtowc, wcrtomb.
37559         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37560         * tests/test-vasprintf-posix.c (test_function): Likewise.
37561         * tests/test-snprintf-posix.h (test_function): Likewise.
37562         * tests/test-sprintf-posix.h (test_function): Likewise.
37563         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37564
37565 2009-02-22  Bruno Haible  <bruno@clisp.org>
37566
37567         Implement new clarified decomposition of Hangul syllables.
37568         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37569         of type LTV, return only a pairwise decomposition.
37570         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37571         Likewise.
37572         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37573         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37574         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37575
37576 2009-02-22  Bruno Haible  <bruno@clisp.org>
37577
37578         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37579         zero-length results and shrink excess allocated memory.
37580         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37581         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37582         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37583         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37584         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37585         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37586         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37587         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37588         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37589         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37590         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37591         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37592
37593 2009-02-21  Bruno Haible  <bruno@clisp.org>
37594
37595         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37596         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37597         spaces after a period. Put a space between a macro name and its
37598         argument list. Trivial rewordings.
37599         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37600         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37601         (main): Return 0 explicitly.
37602
37603 2009-02-21  Bruno Haible  <bruno@clisp.org>
37604
37605         Tests for module 'uninorm/filter'.
37606         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37607         * modules/uninorm/filter-tests: New file.
37608
37609         New module 'uninorm/filter'.
37610         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37611         uninorm_filter_flush, uninorm_filter_free): New declarations.
37612         * lib/uninorm/uninorm-filter.c: New file.
37613         * modules/uninorm/filter: New file.
37614
37615 2009-02-21  Bruno Haible  <bruno@clisp.org>
37616
37617         Tests for module 'uninorm/nfkc'.
37618         * tests/uninorm/test-nfkc.c: New file.
37619         * tests/uninorm/test-u8-nfkc.c: New file.
37620         * tests/uninorm/test-u16-nfkc.c: New file.
37621         * tests/uninorm/test-u32-nfkc.c: New file.
37622         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37623         * tests/uninorm/test-u32-nfkc-big.c: New file.
37624         * modules/uninorm/nfkc-tests: New file.
37625
37626         New module 'uninorm/nfkc'.
37627         * lib/uninorm/nfkc.c: New file.
37628         * modules/uninorm/nfkc: New file.
37629
37630         Tests for module 'uninorm/nfkd'.
37631         * tests/uninorm/test-nfkd.c: New file.
37632         * tests/uninorm/test-u8-nfkd.c: New file.
37633         * tests/uninorm/test-u16-nfkd.c: New file.
37634         * tests/uninorm/test-u32-nfkd.c: New file.
37635         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37636         * tests/uninorm/test-u32-nfkd-big.c: New file.
37637         * modules/uninorm/nfkd-tests: New file.
37638
37639         New module 'uninorm/nfkd'.
37640         * lib/uninorm/nfkd.c: New file.
37641         * modules/uninorm/nfkd: New file.
37642
37643         Tests for module 'uninorm/nfc'.
37644         * tests/uninorm/test-nfc.c: New file.
37645         * tests/uninorm/test-u8-nfc.c: New file.
37646         * tests/uninorm/test-u16-nfc.c: New file.
37647         * tests/uninorm/test-u32-nfc.c: New file.
37648         * tests/uninorm/test-u32-nfc-big.sh: New file.
37649         * tests/uninorm/test-u32-nfc-big.c: New file.
37650         * modules/uninorm/nfc-tests: New file.
37651
37652         New module 'uninorm/nfc'.
37653         * lib/uninorm/nfc.c: New file.
37654         * modules/uninorm/nfc: New file.
37655
37656         Tests for module 'uninorm/nfd'.
37657         * tests/uninorm/test-nfd.c: New file.
37658         * tests/uninorm/test-u8-nfd.c: New file.
37659         * tests/uninorm/test-u16-nfd.c: New file.
37660         * tests/uninorm/test-u32-nfd.c: New file.
37661         * tests/uninorm/test-u32-nfd-big.sh: New file.
37662         * tests/uninorm/test-u32-nfd-big.c: New file.
37663         * tests/uninorm/test-u32-normalize-big.h: New file.
37664         * tests/uninorm/test-u32-normalize-big.c: New file.
37665         * tests/uninorm/NormalizationTest.txt: New file, created from
37666         Unicode 5.1.0 NormalizationTest.txt.
37667         * modules/uninorm/nfd-tests: New file.
37668
37669         New module 'uninorm/nfd'.
37670         * lib/uninorm/nfd.c: New file.
37671         * modules/uninorm/nfd: New file.
37672
37673         New module 'uninorm/u32-normalize'.
37674         * lib/uninorm/u32-normalize.c: New file.
37675         * modules/uninorm/u32-normalize: New file.
37676
37677         New module 'uninorm/u16-normalize'.
37678         * lib/uninorm/u16-normalize.c: New file.
37679         * modules/uninorm/u16-normalize: New file.
37680
37681         New module 'uninorm/u8-normalize'.
37682         * lib/uninorm/u8-normalize.c: New file.
37683         * lib/uninorm/normalize-internal.h: New file.
37684         * lib/uninorm/u-normalize-internal.h: New file.
37685         * modules/uninorm/u8-normalize: New file.
37686
37687         New module 'uninorm/decompose-internal'.
37688         * lib/uninorm/decompose-internal.c: New file.
37689         * modules/uninorm/decompose-internal: New file.
37690
37691         Tests for module 'uninorm/composition'.
37692         * tests/uninorm/test-composition.c: New file.
37693         * modules/uninorm/composition-tests: New file.
37694
37695         New module 'uninorm/composition'.
37696         * lib/uninorm/composition.c: New file.
37697         * lib/uninorm/composition-table.gperf: New file, generated by
37698         gen-uni-tables.
37699         * modules/uninorm/composition: New file.
37700
37701         Tests for module 'uninorm/compat-decomposition'.
37702         * tests/uninorm/test-compat-decomposition.c: New file.
37703         * modules/uninorm/compat-decomposition-tests: New file.
37704
37705         New module 'uninorm/compat-decomposition'.
37706         * lib/uninorm/decompose-internal.h: New file.
37707         * lib/uninorm/compat-decomposition.c: New file.
37708         * modules/uninorm/compat-decomposition: New file.
37709
37710         Tests for module 'uninorm/canonical-decomposition'.
37711         * tests/uninorm/test-canonical-decomposition.c: New file.
37712         * modules/uninorm/canonical-decomposition-tests: New file.
37713
37714         New module 'uninorm/canonical-decomposition'.
37715         * lib/uninorm/canonical-decomposition.c: New file.
37716         * modules/uninorm/canonical-decomposition: New file.
37717
37718         Tests for module 'uninorm/decomposition'.
37719         * tests/uninorm/test-decomposition.c: New file.
37720         * modules/uninorm/decomposition-tests: New file.
37721
37722         New module 'uninorm/decomposition'.
37723         * lib/uninorm/decomposition.c: New file.
37724         * modules/uninorm/decomposition: New file.
37725
37726         New module 'uninorm/decomposition-table'.
37727         * lib/uninorm/decomposition-table.h: New file.
37728         * lib/uninorm/decomposition-table.c: New file.
37729         * lib/uninorm/decomposition-table1.h: New file, generated by
37730         gen-uni-tables.
37731         * lib/uninorm/decomposition-table2.h: New file, generated by
37732         gen-uni-tables.
37733         * modules/uninorm/decomposition-table: New file.
37734
37735         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37736         (UC_DECOMP_*): New enumeration items.
37737         (get_decomposition): New function.
37738         (struct decomp_table): New type.
37739         (output_decomposition, output_decomposition_tables): New functions.
37740         (unicode_composition_exclusions): New variable.
37741         (fill_composition_exclusions, debug_output_composition_tables): New
37742         functions.
37743         (main): Accept one more argument. Invoke fill_composition_exclusions.
37744         Output decomposition and composition tables.
37745
37746         New module 'uninorm/base'.
37747         * lib/uninorm.h: New file.
37748         * lib/unictype.h: Update comment.
37749         * modules/uninorm/base: New file.
37750
37751 2009-02-21  David Lutterkort  <lutter@redhat.com>
37752
37753         Tests for module 'safe-alloc'.
37754         * tests/test-safe-alloc.c: New file.
37755         * modules/safe-alloc-tests: New file.
37756
37757         New module 'safe-alloc'.
37758         * lib/safe-alloc.h: New file.
37759         * lib/safe-alloc.c: New file.
37760         * m4/safe-alloc.m4: New file.
37761         * modules/safe-alloc: New file.
37762         * doc/safe-alloc.texi: New file.
37763         * doc/gnulib.texi: Include it.
37764         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37765         safe-alloc.
37766
37767 2009-02-18  Bruno Haible  <bruno@clisp.org>
37768
37769         Fix link error on non-glibc systems.
37770         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37771         variable.
37772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37773
37774 2009-02-18  Jim Meyering  <meyering@redhat.com>
37775
37776         fts: avoid used-uninitialized error due to recent change
37777         * lib/fts.c (fts_read): Guard uses of the new member,
37778         parent->fts_n_dirs_remaining, since it's not relevant for
37779         the parent of a directory specified on the command-line.
37780
37781 2009-02-17  James Youngman  <jay@gnu.org>
37782             Bruno Haible  <bruno@clisp.org>
37783
37784         * m4/include_next.m4: Reformulate comment.
37785
37786 2009-02-16  Jim Meyering  <meyering@redhat.com>
37787
37788         fts: add #if guards so that the fts_lgpl module still builds
37789         * lib/fts.c: Guard just-added hash-table-using parts with
37790         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37791         Reported by Simon Josefsson.
37792
37793 2009-02-15  Bruno Haible  <bruno@clisp.org>
37794
37795         * modules/array-mergesort-tests: New file.
37796         * tests/test-array-mergesort.c: New file.
37797
37798         New module 'array-mergesort'.
37799         * modules/array-mergesort: New file.
37800         * lib/array-mergesort.h: New file.
37801
37802 2009-02-15  Bruno Haible  <bruno@clisp.org>
37803
37804         Fix 2009-02-07 commit.
37805         * lib/gen-uni-tables.c (output_predicate, output_category,
37806         output_combclass, output_bidi_category, output_decimal_digit,
37807         output_digit, output_numeric, output_mirror, output_scripts,
37808         output_ident_category, output_simple_mapping): Fix format directives.
37809         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37810
37811 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37812
37813         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37814         fixes are available from IBM.
37815
37816 2009-02-13  Jim Meyering  <meyering@redhat.com>
37817
37818         fts: arrange not to stat non-directories in more cases
37819         This makes GNU find (when it doesn't need to stat each file)
37820         *much* more efficient at traversing reiserfs file systems.
37821         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37822         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37823         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37824         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37825         (leaf_optimization_applies): New function.
37826         (LCO_hash, LCO_compare): New helper functions.
37827         (link_count_optimize_ok): New function.
37828         (fts_stat): Initialize new member (if dir).
37829         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37830         we've just stat'ed a directory.  Skip the stat call when possible.
37831         ---
37832         Note this AFS-related exchange:
37833         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37834         and note find's pioctl call in find/fstype.c.
37835         But that is necessary only if you want to enable the
37836         optimization for AFS, and for now, I don't.
37837
37838         fts: move a function definition "up" (no semantic change)
37839         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37840         "up" to precede upcoming use of a related function.
37841
37842 2009-02-11  Jim Meyering  <meyering@redhat.com>
37843
37844         fts: correct internal computation of nlinks (optimization-related)
37845         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37846         whether the current entry is a directory, so don't test it.
37847
37848 2009-02-10  Bruno Haible  <bruno@clisp.org>
37849
37850         Tests for module 'uniwbrk/ulc-wordbreaks'.
37851         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37852         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37853         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37854
37855         Tests for module 'uniwbrk/u32-wordbreaks'.
37856         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37857         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37858
37859         Tests for module 'uniwbrk/u16-wordbreaks'.
37860         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37861         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37862
37863         Tests for module 'uniwbrk/u8-wordbreaks'.
37864         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37865         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37866
37867 2009-02-10  Bruno Haible  <bruno@clisp.org>
37868
37869         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37870         property.
37871         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37872         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37873         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37874
37875 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37876
37877         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37878         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37879
37880 2009-02-10  Bruno Haible  <bruno@clisp.org>
37881
37882         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37883         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37884         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37885         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37886         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37887         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37888
37889 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37890
37891         * lib/sockets.h (gl_fd_to_handle): New function.
37892
37893         * tests/test-sockets.c: Call gl_fd_to_handle.
37894
37895 2009-02-09  Bruno Haible  <bruno@clisp.org>
37896
37897         * doc/havelib.texi: Document the conventions on bi-arch systems.
37898
37899 2009-02-08  Bruno Haible  <bruno@clisp.org>
37900
37901         Document the AC_LIB_LINKFLAGS macro.
37902         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37903         * doc/gnulib.texi: Include it.
37904
37905 2009-02-08  Bruno Haible  <bruno@clisp.org>
37906
37907         Fix wrong order of sections, compared to TOC.
37908         * doc/gnulib.texi: Include relocatable-maint.texi after the
37909         "Regular expressions" node, not before.
37910
37911 2009-02-08  Bruno Haible  <bruno@clisp.org>
37912
37913         Tests for module 'unicase/totitle'.
37914         * modules/unicase/totitle-tests: New file.
37915
37916         Tests for module 'unicase/tolower'.
37917         * modules/unicase/tolower-tests: New file.
37918
37919         Tests for module 'unicase/toupper'.
37920         * modules/unicase/toupper-tests: New file.
37921         * tests/unicase/test-mapping-part1.h: New file.
37922         * tests/unicase/test-mapping-part2.h: New file.
37923
37924         New module 'unicase/totitle'.
37925         * modules/unicase/totitle: New file.
37926         * lib/unicase/totitle.c: New file.
37927
37928         New module 'unicase/tolower'.
37929         * modules/unicase/tolower: New file.
37930         * lib/unicase/tolower.c: New file.
37931
37932         New module 'unicase/toupper'.
37933         * modules/unicase/toupper: New file.
37934         * lib/unicase/toupper.c: New file.
37935         * lib/unicase/simple-mapping.h: New file.
37936
37937         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37938         (mapping_table): New structure.
37939         (output_simple_mapping): New function.
37940         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37941         * modules/gen-uni-tables (Description): Update.
37942         * lib/unicase/toupper.h: New file, automatically generated by
37943         gen-uni-tables.
37944         * lib/unicase/tolower.h: New file, automatically generated by
37945         gen-uni-tables.
37946         * lib/unicase/totitle.h: New file, automatically generated by
37947         gen-uni-tables.
37948         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37949         gen-uni-tables.
37950         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37951         gen-uni-tables.
37952         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37953         gen-uni-tables.
37954
37955         New module 'unicase/base'.
37956         * modules/unicase/base: New file.
37957         * lib/unicase.h: New file.
37958
37959 2009-02-08  Bruno Haible  <bruno@clisp.org>
37960
37961         New module 'uniwbrk/ulc-wordbreaks'.
37962         * modules/uniwbrk/ulc-wordbreaks: New file.
37963         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37964
37965         New module 'uniwbrk/u32-wordbreaks'.
37966         * modules/uniwbrk/u32-wordbreaks: New file.
37967         * lib/uniwbrk/u32-wordbreaks.c: New file.
37968
37969         New module 'uniwbrk/u16-wordbreaks'.
37970         * modules/uniwbrk/u16-wordbreaks: New file.
37971         * lib/uniwbrk/u16-wordbreaks.c: New file.
37972
37973         New module 'uniwbrk/u8-wordbreaks'.
37974         * modules/uniwbrk/u8-wordbreaks: New file.
37975         * lib/uniwbrk/u8-wordbreaks.c: New file.
37976         * lib/uniwbrk/u-wordbreaks.h: New file.
37977
37978         New module 'uniwbrk/table'.
37979         * modules/uniwbrk/table: New file.
37980         * lib/uniwbrk/wbrktable.h: New file.
37981         * lib/uniwbrk/wbrktable.c: New file.
37982
37983         New module 'uniwbrk/wordbreak-property'.
37984         * modules/uniwbrk/wordbreak-property: New file.
37985         * lib/uniwbrk/wordbreak-property.c: New file.
37986
37987         * lib/gen-uni-tables.c (WBP_*): New enum items.
37988         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37989         (unicode_org_wbp): New variable.
37990         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37991         New functions.
37992         (wbp_table): New structure.
37993         (output_wbp, output_wbrk_tables): New functions.
37994         (main): Accept additional argument. Invoke fill_org_wbp,
37995         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37996         output_wbrk_tables.
37997         * modules/gen-uni-tables (Description): Update.
37998         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37999         gen-uni-tables.
38000
38001         New module 'uniwbrk/base'.
38002         * modules/uniwbrk/base: New file.
38003         * lib/uniwbrk.h: New file.
38004
38005 2009-02-08  Bruno Haible  <bruno@clisp.org>
38006
38007         Update to Unicode 5.1.0.
38008         * lib/gen-uni-tables.c (is_property_alphabetic): Include
38009         U+2185..U+2188.
38010         (is_property_default_ignorable_code_point): Don't include characters
38011         of category Cc or Cs and not-a-characters.
38012         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
38013         U+0D79, U+109E, U+109F, U+A60C.
38014         * lib/unictype/bidi_of.h: Regenerated.
38015         * lib/unictype/blocks.h: Regenerated.
38016         * lib/unictype/categ_C.h: Regenerated.
38017         * lib/unictype/categ_Cf.h: Regenerated.
38018         * lib/unictype/categ_Cn.h: Regenerated.
38019         * lib/unictype/categ_L.h: Regenerated.
38020         * lib/unictype/categ_Ll.h: Regenerated.
38021         * lib/unictype/categ_Lm.h: Regenerated.
38022         * lib/unictype/categ_Lo.h: Regenerated.
38023         * lib/unictype/categ_Lu.h: Regenerated.
38024         * lib/unictype/categ_M.h: Regenerated.
38025         * lib/unictype/categ_Mc.h: Regenerated.
38026         * lib/unictype/categ_Me.h: Regenerated.
38027         * lib/unictype/categ_Mn.h: Regenerated.
38028         * lib/unictype/categ_N.h: Regenerated.
38029         * lib/unictype/categ_Nd.h: Regenerated.
38030         * lib/unictype/categ_Nl.h: Regenerated.
38031         * lib/unictype/categ_No.h: Regenerated.
38032         * lib/unictype/categ_P.h: Regenerated.
38033         * lib/unictype/categ_Pd.h: Regenerated.
38034         * lib/unictype/categ_Pe.h: Regenerated.
38035         * lib/unictype/categ_Pf.h: Regenerated.
38036         * lib/unictype/categ_Pi.h: Regenerated.
38037         * lib/unictype/categ_Po.h: Regenerated.
38038         * lib/unictype/categ_Ps.h: Regenerated.
38039         * lib/unictype/categ_S.h: Regenerated.
38040         * lib/unictype/categ_Sk.h: Regenerated.
38041         * lib/unictype/categ_Sm.h: Regenerated.
38042         * lib/unictype/categ_So.h: Regenerated.
38043         * lib/unictype/categ_of.h: Regenerated.
38044         * lib/unictype/combining.h: Regenerated.
38045         * lib/unictype/ctype_alnum.h: Regenerated.
38046         * lib/unictype/ctype_alpha.h: Regenerated.
38047         * lib/unictype/ctype_graph.h: Regenerated.
38048         * lib/unictype/ctype_lower.h: Regenerated.
38049         * lib/unictype/ctype_print.h: Regenerated.
38050         * lib/unictype/ctype_punct.h: Regenerated.
38051         * lib/unictype/ctype_upper.h: Regenerated.
38052         * lib/unictype/decdigit.h: Regenerated.
38053         * lib/unictype/digit.h: Regenerated.
38054         * lib/unictype/mirror.h: Regenerated.
38055         * lib/unictype/numeric.h: Regenerated.
38056         * lib/unictype/pr_alphabetic.h: Regenerated.
38057         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
38058         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
38059         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
38060         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
38061         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
38062         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
38063         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
38064         * lib/unictype/pr_combining.h: Regenerated.
38065         * lib/unictype/pr_dash.h: Regenerated.
38066         * lib/unictype/pr_decimal_digit.h: Regenerated.
38067         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
38068         * lib/unictype/pr_deprecated.h: Regenerated.
38069         * lib/unictype/pr_diacritic.h: Regenerated.
38070         * lib/unictype/pr_extender.h: Regenerated.
38071         * lib/unictype/pr_format_control.h: Regenerated.
38072         * lib/unictype/pr_grapheme_base.h: Regenerated.
38073         * lib/unictype/pr_grapheme_extend.h: Regenerated.
38074         * lib/unictype/pr_grapheme_link.h: Regenerated.
38075         * lib/unictype/pr_id_continue.h: Regenerated.
38076         * lib/unictype/pr_id_start.h: Regenerated.
38077         * lib/unictype/pr_ideographic.h: Regenerated.
38078         * lib/unictype/pr_ignorable_control.h: Regenerated.
38079         * lib/unictype/pr_lowercase.h: Regenerated.
38080         * lib/unictype/pr_math.h: Regenerated.
38081         * lib/unictype/pr_numeric.h: Regenerated.
38082         * lib/unictype/pr_other_alphabetic.h: Regenerated.
38083         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
38084         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
38085         * lib/unictype/pr_other_id_continue.h: Regenerated.
38086         * lib/unictype/pr_other_lowercase.h: Regenerated.
38087         * lib/unictype/pr_other_math.h: Regenerated.
38088         * lib/unictype/pr_punctuation.h: Regenerated.
38089         * lib/unictype/pr_sentence_terminal.h: Regenerated.
38090         * lib/unictype/pr_soft_dotted.h: Regenerated.
38091         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
38092         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
38093         * lib/unictype/pr_unified_ideograph.h: Regenerated.
38094         * lib/unictype/pr_uppercase.h: Regenerated.
38095         * lib/unictype/pr_xid_continue.h: Regenerated.
38096         * lib/unictype/pr_xid_start.h: Regenerated.
38097         * lib/unictype/pr_zero_width.h: Regenerated.
38098         * lib/unictype/scripts.h: Regenerated.
38099         * lib/unictype/scripts_byname.gperf: Regenerated.
38100         * lib/unictype/sy_java_ident.h: Regenerated.
38101         * lib/unilbrk/lbrkprop1.h: Regenerated.
38102         * lib/unilbrk/lbrkprop2.h: Regenerated.
38103         * tests/unictype/test-categ_C.c: Regenerated.
38104         * tests/unictype/test-categ_Cf.c: Regenerated.
38105         * tests/unictype/test-categ_Cn.c: Regenerated.
38106         * tests/unictype/test-categ_L.c: Regenerated.
38107         * tests/unictype/test-categ_Ll.c: Regenerated.
38108         * tests/unictype/test-categ_Lm.c: Regenerated.
38109         * tests/unictype/test-categ_Lo.c: Regenerated.
38110         * tests/unictype/test-categ_Lu.c: Regenerated.
38111         * tests/unictype/test-categ_M.c: Regenerated.
38112         * tests/unictype/test-categ_Mc.c: Regenerated.
38113         * tests/unictype/test-categ_Me.c: Regenerated.
38114         * tests/unictype/test-categ_Mn.c: Regenerated.
38115         * tests/unictype/test-categ_N.c: Regenerated.
38116         * tests/unictype/test-categ_Nd.c: Regenerated.
38117         * tests/unictype/test-categ_Nl.c: Regenerated.
38118         * tests/unictype/test-categ_No.c: Regenerated.
38119         * tests/unictype/test-categ_P.c: Regenerated.
38120         * tests/unictype/test-categ_Pd.c: Regenerated.
38121         * tests/unictype/test-categ_Pe.c: Regenerated.
38122         * tests/unictype/test-categ_Pf.c: Regenerated.
38123         * tests/unictype/test-categ_Pi.c: Regenerated.
38124         * tests/unictype/test-categ_Po.c: Regenerated.
38125         * tests/unictype/test-categ_Ps.c: Regenerated.
38126         * tests/unictype/test-categ_S.c: Regenerated.
38127         * tests/unictype/test-categ_Sk.c: Regenerated.
38128         * tests/unictype/test-categ_Sm.c: Regenerated.
38129         * tests/unictype/test-categ_So.c: Regenerated.
38130         * tests/unictype/test-ctype_alnum.c: Regenerated.
38131         * tests/unictype/test-ctype_alpha.c: Regenerated.
38132         * tests/unictype/test-ctype_graph.c: Regenerated.
38133         * tests/unictype/test-ctype_lower.c: Regenerated.
38134         * tests/unictype/test-ctype_print.c: Regenerated.
38135         * tests/unictype/test-ctype_punct.c: Regenerated.
38136         * tests/unictype/test-ctype_upper.c: Regenerated.
38137         * tests/unictype/test-decdigit.h: Regenerated.
38138         * tests/unictype/test-digit.h: Regenerated.
38139         * tests/unictype/test-numeric.h: Regenerated.
38140         * tests/unictype/test-pr_alphabetic.c: Regenerated.
38141         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
38142         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
38143         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
38144         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
38145         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
38146         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
38147         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
38148         * tests/unictype/test-pr_combining.c: Regenerated.
38149         * tests/unictype/test-pr_dash.c: Regenerated.
38150         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
38151         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
38152         * tests/unictype/test-pr_deprecated.c: Regenerated.
38153         * tests/unictype/test-pr_diacritic.c: Regenerated.
38154         * tests/unictype/test-pr_extender.c: Regenerated.
38155         * tests/unictype/test-pr_format_control.c: Regenerated.
38156         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
38157         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
38158         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
38159         * tests/unictype/test-pr_id_continue.c: Regenerated.
38160         * tests/unictype/test-pr_id_start.c: Regenerated.
38161         * tests/unictype/test-pr_ideographic.c: Regenerated.
38162         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
38163         * tests/unictype/test-pr_lowercase.c: Regenerated.
38164         * tests/unictype/test-pr_math.c: Regenerated.
38165         * tests/unictype/test-pr_numeric.c: Regenerated.
38166         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
38167         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
38168         Regenerated.
38169         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
38170         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
38171         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
38172         * tests/unictype/test-pr_other_math.c: Regenerated.
38173         * tests/unictype/test-pr_punctuation.c: Regenerated.
38174         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
38175         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
38176         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
38177         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
38178         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
38179         * tests/unictype/test-pr_uppercase.c: Regenerated.
38180         * tests/unictype/test-pr_xid_continue.c: Regenerated.
38181         * tests/unictype/test-pr_xid_start.c: Regenerated.
38182         * tests/unictype/test-pr_zero_width.c: Regenerated.
38183
38184         Update to Unicode 5.1.0.
38185         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
38186         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
38187         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
38188         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
38189         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
38190         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
38191         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
38192         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
38193         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
38194         (nonspacing_table_ind): Update.
38195         * tests/uniwidth/test-uc_width2.sh: Update expected result.
38196
38197         Update to Unicode 5.1.0.
38198         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
38199         code transform.
38200         * lib/uniname/uniname.c (unicode_character_name,
38201         unicode_name_character): Add the range 0x1Fxxx to the code transform.
38202         * lib/uniname/uninames.h: Regenerated.
38203         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
38204
38205 2009-02-07  Bruno Haible  <bruno@clisp.org>
38206
38207         Merge gen-ctype and gen-lbrk into a single program.
38208         * lib/gen-uni-tables.c: New file, incorporating
38209         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
38210         Add directory prefixes to the names of the generated files.
38211         * lib/unictype/gen-ctype.c: Remove file.
38212         * lib/unilbrk/gen-lbrk.c: Remove file.
38213         * modules/gen-uni-tables: New file.
38214         * modules/unictype/gen-ctype: Remove file.
38215         * modules/unilbrk/gen-lbrk: Remove file.
38216
38217 2009-02-07  Bruno Haible  <bruno@clisp.org>
38218
38219         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
38220
38221         New module 'unistr/u32-strcoll'.
38222         * modules/unistr/u32-strcoll: New file.
38223         * lib/unistr/u32-strcoll.c: New file.
38224
38225         New module 'unistr/u16-strcoll'.
38226         * modules/unistr/u16-strcoll: New file.
38227         * lib/unistr/u16-strcoll.c: New file.
38228
38229         New module 'unistr/u8-strcoll'.
38230         * modules/unistr/u8-strcoll: New file.
38231         * lib/unistr/u8-strcoll.c: New file.
38232         * lib/unistr/u-strcoll.h: New file.
38233
38234 2009-02-07  Bruno Haible  <bruno@clisp.org>
38235
38236         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
38237         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38238         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38239         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
38240         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
38241         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
38242
38243 2009-02-07  Bruno Haible  <bruno@clisp.org>
38244
38245         Make 64-bit clean.
38246         * lib/unictype/gen-ctype.c (output_predicate, output_category,
38247         output_combclass, output_bidi_category, output_decimal_digit,
38248         output_digit, output_numeric, output_mirror, output_scripts,
38249         output_ident_category): Use proper width specifier in format strings.
38250
38251 2009-02-07  Bruno Haible  <bruno@clisp.org>
38252
38253         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38254         failure behaviour.
38255
38256 2009-02-07  Jim Meyering  <meyering@redhat.com>
38257
38258         regex: avoid compilation failure with upcoming gcc-4.4
38259         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38260         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38261         "... error: integer overflow in preprocessor expression".
38262
38263 2009-02-05  Ben Pfaff  <blp@gnu.org>
38264
38265         Fix link errors on Windows when close module is used.
38266         * modules/close: Add $(LIB_CLOSE) to Link section.
38267         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38268         $(LIB_CLOSE) on Windows.
38269
38270 2009-02-05  Jim Meyering  <meyering@redhat.com>
38271
38272         still avoid unused-parameter warnings, but do it cleanly
38273         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38274         (get_fs_usage): Cast to void instead.
38275         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38276         (dev_from_mount_options, read_file_system_list): Cast to void.
38277         Prompted by Bruno Haible.
38278
38279 2009-02-04  Jim Meyering  <meyering@redhat.com>
38280
38281         fsusage.c: correct copyright year
38282         * lib/fsusage.c: Reflect year in which the change is pushed into
38283
38284         avoid misc. warnings
38285         * lib/fsusage.c (UNUSED_PARAM): Define.
38286         (get_fs_usage): Mark parameter "disk" as unused.
38287         * lib/getugroups.c (getgrent): Use "void" in prototype.
38288         * lib/mountlist.c: Mark unused parameters.
38289         (read_file_system_list): Declare a local with "const".
38290         * lib/nanosleep.c (getnow): Declare static.
38291         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38292
38293         dirfd: set errno upon failure
38294         * lib/dirfd.c: Include <errno.h>.
38295         Set errno to ENOTSUP when returning -1.
38296         * modules/dirfd (Depends-on): Add errno.
38297         Suggested by John Kodis <kodis@comcast.net>.
38298
38299 2009-02-01  Bruno Haible  <bruno@clisp.org>
38300
38301         Don't assume sizeof (long) >= sizeof (void *).
38302         * lib/memcmp.c: Include stdint.h.
38303         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38304         srcp2 to 'const byte *'.
38305         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38306         types to uintptr_t.
38307         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38308         * modules/memcmp (Depends-on): Add stdint.
38309         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38310
38311 2009-01-30  Eric Blake  <ebb9@byu.net>
38312
38313         fix more require-before-expand issues
38314         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38315         expand, AC_PROG_AWK.
38316         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38317
38318 2009-01-28  Eric Blake  <ebb9@byu.net>
38319
38320         version-etc: use consistent URL formatting
38321         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38322         Improve formatting.  Use fputs for string without %.
38323
38324 2009-01-28  Jim Meyering  <meyering@redhat.com>
38325
38326         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38327         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38328         "underquoted definition of NAME" from autoconf-2.59.
38329
38330 2009-01-28  Bruno Haible  <bruno@clisp.org>
38331
38332         * doc/gnulib.texi: Add "Obsolete modules" to index.
38333
38334 2009-01-28  Jim Meyering  <meyering@redhat.com>
38335
38336         useless-if-before-free: recognize more variants
38337         * build-aux/useless-if-before-free: Also recognize e.g.,
38338         if (NULL != p) free (p);
38339
38340 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38341
38342         test-getaddrinfo: skip (don't fail) this test when there's no network
38343         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38344         on the presumption that it means you lack network access.
38345
38346 2009-01-26  Jim Meyering  <meyering@redhat.com>
38347
38348         fflush: avoid warnings on modern systems
38349         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38350         pos and result, into scopes where they're used.
38351
38352 2009-01-26  Eric Blake  <ebb9@byu.net>
38353
38354         Silence warning reintroduced by recent extensions patch.
38355         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38356         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38357         autoconf.
38358
38359         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38360         * m4/00gnulib.m4: New file.
38361         * gnulib-tool (func_get_filelist): Always use it.
38362         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38363         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38364
38365 2009-01-25  Bruno Haible  <bruno@clisp.org>
38366
38367         Make test-quotearg work on MacOS X and AIX.
38368         * tests/test-quotearg.sh: New file.
38369         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38370         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38371         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38372         include <libintl.h>.
38373         (fake_locale): Remove variable.
38374         (gettext, dgettext, dcgettext): Remove functions.
38375         (main): Instead of setting a fake locale, set a real locale. Call
38376         textdomain and bindtextdomain.
38377         * modules/quotearg-tests (Files): Add the new files.
38378         (Depends-on): Add gettext, setenv, unsetenv.
38379         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38380         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38381         Augment TESTS_ENVIRONMENT.
38382
38383 2009-01-25  Bruno Haible  <bruno@clisp.org>
38384
38385         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38386         fr_FR.ISO8859-1 locale on MacOS X.
38387         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38388         ja_JP.eucJP locale on MacOS X.
38389         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38390         zh_CN.GB18030 locale on MacOS X.
38391
38392 2009-01-25  Bruno Haible  <bruno@clisp.org>
38393
38394         Avoid link errors on MacOS X 10.3.
38395         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38396         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38397
38398 2009-01-25  Bruno Haible  <bruno@clisp.org>
38399
38400         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38401         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
38402         * modules/pipe (Files): Remove m4/posix_spawn.m4.
38403         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38404         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
38405         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38406         posix_spawnattr_init, posix_spawnattr_setsigmask,
38407         posix_spawnattr_setflags, posix_spawnattr_destroy.
38408
38409         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38410         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
38411         * modules/execute (Files): Remove m4/posix_spawn.m4.
38412         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38413         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38414         posix_spawnattr_init, posix_spawnattr_setsigmask,
38415         posix_spawnattr_setflags, posix_spawnattr_destroy.
38416
38417 2009-01-25  Bruno Haible  <bruno@clisp.org>
38418
38419         * lib/glthread/threadlib.c: Include <stdlib.h>.
38420
38421 2009-01-25  Bruno Haible  <bruno@clisp.org>
38422
38423         * lib/glthread/threadlib.c (dummy): New declaration.
38424
38425 2009-01-25  Bruno Haible  <bruno@clisp.org>
38426
38427         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
38428         multibyte characters also for the GB18030 encoding. Don't crash when
38429         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
38430
38431 2009-01-25  Bruno Haible  <bruno@clisp.org>
38432
38433         Avoid redefining 'struct random_data' on OSF/1 5.1.
38434         * lib/stdlib.in.h: Include <random.h> if it exists.
38435         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
38436         HAVE_RANDOM_H. Include <random.h> when testing whether
38437         'struct random_data' exists.
38438         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
38439
38440 2009-01-25  Bruno Haible  <bruno@clisp.org>
38441
38442         Don't install charset.alias on MacOS X >= 10.3.
38443         * lib/localcharset.c (DARWIN7): New macro.
38444         (get_charset_aliases): Hardcode the result for Darwin7.
38445         * modules/localcharset (install-exec-local): Don't install
38446         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
38447
38448 2009-01-25  Bruno Haible  <bruno@clisp.org>
38449
38450         Don't install charset.alias on mingw and Cygwin.
38451         * modules/localcharset (install-exec-local): Don't install
38452         charset.alias on mingw and Cygwin, if the file does not yet exist.
38453         The result for these platforms is hardcoded in localcharset.c.
38454
38455 2009-01-25  Bruno Haible  <bruno@clisp.org>
38456
38457         Make it possible again to use AC_GNU_SOURCE together with gnulib.
38458         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
38459         before requiring AC_USE_SYSTEM_EXTENSIONS.
38460
38461 2009-01-25  Jim Meyering  <meyering@redhat.com>
38462
38463         c-strtod: avoid warnings
38464         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
38465         "assignment discards qualifiers from pointer target type" warnings.
38466
38467 2009-01-24  Bruno Haible  <bruno@clisp.org>
38468
38469         Add support for non-UTF-8 locales on MacOS X.
38470         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
38471         canonical encodings. For Darwin 7 and newer, don't map traditional
38472         encodings to UTF-8.
38473         Reported by Vincent Lefevre <vincent@vinc17.org>
38474         at <http://savannah.gnu.org/bugs/?25235>.
38475
38476 2009-01-24  Bruno Haible  <bruno@clisp.org>
38477
38478         * doc/gnulib.texi (Obsolete modules): New section.
38479         Reported by Mike Frysinger <vapier@gentoo.org>.
38480
38481 2009-01-24  Bruno Haible  <bruno@clisp.org>
38482
38483         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38484         (%.dvi): New rule.
38485
38486 2009-01-24  Bruno Haible  <bruno@clisp.org>
38487
38488         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38489         Reported by Eric Blake.
38490
38491 2009-01-24  Bruno Haible  <bruno@clisp.org>
38492
38493         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38494         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38495         Reported by Gary V. Vaughan <gary@gnu.org>.
38496
38497 2009-01-24  Bruno Haible  <bruno@clisp.org>
38498
38499         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38500
38501 2009-01-23  Bruno Haible  <bruno@clisp.org>
38502
38503         Make c-strtod, c-strtold usable in libraries.
38504         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38505         (C_STRTOD): Call strdup instead of xstrdup.
38506         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38507         * modules/c-strtold (Depends-on): Likewise.
38508         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38509         * NEWS: Mention the change.
38510         Reported by Michael Gold <mgold@ncf.ca>.
38511
38512 2009-01-23  Jim Meyering  <meyering@redhat.com>
38513
38514         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38515         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38516         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38517
38518 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38519
38520         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38521         GNU CoreUtils.
38522         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38523         * modules/version-etc (Description): Update.
38524
38525 2009-01-22  Bruno Haible  <bruno@clisp.org>
38526
38527         Cache the C locale object.
38528         * lib/c-strtod.c (c_locale_cache): New variable.
38529         (c_locale): New function.
38530         (C_STRTOD): Use it, and don't call freelocale.
38531         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38532         Suggested by Paolo Bonzini.
38533
38534 2009-01-21  Bruno Haible  <bruno@clisp.org>
38535
38536         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38537         conditions other than overflow.
38538
38539 2009-01-21  Bruno Haible  <bruno@clisp.org>
38540
38541         * lib/c-strtod.c: Include errno.h.
38542         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38543         value from STRTOD_L and STRTOD.
38544
38545 2009-01-21  Bruno Haible  <bruno@clisp.org>
38546         and Jim Meyering  <meyering@redhat.com>
38547
38548         nanosleep: skip configure test (fail it) for apple universal builds
38549         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38550         universal builds, assume that nanosleep does not work.
38551         * modules/nanosleep (Depends-on): Add multiarch.
38552
38553         mktime: skip configure test (fail it) for apple universal builds
38554         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38555         universal builds, assume that mktime does not work.
38556         * modules/mktime (Depends-on): Add multiarch.
38557
38558 2009-01-21  Eric Blake  <ebb9@byu.net>
38559
38560         multiarch: avoid expand-before-require warning
38561         * modules/multiarch (configure.ac): Require, rather than expand,
38562         gl_MULTIARCH.
38563         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38564         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38565         enforce that all clients require it.  Partial reversion of
38566         2008-12-29 patch.
38567
38568         error: avoid expand-before-require warning
38569         * modules/errno (configure.ac): Require, rather than expand,
38570         gl_HEADER_ERRNO_H.
38571         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38572         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38573         enforce that all clients require it.
38574
38575         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38576         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38577         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38578         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38579
38580 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38581
38582         Revert:
38583         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38584
38585         regex: do not depend on obsolete modules.
38586         * modules/regex: Remove memcmp and memmove.
38587
38588 2009-01-20  Bruno Haible  <bruno@clisp.org>
38589
38590         Make the 'link' module link on Windows NT 4.
38591         * lib/link.c (_WIN32_WINNT): Don't define.
38592         (CreateHardLinkFuncType): New type.
38593         (CreateHardLinkFunc, initialized): New variables.
38594         (initialize): New function.
38595         (link): Invoke CreateHardLink indirectly through the function pointer.
38596
38597 2009-01-20  Bruno Haible  <bruno@clisp.org>
38598
38599         Fix compilation failure on mingw.
38600         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38601
38602 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38603
38604         * doc/c-strtod.texi: Mention a couple of restrictions.
38605
38606 2009-01-20  Jim Meyering  <meyering@redhat.com>
38607
38608         gettimeofday: move more declarations out of functions
38609         * lib/gettimeofday.c: Move extern declarations of tzset and
38610         gmtime out of containing functions.  Prompted by Bruno Haible.
38611
38612 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38613
38614         regex: do not depend on obsolete modules.
38615         * modules/regex: Remove memcmp and memmove.
38616
38617 2009-01-19  Bruno Haible  <bruno@clisp.org>
38618
38619         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38620         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38621         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38622         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38623         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38624
38625 2009-01-19  Bruno Haible  <bruno@clisp.org>
38626
38627         * tests/test-link.c: Include <errno.h>.
38628         (main): Exit with code 77 when a hard link cannot be created due to
38629         the file system.
38630         * tests/test-link.sh: Skip test when a hard link cannot be created due
38631         to the file system.
38632         Suggested by Eric Blake.
38633
38634 2009-01-19  Martin Lambers  <marlam@marlam.de>
38635
38636         * modules/link-tests: New file.
38637         * tests/test-link.sh: New file.
38638         * tests/test-link.c: New file.
38639
38640 2009-01-19  Eric Blake  <ebb9@byu.net>
38641
38642         doc: mention another function added in cygwin 1.7.0
38643         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38644         Another new function in cygwin 1.7.
38645
38646 2009-01-19  Bruno Haible  <bruno@clisp.org>
38647
38648         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38649         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38650         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38651         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38652         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38653         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38654         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38655         * m4/md4.m4 (gl_MD4): Likewise.
38656         * m4/md5.m4 (gl_MD5): Likewise.
38657         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38658         * m4/sha1.m4 (gl_SHA1): Likewise.
38659         * m4/sha256.m4 (gl_SHA256): Likewise.
38660         * m4/sha512.m4 (gl_SHA512): Likewise.
38661
38662 2009-01-19  Bruno Haible  <bruno@clisp.org>
38663
38664         * modules/uniname/uniname-tests (Depends-on): Add progname.
38665         * tests/uniname/test-uninames.c: Include progname.h.
38666         (main): Call set_program_name.
38667
38668         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38669         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38670         (main): Call set_program_name.
38671
38672         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38673         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38674         (main): Call set_program_name.
38675
38676         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38677         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38678         (main): Call set_program_name.
38679
38680         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38681         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38682         (main): Call set_program_name.
38683
38684         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38685         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38686         (main): Call set_program_name.
38687
38688         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38689         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38690         (main): Call set_program_name.
38691
38692         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38693         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38694         (main): Call set_program_name.
38695
38696         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38697         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38698         (main): Call set_program_name.
38699
38700 2009-01-19  Eric Blake  <ebb9@byu.net>
38701
38702         test-unistd: test previous patch
38703         * tests/test-unistd.c: Test *_FILENO macros.
38704
38705         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38706         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38707         Guarantee a definition.
38708         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38709         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38710         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38711         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38712         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38713         Likewise.
38714         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38715         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38716         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38717         Likewise.
38718         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38719         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38720         (STDERR_FILENO): Likewise.
38721         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38722         (STDERR_FILENO): Likewise.
38723         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38724         (STDERR_FILENO): Likewise.
38725         Reported by Elbert Pol.
38726
38727 2009-01-19  Eric Blake  <ebb9@byu.net>
38728
38729         doc: mention more functions added in cygwin 1.7.0
38730         * doc/posix-functions/abort.texi (abort): Update wording related
38731         to cygwin.
38732         * doc/posix-functions/daylight.texi (daylight): Likewise.
38733         * doc/posix-functions/optarg.texi (optarg): Likewise.
38734         * doc/posix-functions/optarg.texi (opterr): Likewise.
38735         * doc/posix-functions/optarg.texi (optind): Likewise.
38736         * doc/posix-functions/optarg.texi (optopt): Likewise.
38737         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38738         worked in 1.5.x, and was withdrawn in 1.7.
38739         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38740         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38741         cygwin versions.
38742         * doc/posix-functions/perror.texi (perror): Likewise.
38743         * doc/posix-functions/printf.texi (printf): Likewise.
38744         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38745         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38746         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38747         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38748         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38749         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38750         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38751         Likewise.
38752         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38753         Likewise.
38754         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38755         this function.
38756         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38757         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38758         Likewise.
38759         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38760         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38761         * doc/posix-functions/confstr.texi (confstr): Likewise.
38762         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38763         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38764         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38765         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38766         * doc/posix-functions/fputws.texi (fputws): Likewise.
38767         * doc/posix-functions/fwide.texi (fwide): Likewise.
38768         * doc/posix-functions/getwc.texi (getwc): Likewise.
38769         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38770         * doc/posix-functions/putwc.texi (putwc): Likewise.
38771         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38772         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38773         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38774         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38775         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38776         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38777         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38778         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38779         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38780         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38781         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38782
38783 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38784
38785         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38786         * lib/ioctl.c: Include <sys/ioctl.h>.
38787
38788 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38789
38790         * modules/getdate-tests (Depends-on): Add progname.
38791         * tests/test-getdate.c: Use progname module, to avoid link errors
38792         on non-glibc systems.
38793
38794 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38795
38796         * modules/filenamecat-tests (Depends-on): Add progname.
38797         * modules/fstrcmp-tests (Depends-on): Likewise.
38798
38799         * tests/test-filenamecat.c: Use progname module, to avoid link
38800         errors on non-glibc systems.
38801         * tests/test-fstrcmp.c: Likewise.
38802
38803 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38804
38805         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38806         * lib/gettimeofday.c: Move extern declaration out of function.
38807
38808 2009-01-18  Bruno Haible  <bruno@clisp.org>
38809
38810         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38811         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38812         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38813
38814 2009-01-18  Bruno Haible  <bruno@clisp.org>
38815
38816         * lib/strftime.c (MEMPCPY): Remove unused macro.
38817         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38818
38819 2009-01-18  Martin Lambers  <marlam@marlam.de>
38820
38821         New module 'link'.
38822         * lib/unistd.in.h (link): New declaration.
38823         * lib/link.c: New file.
38824         * m4/link.m4: New file.
38825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38826         HAVE_LINK.
38827         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38828         * modules/link: New file.
38829         * doc/posix-functions/link.texi: Mention the new module.
38830
38831 2009-01-18  Bruno Haible  <bruno@clisp.org>
38832
38833         * tests/test-avltree_list.c (main): Call set_program_name.
38834         * tests/test-avltree_oset.c (main): Likewise.
38835         * tests/test-obstack-printf.c: Include progname.h.
38836         (main): Call set_program_name.
38837         * tests/test-quotearg.c: Include progname.h.
38838         (main): Call set_program_name.
38839         * tests/test-xmemdup0.c: Include progname.h.
38840         (main): Call set_program_name.
38841
38842 2009-01-18  Bruno Haible  <bruno@clisp.org>
38843
38844         New module 'alphasort'.
38845         * lib/dirent.in.h (alphasort): New declaration.
38846         * lib/alphasort.c: New file, from glibc with modifications.
38847         * m4/alphasort.m4: New file.
38848         * modules/alphasort: New file.
38849         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38850         HAVE_ALPHASORT.
38851         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38852         HAVE_ALPHASORT.
38853         * doc/posix-functions/alphasort.texi: Mention the new module and the
38854         portability problems.
38855
38856 2009-01-18  Bruno Haible  <bruno@clisp.org>
38857
38858         New module 'scandir'.
38859         * lib/dirent.in.h (scandir): New declaration.
38860         * lib/scandir.c: New file, from glibc with modifications.
38861         * m4/scandir.m4: New file.
38862         * modules/scandir: New file.
38863         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38864         HAVE_SCANDIR.
38865         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38866         HAVE_SCANDIR.
38867         * doc/posix-functions/scandir.texi: Mention the new module and the
38868         portability problems.
38869
38870 2009-01-17  Bruno Haible  <bruno@clisp.org>
38871
38872         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38873         Update documentation.
38874         (func_remove_suffix): Escape all dots in the suffix. Update
38875         documentation.
38876         (func_filter_filelist): Update documentation.
38877         Reported by Ralf Wildenhues.
38878
38879 2009-01-17  Bruno Haible  <bruno@clisp.org>
38880
38881         * modules/dprintf-posix-tests: New file.
38882         * tests/test-dprintf-posix.sh: New file.
38883         * tests/test-dprintf-posix.c: New file.
38884
38885         New modules 'dprintf', 'dprintf-posix'.
38886         * lib/stdio.in.h (dprintf): New declaration.
38887         * lib/dprintf.c: New file.
38888         * m4/dprintf.m4: New file.
38889         * m4/dprintf-posix.m4: New file.
38890         * modules/dprintf: New file.
38891         * modules/dprintf-posix: New file.
38892         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38893         HAVE_DPRINTF, REPLACE_DPRINTF.
38894         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38895         HAVE_DPRINTF, REPLACE_DPRINTF.
38896         * doc/posix-functions/dprintf.texi: Mention the new modules.
38897
38898 2009-01-17  Bruno Haible  <bruno@clisp.org>
38899
38900         * modules/vdprintf-posix-tests: New file.
38901         * tests/test-vdprintf-posix.sh: New file.
38902         * tests/test-vdprintf-posix.c: New file.
38903
38904         New modules 'vdprintf', 'vdprintf-posix'.
38905         * lib/stdio.in.h (vdprintf): New declaration.
38906         * lib/vdprintf.c: New file.
38907         * m4/vdprintf.m4: New file.
38908         * m4/vdprintf-posix.m4: New file.
38909         * modules/vdprintf: New file.
38910         * modules/vdprintf-posix: New file.
38911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38912         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38913         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38914         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38915         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38916
38917 2009-01-17  Bruno Haible  <bruno@clisp.org>
38918
38919         Fix replacement of fopen on mingw.
38920         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38921         mingw.
38922
38923 2009-01-17  Bruno Haible  <bruno@clisp.org>
38924
38925         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38926         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38927
38928 2009-01-17  Bruno Haible  <bruno@clisp.org>
38929
38930         Avoid test-fflush2.sh failure on mingw.
38931         * tests/test-fflush2.c: Include binary-io.h.
38932         (main): Put standard input into binary mode.
38933         * modules/fflush-tests (Depends-on): Add binary-io.
38934
38935 2009-01-17  Bruno Haible  <bruno@clisp.org>
38936
38937         * lib/wchar.in.h: In another particular situation, include only the
38938         system's <wchar.h> file.
38939         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38940         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38941         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38942
38943 2009-01-17  Bruno Haible  <bruno@clisp.org>
38944
38945         Support for stripping executables in --enable-relocatable.
38946         * build-aux/install-reloc: Expect one more argument, or an environment
38947         variable RELOC_STRIP_PROG. If set, strip the destination program and
38948         its wrapper.
38949         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38950         RELOC_STRIP_PROG.
38951         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38952         to set RELOCATABLE_STRIP.
38953         * NEWS: Mention the new Makefile requirement.
38954
38955 2009-01-17  Bruno Haible  <bruno@clisp.org>
38956
38957         * build-aux/install-reloc: Remove debugging information left over by
38958         C compiler on MacOS X.
38959
38960 2009-01-17  Bruno Haible  <bruno@clisp.org>
38961
38962         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38963         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38964         _NSGetExecutablePath.
38965
38966 2009-01-16  Jim Meyering  <meyering@redhat.com>
38967
38968         strerror: avoid warnings about discarding "const"
38969         * lib/strerror.c (rpl_strerror): Instead of returning a const
38970         string from each and every "case", use a variable, and add a single
38971         cast after the switch.
38972
38973 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38974
38975         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38976
38977 2009-01-16  Bruno Haible  <bruno@clisp.org>
38978
38979         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38980         array initializer syntax that also works in C++ mode.
38981         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38982
38983 2009-01-16  Jim Meyering  <meyering@redhat.com>
38984
38985         poll: suppress a warning
38986         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38987         to ignore "...unsigned expression < 0 is always false" warnings.
38988
38989 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38990
38991         poll: remove declarations of unused variables
38992         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38993         sockbuf and optlen.
38994
38995 2009-01-15  Bruno Haible  <bruno@clisp.org>
38996
38997         Make fflush-after-ungetc POSIX compliant on BSD systems.
38998         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38999         (clear_ungetc_buffer): Implement also for other systems.
39000         (rpl_fflush): On glibc systems, invoke
39001         clear_ungetc_buffer_preserving_position. Otherwise, invoke
39002         clear_ungetc_buffer after fetching the stream's position, not before.
39003
39004 2009-01-15  Bruno Haible  <bruno@clisp.org>
39005
39006         Make fflush-after-ungetc POSIX compliant on glibc systems.
39007         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
39008         after ungetc.
39009         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
39010         (rpl_fflush): On glibc systems, simply call the system's fflush
39011         function after clearing the ungetc buffer.
39012         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
39013         Instead, lseek only to the end of file, then use the system's fseeko
39014         for the rest. On glibc systems, reset the EOF indicator bit.
39015
39016 2009-01-15  Jim Meyering  <meyering@redhat.com>
39017
39018         openmp.m4: revert quote-adding change, for portability to older autoconf
39019         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
39020         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
39021         Simon Josefsson noticed the problem when using autoconf-2.61.
39022
39023 2009-01-15  Bruno Haible  <bruno@clisp.org>
39024
39025         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
39026         * tests/test-fflush2.c (ASSERT): Always fail.
39027         (main): Add two tests for fflush() after ungetc(), taking into account
39028         the Austin Group's clarification.
39029         Suggested by Eric Blake.
39030
39031 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
39032
39033         mktime.m4: remove K&R-style function prototypes
39034         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
39035         for the Sun C++ compiler.
39036
39037 2009-01-14  Bruno Haible  <bruno@clisp.org>
39038
39039         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
39040         while including <wchar.h>.
39041         * lib/wchar.in.h: In two particular situations on HP-UX, include only
39042         the system's <wchar.h> file.
39043         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39044
39045 2009-01-14  Bruno Haible  <bruno@clisp.org>
39046
39047         * m4/csharp.m4: Don't mention gettext on the serial number line.
39048         * m4/csharpexec.m4: Likewise.
39049         * m4/eaccess.m4: Likewise.
39050         * m4/javaexec.m4: Likewise.
39051         * m4/sig_atomic_t.m4: Likewise.
39052         * m4/tmpdir.m4: Likewise.
39053         * m4/intldir.m4: Bump gettext version.
39054         * m4/lib-ld.m4: Likewise.
39055
39056 2009-01-14  Bruno Haible  <bruno@clisp.org>
39057
39058         * lib/progname.c (set_program_name): Add more comments.
39059         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39060
39061 2009-01-14  Simon Josefsson  <simon@josefsson.org>
39062
39063         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
39064         were sys/stat.h does not define it.
39065
39066 2009-01-14  Jim Meyering  <meyering@redhat.com>
39067
39068         many *.m4 files: improve m4 quoting
39069         99% of this change was performed by running the following commands:
39070         git ls-files | grep '\.m4$' | xargs perl -pi \
39071           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
39072           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39073           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39074           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
39075         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
39076         The remainder were to add Copyright dates, increment serial numbers,
39077         undo some changes in comments, exclude m4/intl.m4, and add quotes
39078         around the "1" in ",1" where the unusual spacing prohibited the
39079         above regexps from doing the job.  For more details, see
39080         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
39081         * m4/acl.m4: Modified.
39082         * m4/afs.m4: Likewise.
39083         * m4/alloca.m4: Likewise.
39084         * m4/argp.m4: Likewise.
39085         * m4/argz.m4: Likewise.
39086         * m4/atexit.m4: Likewise.
39087         * m4/bison-i18n.m4: Likewise.
39088         * m4/bison.m4: Likewise.
39089         * m4/byteswap.m4: Likewise.
39090         * m4/c-stack.m4: Likewise.
39091         * m4/c-strtod.m4: Likewise.
39092         * m4/calloc.m4: Likewise.
39093         * m4/canonicalize-lgpl.m4: Likewise.
39094         * m4/chown.m4: Likewise.
39095         * m4/clock_time.m4: Likewise.
39096         * m4/codeset.m4: Likewise.
39097         * m4/copy-file.m4: Likewise.
39098         * m4/csharp.m4: Likewise.
39099         * m4/csharpcomp.m4: Likewise.
39100         * m4/csharpexec.m4: Likewise.
39101         * m4/d-ino.m4: Likewise.
39102         * m4/d-type.m4: Likewise.
39103         * m4/dirfd.m4: Likewise.
39104         * m4/double-slash-root.m4: Likewise.
39105         * m4/eaccess.m4: Likewise.
39106         * m4/eealloc.m4: Likewise.
39107         * m4/environ.m4: Likewise.
39108         * m4/errno_h.m4: Likewise.
39109         * m4/euidaccess.m4: Likewise.
39110         * m4/execute.m4: Likewise.
39111         * m4/fatal-signal.m4: Likewise.
39112         * m4/fchdir.m4: Likewise.
39113         * m4/fcntl_h.m4: Likewise.
39114         * m4/fileblocks.m4: Likewise.
39115         * m4/filenamecat.m4: Likewise.
39116         * m4/findprog.m4: Likewise.
39117         * m4/flexmember.m4: Likewise.
39118         * m4/fnmatch.m4: Likewise.
39119         * m4/fopen.m4: Likewise.
39120         * m4/fpending.m4: Likewise.
39121         * m4/fprintf-posix.m4: Likewise.
39122         * m4/free.m4: Likewise.
39123         * m4/frexp.m4: Likewise.
39124         * m4/frexpl.m4: Likewise.
39125         * m4/fsusage.m4: Likewise.
39126         * m4/ftruncate.m4: Likewise.
39127         * m4/gc-camellia.m4: Likewise.
39128         * m4/gc-random.m4: Likewise.
39129         * m4/gc.m4: Likewise.
39130         * m4/getaddrinfo.m4: Likewise.
39131         * m4/getcwd-abort-bug.m4: Likewise.
39132         * m4/getcwd-path-max.m4: Likewise.
39133         * m4/getdate.m4: Likewise.
39134         * m4/getdomainname.m4: Likewise.
39135         * m4/getgroups.m4: Likewise.
39136         * m4/gethostname.m4: Likewise.
39137         * m4/gethrxtime.m4: Likewise.
39138         * m4/getline.m4: Likewise.
39139         * m4/getloadavg.m4: Likewise.
39140         * m4/getndelim2.m4: Likewise.
39141         * m4/getpass.m4: Likewise.
39142         * m4/gettext.m4: Likewise.
39143         * m4/gettime.m4: Likewise.
39144         * m4/gettimeofday.m4: Likewise.
39145         * m4/gnulib-common.m4: Likewise.
39146         * m4/group-member.m4: Likewise.
39147         * m4/host-os.m4: Likewise.
39148         * m4/iconv.m4: Likewise.
39149         * m4/iconv_open.m4: Likewise.
39150         * m4/inet_ntop.m4: Likewise.
39151         * m4/inet_pton.m4: Likewise.
39152         * m4/inline.m4: Likewise.
39153         * m4/intldir.m4: Likewise.
39154         * m4/intlmacosx.m4: Likewise.
39155         * m4/intmax.m4: Likewise.
39156         * m4/intmax_t.m4: Likewise.
39157         * m4/inttypes.m4: Likewise.
39158         * m4/inttypes_h.m4: Likewise.
39159         * m4/inttypes-pri.m4: Likewise.
39160         * m4/isapipe.m4: Likewise.
39161         * m4/isnand.m4: Likewise.
39162         * m4/isnanf.m4: Likewise.
39163         * m4/isnanl.m4: Likewise.
39164         * m4/javacomp.m4: Likewise.
39165         * m4/javaexec.m4: Likewise.
39166         * m4/jm-winsz1.m4: Likewise.
39167         * m4/jm-winsz2.m4: Likewise.
39168         * m4/lchown.m4: Likewise.
39169         * m4/lcmessage.m4: Likewise.
39170         * m4/ldexpl.m4: Likewise.
39171         * m4/lib-ld.m4: Likewise.
39172         * m4/lib-link.m4: Likewise.
39173         * m4/libsigsegv.m4: Likewise.
39174         * m4/link-follow.m4: Likewise.
39175         * m4/localcharset.m4: Likewise.
39176         * m4/locale-fr.m4: Likewise.
39177         * m4/locale-ja.m4: Likewise.
39178         * m4/locale-tr.m4: Likewise.
39179         * m4/locale-zh.m4: Likewise.
39180         * m4/lock.m4: Likewise.
39181         * m4/longlong.m4: Likewise.
39182         * m4/ls-mntd-fs.m4: Likewise.
39183         * m4/lstat.m4: Likewise.
39184         * m4/malloc.m4: Likewise.
39185         * m4/mathl.m4: Likewise.
39186         * m4/mbrtowc.m4: Likewise.
39187         * m4/mbstate_t.m4: Likewise.
39188         * m4/mbswidth.m4: Likewise.
39189         * m4/memchr.m4: Likewise.
39190         * m4/memcmp.m4: Likewise.
39191         * m4/memcpy.m4: Likewise.
39192         * m4/memmem.m4: Likewise.
39193         * m4/memmove.m4: Likewise.
39194         * m4/mempcpy.m4: Likewise.
39195         * m4/memrchr.m4: Likewise.
39196         * m4/memset.m4: Likewise.
39197         * m4/minmax.m4: Likewise.
39198         * m4/mkdir-slash.m4: Likewise.
39199         * m4/mkdtemp.m4: Likewise.
39200         * m4/mktime.m4: Likewise.
39201         * m4/mmap-anon.m4: Likewise.
39202         * m4/mountlist.m4: Likewise.
39203         * m4/nanosleep.m4: Likewise.
39204         * m4/nls.m4: Likewise.
39205         * m4/nocrash.m4: Likewise.
39206         * m4/open.m4: Likewise.
39207         * m4/openat.m4: Likewise.
39208         * m4/openmp.m4: Likewise.
39209         * m4/pathmax.m4: Likewise.
39210         * m4/perl.m4: Likewise.
39211         * m4/physmem.m4: Likewise.
39212         * m4/pipe.m4: Likewise.
39213         * m4/po.m4: Likewise.
39214         * m4/poll.m4: Likewise.
39215         * m4/posixtm.m4: Likewise.
39216         * m4/posixver.m4: Likewise.
39217         * m4/printf-frexp.m4: Likewise.
39218         * m4/printf-frexpl.m4: Likewise.
39219         * m4/printf-posix.m4: Likewise.
39220         * m4/printf-posix-rpl.m4: Likewise.
39221         * m4/printf.m4: Likewise.
39222         * m4/progtest.m4: Likewise.
39223         * m4/putenv.m4: Likewise.
39224         * m4/readline.m4: Likewise.
39225         * m4/readlink.m4: Likewise.
39226         * m4/readutmp.m4: Likewise.
39227         * m4/realloc.m4: Likewise.
39228         * m4/regex.m4: Likewise.
39229         * m4/relocatable.m4: Likewise.
39230         * m4/relocatable-lib.m4: Likewise.
39231         * m4/rename-dest-slash.m4: Likewise.
39232         * m4/rename.m4: Likewise.
39233         * m4/rmdir-errno.m4: Likewise.
39234         * m4/rmdir.m4: Likewise.
39235         * m4/roundf.m4: Likewise.
39236         * m4/roundl.m4: Likewise.
39237         * m4/rpmatch.m4: Likewise.
39238         * m4/save-cwd.m4: Likewise.
39239         * m4/selinux-selinux-h.m4: Likewise.
39240         * m4/setenv.m4: Likewise.
39241         * m4/settime.m4: Likewise.
39242         * m4/sig2str.m4: Likewise.
39243         * m4/sig_atomic_t.m4: Likewise.
39244         * m4/signalblocking.m4: Likewise.
39245         * m4/signbit.m4: Likewise.
39246         * m4/sigpipe.m4: Likewise.
39247         * m4/sockets.m4: Likewise.
39248         * m4/sockpfaf.m4: Likewise.
39249         * m4/st_dm_mode.m4: Likewise.
39250         * m4/stat-time.m4: Likewise.
39251         * m4/stdbool.m4: Likewise.
39252         * m4/stdint.m4: Likewise.
39253         * m4/stdint_h.m4: Likewise.
39254         * m4/stpcpy.m4: Likewise.
39255         * m4/stpncpy.m4: Likewise.
39256         * m4/strcase.m4: Likewise.
39257         * m4/strchrnul.m4: Likewise.
39258         * m4/strcspn.m4: Likewise.
39259         * m4/strdup.m4: Likewise.
39260         * m4/strftime.m4: Likewise.
39261         * m4/strndup.m4: Likewise.
39262         * m4/strnlen.m4: Likewise.
39263         * m4/strpbrk.m4: Likewise.
39264         * m4/strptime.m4: Likewise.
39265         * m4/strsep.m4: Likewise.
39266         * m4/strtod.m4: Likewise.
39267         * m4/strtoimax.m4: Likewise.
39268         * m4/strtok_r.m4: Likewise.
39269         * m4/strtol.m4: Likewise.
39270         * m4/strtoll.m4: Likewise.
39271         * m4/strtoul.m4: Likewise.
39272         * m4/strtoull.m4: Likewise.
39273         * m4/strtoumax.m4: Likewise.
39274         * m4/strverscmp.m4: Likewise.
39275         * m4/threadlib.m4: Likewise.
39276         * m4/timegm.m4: Likewise.
39277         * m4/tm_gmtoff.m4: Likewise.
39278         * m4/tmpdir.m4: Likewise.
39279         * m4/tmpfile.m4: Likewise.
39280         * m4/tzset.m4: Likewise.
39281         * m4/uintmax_t.m4: Likewise.
39282         * m4/unlinkdir.m4: Likewise.
39283         * m4/unlocked-io.m4: Likewise.
39284         * m4/uptime.m4: Likewise.
39285         * m4/userspec.m4: Likewise.
39286         * m4/utimbuf.m4: Likewise.
39287         * m4/utime.m4: Likewise.
39288         * m4/utimes-null.m4: Likewise.
39289         * m4/utimes.m4: Likewise.
39290         * m4/vararrays.m4: Likewise.
39291         * m4/vasnprintf.m4: Likewise.
39292         * m4/vfprintf-posix.m4: Likewise.
39293         * m4/vprintf-posix.m4: Likewise.
39294         * m4/wait-process.m4: Likewise.
39295         * m4/wchar_t.m4: Likewise.
39296         * m4/wint_t.m4: Likewise.
39297         * m4/write-any-file.m4: Likewise.
39298         * m4/yield.m4: Likewise.
39299
39300 2009-01-13  Bruno Haible  <bruno@clisp.org>
39301
39302         Avoid test-copy-file.sh failures when ACL support insufficient.
39303         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39304         TESTS_ENVIRONMENT.
39305         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39306         Reported by Jim Meyering.
39307
39308 2009-01-13  Bruno Haible  <bruno@clisp.org>
39309
39310         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39311         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39312         * modules/unistdio/u8-printf-parse (Files): Likewise.
39313         * modules/unistdio/u32-printf-parse (Files): Likewise.
39314         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39315
39316 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39317
39318         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39319         and m4/inttypes_h.m4 too.
39320
39321 2009-01-12  Eric Blake  <ebb9@byu.net>
39322
39323         tests: IRIX 6.2 cc can't compile -0.0 into .data
39324         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39325         rather than at compile-time.
39326         * tests/test-floorl.c (minus_zero): Likewise.
39327         * tests/test-frexpl.c (minus_zero): Likewise.
39328         * tests/test-isnan.c (minus_zerol): Likewise.
39329         * tests/test-isnanl.h (minus_zero): Likewise.
39330         * tests/test-ldexpl.c (minus_zero): Likewise.
39331         * tests/test-roundl.c (minus_zero): Likewise.
39332         * tests/test-signbit.c (minus_zerol): Likewise.
39333         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39334         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39335         * tests/test-truncl.c (minus_zero): Likewise.
39336         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39337         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39338         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39339
39340 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39341
39342         regex: fix glibc bug 9697
39343         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39344         handling.
39345
39346 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39347
39348         regex: fix glibc bug 697
39349         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39350         being NULL also if there are no backreferences.
39351
39352 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39353
39354         regex: merge glibc changes
39355         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39356         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39357         re_string_skip_chars, re_string_reconstruct): Likewise.
39358         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39359
39360 2009-01-07  Jim Meyering  <meyering@redhat.com>
39361
39362         poll: filter through cppi
39363         * lib/poll.c: Indent cpp directives to reflect nesting.
39364
39365 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39366
39367         poll: don't return uninitialized
39368         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39369
39370 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39371
39372         avoid compile failure on AIX 6.1
39373         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39374         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39375
39376 2009-01-04  Jim Meyering  <meyering@redhat.com>
39377
39378         remove duplicate inclusion of <stdio.h>
39379         * tests/test-fprintf-posix.c: Likewise.
39380         * tests/test-printf-posix.c: Likewise.
39381         * tests/test-snprintf-posix.c: Likewise.
39382         * tests/test-sprintf-posix.c: Likewise.
39383         * tests/test-vasprintf-posix.c: Likewise.
39384         * tests/test-vfprintf-posix.c: Likewise.
39385         * tests/test-vprintf-posix.c: Likewise.
39386         * tests/test-vsnprintf-posix.c: Likewise.
39387         * tests/test-vsprintf-posix.c: Likewise.
39388
39389 2009-01-03  Jim Meyering  <meyering@redhat.com>
39390
39391         gnulib-tool: fix sed-based filtering
39392         * gnulib-tool (func_filter_filelist): Remove extra backslash
39393         in sed_fff_filter definition.
39394
39395 2009-01-02  Jim Meyering  <meyering@redhat.com>
39396
39397         strftime: avoid compilation failure on Solaris 2.6
39398         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
39399         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
39400         Don't #define mbrlen or mbsinit, since now they're guaranteed to
39401         be available.  Reported by Tom G. Christensen.  Details in
39402         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
39403
39404 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39405             Bruno Haible  <bruno@clisp.org>
39406
39407         Speed up gnulib-tool by doing more string processing through shell
39408         built-ins.
39409         * gnulib-tool (fast_func_append): New variable.
39410         (func_remove_prefix, func_remove_suffix): New functions.
39411         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
39412         (func_filter_filelist): New function.
39413         (func_get_dependencies): Use func_remove_suffix instead of sed.
39414         (func_get_automake_snippet): Use func_filter_filelist instead of a
39415         subshell and sed invocation.
39416
39417 2009-01-01  Bruno Haible  <bruno@clisp.org>
39418
39419         Fix a security bug.
39420         * gnulib-tool (func_import, import, update): Don't allow the characters
39421         '"', '$', '`', '\' in macro arguments that become part of commands that
39422         are evaluated.
39423
39424 2009-01-01  Bruno Haible  <bruno@clisp.org>
39425
39426         * gnulib-tool (func_reset_sigpipe): Add more comments.
39427
39428 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39429
39430         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
39431         func_emit_tests_Makefile_am, func_import): Abort loops early if we
39432         already know the answer.
39433
39434 2009-01-01  Jim Meyering  <meyering@redhat.com>
39435
39436         * lib/version-etc.c (version_etc_va): Update copyright year.
39437
39438 2008-12-30  Bruno Haible  <bruno@clisp.org>
39439
39440         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
39441         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
39442         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
39443
39444 2008-12-29  Eric Blake  <ebb9@byu.net>
39445
39446         multiarch: avoid autoconf AC_REQUIRE bug
39447         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
39448         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
39449         2.63 and older.
39450         Reported by Bruno Haible, and analyzed in
39451         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
39452
39453 2008-12-29  Bruno Haible  <bruno@clisp.org>
39454
39455         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
39456         files in subdirectories correctly.
39457         Reported by Ralf Wildenhues.
39458
39459 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39460
39461         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
39462         rather than 'join FILE -', for Solaris join.
39463
39464 2008-12-29  Bruno Haible  <bruno@clisp.org>
39465
39466         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
39467         quoting.
39468         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39469         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39470         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39471         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
39472         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39473         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
39474         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
39475         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
39476         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39477         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
39478         * m4/nls.m4 (AM_NLS): Likewise.
39479         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39480         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39481         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39482         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39483         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39484         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39485         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39486         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39487         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39488         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39489         * m4/xsize.m4 (gl_XSIZE): Likewise.
39490         Suggested by Jim Meyering.
39491
39492 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39493
39494         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39495         * lib/parse-duration.c: use a switch instead of cascading if's.
39496
39497 2008-12-29  Eric Blake  <ebb9@byu.net>
39498
39499         wchar.h: supply WEOF on Irix 5.3
39500         * lib/wchar.in.h (wint_t): Also supply WEOF.
39501         * lib/wctype.in.h (wint_t): Likewise.
39502         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39503         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39504         Reported by Tom G. Christensen.
39505
39506 2008-12-26  Bruno Haible  <bruno@clisp.org>
39507
39508         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39509         i486, i586, i686.
39510
39511 2008-12-26  Bruno Haible  <bruno@clisp.org>
39512
39513         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39514
39515 2008-12-26  Bruno Haible  <bruno@clisp.org>
39516
39517         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39518         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39519         not __STDC_CONSTANT_MACROS.
39520         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39521
39522 2008-12-25  Bruno Haible  <bruno@clisp.org>
39523
39524         Add support for universal builds to vasnprintf.
39525         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39526         universal builds, guess no.
39527         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39528         * modules/vasprintf-posix (Depends-on): Likewise.
39529         * modules/fprintf-posix (Depends-on): Likewise.
39530         * modules/vfprintf-posix (Depends-on): Likewise.
39531         * modules/snprintf-posix (Depends-on): Likewise.
39532         * modules/vsnprintf-posix (Depends-on): Likewise.
39533         * modules/sprintf-posix (Depends-on): Likewise.
39534         * modules/vsprintf-posix (Depends-on): Likewise.
39535         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39536         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39537         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39538         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39539         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39540         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39541         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39542
39543         Add support for universal builds to <inttypes.h>.
39544         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39545         _SCNu64_PREFIX): In Apple
39546         universal builds, define directly, using _LP64.
39547         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39548         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39549         * modules/inttypes (Depends-on): Add multiarch.
39550         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39551
39552         Add support for universal builds to <stdint.h>.
39553         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39554         universal builds, define directly, using _LP64.
39555         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39556         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39557         and size_t.
39558         * modules/stdint (Depends-on): Add multiarch.
39559         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39560
39561         New module 'multiarch'.
39562         * modules/multiarch: New file.
39563         * m4/multiarch.m4: New file.
39564
39565 2008-12-25  Bruno Haible  <bruno@clisp.org>
39566
39567         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39568
39569 2008-12-25  Bruno Haible  <bruno@clisp.org>
39570
39571         * modules/btowc (License): Relicense under LGPLv2+.
39572         * modules/mbsinit (License): Likewise.
39573         * modules/mbrtowc (License): Likewise.
39574         * modules/wcrtomb (License): Likewise.
39575         * modules/streq (License): Likewise.
39576         Reported by David Lutterkort <lutter@redhat.com>.
39577
39578 2008-12-23  Bruno Haible  <bruno@clisp.org>
39579
39580         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39581
39582 2008-12-23  Bruno Haible  <bruno@clisp.org>
39583
39584         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39585         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39586         GETADDRINFO_LIB, not in LIBS.
39587         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39588         * modules/canon-host (Link): Likewise.
39589         * NEWS: Mention the change.
39590         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39591         GETADDRINFO_LIB.
39592
39593 2008-12-22  Bruno Haible  <bruno@clisp.org>
39594
39595         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39596         * doc/posix-functions/iswalpha_l.texi: Likewise.
39597         * doc/posix-functions/iswblank_l.texi: Likewise.
39598         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39599         * doc/posix-functions/iswctype_l.texi: Likewise.
39600         * doc/posix-functions/iswdigit_l.texi: Likewise.
39601         * doc/posix-functions/iswgraph_l.texi: Likewise.
39602         * doc/posix-functions/iswlower_l.texi: Likewise.
39603         * doc/posix-functions/iswprint_l.texi: Likewise.
39604         * doc/posix-functions/iswpunct_l.texi: Likewise.
39605         * doc/posix-functions/iswspace_l.texi: Likewise.
39606         * doc/posix-functions/iswupper_l.texi: Likewise.
39607         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39608         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39609         * doc/posix-functions/open_wmemstream.texi: Likewise.
39610         * doc/posix-functions/swscanf.texi: Likewise.
39611         * doc/posix-functions/towctrans_l.texi: Likewise.
39612         * doc/posix-functions/towlower.texi: Likewise.
39613         * doc/posix-functions/towlower_l.texi: Likewise.
39614         * doc/posix-functions/towupper.texi: Likewise.
39615         * doc/posix-functions/towupper_l.texi: Likewise.
39616         * doc/posix-functions/vfwprintf.texi: Likewise.
39617         * doc/posix-functions/vfwscanf.texi: Likewise.
39618         * doc/posix-functions/vswscanf.texi: Likewise.
39619         * doc/posix-functions/vwprintf.texi: Likewise.
39620         * doc/posix-functions/vwscanf.texi: Likewise.
39621         * doc/posix-functions/wcpcpy.texi: Likewise.
39622         * doc/posix-functions/wcpncpy.texi: Likewise.
39623         * doc/posix-functions/wcscasecmp.texi: Likewise.
39624         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39625         * doc/posix-functions/wcscoll_l.texi: Likewise.
39626         * doc/posix-functions/wcsdup.texi: Likewise.
39627         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39628         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39629         * doc/posix-functions/wcsnlen.texi: Likewise.
39630         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39631         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39632         * doc/posix-functions/wctrans_l.texi: Likewise.
39633         * doc/posix-functions/wctype_l.texi: Likewise.
39634         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39635         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39636         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39637         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39638         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39639         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39640         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39641         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39642         * doc/glibc-functions/wcschrnul.texi: Likewise.
39643         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39644         * doc/glibc-functions/wcstod_l.texi: Likewise.
39645         * doc/glibc-functions/wcstof_l.texi: Likewise.
39646         * doc/glibc-functions/wcstol_l.texi: Likewise.
39647         * doc/glibc-functions/wcstold_l.texi: Likewise.
39648         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39649         * doc/glibc-functions/wcstoq.texi: Likewise.
39650         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39651         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39652         * doc/glibc-functions/wcstouq.texi: Likewise.
39653         * doc/glibc-functions/wmempcpy.texi: Likewise.
39654
39655 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39656             Eric Blake  <ebb9@byu.net>
39657             Paolo Bonzini  <bonzini@gnu.org>
39658             Bruno Haible  <bruno@clisp.org>
39659
39660         Make c-stack work on Haiku.
39661         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39662         (c_stack_action): Use SA_ONSTACK flag.
39663
39664 2008-12-22  Bruno Haible  <bruno@clisp.org>
39665
39666         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39667
39668 2008-12-22  Bruno Haible  <bruno@clisp.org>
39669
39670         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39671         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39672         being overridden.
39673         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39674         New macros.
39675         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39676         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39677         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39678         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39679
39680 2008-12-22  Bruno Haible  <bruno@clisp.org>
39681
39682         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39683         from test code.
39684
39685 2008-12-22  Eric Blake  <ebb9@byu.net>
39686
39687         Avoid gcc warnings on cygwin.
39688         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39689         Avoid unused variable.
39690         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39691         Likewise.
39692
39693 2008-12-22  Bruno Haible  <bruno@clisp.org>
39694
39695         Remove HAVE_MBRTOWC conditionals.
39696         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39697         (mbscasecmp): Assume mbrtowc function.
39698         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39699         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39700         * lib/mbschr.c: Include mbuiter.h unconditionally.
39701         (mbschr): Assume mbrtowc function.
39702         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39703         (mbscspn): Assume mbrtowc function.
39704         * lib/mbslen.c: Include mbuiter.h unconditionally.
39705         (mbslen): Assume mbrtowc function.
39706         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39707         (mbsncasecmp): Assume mbrtowc function.
39708         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39709         (mbsnlen): Assume mbrtowc function.
39710         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39711         (mbspbrk): Assume mbrtowc function.
39712         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39713         (mbspcasecmp): Assume mbrtowc function.
39714         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39715         (mbsrchr): Assume mbrtowc function.
39716         * lib/mbssep.c: Include mbuiter.h unconditionally.
39717         (mbssep): Assume mbrtowc function.
39718         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39719         (mbsspn): Assume mbrtowc function.
39720         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39721         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39722         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39723         (mbstok_r): Assume mbrtowc function.
39724         * lib/propername.c: Include mbuiter.h unconditionally.
39725         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39726         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39727         (trim2): Assume mbrtowc function.
39728         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39729         (mbsnwidth): Assume mbrtowc function.
39730         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39731         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39732         fallback definitions.
39733         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39734
39735 2008-12-22  Bruno Haible  <bruno@clisp.org>
39736
39737         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39738
39739 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39740
39741         * modules/regex: Request emulations for the mb*/wc* functions we need.
39742         * m4/regex.m4: Don't look for those functions here.
39743         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39744
39745 2008-12-22  Bruno Haible  <bruno@clisp.org>
39746
39747         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39748
39749 2008-12-21  Bruno Haible  <bruno@clisp.org>
39750
39751         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39752         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39753         (Include): Remove conditionalization.
39754         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39755         (Include): Remove conditionalization.
39756         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39757         (Include): Remove conditionalization.
39758         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39759         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39760         * NEWS: Mention the change.
39761         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39762         via Sergey Poznyakoff <gray@gnu.org.ua>.
39763
39764 2008-12-21  Bruno Haible  <bruno@clisp.org>
39765
39766         * MODULES.html.sh (Extended multibyte and wide character utilities
39767         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39768         wcrtomb, wcsrtombs.
39769         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39770         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39771         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39772         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39773
39774 2008-12-21  Bruno Haible  <bruno@clisp.org>
39775
39776         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39777
39778 2008-12-21  Bruno Haible  <bruno@clisp.org>
39779
39780         * modules/wcsnrtombs-tests: New file.
39781         * tests/test-wcsnrtombs1.sh: New file.
39782         * tests/test-wcsnrtombs2.sh: New file.
39783         * tests/test-wcsnrtombs3.sh: New file.
39784         * tests/test-wcsnrtombs4.sh: New file.
39785         * tests/test-wcsnrtombs.c: New file.
39786
39787         New module 'wcsnrtombs'.
39788         * lib/wchar.in.h (wcsnrtombs): New declaration.
39789         * lib/wcsnrtombs.c: New file.
39790         * lib/wcsrtombs-state.c: New file.
39791         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39792         (internal_state): Remove variable.
39793         * m4/wcsnrtombs.m4: New file.
39794         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39795         compilation units.
39796         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39797         HAVE_WCSNRTOMBS.
39798         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39799         HAVE_WCSNRTOMBS.
39800         * modules/wcsnrtombs: New file.
39801         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39802         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39803
39804 2008-12-21  Bruno Haible  <bruno@clisp.org>
39805
39806         * modules/wcsrtombs-tests: New file.
39807         * tests/test-wcsrtombs1.sh: New file.
39808         * tests/test-wcsrtombs2.sh: New file.
39809         * tests/test-wcsrtombs3.sh: New file.
39810         * tests/test-wcsrtombs4.sh: New file.
39811         * tests/test-wcsrtombs.c: New file.
39812
39813         New module 'wcsrtombs'.
39814         * lib/wchar.in.h (wcsrtombs): New declaration.
39815         * lib/wcsrtombs.c: New file.
39816         * m4/wcsrtombs.m4: New file.
39817         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39818         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39819         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39820         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39821         * modules/wcsrtombs: New file.
39822         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39823         bugs.
39824
39825 2008-12-21  Bruno Haible  <bruno@clisp.org>
39826
39827         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39828         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39829         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39830         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39831         if not correct.
39832         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39833         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39834         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39835         m4/locale-zh.m4, m4/codeset.m4.
39836         * doc/posix-functions/wcrtomb.texi: Document the bug.
39837
39838 2008-12-21  Bruno Haible  <bruno@clisp.org>
39839
39840         Work around a btowc() bug on IRIX 6.5.
39841         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39842         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39843         REPLACE_WTOBC if not.
39844         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39845         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39846         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39847
39848 2008-12-21  Bruno Haible  <bruno@clisp.org>
39849
39850         * modules/wcrtomb-tests: New file.
39851         * tests/test-wcrtomb.sh: New file.
39852         * tests/test-wcrtomb.c: New file.
39853
39854         New module 'wcrtomb'.
39855         * lib/wchar.in.h (wcrtomb): New declaration.
39856         * lib/wcrtomb.c: New file.
39857         * m4/wcrtomb.m4: New file.
39858         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39859         HAVE_WCRTOMB.
39860         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39861         HAVE_WCRTOMB.
39862         * modules/wcrtomb: New file.
39863         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39864
39865 2008-12-21  Bruno Haible  <bruno@clisp.org>
39866
39867         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39868         * modules/mbsrtowcs (Files): Likewise.
39869         * modules/wctob (Files): Likewise.
39870         * modules/c-strcase-tests (Files): Likewise.
39871         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39872         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39873         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39874         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39875         * modules/vasnprintf-posix-tests (Files): Likewise.
39876
39877 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39878
39879         gitlog-to-changelog: pass all command-line arguments to git-log
39880         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39881         it is sometimes convenient to filter the commits in various ways.
39882         gitlog-to-changelog only allows --since to specify a start date,
39883         but git-log itself supports many other filtering mechanisms.
39884         At the moment, I want to filter by branch name.  Rather than
39885         adding a --branch option to gitlog-to-changelog, it seems more
39886         flexible to simply pass all options directly to git-log and let
39887         git do the work.  Notice that this effectively makes --since a
39888         redundant option for gitlog-to-changelog, but removing it would
39889         require current usage to change since calls would then require
39890         an additional '--'.
39891
39892 2008-12-21  Bruno Haible  <bruno@clisp.org>
39893
39894         * modules/mbsnrtowcs-tests: New file.
39895         * tests/test-mbsnrtowcs1.sh: New file.
39896         * tests/test-mbsnrtowcs2.sh: New file.
39897         * tests/test-mbsnrtowcs3.sh: New file.
39898         * tests/test-mbsnrtowcs4.sh: New file.
39899         * tests/test-mbsnrtowcs.c: New file.
39900
39901         New module 'mbsnrtowcs'.
39902         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39903         * lib/mbsnrtowcs.c: New file.
39904         * lib/mbsrtowcs-state.c: New file.
39905         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39906         (internal_state): Remove variable.
39907         * m4/mbsnrtowcs.m4: New file.
39908         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39909         compilation units.
39910         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39911         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39912         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39913         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39914         * modules/mbsnrtowcs: New file.
39915         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39916         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39917         portability problem.
39918
39919 2008-12-21  Bruno Haible  <bruno@clisp.org>
39920
39921         Work around mbsrtowcs bug.
39922         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39923         (gl_FUNC_MBSRTOWCS): Invoke it.
39924         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39925         m4/locale-zh.m4.
39926         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39927
39928 2008-12-21  Bruno Haible  <bruno@clisp.org>
39929
39930         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39931
39932 2008-12-21  Bruno Haible  <bruno@clisp.org>
39933
39934         Update doc for AIX.
39935         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39936         16-bit wchar_t type.
39937         * doc/posix-functions/btowc.texi: Likewise.
39938         * doc/posix-functions/fgetwc.texi: Likewise.
39939         * doc/posix-functions/fgetws.texi: Likewise.
39940         * doc/posix-functions/fputwc.texi: Likewise.
39941         * doc/posix-functions/fputws.texi: Likewise.
39942         * doc/posix-functions/fwide.texi: Likewise.
39943         * doc/posix-functions/fwprintf.texi: Likewise.
39944         * doc/posix-functions/fwscanf.texi: Likewise.
39945         * doc/posix-functions/getwchar.texi: Likewise.
39946         * doc/posix-functions/getwc.texi: Likewise.
39947         * doc/posix-functions/iswalnum.texi: Likewise.
39948         * doc/posix-functions/iswalpha.texi: Likewise.
39949         * doc/posix-functions/iswblank.texi: Likewise.
39950         * doc/posix-functions/iswcntrl.texi: Likewise.
39951         * doc/posix-functions/iswctype.texi: Likewise.
39952         * doc/posix-functions/iswdigit.texi: Likewise.
39953         * doc/posix-functions/iswgraph.texi: Likewise.
39954         * doc/posix-functions/iswlower.texi: Likewise.
39955         * doc/posix-functions/iswprint.texi: Likewise.
39956         * doc/posix-functions/iswpunct.texi: Likewise.
39957         * doc/posix-functions/iswspace.texi: Likewise.
39958         * doc/posix-functions/iswupper.texi: Likewise.
39959         * doc/posix-functions/iswxdigit.texi: Likewise.
39960         * doc/posix-functions/mbrtowc.texi: Likewise.
39961         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39962         * doc/posix-functions/mbstowcs.texi: Likewise.
39963         * doc/posix-functions/mbtowc.texi: Likewise.
39964         * doc/posix-functions/putwchar.texi: Likewise.
39965         * doc/posix-functions/putwc.texi: Likewise.
39966         * doc/posix-functions/swprintf.texi: Likewise.
39967         * doc/posix-functions/tolower.texi: Likewise.
39968         * doc/posix-functions/toupper.texi: Likewise.
39969         * doc/posix-functions/towctrans.texi: Likewise.
39970         * doc/posix-functions/ungetwc.texi: Likewise.
39971         * doc/posix-functions/vswprintf.texi: Likewise.
39972         * doc/posix-functions/wcrtomb.texi: Likewise.
39973         * doc/posix-functions/wcscat.texi: Likewise.
39974         * doc/posix-functions/wcschr.texi: Likewise.
39975         * doc/posix-functions/wcscmp.texi: Likewise.
39976         * doc/posix-functions/wcscoll.texi: Likewise.
39977         * doc/posix-functions/wcscpy.texi: Likewise.
39978         * doc/posix-functions/wcscspn.texi: Likewise.
39979         * doc/posix-functions/wcsftime.texi: Likewise.
39980         * doc/posix-functions/wcslen.texi: Likewise.
39981         * doc/posix-functions/wcsncat.texi: Likewise.
39982         * doc/posix-functions/wcsncmp.texi: Likewise.
39983         * doc/posix-functions/wcsncpy.texi: Likewise.
39984         * doc/posix-functions/wcspbrk.texi: Likewise.
39985         * doc/posix-functions/wcsrchr.texi: Likewise.
39986         * doc/posix-functions/wcsrtombs.texi: Likewise.
39987         * doc/posix-functions/wcsspn.texi: Likewise.
39988         * doc/posix-functions/wcsstr.texi: Likewise.
39989         * doc/posix-functions/wcstod.texi: Likewise.
39990         * doc/posix-functions/wcstof.texi: Likewise.
39991         * doc/posix-functions/wcstoimax.texi: Likewise.
39992         * doc/posix-functions/wcstok.texi: Likewise.
39993         * doc/posix-functions/wcstold.texi: Likewise.
39994         * doc/posix-functions/wcstoll.texi: Likewise.
39995         * doc/posix-functions/wcstol.texi: Likewise.
39996         * doc/posix-functions/wcstombs.texi: Likewise.
39997         * doc/posix-functions/wcstoull.texi: Likewise.
39998         * doc/posix-functions/wcstoul.texi: Likewise.
39999         * doc/posix-functions/wcstoumax.texi: Likewise.
40000         * doc/posix-functions/wcswidth.texi: Likewise.
40001         * doc/posix-functions/wcsxfrm.texi: Likewise.
40002         * doc/posix-functions/wctob.texi: Likewise.
40003         * doc/posix-functions/wctomb.texi: Likewise.
40004         * doc/posix-functions/wctrans.texi: Likewise.
40005         * doc/posix-functions/wctype.texi: Likewise.
40006         * doc/posix-functions/wcwidth.texi: Likewise.
40007         * doc/posix-functions/wmemchr.texi: Likewise.
40008         * doc/posix-functions/wmemcmp.texi: Likewise.
40009         * doc/posix-functions/wmemcpy.texi: Likewise.
40010         * doc/posix-functions/wmemmove.texi: Likewise.
40011         * doc/posix-functions/wmemset.texi: Likewise.
40012         * doc/posix-functions/wprintf.texi: Likewise.
40013         * doc/posix-functions/wscanf.texi: Likewise.
40014
40015 2008-12-21  Bruno Haible  <bruno@clisp.org>
40016
40017         Update doc for HP-UX 11.11.
40018         * doc/posix-functions/btowc.texi: Clarify that the function is missing
40019         in HP-UX version 11.00, not in all versions of HP-UX 11.
40020         * doc/posix-functions/fwide.texi: Likewise.
40021         * doc/posix-functions/fwprintf.texi: Likewise.
40022         * doc/posix-functions/fwscanf.texi: Likewise.
40023         * doc/posix-functions/inet_ntop.texi: Likewise.
40024         * doc/posix-functions/inet_pton.texi: Likewise.
40025         * doc/posix-functions/mbrlen.texi: Likewise.
40026         * doc/posix-functions/mbrtowc.texi: Likewise.
40027         * doc/posix-functions/mbsinit.texi: Likewise.
40028         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40029         * doc/posix-functions/swprintf.texi: Likewise.
40030         * doc/posix-functions/swscanf.texi: Likewise.
40031         * doc/posix-functions/towctrans.texi: Likewise.
40032         * doc/posix-functions/vfwprintf.texi: Likewise.
40033         * doc/posix-functions/vswprintf.texi: Likewise.
40034         * doc/posix-functions/vwprintf.texi: Likewise.
40035         * doc/posix-functions/wcrtomb.texi: Likewise.
40036         * doc/posix-functions/wcsrtombs.texi: Likewise.
40037         * doc/posix-functions/wcsstr.texi: Likewise.
40038         * doc/posix-functions/wctob.texi: Likewise.
40039         * doc/posix-functions/wctrans.texi: Likewise.
40040         * doc/posix-functions/wmemchr.texi: Likewise.
40041         * doc/posix-functions/wmemcmp.texi: Likewise.
40042         * doc/posix-functions/wmemcpy.texi: Likewise.
40043         * doc/posix-functions/wmemmove.texi: Likewise.
40044         * doc/posix-functions/wmemset.texi: Likewise.
40045         * doc/posix-functions/wprintf.texi: Likewise.
40046         * doc/posix-functions/wscanf.texi: Likewise.
40047
40048 2008-12-21  Bruno Haible  <bruno@clisp.org>
40049
40050         Work around a portability problem.
40051         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
40052         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
40053
40054 2008-12-20  Bruno Haible  <bruno@clisp.org>
40055
40056         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
40057         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
40058         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
40059         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
40060         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
40061
40062         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
40063         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
40064         set.
40065         (GNULIB_defined_mbstate_t): New macro.
40066         (mbsinit): Redefine if REPLACE_MBSINIT is set.
40067         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
40068         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
40069         reuses the system's mbrtowc function but works around the bugs.
40070         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
40071         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
40072         macros.
40073         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
40074         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
40075         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
40076         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
40077         REPLACE_MBSINIT if mbsinit needs to be overridden.
40078         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
40079         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40080         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
40081         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40082         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40083         m4/locale-zh.m4.
40084         (Depends): Add mbsinit.
40085         * modules/mbsinit (Depends): Add mbrtowc.
40086         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
40087
40088 2008-12-20  Bruno Haible  <bruno@clisp.org>
40089
40090         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
40091         so that there are no conversion errors on AIX.
40092         * tests/test-mbsrtowcs.c (main): LIkewise.
40093
40094 2008-12-20  Bruno Haible  <bruno@clisp.org>
40095
40096         Work around wctob bug on Solaris <= 9.
40097         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
40098         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
40099         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
40100         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
40101         * modules/wctob (Files): Add m4/locale-fr.m4.
40102         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
40103
40104 2008-12-20  Bruno Haible  <bruno@clisp.org>
40105
40106         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
40107         /dev/null.
40108         * tests/test-select-in.sh: Likewise.
40109         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40110
40111 2008-12-20  Bruno Haible  <bruno@clisp.org>
40112
40113         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
40114         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
40115         Cygwin 1.5.x.
40116
40117 2008-12-20  Bruno Haible  <bruno@clisp.org>
40118
40119         Ensure mbstate_t is defined on HP-UX 11.11.
40120         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
40121         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
40122         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
40123         AC_USE_SYSTEM_EXTENSIONS.
40124         * modules/fnmatch (Depends-on): Add extensions.
40125         * modules/mbrlen (Depends-on): Likewise.
40126         * modules/mbrtowc (Depends-on): Likewise.
40127         * modules/mbsinit (Depends-on): Likewise.
40128         * modules/mbsrtowcs (Depends-on): Likewise.
40129         * modules/mbswidth (Depends-on): Likewise.
40130         * modules/quotearg (Depends-on): Likewise.
40131         * modules/strftime (Depends-on): Likewise.
40132
40133 2008-12-20  Bruno Haible  <bruno@clisp.org>
40134
40135         Ensure wctob is declared on IRIX 6.5.
40136         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
40137         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
40138         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
40139         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
40140         of HAVE_WCTOB.
40141         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
40142         HAVE_WCTOB.
40143         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
40144
40145 2008-12-19  Bruno Haible  <bruno@clisp.org>
40146
40147         * modules/mbsrtowcs-tests: New file.
40148         * tests/test-mbsrtowcs1.sh: New file.
40149         * tests/test-mbsrtowcs2.sh: New file.
40150         * tests/test-mbsrtowcs3.sh: New file.
40151         * tests/test-mbsrtowcs4.sh: New file.
40152         * tests/test-mbsrtowcs.c: New file.
40153
40154         New module 'mbsrtowcs'.
40155         * lib/wchar.in.h (mbsrtowcs): New declaration.
40156         * lib/mbsrtowcs.c: New file.
40157         * m4/mbsrtowcs.m4: New file.
40158         * modules/mbsrtowcs: New file.
40159         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
40160         HAVE_MBSRTOWCS.
40161         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
40162         HAVE_MBSRTOWCS.
40163         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
40164
40165 2008-12-19  Bruno Haible  <bruno@clisp.org>
40166
40167         New module 'mbrlen'.
40168         * lib/wchar.in.h (mbrlen): New declaration.
40169         * lib/mbrlen.c: New file.
40170         * m4/mbrlen.m4: New file.
40171         * modules/mbrlen: New file.
40172         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
40173         HAVE_MBRLEN.
40174         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
40175         HAVE_MBRLEN.
40176         * doc/posix-functions/mbrlen.texi: Document the new module.
40177
40178 2008-12-19  Bruno Haible  <bruno@clisp.org>
40179
40180         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
40181         * modules/mbrtowc (Depends-on): Add verify.
40182         Suggested by Paul Eggert.
40183
40184 2008-12-18  Bruno Haible  <bruno@clisp.org>
40185
40186         * modules/mbsinit-tests: New file.
40187         * tests/test-mbsinit.sh: New file.
40188         * tests/test-mbsinit.c: New file.
40189
40190 2008-12-18  Bruno Haible  <bruno@clisp.org>
40191
40192         * modules/mbrtowc-tests: New file.
40193         * tests/test-mbrtowc1.sh: New file.
40194         * tests/test-mbrtowc2.sh: New file.
40195         * tests/test-mbrtowc3.sh: New file.
40196         * tests/test-mbrtowc4.sh: New file.
40197         * tests/test-mbrtowc.c: New file.
40198
40199         New module 'mbrtowc'.
40200         * lib/wchar.in.h (mbstate_t): Override when the system does not have
40201         mbsinit and mbrtowc.
40202         (mbrtowc): New declaration.
40203         * lib/mbrtowc.c: New file.
40204         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
40205         * modules/mbrtowc: New file.
40206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
40207         HAVE_MBRTOWC.
40208         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
40209         HAVE_MBRTOWC.
40210         * doc/posix-functions/mbrtowc.texi: Document the new module.
40211
40212 2008-12-18  Bruno Haible  <bruno@clisp.org>
40213
40214         New module 'wctob'.
40215         * lib/wchar.in.h (wctob): New declaration.
40216         * lib/wctob.c: New file.
40217         * m4/wctob.m4: New file.
40218         * modules/wctob: New file.
40219         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
40220         HAVE_WCTOB.
40221         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
40222         * doc/posix-functions/wctob.texi: Document the new module.
40223
40224 2008-12-18  Bruno Haible  <bruno@clisp.org>
40225
40226         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
40227         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
40228
40229 2008-12-18  Simon Josefsson  <simon@josefsson.org>
40230
40231         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
40232         G. Christensen" <tgc@jupiterrise.com>.
40233
40234         * lib/flock.c: Need to include errno.h.  Reported by "Tom
40235         G. Christensen" <tgc@jupiterrise.com>.
40236
40237         * lib/flock.c: Need to include string.h.  Reported by "Tom
40238         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
40239         <ebb9@byu.net>.
40240
40241 2008-12-18  Bruno Haible  <bruno@clisp.org>
40242
40243         * m4/locale-ja.m4: New file, from GNU gettext.
40244
40245 2008-12-17  Bruno Haible  <bruno@clisp.org>
40246
40247         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
40248         Suggested by Eric Blake.
40249
40250 2008-12-17  Bruno Haible  <bruno@clisp.org>
40251
40252         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40253
40254 2008-12-17  Bruno Haible  <bruno@clisp.org>
40255
40256         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40257         * modules/mbsinit (Depends-on): Add verify.
40258         Suggested by Paul Eggert.
40259
40260 2008-12-17  Bruno Haible  <bruno@clisp.org>
40261
40262         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40263         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40264         gl_FUNC_MBRTOWC.
40265         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40266         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40267         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40268         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40269         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40270         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40271         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40272         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40273         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40274         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40275         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40276         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40277         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40278         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40279         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40280         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40281         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40282         * modules/trim (configure.ac): Likewise.
40283
40284 2008-12-17  Bruno Haible  <bruno@clisp.org>
40285
40286         * modules/btowc-tests: New file.
40287         * tests/test-btowc1.sh: New file.
40288         * tests/test-btowc2.sh: New file.
40289         * tests/test-btowc.c: New file.
40290
40291         New module 'btowc'.
40292         * lib/wchar.in.h (btowc): New declaration.
40293         * lib/btowc.c: New file.
40294         * m4/btowc.m4: New file.
40295         * modules/btowc: New file.
40296         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40297         HAVE_BTOWC.
40298         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40299         * doc/posix-functions/btowc.texi: Document the new module.
40300
40301 2008-12-17  Bruno Haible  <bruno@clisp.org>
40302
40303         New module 'mbsinit'.
40304         * lib/wchar.in.h (mbsinit): New declaration.
40305         * lib/mbsinit.c: New file.
40306         * m4/mbsinit.m4: New file.
40307         * modules/mbsinit: New file.
40308         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40309         HAVE_MBSINIT.
40310         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40311         HAVE_MBSINIT.
40312         * doc/posix-functions/mbsinit.texi: Document the new module.
40313
40314 2008-12-16  Bruno Haible  <bruno@clisp.org>
40315
40316         * lib/unistd.in.h: Add comment.
40317         * tests/test-environ.c: Don't include <stdlib.h>.
40318
40319 2008-12-16  Bruno Haible  <bruno@clisp.org>
40320
40321         * lib/parse-duration.h (parse_duration): Document return value
40322         convention.
40323         * lib/parse-duration.c: Include specification header first. Add
40324         comments.
40325         (_): Remove macro.
40326         (parse_year_month_day, parse_hour_minute_second): Move side effects
40327         outside of strchr call.
40328         (parse_non_iso8601): Move side effects outside of isspace call.
40329         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40330         call.
40331
40332 2008-12-16  Bruno Haible  <bruno@clisp.org>
40333
40334         * tests/test-parse-duration.sh: Produce no output when the test
40335         succeeds.
40336
40337 2008-12-16  Bruno Haible  <bruno@clisp.org>
40338
40339         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40340         expressions.
40341
40342 2008-12-15  Bruno Haible  <bruno@clisp.org>
40343
40344         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40345         * doc/glibc-functions/flistxattr.texi: Likewise.
40346         * doc/glibc-functions/fopencookie.texi: Likewise.
40347         * doc/glibc-functions/fremovexattr.texi: Likewise.
40348         * doc/glibc-functions/fsetxattr.texi: Likewise.
40349         * doc/glibc-functions/getxattr.texi: Likewise.
40350         * doc/glibc-functions/lgetxattr.texi: Likewise.
40351         * doc/glibc-functions/listxattr.texi: Likewise.
40352         * doc/glibc-functions/llistxattr.texi: Likewise.
40353         * doc/glibc-functions/lremovexattr.texi: Likewise.
40354         * doc/glibc-functions/lsetxattr.texi: Likewise.
40355         * doc/glibc-functions/removexattr.texi: Likewise.
40356         * doc/glibc-functions/setxattr.texi: Likewise.
40357         * doc/posix-functions/open_memstream.texi: Likewise.
40358
40359 2008-12-15  Eric Blake  <ebb9@byu.net>
40360
40361         Update doc for cygwin 1.7.
40362         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40363         functions.
40364         * doc/posix-functions/fchmodat.texi: Likewise.
40365         * doc/posix-functions/fchownat.texi: Likewise.
40366         * doc/posix-functions/fdopendir.texi: Likewise.
40367         * doc/posix-functions/fmemopen.texi: Likewise.
40368         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40369         * doc/posix-functions/fstatat.texi: Likewise.
40370         * doc/posix-functions/futimens.texi: Likewise.
40371         * doc/posix-functions/gai_strerror.texi: Likewise.
40372         * doc/posix-functions/getaddrinfo.texi: Likewise.
40373         * doc/posix-functions/getnameinfo.texi: Likewise.
40374         * doc/posix-functions/if_freenameindex.texi: Likewise.
40375         * doc/posix-functions/if_indextoname.texi: Likewise.
40376         * doc/posix-functions/if_nameindex.texi: Likewise.
40377         * doc/posix-functions/if_nametoindex.texi: Likewise.
40378         * doc/posix-functions/insque.texi: Likewise.
40379         * doc/posix-functions/linkat.texi: Likewise.
40380         * doc/posix-functions/llrint.texi: Likewise.
40381         * doc/posix-functions/llrintf.texi: Likewise.
40382         * doc/posix-functions/llrintl.texi: Likewise.
40383         * doc/posix-functions/lockf.texi: Likewise.
40384         * doc/posix-functions/lrintl.texi: Likewise.
40385         * doc/posix-functions/mkdirat.texi: Likewise.
40386         * doc/posix-functions/mkfifoat.texi: Likewise.
40387         * doc/posix-functions/mknodat.texi: Likewise.
40388         * doc/posix-functions/mq_close.texi: Likewise.
40389         * doc/posix-functions/mq_getattr.texi: Likewise.
40390         * doc/posix-functions/mq_notify.texi: Likewise.
40391         * doc/posix-functions/mq_open.texi: Likewise.
40392         * doc/posix-functions/mq_receive.texi: Likewise.
40393         * doc/posix-functions/mq_send.texi: Likewise.
40394         * doc/posix-functions/mq_setattr.texi: Likewise.
40395         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40396         * doc/posix-functions/mq_timedsend.texi: Likewise.
40397         * doc/posix-functions/mq_unlink.texi: Likewise.
40398         * doc/posix-functions/open_memstream.texi: Likewise.
40399         * doc/posix-functions/openat.texi: Likewise.
40400         * doc/posix-functions/posix_fadvise.texi: Likewise.
40401         * doc/posix-functions/posix_fallocate.texi: Likewise.
40402         * doc/posix-functions/posix_madvise.texi: Likewise.
40403         * doc/posix-functions/posix_memalign.texi: Likewise.
40404         * doc/posix-functions/posix_openpt.texi: Likewise.
40405         * doc/posix-functions/readlinkat.texi: Likewise.
40406         * doc/posix-functions/remque.texi: Likewise.
40407         * doc/posix-functions/renameat.texi: Likewise.
40408         * doc/posix-functions/rintl.texi: Likewise.
40409         * doc/posix-functions/sem_unlink.texi: Likewise.
40410         * doc/posix-functions/shm_open.texi: Likewise.
40411         * doc/posix-functions/shm_unlink.texi: Likewise.
40412         * doc/posix-functions/signgam.texi: Likewise.
40413         * doc/posix-functions/sigset.texi: Likewise.
40414         * doc/posix-functions/stpcpy.texi: Likewise.
40415         * doc/posix-functions/stpncpy.texi: Likewise.
40416         * doc/posix-functions/strerror.texi: Likewise.
40417         * doc/posix-functions/strtod.texi: Likewise.
40418         * doc/posix-functions/symlinkat.texi: Likewise.
40419         * doc/posix-functions/unlinkat.texi: Likewise.
40420         * doc/posix-functions/utimensat.texi: Likewise.
40421         * doc/glibc-functions/bindresvport.texi: Likewise.
40422         * doc/glibc-functions/dn_expand.texi: Likewise.
40423         * doc/glibc-functions/exp10.texi: Likewise.
40424         * doc/glibc-functions/exp10f.texi: Likewise.
40425         * doc/glibc-functions/fgetxattr.texi: Likewise.
40426         * doc/glibc-functions/flistxattr.texi: Likewise.
40427         * doc/glibc-functions/fopencookie.texi: Likewise.
40428         * doc/glibc-functions/freeifaddrs.texi: Likewise.
40429         * doc/glibc-functions/fremovexattr.texi: Likewise.
40430         * doc/glibc-functions/fsetxattr.texi: Likewise.
40431         * doc/glibc-functions/getifaddrs.texi: Likewise.
40432         * doc/glibc-functions/getxattr.texi: Likewise.
40433         * doc/glibc-functions/lgetxattr.texi: Likewise.
40434         * doc/glibc-functions/listxattr.texi: Likewise.
40435         * doc/glibc-functions/llistxattr.texi: Likewise.
40436         * doc/glibc-functions/lremovexattr.texi: Likewise.
40437         * doc/glibc-functions/lsetxattr.texi: Likewise.
40438         * doc/glibc-functions/pow10.texi: Likewise.
40439         * doc/glibc-functions/pow10f.texi: Likewise.
40440         * doc/glibc-functions/rcmd_af.texi: Likewise.
40441         * doc/glibc-functions/removexattr.texi: Likewise.
40442         * doc/glibc-functions/res_init.texi: Likewise.
40443         * doc/glibc-functions/res_mkquery.texi: Likewise.
40444         * doc/glibc-functions/res_query.texi: Likewise.
40445         * doc/glibc-functions/res_querydomain.texi: Likewise.
40446         * doc/glibc-functions/res_send.texi: Likewise.
40447         * doc/glibc-functions/rresvport_af.texi: Likewise.
40448         * doc/glibc-functions/setxattr.texi: Likewise.
40449         * doc/glibc-functions/strcasestr.texi: Likewise.
40450
40451 2008-12-15  Bruno Haible  <bruno@clisp.org>
40452
40453         Fix compilation error on OSF/1 4.0.
40454         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
40455         <sys/time.h>, simply delegate to the system header.
40456         Reported by Daniel Richard G. <oss@teragram.com>.
40457
40458 2008-12-15  Bruno Haible  <bruno@clisp.org>
40459
40460         * doc/posix-functions/openat.texi: Mention the 'openat' module.
40461         * doc/posix-functions/fchmodat.texi: Likewise.
40462         * doc/posix-functions/fchownat.texi: Likewise.
40463         * doc/posix-functions/fdopendir.texi: Likewise.
40464         * doc/posix-functions/fstatat.texi: Likewise.
40465         * doc/posix-functions/mkdirat.texi: Likewise.
40466         * doc/posix-functions/unlinkat.texi: Likewise.
40467
40468 2008-12-14  Bruno Haible  <bruno@clisp.org>
40469
40470         Update doc for POSIX:2008.
40471         * doc/posix-functions/faccessat.texi: New file.
40472         * doc/posix-functions/fchmodat.texi: New file.
40473         * doc/posix-functions/fchownat.texi: New file.
40474         * doc/posix-functions/fdopendir.texi: New file.
40475         * doc/posix-functions/fstatat.texi: New file.
40476         * doc/posix-functions/futimens.texi: New file.
40477         * doc/posix-functions/linkat.texi: New file.
40478         * doc/posix-functions/mkdirat.texi: New file.
40479         * doc/posix-functions/mkfifoat.texi: New file.
40480         * doc/posix-functions/mknodat.texi: New file.
40481         * doc/posix-functions/open_wmemstream.texi: New file.
40482         * doc/posix-functions/openat.texi: New file.
40483         * doc/posix-functions/psiginfo.texi: New file.
40484         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40485         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40486         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40487         * doc/posix-functions/readlinkat.texi: New file.
40488         * doc/posix-functions/renameat.texi: New file.
40489         * doc/posix-functions/strerror_l.texi: New file.
40490         * doc/posix-functions/symlinkat.texi: New file.
40491         * doc/posix-functions/unlinkat.texi: New file.
40492         * doc/posix-functions/utimensat.texi: New file.
40493         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40494
40495 2008-12-14  Bruno Haible  <bruno@clisp.org>
40496
40497         Update doc for POSIX:2008.
40498         * doc/posix-functions/alphasort.texi: Renamed from
40499         doc/glibc-functions/alphasort.texi.
40500         * doc/posix-functions/dirfd.texi: Renamed from
40501         doc/glibc-functions/dirfd.texi.
40502         * doc/posix-functions/dprintf.texi: Renamed from
40503         doc/glibc-functions/dprintf.texi.
40504         * doc/posix-functions/duplocale.texi: Renamed from
40505         doc/glibc-functions/duplocale.texi.
40506         * doc/posix-functions/fexecve.texi: Renamed from
40507         doc/glibc-functions/fexecve.texi.
40508         * doc/posix-functions/fmemopen.texi: Renamed from
40509         doc/glibc-functions/fmemopen.texi.
40510         * doc/posix-functions/freelocale.texi: Renamed from
40511         doc/glibc-functions/freelocale.texi.
40512         * doc/posix-functions/getdate_err.texi: Renamed from
40513         doc/glibc-functions/getdate_err.texi.
40514         * doc/posix-functions/isalnum_l.texi: Renamed from
40515         doc/glibc-functions/isalnum_l.texi.
40516         * doc/posix-functions/isalpha_l.texi: Renamed from
40517         doc/glibc-functions/isalpha_l.texi.
40518         * doc/posix-functions/isblank_l.texi: Renamed from
40519         doc/glibc-functions/isblank_l.texi.
40520         * doc/posix-functions/iscntrl_l.texi: Renamed from
40521         doc/glibc-functions/iscntrl_l.texi.
40522         * doc/posix-functions/isdigit_l.texi: Renamed from
40523         doc/glibc-functions/isdigit_l.texi.
40524         * doc/posix-functions/isgraph_l.texi: Renamed from
40525         doc/glibc-functions/isgraph_l.texi.
40526         * doc/posix-functions/islower_l.texi: Renamed from
40527         doc/glibc-functions/islower_l.texi.
40528         * doc/posix-functions/isprint_l.texi: Renamed from
40529         doc/glibc-functions/isprint_l.texi.
40530         * doc/posix-functions/ispunct_l.texi: Renamed from
40531         doc/glibc-functions/ispunct_l.texi.
40532         * doc/posix-functions/isspace_l.texi: Renamed from
40533         doc/glibc-functions/isspace_l.texi.
40534         * doc/posix-functions/isupper_l.texi: Renamed from
40535         doc/glibc-functions/isupper_l.texi.
40536         * doc/posix-functions/iswalnum_l.texi: Renamed from
40537         doc/glibc-functions/iswalnum_l.texi.
40538         * doc/posix-functions/iswalpha_l.texi: Renamed from
40539         doc/glibc-functions/iswalpha_l.texi.
40540         * doc/posix-functions/iswblank_l.texi: Renamed from
40541         doc/glibc-functions/iswblank_l.texi.
40542         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40543         doc/glibc-functions/iswcntrl_l.texi.
40544         * doc/posix-functions/iswctype_l.texi: Renamed from
40545         doc/glibc-functions/iswctype_l.texi.
40546         * doc/posix-functions/iswdigit_l.texi: Renamed from
40547         doc/glibc-functions/iswdigit_l.texi.
40548         * doc/posix-functions/iswgraph_l.texi: Renamed from
40549         doc/glibc-functions/iswgraph_l.texi.
40550         * doc/posix-functions/iswlower_l.texi: Renamed from
40551         doc/glibc-functions/iswlower_l.texi.
40552         * doc/posix-functions/iswprint_l.texi: Renamed from
40553         doc/glibc-functions/iswprint_l.texi.
40554         * doc/posix-functions/iswpunct_l.texi: Renamed from
40555         doc/glibc-functions/iswpunct_l.texi.
40556         * doc/posix-functions/iswspace_l.texi: Renamed from
40557         doc/glibc-functions/iswspace_l.texi.
40558         * doc/posix-functions/iswupper_l.texi: Renamed from
40559         doc/glibc-functions/iswupper_l.texi.
40560         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40561         doc/glibc-functions/iswxdigit_l.texi.
40562         * doc/posix-functions/isxdigit_l.texi: Renamed from
40563         doc/glibc-functions/isxdigit_l.texi.
40564         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40565         doc/glibc-functions/mbsnrtowcs.texi.
40566         * doc/posix-functions/mkdtemp.texi: Renamed from
40567         doc/glibc-functions/mkdtemp.texi.
40568         * doc/posix-functions/newlocale.texi: Renamed from
40569         doc/glibc-functions/newlocale.texi.
40570         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40571         doc/glibc-functions/nl_langinfo_l.texi.
40572         * doc/posix-functions/open_memstream.texi: Renamed from
40573         doc/glibc-functions/open_memstream.texi.
40574         * doc/posix-functions/opterr.texi: Renamed from
40575         doc/glibc-functions/opterr.texi.
40576         * doc/posix-functions/optind.texi: Renamed from
40577         doc/glibc-functions/optind.texi.
40578         * doc/posix-functions/optopt.texi: Renamed from
40579         doc/glibc-functions/optopt.texi.
40580         * doc/posix-functions/psignal.texi: Renamed from
40581         doc/glibc-functions/psignal.texi.
40582         * doc/posix-functions/scandir.texi: Renamed from
40583         doc/glibc-functions/scandir.texi.
40584         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40585         doc/glibc-functions/sched_get_priority_min.texi.
40586         * doc/posix-functions/signgam.texi: Renamed from
40587         doc/glibc-functions/signgam.texi.
40588         * doc/posix-functions/stpcpy.texi: Renamed from
40589         doc/glibc-functions/stpcpy.texi.
40590         * doc/posix-functions/stpncpy.texi: Renamed from
40591         doc/glibc-functions/stpncpy.texi.
40592         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40593         doc/glibc-functions/strcasecmp_l.texi.
40594         * doc/posix-functions/strcoll_l.texi: Renamed from
40595         doc/glibc-functions/strcoll_l.texi.
40596         * doc/posix-functions/strfmon_l.texi: Renamed from
40597         doc/glibc-functions/strfmon_l.texi.
40598         * doc/posix-functions/strftime_l.texi: Renamed from
40599         doc/glibc-functions/strftime_l.texi.
40600         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40601         doc/glibc-functions/strncasecmp_l.texi.
40602         * doc/posix-functions/strndup.texi: Renamed from
40603         doc/glibc-functions/strndup.texi.
40604         * doc/posix-functions/strnlen.texi: Renamed from
40605         doc/glibc-functions/strnlen.texi.
40606         * doc/posix-functions/strsignal.texi: Renamed from
40607         doc/glibc-functions/strsignal.texi.
40608         * doc/posix-functions/strxfrm_l.texi: Renamed from
40609         doc/glibc-functions/strxfrm_l.texi.
40610         * doc/posix-functions/timer_gettime.texi: Renamed from
40611         doc/glibc-functions/timer_gettime.texi.
40612         * doc/posix-functions/tolower_l.texi: Renamed from
40613         doc/glibc-functions/tolower_l.texi.
40614         * doc/posix-functions/toupper_l.texi: Renamed from
40615         doc/glibc-functions/toupper_l.texi.
40616         * doc/posix-functions/towctrans_l.texi: Renamed from
40617         doc/glibc-functions/towctrans_l.texi.
40618         * doc/posix-functions/towlower_l.texi: Renamed from
40619         doc/glibc-functions/towlower_l.texi.
40620         * doc/posix-functions/towupper_l.texi: Renamed from
40621         doc/glibc-functions/towupper_l.texi.
40622         * doc/posix-functions/uselocale.texi: Renamed from
40623         doc/glibc-functions/uselocale.texi.
40624         * doc/posix-functions/vdprintf.texi: Renamed from
40625         doc/glibc-functions/vdprintf.texi.
40626         * doc/posix-functions/wcpcpy.texi:
40627         Renamed from doc/glibc-functions/wcpcpy.texi.
40628         * doc/posix-functions/wcpncpy.texi: Renamed from
40629         doc/glibc-functions/wcpncpy.texi.
40630         * doc/posix-functions/wcscasecmp.texi: Renamed from
40631         doc/glibc-functions/wcscasecmp.texi.
40632         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40633         doc/glibc-functions/wcscasecmp_l.texi.
40634         * doc/posix-functions/wcscoll_l.texi: Renamed from
40635         doc/glibc-functions/wcscoll_l.texi.
40636         * doc/posix-functions/wcsdup.texi: Renamed from
40637         doc/glibc-functions/wcsdup.texi.
40638         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40639         doc/glibc-functions/wcsncasecmp.texi.
40640         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40641         doc/glibc-functions/wcsncasecmp_l.texi.
40642         * doc/posix-functions/wcsnlen.texi: Renamed from
40643         doc/glibc-functions/wcsnlen.texi.
40644         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40645         doc/glibc-functions/wcsnrtombs.texi.
40646         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40647         doc/glibc-functions/wcsxfrm_l.texi.
40648         * doc/posix-functions/wctrans_l.texi: Renamed from
40649         doc/glibc-functions/wctrans_l.texi.
40650         * doc/posix-functions/wctype_l.texi: Renamed from
40651         doc/glibc-functions/wctype_l.texi.
40652         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40653         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40654         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40655         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40656         these subsections.
40657         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40658         Remove sections.
40659
40660 2008-12-14  Bruno Haible  <bruno@clisp.org>
40661
40662         Update doc for POSIX:2008.
40663         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40664
40665 2008-12-14  Bruno Haible  <bruno@clisp.org>
40666
40667         Update doc for POSIX:2008.
40668         * doc/pastposix-functions/bcmp.texi: Renamed from
40669         doc/posix-functions/bcmp.texi.
40670         * doc/pastposix-functions/bcopy.texi: Renamed from
40671         doc/posix-functions/bcopy.texi.
40672         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40673         doc/posix-functions/bsd_signal.texi.
40674         * doc/pastposix-functions/bzero.texi: Renamed from
40675         doc/posix-functions/bzero.texi.
40676         * doc/pastposix-functions/ecvt.texi: Renamed from
40677         doc/posix-functions/ecvt.texi.
40678         * doc/pastposix-functions/fcvt.texi: Renamed from
40679         doc/posix-functions/fcvt.texi.
40680         * doc/pastposix-functions/ftime.texi: Renamed from
40681         doc/posix-functions/ftime.texi.
40682         * doc/pastposix-functions/gcvt.texi: Renamed from
40683         doc/posix-functions/gcvt.texi.
40684         * doc/pastposix-functions/getcontext.texi: Renamed from
40685         doc/posix-functions/getcontext.texi.
40686         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40687         doc/posix-functions/gethostbyaddr.texi.
40688         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40689         doc/posix-functions/gethostbyname.texi.
40690         * doc/pastposix-functions/getwd.texi: Renamed from
40691         doc/posix-functions/getwd.texi.
40692         * doc/pastposix-functions/h_errno.texi: Renamed from
40693         doc/posix-functions/h_errno.texi.
40694         * doc/pastposix-functions/index.texi: Renamed from
40695         doc/posix-functions/index.texi.
40696         * doc/pastposix-functions/makecontext.texi: Renamed from
40697         doc/posix-functions/makecontext.texi.
40698         * doc/pastposix-functions/mktemp.texi: Renamed from
40699         doc/posix-functions/mktemp.texi.
40700         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40701         doc/posix-functions/pthread_attr_getstackaddr.texi.
40702         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40703         doc/posix-functions/pthread_attr_setstackaddr.texi.
40704         * doc/pastposix-functions/rindex.texi: Renamed from
40705         doc/posix-functions/rindex.texi.
40706         * doc/pastposix-functions/scalb.texi: Renamed from
40707         doc/posix-functions/scalb.texi.
40708         * doc/pastposix-functions/setcontext.texi: Renamed from
40709         doc/posix-functions/setcontext.texi.
40710         * doc/pastposix-functions/swapcontext.texi: Renamed from
40711         doc/posix-functions/swapcontext.texi.
40712         * doc/pastposix-functions/ualarm.texi: Renamed from
40713         doc/posix-functions/ualarm.texi.
40714         * doc/pastposix-functions/usleep.texi: Renamed from
40715         doc/posix-functions/usleep.texi.
40716         * doc/pastposix-functions/vfork.texi: Renamed from
40717         doc/posix-functions/vfork.texi.
40718         * doc/pastposix-functions/wcswcs.texi: Renamed from
40719         doc/posix-functions/wcswcs.texi.
40720         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40721         (Function Substitutes): Update.
40722
40723 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40724
40725         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40726         m4/strerror.m4.
40727
40728 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40729             Bruno Haible  <bruno@clisp.org>
40730
40731         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40732
40733 2008-12-13  Bruno Haible  <bruno@clisp.org>
40734
40735         * modules/strtoull (Depends-on): Remove unistd.
40736
40737 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40738
40739         * modules/strtoull (Depends-on): Add stdlib.
40740
40741 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40742
40743         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40744
40745 2008-12-10  Jim Meyering  <meyering@redhat.com>
40746
40747         gl_ASSERT: don't say assertions are disabled when they're not
40748         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40749         "checking whether to enable assertions... no", when they are in
40750         fact enabled.  This is solely a bug in the output of configure.
40751         In spite of saying "no", NDEBUG was not defined in that case.
40752         Also, as noted by Eric Blake, leave assertions enabled upon
40753         --enable-assert=INVALID.
40754
40755 2008-12-10  Bruno Haible  <bruno@clisp.org>
40756
40757         Change MODULES.html to refer to POSIX:2008 where possible.
40758         * MODULES.html.sh (POSIX2008_URL): New variable.
40759         (posix_headers): Remove sys/timeb, ucontext.
40760         (posix2001_headers): New variable.
40761         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40762         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40763         index, makecontext, mktemp, pthread_attr_getstackaddr,
40764         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40765         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40766         (posix2001_functions): New variable.
40767         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40768         otherwise.
40769
40770 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40771
40772         add missing include to parse-duration.c
40773         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40774         * modules/parse-duration (Depends-on): Add xalloc.
40775
40776         fix sed script reading maint.mk
40777         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40778         (syntax-check-rules): Use it.
40779
40780 2008-12-09  Bruno Haible  <bruno@clisp.org>
40781
40782         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40783         MacOS X 10.4/PowerPC.
40784         Reported by Simon Josefsson.
40785
40786 2008-12-08  Jim Meyering  <meyering@redhat.com>
40787
40788         work around mingw's lack of some S_IF definitions
40789         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40790         Reported by Simon Josefsson.
40791
40792 2008-12-08  Bruno Haible  <bruno@clisp.org>
40793
40794         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40795         applied to variables. Needed on MacOS X 10.4/PowerPC.
40796         Reported by Simon Josefsson.
40797
40798 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40799         and Eric Blake  <ebb9@byu.net>
40800
40801         assert: honor --enable-assert
40802         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40803         order to honor --enable-assert, rather than treating it as a
40804         synonym for --disable-assert.
40805
40806 2008-12-08  Jim Meyering  <meyering@redhat.com>
40807
40808         * lib/posixtm.c: Remove now-useless declaration of mktime.
40809
40810         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40811
40812 2008-12-07  Bruno Haible  <bruno@clisp.org>
40813
40814         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40815         test_once): Mark functions as static.
40816         * tests/test-tls.c (test_tls): Likewise.
40817
40818 2008-12-07  Bruno Haible  <bruno@clisp.org>
40819
40820         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40821         iconv_register_autodetect.
40822
40823 2008-12-07  Jim Meyering  <meyering@redhat.com>
40824
40825         posixtm.c: avoid a warning
40826         * lib/posixtm.c (posixtime): Don't initialize tm0.
40827         It's no longer needed to placate gcc4's -Wuninitialized,
40828         and the attempt to placate would elicit a new warning.
40829
40830         unicodeio.c: mark unused parameters
40831         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40832         (fallback_failure_callback): Likewise.
40833
40834 2008-12-07  Bruno Haible  <bruno@clisp.org>
40835
40836         * gnulib-tool (func_create_testdir): When building the tests
40837         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40838         Reported by Simon Josefsson.
40839
40840 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40841
40842         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40843
40844 2008-12-06  Bruno Haible  <bruno@clisp.org>
40845
40846         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40847         Suggested by Eric Blake.
40848
40849 2008-12-06  Bruno Haible  <bruno@clisp.org>
40850
40851         Fix a c-stack test failure on MacOS X.
40852         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40853         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40854         handler for SIGBUS as well.
40855         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40856         install a signal handler for SIGBUS as well.
40857         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40858
40859 2008-12-06  Bruno Haible  <bruno@clisp.org>
40860
40861         Advocacy documentation.
40862         * doc/gnulib-intro.texi (Benefits): New section.
40863         * doc/gnulib.texi: Update.
40864
40865 2008-12-06  Bruno Haible  <bruno@clisp.org>
40866
40867         Document the 'manywarnings' module.
40868         * doc/manywarnings.texi: New file.
40869         * doc/gnulib.texi: Include it.
40870
40871 2008-12-05  Eric Blake  <ebb9@byu.net>
40872
40873         tests: silence some gcc warnings
40874         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40875         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40876         type mismatches.
40877
40878 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40879             Bruno Haible  <bruno@clisp.org>
40880
40881         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40882
40883 2008-11-29  Jim Meyering  <meyering@redhat.com>
40884
40885         unicodeio.c: mark unused parameters
40886         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40887         (fallback_failure_callback): Likewise.
40888
40889         fts: fix a thinko
40890         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40891         (set_stat_type): Return S_IF*-valued "type" directly.
40892         Prompted by James Youngman's spotting a related bug.
40893         Confirmed by further testing through find.
40894
40895         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40896         * lib/fts.c (D_TYPE): Define.
40897         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40898         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40899         (s_ifmt_shift_bits): New function.
40900         (set_stat_type): New function.
40901         (fts_build): When not calling fts_stat, call set_stat_type
40902         to propagate dirent.d_type info to fts_read caller.
40903         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40904         fts_statp->st_mode type information may be valid.
40905
40906 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40907
40908         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40909         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40910         <sds@gnu.org>.
40911
40912 2008-11-20  Bruno Haible  <bruno@clisp.org>
40913
40914         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40915         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40916         INCLUDE_NEXT.
40917         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40918         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40919         * modules/math (Makefile.am): Substitute
40920         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40921         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40922
40923 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40924             Bruno Haible  <bruno@clisp.org>
40925
40926         * lib/stdint.in.h: Define all type macros so that their expansion is
40927         a single typedef'ed token. Fixes a compilation failure in Boost which
40928         does "using ::int8_t;".
40929
40930 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40931
40932         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40933         gl_MANYWARN_ALL_GCC.
40934         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40935         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40936         * modules/manywarnings: New file.
40937         * MODULES.html.sh: Mention manywarnings module.
40938
40939 2008-11-18  Bruno Haible  <bruno@clisp.org>
40940
40941         * doc/gnulib-tool.texi (Unit tests): New section.
40942
40943 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40944
40945         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40946         paths like 'lib/po/foo.po'.
40947
40948 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40949
40950         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40951         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40952
40953 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40954
40955         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40956         parameter works.
40957
40958 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40959
40960         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40961
40962 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40963
40964         * modules/parse-duration-tests: New file.
40965         * tests/test-parse-duration.sh: New file.
40966         * tests/test-parse-duration.c: New file.
40967
40968         New module 'parse-duration'.
40969         * lib/parse-duration.h: New file.
40970         * lib/parse-duration.c: New file.
40971         * modules/parse-duration: New file.
40972
40973 2008-11-17  Bruno Haible  <bruno@clisp.org>
40974
40975         * tests/test-select-out.sh: Comment out the first pipe test.
40976         Reported by Simon Josefsson.
40977
40978 2008-11-17  Bruno Haible  <bruno@clisp.org>
40979
40980         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40981         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40982         gl_HOSTENT.
40983
40984 2008-11-17  Bruno Haible  <bruno@clisp.org>
40985
40986         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40987         -lnetwork and -lnet. Needed for Haiku and BeOS.
40988
40989 2008-11-16  Bruno Haible  <bruno@clisp.org>
40990
40991         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40992
40993 2008-11-16  Bruno Haible  <bruno@clisp.org>
40994
40995         Avoid test failure on Haiku.
40996         * tests/test-fsync.c: Include <errno.h>.
40997         (main): Don't require that fsync (0) fails.
40998
40999 2008-11-15  Bruno Haible  <bruno@clisp.org>
41000
41001         New module 'hostent'.
41002         * modules/hostent: New file.
41003         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
41004
41005 2008-11-15  Bruno Haible  <bruno@clisp.org>
41006
41007         New module 'servent'.
41008         * modules/servent: New file.
41009         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
41010
41011 2008-11-15  Bruno Haible  <bruno@clisp.org>
41012
41013         Avoid generating same test program with two different rules.
41014         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
41015         test-frexp to test-frexp-nolibm.
41016         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
41017         test-frexpl to test-frexpl-nolibm.
41018
41019 2008-11-15  Bruno Haible  <bruno@clisp.org>
41020
41021         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
41022         $(FREXPL_LIBM).
41023
41024 2008-11-15  Bruno Haible  <bruno@clisp.org>
41025
41026         * lib/netdb.in.h: Activate the definitions also when the system's
41027         <netdb.h> has 'struct addrinfo'.
41028         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
41029         EAI_OVERFLOW or AI_NUMERICSERV.
41030         * doc/posix-headers/netdb.texi: Document the problem.
41031
41032 2008-11-15  Bruno Haible  <bruno@clisp.org>
41033
41034         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
41035
41036         Make the 'sched' module work on platforms where <sched.h> exists but
41037         is incomplete (such as Haiku).
41038         * lib/sched.in.h; Include the system's <sched.h> if it exists.
41039         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
41040         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
41041         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
41042         HAVE_STRUCT_SCHED_PARAM.
41043         * modules/sched (Depends-on): Add include_next.
41044         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
41045         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
41046         * doc/posix-headers/sched.texi: Document the issue.
41047
41048 2008-11-13  Jim Meyering  <meyering@redhat.com>
41049
41050         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
41051         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
41052         test would fail due to the difference in the Report bugs to ...
41053         line.  The expected address is empty, "<>", while the actual
41054         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
41055
41056 2008-11-12  Bruno Haible  <bruno@clisp.org>
41057
41058         lstat: don't compile lstat.c on systems lacking lstat
41059         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
41060         which don't have lstat; this is handled by lib/sys_stat.in.h already.
41061         Reported by Daniel P. Berrange via Jim Meyering.
41062
41063 2008-11-12  Jim Meyering  <meyering@redhat.com>
41064
41065         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
41066
41067 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41068
41069         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
41070         instead.
41071
41072 2008-11-12  Bruno Haible  <bruno@clisp.org>
41073
41074         * lib/unicodeio.c: Include unistr.h.
41075         (utf8_wctomb): Remove function.
41076         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
41077
41078 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41079
41080         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
41081         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
41082         <bruno@clisp.org>.
41083         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
41084
41085 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41086
41087         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
41088         * doc/gnulib.texi: Add section for warnings.
41089
41090 2008-11-11  Bruno Haible  <bruno@clisp.org>
41091
41092         * lib/sockets.h: Add a comment.
41093
41094 2008-11-11  Karl Berry  <karl@gnu.org>
41095
41096         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
41097
41098 2008-11-11  Eric Blake  <ebb9@byu.net>
41099
41100         fdl.texi: avoid git symlinks
41101         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
41102
41103 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41104
41105         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
41106
41107 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41108
41109         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
41110         (gl_WARN_ADD): Substitute $2 if literal.
41111
41112 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41113
41114         * m4/warning.m4: Remove.
41115
41116 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41117
41118         * m4/warnings.m4: Almost complete rewrite. :-)
41119
41120 2008-11-10  Simon Josefsson  <simon@josefsson.org>
41121
41122         * modules/warnings: New module.
41123         * m4/warnings.m4: New file.
41124         * MODULES.html.sh: Mention warnings module.
41125         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
41126         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41127
41128 2008-11-10  Eric Blake  <ebb9@byu.net>
41129
41130         fdl.texi: make a symlink to the latest version
41131         * doc/standards.texi: Revert today's earlier change.
41132         * doc/fdl-1.2.texi: Rename from old fdl.texi...
41133         * doc/fdl.texi: ...and replace this with a symlink to the newer
41134         fdl-1.3.texi.
41135
41136 2008-11-10  Bruno Haible  <bruno@clisp.org>
41137
41138         * tests/test-select-fd.c (main): Accept the result file name as fourth
41139         argument.
41140         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
41141         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
41142
41143 2008-11-10  Bruno Haible  <bruno@clisp.org>
41144
41145         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
41146         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
41147         as autoconf-substituted macros.
41148         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
41149         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
41150         gl_NETDB_H_DEFAULTS. Set these variables.
41151         * modules/netdb (Makefile.am): Substitute these variables.
41152
41153 2008-11-10  Eric Blake  <ebb9@byu.net>
41154
41155         standards.texi: include correct file for FDL 1.3
41156         * doc/standards.texi (GNU Free Documentation License): Change
41157         include file to pull in FDL 1.3, not 1.2.
41158
41159         fdl.texi: revert accidental change to license
41160         * doc/fdl.texi: This is FDL 1.2, not 1.3.
41161
41162 2008-11-10  Bruno Haible  <bruno@clisp.org>
41163
41164         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
41165         cross-compiling guesses also when the native compile gives no result.
41166
41167 2008-11-10  Bruno Haible  <bruno@clisp.org>
41168
41169         * lib/spawni.c (__spawni): Force variable into the stack.
41170
41171 2008-11-10  Bruno Haible  <bruno@clisp.org>
41172
41173         Add support for Haiku.
41174         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
41175         glibc and BeOS, but also on Haiku.
41176         * lib/fpurge.c (fpurge): Likewise.
41177         * lib/freadable.c (freadable): Likewise.
41178         * lib/freadahead.c (freadahead): Likewise.
41179         * lib/freading.c (freading): Likewise.
41180         * lib/freadptr.c (freadptr): Likewise.
41181         * lib/freadseek.c (freadptrinc): Likewise.
41182         * lib/fseeko.c (rpl_fseeko): Likewise.
41183         * lib/fseterr.c (fseterr): Likewise.
41184         * lib/fwritable.c (fwritable): Likewise.
41185         * lib/fwriting.c (fwriting): Likewise.
41186         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
41187
41188 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41189
41190         * lib/config.charset: Treat Haiku like BeOS.
41191
41192 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41193
41194         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
41195         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
41196
41197 2008-11-08  Bruno Haible  <bruno@clisp.org>
41198
41199         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
41200         AC_CACHE_CHECK.
41201
41202 2008-11-08  Bruno Haible  <bruno@clisp.org>
41203
41204         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
41205
41206 2008-11-08  Bruno Haible  <bruno@clisp.org>
41207
41208         * tests/test-select-fd.c: New file.
41209         * tests/test-select-in.sh: New file.
41210         * tests/test-select-out.sh: New file.
41211         * tests/test-select-stdin.c: New file.
41212         * modules/select-tests (Files): Add the new files.
41213         (Depends-on): Add gettimeofday.
41214         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
41215         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
41216         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
41217
41218 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
41219             Bruno Haible  <bruno@clisp.org>
41220
41221         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
41222
41223 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
41224
41225         * build-aux/pmccabe2html: Added support for C++ source files.
41226
41227 2008-11-05  Ben Pfaff  <blp@gnu.org>
41228
41229         Fix lib/close.c build on Windows.
41230         * modules/close (Files): Add lib/w32sock.h.
41231
41232 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
41233
41234         Accept Bison's NEWS format.
41235         * build-aux/announce-gen (print_news_deltas): Tweak
41236         $re_prefix.
41237
41238 2008-11-04  Bruno Haible  <bruno@clisp.org>
41239
41240         * modules/random_r (Maintainer): Add glibc.
41241
41242 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41243
41244         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
41245         by karl@freefriends.org (Karl Berry).
41246         * doc/alloca.texi: Likewise.
41247         * doc/c-ctype.texi: Likewise.
41248         * doc/c-strcase.texi: Likewise.
41249         * doc/c-strcaseeq.texi: Likewise.
41250         * doc/c-strcasestr.texi: Likewise.
41251         * doc/c-strstr.texi: Likewise.
41252         * doc/c-strtod.texi: Likewise.
41253         * doc/c-strtold.texi: Likewise.
41254         * doc/ctime.texi: Likewise.
41255         * doc/error.texi: Likewise.
41256         * doc/fdl.texi: Likewise.
41257         * doc/gcd.texi: Likewise.
41258         * doc/getdate.texi: Likewise.
41259         * doc/gnulib-intro.texi: Likewise.
41260         * doc/gnulib-tool.texi: Likewise.
41261         * doc/gnulib.texi: Likewise.
41262         * doc/inet_ntoa.texi: Likewise.
41263         * doc/maintain.texi: Likewise.
41264         * doc/make-stds.texi: Likewise.
41265         * doc/quote.texi: Likewise.
41266         * doc/regexprops-generic.texi: Likewise.
41267         * doc/standards.texi: Likewise.
41268         * doc/verify.texi: Likewise.
41269         * doc/visibility.texi: Likewise.
41270         * doc/gnulib.texi (GNU Free Documentation License): Include
41271         fdl-1.3.texi instead of fdl.texi.
41272
41273 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41274
41275         * doc/fdl-1.3.texi: New file, from
41276         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41277         * modules/fdl-1.3: Add.
41278         * MODULES.html.sh: Add fdl-1.3.
41279
41280 2008-11-03  Bruno Haible  <bruno@clisp.org>
41281
41282         Make determination of absolute name of header file work with AIX xlc.
41283         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41284         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41285         preprocessing.
41286         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41287         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41288
41289 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41290
41291         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41292         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41293         <ludo@gnu.org>.
41294
41295 2008-11-02  Bruno Haible  <bruno@clisp.org>
41296
41297         Mark 'strpbrk' obsolete.
41298         * modules/strpbrk (Status, Notice): New sections.
41299         * modules/strtok_r (Depends-on): Add strpbrk.
41300
41301 2008-11-02  Bruno Haible  <bruno@clisp.org>
41302
41303         Mark 'strdup' obsolete.
41304         * modules/strdup (Status, Notice): New sections.
41305         * modules/findprog (Depends-on): Add strdup.
41306         * modules/getaddrinfo (Depends-on): Likewise.
41307         * modules/localename (Depends-on): Likewise.
41308         * modules/relocatable-lib (Depends-on): Likewise.
41309         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41310         * modules/relocatable-prog (Depends-on): Likewise.
41311         * modules/trim (Depends-on): Likewise.
41312         * modules/unictype/gen-ctype (Depends-on): Likewise.
41313         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41314
41315 2008-11-02  Bruno Haible  <bruno@clisp.org>
41316
41317         Mark 'strcspn' obsolete.
41318         * modules/strcspn (Status, Notice): New sections.
41319
41320 2008-11-02  Bruno Haible  <bruno@clisp.org>
41321
41322         Mark 'rmdir' obsolete.
41323         * modules/rmdir (Status, Notice): New sections.
41324         * modules/clean-temp (Depends-on): Add rmdir.
41325         * modules/openat (Depends-on): Likewise.
41326
41327 2008-11-02  Bruno Haible  <bruno@clisp.org>
41328
41329         Mark 'raise' obsolete.
41330         * modules/raise (Status, Notice): New sections.
41331         (Include): Specify <signal.h>.
41332         * modules/stdio (Depends-on): Add raise.
41333         * modules/write (Depends-on): Likewise.
41334
41335 2008-11-02  Bruno Haible  <bruno@clisp.org>
41336
41337         Mark 'memset' obsolete.
41338         * modules/memset (Status, Notice): New sections.
41339
41340 2008-11-02  Bruno Haible  <bruno@clisp.org>
41341
41342         Mark 'memmove' obsolete.
41343         * modules/memmove (Status, Notice): New sections.
41344         * modules/argp (Depends-on): Add memmove.
41345         * modules/argz (Depends-on): Likewise.
41346         * modules/canonicalize (Depends-on): Likewise.
41347         * modules/canonicalize-lgpl (Depends-on): Likewise.
41348         * modules/fts (Depends-on): Likewise.
41349         * modules/getcwd (Depends-on): Likewise.
41350         * modules/human (Depends-on): Likewise.
41351         * modules/regex (Depends-on): Likewise.
41352         * modules/striconveh (Depends-on): Likewise.
41353         * modules/trim (Depends-on): Likewise.
41354         * modules/unistr/u8-move (Depends-on): Likewise.
41355         * modules/unistr/u16-move (Depends-on): Likewise.
41356         * modules/unistr/u32-move (Depends-on): Likewise.
41357
41358 2008-11-02  Bruno Haible  <bruno@clisp.org>
41359
41360         Mark 'memcpy' obsolete.
41361         * modules/memcpy (Status, Notice): New sections.
41362
41363 2008-11-02  Bruno Haible  <bruno@clisp.org>
41364
41365         Mark 'memcmp' obsolete.
41366         * modules/memcmp (Status, Notice): New sections.
41367         * modules/argmatch (Depends-on): Add memchr.
41368         * modules/backupfile (Depends-on): Likewise.
41369         * modules/c-strcasestr (Depends-on): Likewise.
41370         * modules/crypto/des (Depends-on): Likewise.
41371         * modules/csharpcomp (Depends-on): Likewise.
41372         * modules/fnmatch (Depends-on): Likewise.
41373         * modules/git-merge-changelog (Depends-on): Likewise.
41374         * modules/isnand (Depends-on): Likewise.
41375         * modules/isnand-nolibm (Depends-on): Likewise.
41376         * modules/isnanf (Depends-on): Likewise.
41377         * modules/isnanf-nolibm (Depends-on): Likewise.
41378         * modules/isnanl (Depends-on): Likewise.
41379         * modules/isnanl-nolibm (Depends-on): Likewise.
41380         * modules/mbchar (Depends-on): Likewise.
41381         * modules/memcoll (Depends-on): Likewise.
41382         * modules/quotearg (Depends-on): Likewise.
41383         * modules/regex (Depends-on): Likewise.
41384         * modules/relocatable-prog (Depends-on): Likewise.
41385         * modules/same (Depends-on): Likewise.
41386         * modules/signbit (Depends-on): Likewise.
41387         * modules/strcasestr-simple (Depends-on): Likewise.
41388         * modules/unictype/gen-ctype (Depends-on): Likewise.
41389         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41390         * modules/uniname/uniname (Depends-on): Likewise.
41391         * modules/unistr/u8-cmp (Depends-on): Likewise.
41392
41393 2008-11-02  Bruno Haible  <bruno@clisp.org>
41394
41395         Mark 'memchr' obsolete.
41396         * modules/memchr (Status, Notice): New sections.
41397         * modules/argp (Depends-on): Add memchr.
41398         * modules/base64 (Depends-on): Likewise.
41399         * modules/c-strcasestr (Depends-on): Likewise.
41400         * modules/chdir-long (Depends-on): Likewise.
41401         * modules/fnmatch (Depends-on): Likewise.
41402         * modules/getsubopt (Depends-on): Likewise.
41403         * modules/git-merge-changelog (Depends-on): Likewise.
41404         * modules/glob (Depends-on): Likewise.
41405         * modules/strcasestr-simple (Depends-on): Likewise.
41406         * modules/strnlen (Depends-on): Likewise.
41407
41408 2008-11-02  Bruno Haible  <bruno@clisp.org>
41409
41410         Mark 'atexit' obsolete.
41411         * modules/atexit (Status, Notice): New sections.
41412         * modules/chdir-long (Depends-on): Add atexit.
41413         * modules/wait-process (Depends-on): Likewise.
41414
41415 2008-11-02  Bruno Haible  <bruno@clisp.org>
41416
41417         * gnulib-tool: New option --with-obsolete.
41418         (func_usage): Document it.
41419         (func_modules_transitive_closure): Drop obsolete dependencies if
41420         incobsolete is not true.
41421         (func_import): Read and save the incobsolete variable to the cache.
41422
41423 2008-11-02  Bruno Haible  <bruno@clisp.org>
41424
41425         * modules/TEMPLATE-EXTENDED: New field 'Status'.
41426         * gnulib-tool: New option --extract-status.
41427         (func_usage): Document it.
41428         (sed_extract_prog): Recognize it.
41429         (func_get_status): New function.
41430
41431 2008-10-30  Simon Josefsson  <simon@josefsson.org>
41432
41433         * modules/sockets (License): Change from LGPL to LGPLv2+.
41434
41435 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41436
41437         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
41438
41439 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41440
41441         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41442         Mention times and sys_times.
41443         * modules/sys_times, modules/sys_times-tests: New modules.
41444         * modules/times, modules/times-tests: Likewise
41445         * m4/sys_times_h.m4: New file.
41446         * lib/sys_times.in.h: Likewise
41447         * lib/times.c: Likewise.
41448         * tests/test-sys_times.c: Likewise.
41449         * tests/test-times.c: Likewise.
41450         * doc/posix-headers/sys_times.texi: Update.
41451         * doc/posix-functions/times.texi: Update.
41452
41453 2008-10-28  Jim Meyering  <meyering@redhat.com>
41454
41455         * modules/tempname (Depends-on): Add lstat.
41456
41457         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
41458
41459 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41460
41461         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
41462         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
41463         using idiom used elsewhere in gnulib.
41464
41465 2008-10-27  Jim Meyering  <meyering@redhat.com>
41466
41467         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
41468
41469 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41470
41471         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
41472         TESTS_ENVIRONMENT, for shell scripts that needs to call built
41473         programs.
41474         * tests/test-argp-2.sh: Use $EXEEXT when needed.
41475
41476 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41477
41478         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
41479
41480 2008-10-27  Bruno Haible  <bruno@clisp.org>
41481
41482         * tests/test-lstat.c: Include <stdio.h>.
41483
41484 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41485
41486         * modules/lstat-tests: New module.
41487         * tests/test-lstat.c: New file.
41488
41489 2008-10-26  Jim Meyering  <meyering@redhat.com>
41490
41491         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41492
41493 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41494             Bruno Haible  <bruno@clisp.org>
41495
41496         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41497         * modules/configmake (Include): Add a note that the include must come
41498         after all system headers.
41499         * lib/javaversion.c: Include configmake.h after all other includes.
41500
41501 2008-10-26  Bruno Haible  <bruno@clisp.org>
41502
41503         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41504         HAVE_STRUCT_RANDOM_DATA to 1.
41505         (gl_STDLIB_H): Simplify.
41506
41507 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41508
41509         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41510         substitute HAVE_STRUCT_RANDOM_DATA.
41511         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41512         random_data.
41513         * modules/stdlib (Makefile.am): Substitute
41514         HAVE_STRUCT_RANDOM_DATA.
41515
41516 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41517
41518         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41519         * doc/gnulib-intro.texi (Copyright): Likewise.
41520
41521 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41522
41523         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41524         findings.
41525
41526 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41527             Bruno Haible  <bruno@clisp.org>
41528
41529         * lib/unistd.in.h: Include <winsock2.h>.
41530         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41531         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41532         Provide dummy declarations.
41533         (gethostname): Override.
41534         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41535         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41536         gl_PREREQ_SYS_H_WINSOCK2.
41537         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41538         * doc/posix-functions/gethostname.texi: More details.
41539
41540 2008-10-25  Bruno Haible  <bruno@clisp.org>
41541
41542         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41543         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41544         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41545
41546         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41547         here ...
41548         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41549         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41550         gl_UNISTD_H_DEFAULTS.
41551
41552 2008-10-25  Eric Blake  <ebb9@byu.net>
41553
41554         signbit: avoid spurious compiler failure
41555         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41556         declarations inside function.
41557
41558 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41559             Bruno Haible  <bruno@clisp.org>
41560
41561         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41562         * modules/random_r (Depends-on): Add stdint.
41563
41564 2008-10-24  Bruno Haible  <bruno@clisp.org>
41565
41566         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41567         Eggert.
41568         * modules/strerror (License): Likewise.
41569
41570 2008-10-24  Jim Meyering  <meyering@redhat.com>
41571
41572         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41573         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41574
41575 2008-10-24  Eric Blake  <ebb9@byu.net>
41576
41577         getgroups: fix compilation when getgroups is available
41578         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41579         but with <config.h> override of getgroups disabled.
41580
41581 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41582
41583         * doc/gnulib.texi (Header files): Add note about C++ problems.
41584         Explained by Bruno Haible <bruno@clisp.org>.
41585
41586 2008-10-23  Bruno Haible  <bruno@clisp.org>
41587
41588         Define a dummy SA_NODEFER macro on Interix.
41589         * lib/signal.in.h (SA_NODEFER): Define fallback.
41590         Reported by Aleksey Cheusov <cheusov@tut.by> via
41591         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41592
41593 2008-10-23  Bruno Haible  <bruno@clisp.org>
41594
41595         * modules/freadahead (License): Change to LGPLv2+.
41596         Suggested by Simon Josefsson.
41597
41598 2008-10-23  Jim Meyering  <meyering@redhat.com>
41599
41600         random_r: new module
41601         * modules/random_r: New file.
41602         * m4/random_r.m4: New file.
41603         * lib/random_r.c: New file, from glibc.
41604         * modules/random_r-tests: New file.
41605         * tests/test-random_r.c: New file.
41606         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41607          Declare.
41608         (RAND_MAX): Define.
41609         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41610         * modules/stdlib: Substitute them, too.
41611         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41612         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41613         * doc/glibc-functions/random_r.texi: Likewise.
41614         * doc/glibc-functions/setstate_r.texi: Likewise.
41615         * doc/glibc-functions/srandom_r.texi: Likewise.
41616         * config/srclist.txt: Mention it.
41617
41618 2008-10-23  David Lutterkort  <lutter@redhat.com>
41619
41620         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41621         link requirement
41622
41623 2008-10-23  Jim Meyering  <meyering@redhat.com>
41624
41625         selinux-h: mark parameters of stub functions as intentionally unused
41626         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41627         * lib/se-context.in.h: Likewise.
41628
41629 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41630
41631         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41632
41633 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41634
41635         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41636
41637 2008-10-22  Eric Blake  <ebb9@byu.net>
41638
41639         glthread/thread: avoid compiler warning
41640         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41641         Add unreachable abort to silence compiler.
41642
41643 2008-10-22  Eric Blake  <ebb9@byu.net>
41644
41645         netdb: also supply struct addrinfo for cygwin 1.5.x
41646         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41647         older cygwin.
41648         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41649         cygwin.
41650         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41651
41652 2008-10-22  Bruno Haible  <bruno@clisp.org>
41653
41654         * users.txt: Update entry about pspp.
41655
41656 2008-10-21  Bruno Haible  <bruno@clisp.org>
41657
41658         Simplification.
41659         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41660         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41661
41662         Simplification.
41663         * lib/ioctl.c (ioctl): Don't undefine.
41664         * lib/socket.c (socket): Don't undefine.
41665
41666         Remove unused module indicator macros.
41667         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41668         GNULIB_$1 as a C macro.
41669
41670         * doc/posix-functions/close.texi: Undo last change.
41671         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41672         Windows platforms.
41673
41674 2008-10-21  Bruno Haible  <bruno@clisp.org>
41675
41676         Add gethostname() declaration to <unistd.h>.
41677         * lib/unistd.in.h (gethostname): New declaration.
41678         * lib/gethostname.c: Include <unistd.h>.
41679         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41680         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41682         and HAVE_GETHOSTNAME.
41683         * modules/gethostname (Depends-on): Add unistd.
41684         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41685         (Include): Specify <unistd.h>.
41686         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41687         HAVE_GETHOSTNAME.
41688         * tests/test-gethostname.c: Include <unistd.h> first.
41689
41690 2008-10-21  Bruno Haible  <bruno@clisp.org>
41691
41692         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41693         * modules/select-tests (Depends-on): Likewise.
41694         Reported by Simon Josefsson.
41695
41696 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41697
41698         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41699         * lib/accept.c: New file, based on winsock.c.
41700         * lib/bind.c: New file, based on winsock.c.
41701         * lib/connect.c: New file, based on winsock.c.
41702         * lib/getpeername.c: New file, based on winsock.c.
41703         * lib/getsockname.c: New file, based on winsock.c.
41704         * lib/getsockopt.c: New file, based on winsock.c.
41705         * lib/ioctl.c: New file, based on winsock.c.
41706         * lib/listen.c: New file, based on winsock.c.
41707         * lib/recv.c: New file, based on winsock.c.
41708         * lib/recvfrom.c: New file, based on winsock.c.
41709         * lib/send.c: New file, based on winsock.c.
41710         * lib/sendto.c: New file, based on winsock.c.
41711         * lib/setsockopt.c: New file, based on winsock.c.
41712         * lib/shutdown.c: New file, based on winsock.c.
41713         * lib/socket.c: New file, based on winsock.c.
41714         * lib/w32sock.h: New file, based on winsock.c.
41715         * lib/winsock.c: Remove file.
41716         * modules/accept: Likewise.
41717         * modules/bind: Likewise.
41718         * modules/connect: Likewise.
41719         * modules/getpeername: Likewise.
41720         * modules/getsockname: Likewise.
41721         * modules/getsockopt: Likewise.
41722         * modules/ioctl: Likewise.
41723         * modules/listen: Likewise.
41724         * modules/recv: Likewise.
41725         * modules/recvfrom: Likewise.
41726         * modules/send: Likewise.
41727         * modules/sendto: Likewise.
41728         * modules/setsockopt: Likewise.
41729         * modules/shutdown: Likewise.
41730         * modules/socket: Use socket.c instead of winsock.c.
41731         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41732         * doc/posix-functions/accept.texi: Doc fix.
41733         * doc/posix-functions/bind.texi: Doc fix.
41734         * doc/posix-functions/close.texi: Doc fix.
41735         * doc/posix-functions/connect.texi: Doc fix.
41736         * doc/posix-functions/getpeername.texi: Doc fix.
41737         * doc/posix-functions/getsockname.texi: Doc fix.
41738         * doc/posix-functions/getsockopt.texi: Doc fix.
41739         * doc/posix-functions/ioctl.texi: Doc fix.
41740         * doc/posix-functions/listen.texi: Doc fix.
41741         * doc/posix-functions/recv.texi: Doc fix.
41742         * doc/posix-functions/recvfrom.texi: Doc fix.
41743         * doc/posix-functions/send.texi: Doc fix.
41744         * doc/posix-functions/sendto.texi: Doc fix.
41745         * doc/posix-functions/setsockopt.texi: Doc fix.
41746         * doc/posix-functions/shutdown.texi: Doc fix.
41747         * doc/posix-functions/socket.texi: Doc fix.
41748
41749 2008-10-20  Bruno Haible  <bruno@clisp.org>
41750
41751         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41752         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41753         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41754         as an alias for SIGABRT.
41755         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41756         (sigaction): Map it to SIGABRT.
41757         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41758
41759 2008-10-20  Bruno Haible  <bruno@clisp.org>
41760
41761         * lib/fts.c: Don't include lstat.h.
41762         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41763
41764         Move the lstat() declaration to <sys/stat.h>.
41765         * lib/lstat.h: Remove file.
41766         * lib/sys_stat.in.h: Add special invocation convention.
41767         (lstat): New declaration.
41768         * lib/lstat.c (orig_lstat): New function.
41769         (rpl_lstat): Use orig_lstat instead of lstat.
41770         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41771         AC_C_INLINE. Set REPLACE_LSTAT.
41772         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41773         and REPLACE_LSTAT.
41774         * modules/lstat (Files): Remove lib/lstat.h.
41775         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41776         (Include): Specify <sys/stat.h> instead of lstat.h.
41777         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41778         REPLACE_LSTAT.
41779         * NEWS: Mention the change.
41780
41781 2008-10-20  Bruno Haible  <bruno@clisp.org>
41782
41783         * modules/posix_spawn-tests: New file.
41784         * tests/test-posix_spawn3.c: New file.
41785
41786 2008-10-20  Bruno Haible  <bruno@clisp.org>
41787
41788         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41789         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41790         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41791         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41792         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41793
41794 2008-10-20  Bruno Haible  <bruno@clisp.org>
41795
41796         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41797         of posix_spawn on AIX 5.3.
41798
41799 2008-10-20  Bruno Haible  <bruno@clisp.org>
41800
41801         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41802
41803 2008-10-20  Bruno Haible  <bruno@clisp.org>
41804
41805         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41806         of AC_LANG_PROGRAM.
41807
41808 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41809
41810         * lib/netdb.in.h: Don't define GNU specific constants until they
41811         are supported or needed.  Reported by Bruno Haible
41812         <bruno@clisp.org>.
41813
41814 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41815
41816         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41817
41818 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41819
41820         * lib/getaddrinfo.h: Remove file.
41821         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41822         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41823         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41824         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41825         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41826         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41827         * tests/test-getaddrinfo.c: Likewise.
41828         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41829         * NEWS: Mention change.
41830
41831 2008-10-19  Bruno Haible  <bruno@clisp.org>
41832
41833         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41834
41835 2008-10-19  Bruno Haible  <bruno@clisp.org>
41836
41837         * lib/wait-process.c: Include simply <sys/wait.h>.
41838         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41839         WIFSTOPPED): Remove fallback definitions.
41840         * modules/wait-process (Depends-on): Add sys_wait.
41841
41842         New module 'sys_wait'.
41843         * modules/sys_wait: New file.
41844         * lib/sys_wait.in.h: New file, partially copied from
41845         lib/wait-process.c.
41846         * m4/sys_wait_h.m4: New file.
41847         * doc/posix-headers/sys_wait.texi: Mention the new module.
41848
41849 2008-10-19  Bruno Haible  <bruno@clisp.org>
41850
41851         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41852
41853 2008-10-19  Bruno Haible  <bruno@clisp.org>
41854
41855         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41856         * lib/wait-process.c (WAIT_T): Remove type.
41857         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41858         (wait_subprocess): Update.
41859
41860 2008-10-19  Bruno Haible  <bruno@clisp.org>
41861
41862         New module 'atoll'.
41863         * modules/atoll: New file.
41864         * lib/stdlib.in.h (atoll): New declaration.
41865         * lib/atoll.c: New file, from glibc with modifications.
41866         * m4/atoll.m4: New file.
41867         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41868         HAVE_ATOLL.
41869         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41870         * doc/posix-functions/atoll.texi: Mention the new module.
41871
41872 2008-10-19  Bruno Haible  <bruno@clisp.org>
41873
41874         Add strtoull() declaration to <stdlib.h>.
41875         * lib/stdlib.in.h (strtoull): New declaration.
41876         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41877         Set HAVE_STRTOULL.
41878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41879         HAVE_STRTOULL.
41880         * modules/strtoull (Depends-on): Add stdlib.
41881         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41882         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41883         HAVE_STRTOULL.
41884
41885 2008-10-19  Bruno Haible  <bruno@clisp.org>
41886
41887         Add strtoll() declaration to <stdlib.h>.
41888         * lib/stdlib.in.h (strtoll): New declaration.
41889         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41890         Set HAVE_STRTOLL.
41891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41892         HAVE_STRTOLL.
41893         * modules/strtoll (Depends-on): Add stdlib.
41894         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41895         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41896
41897 2008-10-19  Bruno Haible  <bruno@clisp.org>
41898
41899         * modules/bcopy (Depends-on): Add strings.
41900         (Include): Specify <strings.h>.
41901
41902 2008-10-19  Bruno Haible  <bruno@clisp.org>
41903
41904         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41905
41906 2008-10-19  Bruno Haible  <bruno@clisp.org>
41907
41908         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41909         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41910         mingw.
41911
41912 2008-10-19  Bruno Haible  <bruno@clisp.org>
41913
41914         * lib/atanl.c: Don't include isnanl.h.
41915         * lib/cosl.c: Likewise.
41916         * lib/ldexpl.c: Likewise.
41917         * lib/logl.c: Likewise.
41918         * lib/sinl.c: Likewise.
41919         * lib/sqrtl.c: Likewise.
41920         * lib/tanl.c: Likewise.
41921
41922         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41923         * lib/isnanf.h: Remove file.
41924         * lib/isnand.h: Remove file.
41925         * lib/isnanl.h: Remove file.
41926         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41927         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41928         macros.
41929         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41930         HAVE_ISNANF, don't define it as a C macro.
41931         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41932         HAVE_ISNAND, don't define it as a C macro.
41933         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41934         HAVE_ISNANL, don't define it as a C macro.
41935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41936         HAVE_ISNAN[FDL].
41937         * modules/isnanf (Files): Remove lib/isnanf.h.
41938         (Depends-on): Add math.
41939         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41940         (Include): Specify <math.h> instead of isnanf.h.
41941         * modules/isnand (Files): Remove lib/isnand.h.
41942         (Depends-on): Add math.
41943         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41944         (Include): Specify <math.h> instead of isnand.h.
41945         * modules/isnanl (Files): Remove lib/isnanl.h.
41946         (Depends-on): Add math.
41947         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41948         (Include): Specify <math.h> instead of isnanl.h.
41949         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41950         HAVE_ISNAN[FDL].
41951         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41952         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41953         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41954         * NEWS: Mention the change.
41955
41956 2008-10-18  Bruno Haible  <bruno@clisp.org>
41957
41958         Add getusershell(), setusershell(), endusershell() declarations to
41959         <unistd.h>.
41960         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41961         declarations.
41962         * lib/getusershell.c: Include unistd.h.
41963         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41964         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41965         HAVE_GETUSERSHELL.
41966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41967         and HAVE_GETUSERSHELL.
41968         * modules/getusershell (Depends-on): Add unistd, extensions.
41969         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41970         (Include): Specify <unistd.h>.
41971         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41972         HAVE_GETUSERSHELL.
41973
41974 2008-10-18  Bruno Haible  <bruno@clisp.org>
41975
41976         Add a getloadavg() declaration to <stdlib.h>.
41977         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41978         getloadavg declaration.
41979         (getloadavg): New declaration.
41980         * lib/getloadavg.c: Include <stdlib.h> first.
41981         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41982         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41983         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41985         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41986         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41987         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41988         (Include): Specify <stdlib.h>.
41989         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41990         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41991
41992 2008-10-18  Bruno Haible  <bruno@clisp.org>
41993
41994         * lib/dirchownmod.c: Don't include lchmod.h.
41995
41996         Move the lchmod() declaration to <sys/stat.h>.
41997         * lib/lchmod.h: Remove file.
41998         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41999         (lchmod): New declaration, moved here from lib/lchown.h.
42000         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
42001         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
42002         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
42003         and HAVE_LCHMOD.
42004         * modules/lchmod (Files): Remove lib/lchmod.h.
42005         (Depends-on): Add sys_stat, extensions.
42006         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42007         (Include): Specify <sys/stat.h> instead of lchmod.h.
42008         * modules/sys_stat (Depends-on): Add link-warning.
42009         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
42010         definition of GL_LINK_WARNING.
42011         * NEWS: Mention the change.
42012
42013 2008-10-18  Bruno Haible  <bruno@clisp.org>
42014
42015         * lib/fchdir.c: Don't include dirfd.h.
42016         * lib/fts.c: Likewise.
42017         * lib/getcwd.c: Likewise.
42018         * lib/glob.c: Likewise.
42019
42020         Move the dirfd() declaration to <dirent.h>.
42021         * lib/dirfd.h: Remove file.
42022         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
42023         (dirfd): New declaration.
42024         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
42025         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
42026         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
42027         HAVE_DECL_DIRFD.
42028         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
42029         HAVE_DECL_DIRFD.
42030         * modules/dirfd (Files): Remove lib/dirfd.h.
42031         (Depends-on): Add dirent, extensions.
42032         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
42033         (Include): Specify <dirent.h> instead of dirfd.h.
42034         * modules/dirent (Depends-on): Add link-warning.
42035         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
42036         definition of GL_LINK_WARNING.
42037         * NEWS: Mention the change.
42038
42039 2008-10-18  Bruno Haible  <bruno@clisp.org>
42040
42041         Move the euidaccess() declaration to <unistd.h>.
42042         * lib/euidaccess.h: Remove file.
42043         * lib/unistd.in.h (euidaccess): New declaration.
42044         * lib/euidaccess.c: Don't include euidaccess.h.
42045         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
42046         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
42047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
42048         and HAVE_EUIDACCESS.
42049         * modules/euidaccess (Files): Remove lib/euidaccess.h.
42050         (Depends-on): Add unistd.
42051         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42052         (Include): Specify <unistd.h> instead of euidaccess.h.
42053         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
42054         HAVE_EUIDACCESS.
42055         * NEWS: Mention the change.
42056
42057 2008-10-18  Bruno Haible  <bruno@clisp.org>
42058
42059         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
42060
42061         Move the getdomainname() declaration to <unistd.h>.
42062         * lib/getdomainname.h: Remove file.
42063         * lib/unistd.in.h (getdomainname): New declaration.
42064         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
42065         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42066         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42067         HAVE_GETDOMAINNAME.
42068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42069         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
42070         * modules/getdomainname (Files): Remove lib/getdomainname.h.
42071         (Depends-on): Add unistd, extensions.
42072         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42073         (Includes): Specify <unistd.h> instead of getdomainname.h.
42074         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
42075         HAVE_GETDOMAINNAME.
42076         * NEWS: Mention the change.
42077
42078 2008-10-18  Bruno Haible  <bruno@clisp.org>
42079
42080         * modules/dirent: New file.
42081         * m4/dirent_h.m4: New file.
42082         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
42083         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
42084         * modules/fchdir (Files): Remove lib/dirent.in.h.
42085         (Depends-on): Add dirent.
42086         (Makefile.am): Move rules to modules/dirent.
42087         * doc/posix-headers/dirent.texi: Mention the new module.
42088
42089 2008-10-18  Bruno Haible  <bruno@clisp.org>
42090
42091         Avoid -Wunused-parameter warnings in public gnulib header files.
42092         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
42093         macro.
42094         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
42095
42096 2008-10-18  Bruno Haible  <bruno@clisp.org>
42097
42098         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
42099         * doc/glibc-functions/error.texi: Mention the module 'error'.
42100         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
42101         * doc/glibc-functions/getdomainname.texi: Mention the module
42102         'getdomainname'.
42103         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
42104         * doc/glibc-functions/getpagesize.texi: Mention the module
42105         'getpagesize'.
42106         * doc/glibc-functions/getusershell.texi: Mention the module
42107         'getusershell'.
42108         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
42109         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
42110         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
42111         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
42112         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
42113         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
42114         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
42115         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
42116         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
42117         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
42118         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
42119         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
42120         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
42121         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
42122
42123 2008-10-17  Bruno Haible  <bruno@clisp.org>
42124
42125         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
42126         HP-UX and IRIX, use -0.0L.
42127         * tests/test-ceill.c (minus_zero): Likewise.
42128         * tests/test-floorl.c (minus_zero): Likewise.
42129         * tests/test-frexpl.c (minus_zero): Likewise.
42130         * tests/test-isnan.c (minus_zerol): Likewise.
42131         * tests/test-isnanl.h (minus_zero): Likewise.
42132         * tests/test-ldexpl.c (minus_zero): Likewise.
42133         * tests/test-roundl.c (minus_zero): Likewise.
42134         * tests/test-signbit.c (minus_zerol): Likewise.
42135         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42136         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42137         * tests/test-truncl.c (minus_zero): Likewise.
42138         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42139         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42140         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
42141         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42142
42143 2008-10-17  Bruno Haible  <bruno@clisp.org>
42144
42145         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
42146         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
42147         that it gets activated only for gcc >= 3.0.
42148         * lib/dirent.in.h: Likewise.
42149         * lib/errno.in.h: Likewise.
42150         * lib/fcntl.in.h: Likewise.
42151         * lib/float.in.h: Likewise.
42152         * lib/iconv.in.h: Likewise.
42153         * lib/inttypes.in.h: Likewise.
42154         * lib/locale.in.h: Likewise.
42155         * lib/math.in.h: Likewise.
42156         * lib/netdb.in.h: Likewise.
42157         * lib/netinet_in.in.h: Likewise.
42158         * lib/search.in.h: Likewise.
42159         * lib/signal.in.h: Likewise.
42160         * lib/spawn.in.h: Likewise.
42161         * lib/stdarg.in.h: Likewise.
42162         * lib/stdint.in.h: Likewise.
42163         * lib/stdio.in.h: Likewise.
42164         * lib/stdlib.in.h: Likewise.
42165         * lib/string.in.h: Likewise.
42166         * lib/strings.in.h: Likewise.
42167         * lib/sys_file.in.h: Likewise.
42168         * lib/sys_ioctl.in.h: Likewise.
42169         * lib/sys_select.in.h: Likewise.
42170         * lib/sys_socket.in.h: Likewise.
42171         * lib/sys_stat.in.h: Likewise.
42172         * lib/sys_time.in.h: Likewise.
42173         * lib/sysexits.in.h: Likewise.
42174         * lib/time.in.h: Likewise.
42175         * lib/unistd.in.h: Likewise.
42176         * lib/wchar.in.h: Likewise.
42177         * lib/wctype.in.h: Likewise.
42178         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42179
42180 2008-10-17  Jim Meyering  <meyering@redhat.com>
42181
42182         ignore-value: don't depend on inline module
42183         * modules/ignore-value (Depends-on): Remove 'inline'.
42184         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
42185         Suggestion from Bruno Haible.
42186
42187 2008-10-17  Bruno Haible  <bruno@clisp.org>
42188
42189         New implementation of condition variables for Win32.
42190         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
42191         (gl_linked_waitqueue_t): New type.
42192         (gl_cond_t): Use it.
42193         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
42194         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
42195         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
42196         (glthread_cond_init_func, glthread_cond_wait_func,
42197         glthread_cond_timedwait_func, glthread_cond_signal_func,
42198         glthread_cond_broadcast_func, glthread_cond_destroy_func):
42199         Reimplemented on the basis of gl_linked_waitqueue_t.
42200         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
42201         gl_waitqueue_t.
42202         (gl_rwlock_t): Update.
42203         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
42204
42205 2008-10-17  Simon Josefsson  <simon@josefsson.org>
42206
42207         * modules/recvfrom (Depends-on): Add dependency on getpeername.
42208         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42209
42210 2008-10-17  Jim Meyering  <meyering@redhat.com>
42211
42212         ignore-value: new module
42213         * modules/ignore-value: New file.
42214         * lib/ignore-value.h: New file.
42215         * MODULES.html.sh (Compiler warning management): New section,
42216         just for this module.  More to come.
42217
42218 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42219
42220         open-safer.c: avoid 'signed and unsigned in conditional...' warning
42221         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
42222         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
42223
42224 2008-10-16  Jim Meyering  <meyering@redhat.com>
42225
42226         openat-die.c: avoid 'no previous prototype' warning
42227         * lib/openat-die.c: Include "openat.h".
42228         Reported by Reuben Thomas <rrt@sc3d.org>.
42229
42230 2008-10-16  Simon Josefsson  <simon@josefsson.org>
42231
42232         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
42233         * lib/netdb.in.h: Fix typo.
42234         Reported by Bruno Haible  <bruno@clisp.org>
42235
42236         * lib/netdb.in.h: Include sys/socket.h for platforms without
42237         netdb.h, to get structures like hostent on MinGW.
42238         * modules/netdb (Depends-on): Add sys_socket.
42239
42240 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42241
42242         * modules/netdb, modules/netdb-tests: New file.
42243         * m4/netdb_h.m4: New file.
42244         * lib/netdb.in.h: Add, currently just an empty file pending
42245         definitions.
42246         * tests/test-netdb.c: New file.
42247         * doc/posix-headers/netdb.texi: Mention that we replace it if
42248         needed.
42249         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42250         netdb.
42251
42252 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42253
42254         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42255         with code.
42256
42257 2008-10-13  Bruno Haible  <bruno@clisp.org>
42258
42259         * lib/glthread/cond.c (glthread_cond_wait_func,
42260         glthread_cond_timedwait_func): Add a comment.
42261
42262 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42263
42264         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42265         * tests/test-select.c: Likewise,
42266
42267 2008-10-13  Bruno Haible  <bruno@clisp.org>
42268
42269         * lib/glthread/cond.c (glthread_cond_wait_func,
42270         glthread_cond_timedwait_func): Fix variable name.
42271         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42272
42273 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42274
42275         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42276         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42277         struct sockaddr.sa_len.
42278         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42279
42280 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42281
42282         * build-aux/pmccabe2html: Add css and css_url parameters.
42283
42284 2008-10-12  Bruno Haible  <bruno@clisp.org>
42285
42286         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42287         calling aclx_get.
42288         Reported by Rainer Tammer <tammer@tammer.net>.
42289
42290 2008-10-12  Bruno Haible  <bruno@clisp.org>
42291
42292         Use msvcrt aware primitives for creation/termination of Win32 threads.
42293         * lib/glthread/thread.c: Include <process.h>.
42294         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42295         (wrapper_func): Update signature.
42296         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42297
42298 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42299             Bruno Haible  <bruno@clisp.org>
42300
42301         Provide a Win32 implementation of the 'cond' module.
42302         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42303         * lib/glthread/cond.c (glthread_cond_init_func,
42304         glthread_cond_wait_func, glthread_cond_timedwait_func,
42305         glthread_cond_signal_func, glthread_cond_broadcast_func,
42306         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42307         * modules/cond (Dependencies): Add gettimeofday.
42308
42309 2008-10-11  Bruno Haible  <bruno@clisp.org>
42310
42311         Make sleep work on older versions of mingw.
42312         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42313         only whether it exists.
42314         * doc/posix-functions/sleep.texi: Mention the problem with older
42315         versions of mingw.
42316
42317 2008-10-11  Bruno Haible  <bruno@clisp.org>
42318
42319         New module 'shutdown'.
42320         * modules/shutdown: New file.
42321         * lib/sys_socket.in.h (shutdown): New declaration.
42322         * lib/winsock.c (shutdown): New function.
42323         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42324         GNULIB_SHUTDOWN.
42325         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42326         * doc/posix-functions/shutdown.texi: Document the new module.
42327
42328 2008-10-11  Jim Meyering  <meyering@redhat.com>
42329
42330         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42331
42332 2008-10-11  Bruno Haible  <bruno@clisp.org>
42333
42334         New module 'fclose'.
42335         * modules/fclose: New file.
42336         * lib/stdio.in.h (fclose): New declaration.
42337         * lib/fclose.c: New file.
42338         * m4/fclose.m4: New file.
42339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42340         REPLACE_FCLOSE.
42341         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42342         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42343         REPLACE_FCLOSE.
42344         * modules/close (Depends-on): fclose.
42345         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42346
42347 2008-10-11  Bruno Haible  <bruno@clisp.org>
42348
42349         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42350         set errno and don't call _close.
42351
42352 2008-10-10  Bruno Haible  <bruno@clisp.org>
42353
42354         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42355         ACL, not afterwards. Fixes test failure on Cygwin.
42356
42357 2008-10-09  Ben Pfaff  <blp@gnu.org>
42358
42359         * build-aux/announce-gen: Fix gnulib version related part of usage
42360         message.  Die with a useful error message if no tarballs are
42361         found.
42362
42363 2008-10-10  Jim Meyering  <meyering@redhat.com>
42364
42365         bootstrap: use git's --depth=N option only if it's supported
42366         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42367         recognize the --depth option.  Reported by Pádraig Brady.
42368
42369 2008-10-09  Bruno Haible  <bruno@clisp.org>
42370
42371         New module 'ioctl'.
42372         * modules/ioctl: New file.
42373         * lib/sys_socket.in.h (ioctl): Remove declaration.
42374         * lib/winsock.c: Include <sys/ioctl.h>.
42375         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42376         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42377         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42378         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42379         * doc/posix-functions/ioctl.texi: Mention the new module.
42380
42381 2008-10-09  Bruno Haible  <bruno@clisp.org>
42382
42383         New module 'sys_ioctl'.
42384         * lib/sys_ioctl.in.h: New file.
42385         * m4/sys_ioctl_h.m4: New file.
42386         * modules/sys_ioctl: New file.
42387         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42388
42389 2008-10-09  Bruno Haible  <bruno@clisp.org>
42390
42391         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42392         * lib/winsock.c: Include <stdarg.h>.
42393         (rpl_ioctl): Change to second argument 'int' and then varargs.
42394
42395 2008-10-09  Bruno Haible  <bruno@clisp.org>
42396
42397         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
42398         when the sys_socket module is present and the system has <winsock2.h>.
42399
42400 2008-10-09  Bruno Haible  <bruno@clisp.org>
42401
42402         * doc/posix-functions/close.texi: Mention module 'close' instead of
42403         module 'sys_socket'.
42404
42405 2008-10-09  Bruno Haible  <bruno@clisp.org>
42406
42407         * doc/glibc-headers/sys_ioctl.texi: New file.
42408         * doc/gnulib.texi: Include it.
42409
42410 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42411             Bruno Haible  <bruno@clisp.org>
42412
42413         Combine the two replacements of 'close'.
42414         * lib/sys_socket.in.h (close): Define to a reminder to include
42415         <unistd.h>.
42416         (_gl_close_fd_maybe_socket): New declaration.
42417         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
42418         * lib/winsock.c (close): Remove undefinition.
42419         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
42420         needed for the gnulib module 'close'.
42421         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
42422         define to an error symbol or to a warning, if suitable.
42423         * lib/close.c: Include <sys/socket.h>.
42424         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
42425         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
42426         UNISTD_H_HAVE_WINSOCK2_H.
42427         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
42428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42429         UNISTD_H_HAVE_WINSOCK2_H.
42430         * modules/sys_socket (Files): Add m4/unistd_h.m4.
42431         (configure.ac): Set a module indicator.
42432         (Makefile.am): Substitute GNULIB_CLOSE.
42433         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
42434         * modules/poll-tests (Depends-on): Add close.
42435         * modules/select-tests (Depends-on): Likewise.
42436
42437 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42438             Bruno Haible  <bruno@clisp.org>
42439
42440         New module 'close'.
42441         * modules/close: New file.
42442         * lib/unistd.in.h (close): Move declaration out of the
42443         FCHDIR_REPLACEMENT scope.
42444         (_gl_unregister_fd): New declaration.
42445         * lib/close.c: New file.
42446         * lib/fchdir.c (rpl_close): Remove function.
42447         * m4/close.m4: New file.
42448         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42449         close.
42450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
42451         REPLACE_CLOSE.
42452         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
42453         REPLACE_CLOSE.
42454         * modules/fchdir (Depends-on): Add close.
42455
42456 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42457             Bruno Haible  <bruno@clisp.org>
42458
42459         * lib/fcntl.in.h (open): Simplify conditionals.
42460         (_gl_register_fd): New declaration.
42461         * lib/fchdir.c (rpl_open): Remove function.
42462         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
42463         also.
42464         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
42465         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42466         open.
42467
42468 2008-10-09  Jim Meyering  <meyering@redhat.com>
42469
42470         GNUmakefile: use the more name-space-friendly "_version"
42471         * top/GNUmakefile (_dummy): Update.
42472         (_version): Rename from "version".
42473
42474 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42475             Bruno Haible  <bruno@clisp.org>
42476
42477         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
42478         rpl_close.
42479         (_gl_register_fd): New function, extracted from rpl_open.
42480         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42481         (rpl_open, rpl_opendir): Use _gl_register_fd.
42482
42483 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42484
42485         Fix organization of 'open' replacement.
42486         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42487         (gl_FUNC_OPEN): Use it.
42488         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42489
42490 2008-10-08  Bruno Haible  <bruno@clisp.org>
42491
42492         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42493
42494 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42495
42496         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42497         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42498         listen).
42499
42500 2008-10-08  Eric Blake  <ebb9@byu.net>
42501
42502         GNUmakefile: add 'make version' target
42503         * top/GNUmakefile (_curr-ver): Split version update rules...
42504         (version): ...into a target.
42505
42506 2008-10-07  Bruno Haible  <bruno@clisp.org>
42507
42508         Use a more portable replacement expression for -0.0L.
42509         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42510         instead of -0.0L. Fix m4 quotation.
42511
42512         * tests/test-signbit.c: Include <float.h>.
42513         (minus_zero): New variable.
42514         (test_signbitl): Use minus_zero instead of -zero.
42515         * modules/signbit-tests (Depends-on): Add float.
42516
42517         * tests/test-ceill.c: Include <float.h>.
42518         (zero): Remove variable.
42519         (minus_zero): New variable.
42520         (main): Use minus_zero instead of -zero.
42521         * modules/ceill-tests (Depends-on): Add float.
42522
42523         * tests/test-floorl.c: Include <float.h>.
42524         (zero): Remove variable.
42525         (minus_zero): New variable.
42526         (main): Use minus_zero instead of -zero.
42527         * modules/floorl-tests (Depends-on): Add float.
42528
42529         * tests/test-roundl.c: Include <float.h>.
42530         (zero): Remove variable.
42531         (minus_zero): New variable.
42532         (main): Use minus_zero instead of -zero.
42533         * modules/roundl-tests (Depends-on): Add float.
42534
42535         * tests/test-truncl.c: Include <float.h>.
42536         (zero): Remove variable.
42537         (minus_zero): New variable.
42538         (main): Use minus_zero instead of -zero.
42539         * modules/truncl-tests (Depends-on): Add float.
42540
42541         * tests/test-frexpl.c (zero): Remove variable.
42542         (minus_zero): New variable.
42543         (main): Use minus_zero instead of -zero.
42544         * modules/frexpl-tests (Depends-on): Add float.
42545
42546         * tests/test-isnan.c (zerol): Remove variable.
42547         (minus_zerol): New variable.
42548         (test_long_double): Use minus_zerol instead of -zerol.
42549         * modules/isnan-tests (Depends-on): Add float.
42550
42551         * tests/test-isnanl.h (zero): Remove variable.
42552         (minus_zero): New variable.
42553         (main): Use minus_zero instead of -zero.
42554         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42555         * modules/isnanl-tests (Depends-on): Add float.
42556
42557         * tests/test-ldexpl.c (zero): Remove variable.
42558         (minus_zero): New variable.
42559         (main): Use minus_zero instead of -zero.
42560         * modules/ldexpl-tests (Depends-on): Add float.
42561
42562         * tests/test-snprintf-posix.h (zerol): Remove variable.
42563         (minus_zerol): New variable.
42564         (test_function): Use minus_zerol instead of -zerol.
42565         * modules/snprintf-posix-tests (Depends-on): Add float.
42566         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42567
42568         * tests/test-sprintf-posix.h (zerol): Remove variable.
42569         (minus_zerol): New variable.
42570         (test_function): Use minus_zerol instead of -zerol.
42571         * modules/sprintf-posix-tests (Depends-on): Add float.
42572         * modules/vsprintf-posix-tests (Depends-on): Add float.
42573
42574         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42575         (minus_zerol): New variable.
42576         (test_function): Use minus_zerol instead of -zerol.
42577         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42578
42579         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42580         (minus_zerol): New variable.
42581         (test_function): Use minus_zerol instead of -zerol.
42582         * modules/vasprintf-posix-tests (Depends-on): Add float.
42583
42584 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42585
42586         * MODULES.html.sh (Support for building documentation): Mention
42587         pmccabe2html.  Sort entries.
42588
42589         Add pmccabe2html module, from gnupdf.
42590         * build-aux/pmccabe.css: New file.
42591         * build-aux/pmccabe2html: New file.
42592         * m4/pmccabe2html.m4: New file.
42593         * modules/pmccabe2html: New file.
42594
42595 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42596
42597         flock: new module
42598         * MODULES.html.sh: Add to list of modules.
42599         * lib/flock.c: flock implementation for Windows and Unix systems
42600         which have fcntl.
42601         * doc/glibc-functions/flock.texi: Update documentation.
42602         * lib/sys_file.in.h: <sys/file.h> header file.
42603         * m4/flock.m4: M4 macros.
42604         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42605         * modules/flock: flock module.
42606         * modules/flock-tests: flock tests module.
42607         * modules/sys_file: sys/file.h module.
42608         * tests/test-flock.c: test suite for flock.
42609
42610 2008-10-06  Jim Meyering  <meyering@redhat.com>
42611
42612         bootstrap: check for LT_INIT more portably still ;-)
42613         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42614         Spotted by Bruno Haible.
42615
42616 2008-10-06  Eric Blake  <ebb9@byu.net>
42617
42618         test-signbit: avoid tripping Irix cc bug on -0.0L
42619         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42620         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42621         entire testsuite consistent and avoids an Irix 6.2 bug.
42622
42623 2008-10-05  Bruno Haible  <bruno@clisp.org>
42624             Jim Meyering  <jim@meyering.net>
42625
42626         Add an option for ignoring EPIPE during close_stdout.
42627         * lib/closeout.h: Include <stdbool.h>.
42628         (close_stdout_set_ignore_EPIPE): New declaration.
42629         * lib/closeout.c: Include <stdbool.h>.
42630         (ignore_EPIPE): New variable.
42631         (close_stdout_set_ignore_EPIPE): New function.
42632         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42633         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42634         failure.
42635         * modules/closeout (Depends-on): Add stdbool.
42636
42637 2008-10-05  Bruno Haible  <bruno@clisp.org>
42638
42639         * modules/accept: New file.
42640         * modules/bind: New file.
42641         * modules/connect: New file.
42642         * modules/getpeername: New file.
42643         * modules/getsockname: New file.
42644         * modules/getsockopt: New file.
42645         * modules/listen: New file.
42646         * modules/recv: New file.
42647         * modules/recvfrom: New file.
42648         * modules/send: New file.
42649         * modules/sendto: New file.
42650         * modules/setsockopt: New file.
42651         * modules/socket: New file.
42652         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42653         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42654         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42655         the particular module is requested. Add a link warning when the
42656         particular module is not requested.
42657         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42658         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42659         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42660         the particular module is requested.
42661         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42662         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42663         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42664         * modules/sys_socket (Depends-on): Add link-warning.
42665         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42666         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42667         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42668         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42669         GL_LINK_WARNING.
42670         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42671         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42672         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42673         * doc/posix-functions/getpeername.texi: Mention the new module
42674         'getpeername'.
42675         * doc/posix-functions/getsockname.texi: Mention the new module
42676         'getsockname'.
42677         * doc/posix-functions/getsockopt.texi: Mention the new module
42678         'getsockopt'.
42679         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42680         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42681         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42682         * doc/posix-functions/send.texi: Mention the new module 'send'.
42683         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42684         * doc/posix-functions/setsockopt.texi: Mention the new module
42685         'setsockopt'.
42686         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42687         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42688         listen, connect, accept.
42689         * modules/select-tests (Depends-on): Likewise.
42690
42691 2008-10-05  Bruno Haible  <bruno@clisp.org>
42692
42693         * lib/winsock.c (strerror): Remove unused #undef.
42694         (rpl_close): Remove unused local variable.
42695
42696         * modules/sys_socket (Depends-on); Add errno.
42697
42698 2008-10-05  Bruno Haible  <bruno@clisp.org>
42699
42700         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42701         (select): Add a link warning when the 'select' module is not used.
42702         * modules/sys_select (Depends-on): Add link-warning.
42703         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42704         Suggested by Paolo Bonzini.
42705
42706 2008-10-05  Jim Meyering  <meyering@redhat.com>
42707
42708         bootstrap: check for LT_INIT more portably
42709         * build-aux/bootstrap: Avoid using grep -E, since it's not
42710         portable enough.  Suggestion from Bruno Haible.
42711
42712 2008-10-05  Bruno Haible  <bruno@clisp.org>
42713
42714         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42715         as being fixed by gnulib.
42716
42717 2008-10-05  Bruno Haible  <bruno@clisp.org>
42718
42719         * modules/select-tests: New file, mostly copied from
42720         modules/sys_select-tests.
42721         * tests/test-select.c: New file, mostly copied from
42722         tests/test-sys_select.c.
42723         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42724         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42725         (Makefile.am): Remove test_sys_select_LDADD.
42726
42727         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42728         to an undefined symbol, for an error message.
42729         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42730         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42731         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42732         winsock-select.c here.
42733         * modules/sys_select (Files): Remove lib/winsock-select.c.
42734         (Depends-on): Remove alloca.
42735         (Makefile.am): Substitute GNULIB_SELECT.
42736         * modules/select: New file.
42737         * doc/posix-functions/select.texi: Update.
42738
42739 2008-10-05  Bruno Haible  <bruno@clisp.org>
42740
42741         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42742         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42743         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42744         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42745         getdtablesize.
42746         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42747         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42748
42749 2008-10-05  Bruno Haible  <bruno@clisp.org>
42750
42751         * modules/getdtablesize-tests: New file.
42752         * tests/test-getdtablesize.c: New file.
42753
42754         New module 'getdtablesize'.
42755         * lib/unistd.in.h (getdtablesize): New declaration.
42756         * lib/getdtablesize.c: New file.
42757         * m4/getdtablesize.m4: New file.
42758         * modules/getdtablesize: New file.
42759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42760         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42761         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42762         HAVE_GETDTABLESIZE.
42763         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42764
42765 2008-10-05  Bruno Haible  <bruno@clisp.org>
42766
42767         * modules/sched (Makefile.am): Fix typo.
42768         Reported by Simon Josefsson.
42769
42770 2008-10-05  Jim Meyering  <meyering@redhat.com>
42771
42772         bootstrap: check for LT_INIT, too
42773         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42774         are deprecated.  Suggestion from Ralf Wildenhues.
42775
42776 2008-10-05  Bruno Haible  <bruno@clisp.org>
42777
42778         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42779         overriding them by ours.
42780         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42781
42782 2008-10-05  Jim Meyering  <meyering@redhat.com>
42783
42784         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42785         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42786         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42787
42788 2008-10-04  Bruno Haible  <bruno@clisp.org>
42789
42790         * modules/dup2 (License): Change to LGPLv2+.
42791         * modules/sleep (License): Likewise.
42792         * modules/perror (License): Likewise.
42793         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42794         Blake.
42795         * modules/signal (License): Likewise.
42796         * modules/sigprocmask (License): Likewise.
42797         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42798         Meyering.
42799
42800 2008-10-04  Bruno Haible  <bruno@clisp.org>
42801
42802         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42803         Reported by Rainer Tammer <tammer@tammer.net>.
42804
42805 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42806             Bruno Haible  <bruno@clisp.org>
42807
42808         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42809         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42810         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42811
42812 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42813
42814         filevercmp: new module
42815         * lib/filevercmp.h: New function filevercmp comparing version strings.
42816         * lib/filevercmp.c: Implementation of filevercmp function.
42817         * modules/filevercmp: Module metadata.
42818         * tests/test-filevercmp.c: Unit test for new module.
42819         * modules/filevercmp-tests: Unit test metadata.
42820         * MODULES.html.sh: Add filevercmp module.
42821
42822 2008-10-03  Bruno Haible  <bruno@clisp.org>
42823
42824         * lib/c-ctype.h: Add comment.
42825         Reported by Jim Meyering.
42826
42827 2008-10-02  Bruno Haible  <bruno@clisp.org>
42828
42829         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42830
42831 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42832
42833         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42834         name of bootstrap.conf accordingly.
42835
42836 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42837
42838         * build-aux/bootstrap: Install git-merge-changelog configuration
42839         items into .gitconfig if needed.
42840
42841 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42842
42843         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42844         git repository, and initialize/update it accordingly.
42845
42846 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42847
42848         * modules/fsync-tests: New file.
42849         * tests/test-fsync.c: New file.
42850
42851         New module 'fsync'.
42852         * lib/fsync.c: New file.
42853         * m4/fsync.m4: New file.
42854         * modules/fsync: New file.
42855         * lib/unistd.in.h (fsync): New declaration.
42856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42857         GNULIB_FSYNC and HAVE_FSYNC.
42858         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42859         * MODULES.html.sh (posix_functions): Add fsync.
42860         * doc/posix-functions/fsync.texi: Mention the new module.
42861
42862 2008-10-02  Jim Meyering  <meyering@redhat.com>
42863
42864         fts.c: sync with similar code from coreutils' remove.c
42865         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42866         Guard also with "#if defined __linux__", since for now at least,
42867         this code is Linux-kernel-specific.
42868
42869 2008-10-02  Jim Meyering  <meyering@redhat.com>
42870
42871         fts: bug fixes
42872         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42873         Include <sys/vfs.h>, not <sys/statfs.h>.
42874
42875         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42876         Include <sys/vfs.h>, not <sys/statfs.h>.
42877
42878 2008-10-01  Bruno Haible  <bruno@clisp.org>
42879
42880         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42881         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42882         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42883         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42884         * doc/posix-functions/posix_spawnp.texi: Likewise.
42885         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42886         whether posix_spawn actually works.
42887         * m4/pipe.m4 (gl_PIPE): Likewise.
42888         * modules/execute (Files): Add m4/posix_spawn.m4.
42889         * modules/pipe (Files): Add m4/posix_spawn.m4.
42890         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42891
42892 2008-10-01  Jim Meyering  <meyering@redhat.com>
42893
42894         remove trailing spaces
42895         * NEWS: Likewise.
42896         * lib/poll.c (poll): Likewise.
42897         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42898         * lib/winsock.c (rpl_close): Likewise.
42899         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42900         * modules/yield: Likewise.
42901         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42902         * tests/test-sys_select.c (connect_to_socket): Likewise.
42903
42904         fts.c: adjust a new interface to be more generally useful
42905         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42906         (fts_build): Adjust caller.
42907
42908 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42909
42910         * modules/cond-tests: New file.
42911         * tests/test-cond.c: New file.
42912
42913 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42914             Bruno Haible  <bruno@clisp.org>
42915
42916         * modules/cond (Dependencies): Add errno, time.
42917         * lib/glthread/cond.h: Include <time.h>.
42918         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42919         across platforms.
42920
42921 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42922             Bruno Haible  <bruno@clisp.org>
42923
42924         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42925
42926 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42927             Bruno Haible  <bruno@clisp.org>
42928
42929         * modules/tls-tests (Depends-on): Add thread, yield.
42930         (configure.ac): Remove all checks.
42931         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42932         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42933         gl_thread_self): Remove definitions. Include glthread/thread.h and
42934         glthread/yield.h instead.
42935         (test_tls): Pass an additional NULL argument to gl_thread_join.
42936
42937 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42938             Bruno Haible  <bruno@clisp.org>
42939
42940         * modules/lock-tests (Depends-on): Add thread, yield.
42941         (configure.ac): Remove all checks.
42942         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42943         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42944         gl_thread_self): Remove definitions. Include glthread/thread.h and
42945         glthread/yield.h instead.
42946         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42947         additional NULL argument to gl_thread_join.
42948
42949 2008-09-30  Bruno Haible  <bruno@clisp.org>
42950
42951         Fix the Win32 implementation of the 'thread' module.
42952         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42953         pointer type.
42954         (gl_thread_self): Invoke gl_thread_self_func.
42955         (gl_thread_self_func): New declaration.
42956         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42957         (do_init_self_key, init_self_key): New functions.
42958         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42959         Remove some fields.
42960         (running_threads, running_lock): Remove variables.
42961         (get_current_thread_handle): New function.
42962         (gl_thread_self_func, wrapper_func, glthread_create_func,
42963         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42964         simplified.
42965
42966 2008-09-30  Bruno Haible  <bruno@clisp.org>
42967
42968         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42969         files.
42970
42971 2008-09-30  Jim Meyering  <meyering@redhat.com>
42972
42973         fts.m4: correct the test for statfs.f_type
42974         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42975         when checking for statfs.f_type.
42976
42977 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42978
42979         tests: avoid some compiler warnings
42980         * tests/test-memchr.c (main): Pass NULL indirectly.
42981         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42982
42983 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42984
42985         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42986         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42987         exactly specified dayshifts.
42988         (dayshift): New rule.
42989         (rel): Add dayshift.
42990         (relative_time_table) [tomorrow, yesterday, today, now]:
42991         Use tDAY_SHIFT in place of tDAY_UNIT.
42992         * tests/test-getdate.c: Add tests for now-disallowed countable
42993         dayshifts, e.g., "4 yesterday ago".
42994
42995 2008-09-29  Bruno Haible  <bruno@clisp.org>
42996
42997         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42998         * tests/test-posix_spawn1.in.sh: Renamed from
42999         tests/test-posix_spawn.in.sh.
43000         * tests/test-posix_spawn2.c: New file.
43001         * tests/test-posix_spawn2.in.sh: New file.
43002         * modules/posix_spawnp-tests (Files): Update.
43003         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
43004
43005 2008-09-29  Bruno Haible  <bruno@clisp.org>
43006
43007         Propagate effects of putenv/setenv/unsetenv to child processes.
43008         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
43009         * lib/pipe.c (create_pipe): Likewise.
43010
43011 2008-09-29  Bruno Haible  <bruno@clisp.org>
43012
43013         Enable use of shell scripts as executables in mingw.
43014         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
43015         run the program as a shell script.
43016         * lib/pipe.c (create_pipe): Likewise.
43017         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
43018         resulting array.
43019
43020 2008-09-29  Eric Blake  <ebb9@byu.net>
43021
43022         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
43023
43024 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
43025
43026         * doc/posix-functions/accept.texi: Update mingw problems.
43027         * doc/posix-functions/bind.texi: Update mingw problems.
43028         * doc/posix-functions/close.texi: Update mingw problems.
43029         * doc/posix-functions/connect.texi: Update mingw problems.
43030         * doc/posix-functions/getpeername.texi: Update mingw problems.
43031         * doc/posix-functions/getsockname.texi: Update mingw problems.
43032         * doc/posix-functions/getsockopt.texi: Update mingw problems.
43033         * doc/posix-functions/ioctl.texi: Update mingw problems.
43034         * doc/posix-functions/listen.texi: Update mingw problems.
43035         * doc/posix-functions/recv.texi: Update mingw problems.
43036         * doc/posix-functions/recvfrom.texi: Update mingw problems.
43037         * doc/posix-functions/select.texi: Update mingw problems.
43038         * doc/posix-functions/send.texi: Update mingw problems.
43039         * doc/posix-functions/sendto.texi: Update mingw problems.
43040         * doc/posix-functions/setsockopt.texi: Update mingw problems.
43041         * doc/posix-functions/socket.texi: Update mingw problems.
43042
43043 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
43044             Bruno Haible  <bruno@clisp.org>
43045
43046         * lib/sys_select.in.h: Include sys/time.h.
43047         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
43048         * modules/sys_select: Depend on sys_time.
43049         * tests/test-sys_select.c: Test that sys/select.h defines struct
43050         timeval fully.
43051
43052 2008-09-29  Bruno Haible  <bruno@clisp.org>
43053
43054         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
43055         * lib/sys_select.in.h: Likewise.
43056
43057 2008-09-29  Bruno Haible  <bruno@clisp.org>
43058
43059         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
43060
43061 2008-09-29  Bruno Haible  <bruno@clisp.org>
43062
43063         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
43064         Set LIBSOCKET instead of augmenting LIBS.
43065         * modules/sockets (Link): New section.
43066         * modules/sockets-tests (test_sockets_LDADD): New variable.
43067         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
43068         * modules/poll-tests (test_poll_LDADD): New variable.
43069         * NEWS: Document the change.
43070
43071 2008-09-29  Bruno Haible  <bruno@clisp.org>
43072
43073         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
43074         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
43075         ARPA_INET_H directly.
43076         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43077
43078 2008-09-28  Bruno Haible  <bruno@clisp.org>
43079
43080         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
43081         from gl_HEADER_SYS_SOCKET.
43082         (gl_HEADER_SYS_SOCKET): Invoke it.
43083         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43084
43085 2008-09-28  Bruno Haible  <bruno@clisp.org>
43086
43087         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
43088         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
43089         Needed on OSF/1 4.0.
43090
43091 2008-09-28  Bruno Haible  <bruno@clisp.org>
43092
43093         Override open more carefully.
43094         * lib/open.c (orig_open): New function.
43095         (rpl_open): Use orig_open instead of open.
43096         * lib/fcntl.in.h: Add special invocation convention.
43097         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
43098         (gl_FUNC_OPEN): Invoke it.
43099
43100         Override freopen more carefully.
43101         * lib/freopen.c (orig_freopen): New function.
43102         (rpl_freopen): Use orig_freopen instead of freopen.
43103         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
43104         (gl_FUNC_FREOPEN): Invoke it.
43105
43106         Override fopen more carefully.
43107         * lib/fopen.c (orig_fopen): New function.
43108         (rpl_fopen): Use orig_fopen instead of fopen.
43109         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
43110         (gl_FUNC_FOPEN): Invoke it.
43111         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
43112
43113 2008-09-28  Bruno Haible  <bruno@clisp.org>
43114
43115         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
43116         SIGPIPE.
43117
43118 2008-09-28  Bruno Haible  <bruno@clisp.org>
43119
43120         * tests/test-sigaction.c (handler, main): Disable the check whether
43121         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
43122         glibc systems with LinuxThreads.
43123
43124 2008-09-28  Bruno Haible  <bruno@clisp.org>
43125
43126         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
43127
43128         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
43129         with AIX xlc.
43130         * lib/fcntl.in.h (open): Likewise.
43131         Reported by Rainer Tammer <tammer@tammer.net>.
43132
43133 2008-09-28  Bruno Haible  <bruno@clisp.org>
43134
43135         * modules/posix_spawnp-tests: New file.
43136         * tests/test-posix_spawn.c: New file.
43137         * tests/test-posix_spawn.in.sh: New file.
43138
43139         New module 'posix_spawnp'.
43140         * modules/posix_spawnp: New file.
43141         * lib/spawnp.c: New file, from GNU libc with modifications.
43142         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
43143
43144         New module 'posix_spawn'.
43145         * modules/posix_spawn: New file.
43146         * lib/spawn.c: New file, from GNU libc with modifications.
43147         * doc/posix-functions/posix_spawn.texi: Mention the new module.
43148
43149         New module 'posix_spawnattr_destroy'.
43150         * modules/posix_spawnattr_destroy: New file.
43151         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
43152         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
43153         module.
43154
43155         New module 'posix_spawnattr_setsigmask'.
43156         * modules/posix_spawnattr_setsigmask: New file.
43157         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
43158         modifications.
43159         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
43160         new module.
43161
43162         New module 'posix_spawnattr_getsigmask'.
43163         * modules/posix_spawnattr_getsigmask: New file.
43164         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
43165         modifications.
43166         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
43167         new module.
43168
43169         New module 'posix_spawnattr_setsigdefault'.
43170         * modules/posix_spawnattr_setsigdefault: New file.
43171         * lib/spawnattr_setdefault.c: New file, from GNU libc with
43172         modifications.
43173         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
43174         new module.
43175
43176         New module 'posix_spawnattr_getsigdefault'.
43177         * modules/posix_spawnattr_getsigdefault: New file.
43178         * lib/spawnattr_getdefault.c: New file, from GNU libc with
43179         modifications.
43180         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
43181         new module.
43182
43183         New module 'posix_spawnattr_setschedpolicy'.
43184         * modules/posix_spawnattr_setschedpolicy: New file.
43185         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
43186         modifications.
43187         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
43188         new module.
43189
43190         New module 'posix_spawnattr_getschedpolicy'.
43191         * modules/posix_spawnattr_getschedpolicy: New file.
43192         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
43193         modifications.
43194         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
43195         new module.
43196
43197         New module 'posix_spawnattr_setschedparam'.
43198         * modules/posix_spawnattr_setschedparam: New file.
43199         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
43200         modifications.
43201         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
43202         new module.
43203
43204         New module 'posix_spawnattr_getschedparam'.
43205         * modules/posix_spawnattr_getschedparam: New file.
43206         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
43207         modifications.
43208         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
43209         new module.
43210
43211         New module 'posix_spawnattr_setpgroup'.
43212         * modules/posix_spawnattr_setpgroup: New file.
43213         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
43214         modifications.
43215         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
43216         module.
43217
43218         New module 'posix_spawnattr_getpgroup'.
43219         * modules/posix_spawnattr_getpgroup: New file.
43220         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
43221         modifications.
43222         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
43223         module.
43224
43225         New module 'posix_spawnattr_setflags'.
43226         * modules/posix_spawnattr_setflags: New file.
43227         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
43228         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
43229         module.
43230
43231         New module 'posix_spawnattr_getflags'.
43232         * modules/posix_spawnattr_getflags: New file.
43233         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
43234         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
43235         module.
43236
43237         New module 'posix_spawnattr_init'.
43238         * modules/posix_spawnattr_init: New file.
43239         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
43240         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
43241         module.
43242
43243         New module 'posix_spawn_file_actions_destroy'.
43244         * modules/posix_spawn_file_actions_destroy: New file.
43245         * lib/spawn_faction_destroy.c: New file, from GNU libc with
43246         modifications.
43247         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
43248         the new module.
43249
43250         New module 'posix_spawn_file_actions_addopen'.
43251         * modules/posix_spawn_file_actions_addopen: New file.
43252         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43253         modifications.
43254         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43255         the new module.
43256
43257         New module 'posix_spawn_file_actions_adddup2'.
43258         * modules/posix_spawn_file_actions_adddup2: New file.
43259         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43260         modifications.
43261         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43262         the new module.
43263
43264         New module 'posix_spawn_file_actions_addclose'.
43265         * modules/posix_spawn_file_actions_addclose: New file.
43266         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43267         modifications.
43268         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43269         the new module.
43270
43271         New module 'posix_spawn_file_actions_init'.
43272         * modules/posix_spawn_file_actions_init: New file.
43273         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43274         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43275         new module.
43276
43277         New module 'posix_spawn-internal'.
43278         * modules/posix_spawn-internal: New file.
43279         * lib/spawn_int.h: New file, from GNU libc with modifications.
43280         * lib/spawni.c: New file, from GNU libc with modifications.
43281         * m4/posix_spawn.m4: New file.
43282
43283         New module 'spawn'.
43284         * modules/spawn: New file.
43285         * lib/spawn.in.h: New file, from GNU libc with modifications.
43286         * m4/spawn_h.m4: New file.
43287         * doc/posix-headers/spawn.texi: Mention the new module.
43288
43289 2008-09-28  Bruno Haible  <bruno@clisp.org>
43290
43291         * modules/sched-tests: New file.
43292         * tests/test-sched.c: New file.
43293
43294         New module 'sched'.
43295         * modules/sched: New file.
43296         * lib/sched.in.h: New file.
43297         * m4/sched_h.m4: New file.
43298         * doc/posix-headers/sched.texi: Mention the new module.
43299
43300 2008-09-27  Eric Blake  <ebb9@byu.net>
43301
43302         Fix previous patch, and tweak references to $0.
43303         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43304         (func_version, func_gnulib_dir): Don't call this program
43305         gnulib-tool.
43306         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43307         with using $0 in function.
43308         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43309         (func_fatal_error): Reuse the name the user invoked us with.
43310
43311 2008-09-27  Bruno Haible  <bruno@clisp.org>
43312
43313         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43314         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43315         (gl_ICONV_H): Not here.
43316         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43317         instead of assigning ICONV_H directly.
43318
43319         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43320         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43321         WCHAR_H directly.
43322
43323 2008-09-27  Bruno Haible  <bruno@clisp.org>
43324
43325         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43326         * modules/arpa_inet (Depends-on): Add link-warning.
43327         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43328         * modules/unistd (Makefile.am): Likewise.
43329
43330 2008-09-26  Bruno Haible  <bruno@clisp.org>
43331
43332         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43333         variables.
43334         (func_version): Essentially copied from gnulib-tool.
43335         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43336         func_readlink): Copied from gnulib-tool.
43337
43338 2008-09-26  Bruno Haible  <bruno@clisp.org>
43339
43340         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43341         invoking git-version-gen.
43342
43343 2008-09-26  Bruno Haible  <bruno@clisp.org>
43344
43345         * posix-modules: Update to directory names changed on 2008-01-19.
43346         Remove commas in output before splitting into words. No more need to
43347         avoid 'ftruncate' since 2007-02-19.
43348
43349 2008-09-26  Bruno Haible  <bruno@clisp.org>
43350
43351         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43352
43353 2008-09-26  Bruno Haible  <bruno@clisp.org>
43354
43355         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43356         * modules/fwriteerror (Depends-on): Add errno.
43357
43358 2008-09-26  Bruno Haible  <bruno@clisp.org>
43359
43360         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43361         * tests/test-vc-list-files-cvs.sh: Likewise.
43362
43363 2008-09-26  Bruno Haible  <bruno@clisp.org>
43364
43365         * doc/posix-headers/sys_resource.texi: Reorder items.
43366
43367 2008-09-26  Jim Meyering  <meyering@redhat.com>
43368
43369         fts: tweak inode comparison function
43370         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43371         inode numbers, as documented.
43372
43373         fts: sort dirent entries on inode number before traversing
43374         This avoids a quadratic, seek-related performance penalty when
43375         operating on a directory containing many entries (measurable at 10k;
43376         3.5 hours at 2 million entries with a cold cache) on certain types
43377         of file systems, including ext3 and ext4, but not tmpfs.
43378         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43379         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43380         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43381         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43382         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43383         (fts_build): Set the stat.st_ino member from D_INO.
43384         If it is likely to be useful, sort dirent entries on inode number.
43385
43386         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43387         and the struct statfs.f_type member.
43388         * modules/fts (Depends-on): Add d-ino.
43389
43390 2008-09-26  Bruno Haible  <bruno@clisp.org>
43391
43392         * modules/sigpipe-die (Depends-on): Add sigpipe.
43393
43394         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43395         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43396         and GNULIB_STDIO_H_SIGPIPE are set.
43397         * lib/stdio-write.c: New file.
43398         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
43399         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43400         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43401         REPLACE_STDIO_WRITE_FUNCS.
43402         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
43403         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43404         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43405         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43406         * modules/stdio (Files): Add lib/stdio-write.c.
43407         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
43408         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43409         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43410         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43411         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
43412         REPLACE_FPRINTF_POSIX.
43413         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
43414         REPLACE_PRINTF_POSIX.
43415         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
43416         REPLACE_VFPRINTF_POSIX.
43417         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
43418         REPLACE_VPRINTF_POSIX.
43419         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
43420         SIGPIPE issue.
43421         * doc/posix-functions/fputc.texi: Likewise.
43422         * doc/posix-functions/fputs.texi: Likewise.
43423         * doc/posix-functions/fwrite.texi: Likewise.
43424         * doc/posix-functions/printf.texi: Likewise.
43425         * doc/posix-functions/putc.texi: Likewise.
43426         * doc/posix-functions/putchar.texi: Likewise.
43427         * doc/posix-functions/puts.texi: Likewise.
43428         * doc/posix-functions/vfprintf.texi: Likewise.
43429         * doc/posix-functions/vprintf.texi: Likewise.
43430
43431         * modules/safe-write (Depends-on): Add write.
43432
43433         * modules/sigpipe-tests: New file.
43434         * tests/test-sigpipe.c: New file.
43435         * tests/test-sigpipe.sh: New file.
43436
43437         * modules/write: New file.
43438         * lib/unistd.in.h: Include <sys/types.h>.
43439         (write): New declaration.
43440         * lib/write.c: New file.
43441         * m4/write.m4: New file.
43442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43443         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
43444         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
43445         GNULIB_WRITE, REPLACE_WRITE.
43446         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
43447         and the SIGPIPE issue.
43448
43449         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
43450         (raise): New declaration.
43451         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
43452         (ext_signal): New function.
43453         (rpl_raise): New function.
43454         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
43455         GNULIB_SIGNAL_H_SIGPIPE.
43456         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
43457         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
43458
43459         * modules/sigpipe: New file.
43460         * m4/sigpipe.m4: New file.
43461
43462 2008-09-25  Derek Price  <derek@ximbiot.com>
43463             Bruno Haible  <bruno@clisp.org>
43464
43465         * gnulib-tool (func_import): Report all license incompatibilities, not
43466         just the first one.
43467
43468 2008-09-25  Bruno Haible  <bruno@clisp.org>
43469
43470         * gnulib-tool (func_import): When computing the edits, consider not
43471         only the Makefile.ams that exist but also those that will be generated.
43472
43473 2008-09-25  Simon Josefsson  <simon@josefsson.org>
43474
43475         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
43476         fixes gnulib-tool --test warning about duplicate dependency.
43477
43478 2008-09-25  Bruno Haible  <bruno@clisp.org>
43479
43480         * gnulib-tool: Don't ask the user to perform edits in the generated
43481         Makefile.ams.
43482         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43483         apply to the Makefile.am being generated.
43484         (func_emit_tests_Makefile_am): Execute edits that apply to the
43485         Makefile.am being generated.
43486         (func_import): Setup list of Makefile.am edits before emitting the
43487         Makefile.ams, not at the end.
43488         (func_create_testdir): Update.
43489         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43490
43491 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43492
43493         * gnulib-tool (func_import): Store the --tests-base option in the
43494         comment in gnulib-cache.m4.
43495
43496 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43497
43498         * NEWS: Document increased portability that sys_select now provides.
43499
43500         * lib/sys_select.in.h: Install select wrapper.
43501         * lib/sys_socket.in.h: Use more descriptive name when there is no
43502         select wrapper.
43503         * lib/winsock-select.c: New.
43504         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43505         Require gl_HEADER_SYS_SOCKET.
43506         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43507         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43508         * tests/test-sys_select.c: Add functional tests.
43509
43510 2008-09-24  Eric Blake  <ebb9@byu.net>
43511
43512         open, fopen: close fd leak in last patch
43513         * lib/open.c (rpl_open): Close fd before returning error.
43514         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43515         * doc/posix-functions/open.texi (open): Document that Irix also
43516         has the bug.
43517         * doc/posix-functions/fopen.texi (fopen): Likewise.
43518         Reported by Paolo Bonzini.
43519
43520 2008-09-24  Bruno Haible  <bruno@clisp.org>
43521
43522         Ensure that a filename ending in a slash cannot be used to access a
43523         non-directory.
43524         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43525         to check whether it's really a directory.
43526         * lib/fopen.c: Include fcntl.h, unistd.h.
43527         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43528         and fdopen().
43529         * modules/fopen (Depends-on): Add unistd.
43530         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43531         * tests/test-fopen.c (main): Likewise.
43532         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43533         * doc/posix-functions/fopen.texi: Likewise.
43534         Reported by Eric Blake.
43535
43536 2008-09-23  Eric Blake  <ebb9@byu.net>
43537
43538         c-stack: avoid compiler optimizations when provoking overflow
43539         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43540         recursion harder to optimize, to ensure a stack overflow occurs.
43541         * tests/test-c-stack.c (recurse): Likewise.
43542         Borrowed from libsigsegv.
43543
43544         c-stack: work around Irix sigaltstack bug
43545         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43546         whether sigaltstack uses wrong end of stack_t (copied in part from
43547         libsigsegv).
43548         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43549         Irix bug, without requiring an over-allocation.
43550         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43551         bug.
43552
43553         fopen: document mingw bug on directories
43554         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43555         not allowing a stream visiting a directory, even though reading
43556         from such a stream is not portable.
43557
43558 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43559
43560         * lib/poll.c: Rewrite.
43561         * modules/poll: Depend on alloca.
43562
43563 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43564
43565         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43566         instead define prototypes for a full set of wrappers.  Ensure
43567         that Cygwin does not use the compatibility code, which is only
43568         for MinGW.
43569         * lib/winsock.c: New.
43570         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43571         * modules/sys_socket: Add lib/winsock.c.
43572
43573         * modules/poll-tests: Add errno and perror.
43574         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43575
43576 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43577
43578         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43579
43580 2008-09-23  Bruno Haible  <bruno@clisp.org>
43581
43582         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43583         * doc/glibc-functions/*: Likewise.
43584
43585 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43586
43587         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43588         success.
43589
43590 2008-09-22  Eric Blake  <ebb9@byu.net>
43591             Bruno Haible  <bruno@clisp.org>
43592
43593         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43594         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43595         supply %A but mishandle pseudo-NaN.
43596         Reported by Simon Josefsson.
43597
43598 2008-09-21  Bruno Haible  <bruno@clisp.org>
43599
43600         * tests/test-lock.c (main): Tweak skip message.
43601         * tests/test-tls.c (main): Likewise.
43602
43603 2008-09-21  Bruno Haible  <bruno@clisp.org>
43604
43605         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43606         whether 'struct sigaction' has sa_sigaction here...
43607         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43608         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43609
43610 2008-09-21  Bruno Haible  <bruno@clisp.org>
43611
43612         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43613         section.
43614         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43615         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43616         the new section.
43617         (Support for obsolete systems lacking POSIX:2001): New section.
43618         (String handling <string.h>): Move strdup to the new section.
43619         Suggested by Simon Josefsson and Paolo Bonzini.
43620
43621 2008-09-21  Bruno Haible  <bruno@clisp.org>
43622
43623         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43624         exponents in %e and %g results on 'long double'. Needed for mingw's
43625         improved *printf functions.
43626         * tests/test-vasprintf-posix.c (test_function): Likewise.
43627         * tests/test-snprintf-posix.h (test_function): Likewise.
43628         * tests/test-sprintf-posix.h (test_function): Likewise.
43629         Reported by Eric Blake.
43630
43631 2008-09-21  Bruno Haible  <bruno@clisp.org>
43632
43633         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43634         * tests/test-sprintf-posix.h (test_function): Likewise.
43635
43636 2008-09-21  Bruno Haible  <bruno@clisp.org>
43637
43638         * modules/getpass (Depends-on): Add strdup-posix.
43639
43640         New module 'strdup-posix'.
43641         * modules/strdup-posix: New file.
43642         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43643         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43644         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43645         REPLACE_STRDUP.
43646         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43647         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43648         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43649         strdup-posix.
43650
43651         * modules/strdup (Depends-on): Remove malloc-posix.
43652
43653 2008-09-20  Bruno Haible  <bruno@clisp.org>
43654
43655         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43656         Wildenhues.
43657
43658 2008-09-20  Bruno Haible  <bruno@clisp.org>
43659
43660         Ensure that wint_t gets defined on IRIX 5.3.
43661         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43662         * lib/wctype.in.h (wint_t): Likewise.
43663         (__wctype_wint_t): Remove type.
43664         (isw*): Use wint_t instead of __wctype_wint_t.
43665         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43666         * modules/wchar (Files): Add m4/wint_t.m4.
43667         (Makefile.am): Substitute HAVE_WINT_T.
43668         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43669         * tests/test-wctype.c: Check that wint_t is defined.
43670         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43671         * doc/posix-headers/wctype.texi: Likewise.
43672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43673
43674 2008-09-18  Bruno Haible  <bruno@clisp.org>
43675
43676         * gnulib-tool (func_exit): Update comment.
43677
43678 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43679
43680         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43681         assumes strdup exists and does not depend on strdup to return
43682         ENOMEM on out of memory conditions.
43683
43684 2008-09-18  Bruno Haible  <bruno@clisp.org>
43685
43686         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43687         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43688         digits for the exponent.
43689
43690 2008-09-18  Jim Meyering  <meyering@redhat.com>
43691             Bruno Haible  <bruno@clisp.org>
43692
43693         * lib/vasnprintf.c (decimal_point_char): Define also if
43694         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43695
43696 2008-09-16  Bruno Haible  <bruno@clisp.org>
43697         and Eric Blake  <ebb9@byu.net>
43698
43699         vasnprintf: support Irix 5.3
43700         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43701         that mishandle long double infinity.
43702         Reported by Tom G. Christensen.
43703
43704 2008-09-16  Bruno Haible  <bruno@clisp.org>
43705
43706         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43707         Solaris 9.
43708         * doc/glibc-functions/alphasort.texi: Likewise.
43709         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43710
43711 2008-09-16  Jim Meyering  <meyering@redhat.com>
43712
43713         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43714         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43715         a umask modification leak out of a subshell.  Otherwise, the
43716         opensolaris /bin/sh would be accepted and thus cause unwarranted
43717         failures in the coreutils test suite.
43718
43719 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43720
43721         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43722         to succeed.
43723
43724 2008-09-16  Jim Meyering  <meyering@redhat.com>
43725
43726         avoid spurious test failure when library is built without ACL support
43727         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43728         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43729         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43730         * tests/test-copy-acl.sh: Likewise.
43731
43732 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43733
43734         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43735         based on character occurrence counts.
43736
43737 2008-09-15  Eric Blake  <ebb9@byu.net>
43738
43739         tests: avoid some compiler warnings
43740         * tests/test-memchr.c (main): Pass NULL indirectly.
43741         * tests/test-closein.c (main): Avoid unused variable.
43742
43743 2008-09-15  Bruno Haible  <bruno@clisp.org>
43744
43745         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43746         are missing on OpenBSD 4.0 individually.
43747         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43748
43749 2008-09-15  Bruno Haible  <bruno@clisp.org>
43750
43751         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43752         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43753         * doc/posix-functions/perror.texi: Likewise.
43754         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43755         is missing.
43756         Reported by Eric Blake.
43757
43758         * lib/errno.in.h: Use replacement values >= 2000.
43759         Reported by Eric Blake.
43760
43761 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43762
43763         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43764         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43765         limit.
43766         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43767         compareseq was aborted.
43768
43769 2008-09-14  Bruno Haible  <bruno@clisp.org>
43770
43771         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43772         yvec_edit_count.
43773         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43774         (fstrcmp_bounded): Simplify result computation accordingly.
43775
43776 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43777
43778         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43779         (fstrcmp): Define in terms of fstrcmp_bounded.
43780         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43781         lower_bound argument.
43782         Return quickly if the result is certainly < lower_bound.
43783         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43784
43785 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43786
43787         * lib/diffseq.h (EARLY_ABORT): New macro.
43788         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43789         evaluates to true.
43790
43791 2008-09-14  Bruno Haible  <bruno@clisp.org>
43792
43793         * modules/perror-tests: New file.
43794         * tests/test-perror.sh: New file.
43795         * tests/test-perror.c: New file.
43796
43797         New module 'perror'.
43798         * lib/stdio.in.h (perror): New declaration.
43799         * lib/perror.c: New file.
43800         * m4/perror.m4: New file.
43801         * modules/perror: New file.
43802         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43803         * doc/posix-functions/perror.texi: Mention the perror module.
43804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43805         REPLACE_PERROR.
43806         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43807         REPLACE_PERROR.
43808
43809 2008-09-14  Bruno Haible  <bruno@clisp.org>
43810
43811         * modules/stdio (Makefile.am): Reorder to match the order in
43812         lib/stdio.in.h.
43813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43814
43815 2008-09-13  Bruno Haible  <bruno@clisp.org>
43816
43817         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43818
43819 2008-09-13  Bruno Haible  <bruno@clisp.org>
43820
43821         Extend strerror to cover the added errno values.
43822         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43823         (rpl_strerror): Provide error messages for the added errno values and
43824         for the WSA* values.
43825         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43826         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43827         strerror.
43828         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43829         * modules/strerror (Depends-on): Add errno.
43830         * doc/posix-functions/strerror.texi: Document the change.
43831         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43832         and EOVERFLOW.
43833
43834 2008-09-13  Bruno Haible  <bruno@clisp.org>
43835
43836         * modules/EOVERFLOW: Remove file.
43837         * m4/eoverflow.m4: Remove file.
43838         * modules/EOVERFLOW-tests: Remove file.
43839         * tests/test-EOVERFLOW.c: Remove file.
43840         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43841         * modules/ftell (Depends-on): Likewise.
43842         * modules/getdelim (Depends-on): Likewise.
43843         * modules/getugroups (Depends-on): Likewise.
43844         * modules/poll (Depends-on): Likewise.
43845         * modules/snprintf (Depends-on): Likewise.
43846         * modules/sprintf-posix (Depends-on): Likewise.
43847         * modules/vasnprintf (Depends-on): Likewise.
43848         * modules/vasprintf (Depends-on): Likewise.
43849         * modules/vfprintf-posix (Depends-on): Likewise.
43850         * modules/vsnprintf (Depends-on): Likewise.
43851         * modules/vsprintf-posix (Depends-on): Likewise.
43852         * modules/xvasprintf (Depends-on): Likewise.
43853         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43854         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43855         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43856         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43857         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43858         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43859         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43860         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43861         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43862         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43863         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43864         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43865         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43866         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43867         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43868         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43869         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43870         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43871         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43872         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43873         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43874         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43875         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43876         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43877         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43878         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43879         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43880         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43881         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43882         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43883         * MODULES.html.sh: Remove EOVERFLOW.
43884         * NEWS: Mention the change.
43885
43886 2008-09-13  Bruno Haible  <bruno@clisp.org>
43887
43888         * modules/errno-tests: New file.
43889         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43890
43891         * lib/errno.in.h: New file.
43892         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43893         * modules/errno: New file.
43894         * doc/posix-headers/errno.texi: Update documentation.
43895         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43896
43897 2008-09-13  Bruno Haible  <bruno@clisp.org>
43898
43899         * tests/test-poll.c: Use #if for native Windows, rather than testing
43900         __MSVCRT__.
43901
43902 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43903             Bruno Haible  <bruno@clisp.org>
43904
43905         * lib/glob.c: Don't include <pwd.h> on native Windows.
43906         (WINDOWS32): New macro.
43907         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43908
43909 2008-09-13  Bruno Haible  <bruno@clisp.org>
43910
43911         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43912         (ETIMEDOUT): Remove macro.
43913         (glthread_cond_timedwait_multithreaded): New declaration.
43914         (glthread_cond_timedwait): Use it.
43915         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43916         (glthread_cond_timedwait_multithreaded): New function.
43917
43918 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43919
43920         * modules/poll-tests: Do not check for io.h.
43921         * tests/test-poll.c: Check for __MSVCRT__ instead.
43922
43923 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43924
43925         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43926         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43927         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43928
43929 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43930
43931         * modules/poll-tests: New.
43932         * tests/test-poll.c: New.
43933
43934 2008-09-12  Eric Blake  <ebb9@byu.net>
43935
43936         frexp: test for NetBSD failure on -0.0
43937         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43938         not all, bugs from NetBSD 3.0 have been fixed.
43939         * doc/posix-functions/frexp.texi (frexp): Document bug.
43940         Reported by Thomas Klausner.
43941
43942         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43943         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43944         literal -0.0.
43945         Reported by Jonathan C. Patschke <jp@centtech.com>.
43946
43947 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43948
43949         * lib/glthread/cond.h: Use dummy implementation also if
43950         USE_WIN32_THREADS.
43951
43952 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43953
43954         * modules/fnmatch-posix (License): Change to LGPLv2+.
43955         * modules/fnmatch-gnu (License): Likewise.
43956
43957 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43958
43959         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43960
43961 2008-09-11  Jim Meyering  <meyering@redhat.com>
43962
43963         * users.txt: Add gtk-vnc.
43964
43965 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43966
43967         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43968         rotate amounts.
43969
43970         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43971         required for 16-bit and 8-bit rotates.
43972         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43973         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43974         UINT8_MAX instead of hard-coded constants.
43975         Suggested by Paul Eggert.
43976
43977 2008-09-07  Bruno Haible  <bruno@clisp.org>
43978
43979         * tests/test-striconveh.c (main): Check behaviour when converting from
43980         UTF-7.
43981
43982         Make striconveh work better with stateful encodings.
43983         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43984         that iconv does not increment the inptr when returning -1/EINVAL.
43985
43986 2008-09-07  Bruno Haible  <bruno@clisp.org>
43987
43988         * build-aux/config.rpath: Update according to libtool-2.2.6.
43989         * build-aux/config.libpath: Likewise.
43990
43991 2008-09-06  Bruno Haible  <bruno@clisp.org>
43992
43993         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43994         * lib/freadptr.c (freadptr): Likewise.
43995         * lib/freadseek.c (freadptrinc): Likewise.
43996         Reported by Simon Josefsson.
43997
43998 2008-09-06  Bruno Haible  <bruno@clisp.org>
43999
44000         * modules/freadptr (License): Change to LGPLv2+.
44001         * modules/freadseek (License): Likewise.
44002         Suggested by Eric Blake.
44003
44004         * modules/memchr2 (License): Change to LGPLv2+.
44005         Approved by Eric Blake.
44006
44007 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44008             Bruno Haible  <bruno@clisp.org>
44009
44010         Make gnulib-tool work with native 'sed' on AIX.
44011         * gnulib-tool (sed_noop): New variable.
44012         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
44013         func_add_or_update, func_create_testdir): Use it to initialize sed
44014         script variables.
44015         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44016
44017 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
44018             Bruno Haible  <bruno@clisp.org>
44019
44020         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
44021         also works after #include directives.
44022
44023 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
44024
44025         getdate.y: reject an out-of-range timezone value
44026         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
44027         the range [-24...+24].  When specified with only one or two digits,
44028         * tests/test-getdate.c: Tests for the fix.
44029         * doc/getdate.texi: Document this change.
44030
44031 2008-09-03  Bruno Haible  <bruno@clisp.org>
44032
44033         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
44034
44035 2008-09-02  Simon Josefsson  <simon@josefsson.org>
44036
44037         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
44038         <bruce.korb@gmail.com> with ideas from Ben Pfaff
44039         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
44040         Blake <ebb9@byu.net>.
44041
44042         * tests/test-bitrotate.c: Add more test vectors.
44043
44044 2008-09-02  Eric Blake  <ebb9@byu.net>
44045
44046         vasnprintf-posix: handle large precision via %.*d
44047         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
44048         when handling it ourselves.
44049         * tests/test-vasnprintf-posix.c (test_function): Add test.
44050         * tests/test-snprintf-posix.h (test_function): Likewise.
44051         * tests/test-sprintf-posix.h (test_function): Likewise.
44052         * tests/test-vasprintf-posix.c (test_function): Likewise.
44053         Reported by Alain Guibert.
44054
44055 2008-09-01  Eric Blake  <ebb9@byu.net>
44056
44057         c-stack: make configure-time check more robust
44058         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
44059         successful sigaction call.
44060         Reported by Tom G. Christensen.
44061
44062 2008-09-01  Bruno Haible  <bruno@clisp.org>
44063
44064         New module 'findprog-lgpl'.
44065         * modules/findprog-lgpl: New file.
44066         * lib/findprog-lgpl.c: New file.
44067         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
44068         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
44069         to decide whether to use strdup or xstrdup, concatenated_filename or
44070         xconcatenated_filename.
44071
44072 2008-09-01  Bruno Haible  <bruno@clisp.org>
44073
44074         Split module 'concat-filename' into 'concat-filename' (LGPL) and
44075         'xconcat-filename' (GPL).
44076         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
44077         (License): Change to LGPLv2+.
44078         * modules/xconcat-filename: New file.
44079         * lib/concat-filename.h (concatenated_filename): Change specification.
44080         (xconcatenated_filename): New declaration.
44081         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
44082         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
44083         memory situations.
44084         * lib/xconcat-filename.c: New file.
44085         * NEWS: Mention the change.
44086         * lib/findprog.c: Include concat-filename.h, not filename.h.
44087         (find_in_path): Use xconcatenated_filename instead of
44088         concatenated_filename.
44089         * lib/javacomp.c: Include concat-filename.h, not filename.h.
44090         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44091         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44092         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44093         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
44094         instead of concatenated_filename.
44095         * lib/javaexec.c: Include concat-filename.h, not filename.h.
44096         (execute_java_class): Use xconcatenated_filename instead of
44097         concatenated_filename.
44098         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
44099         * modules/javacomp (Depends-on): Likewise.
44100         * modules/javaexec (Depends-on): Likewise.
44101
44102 2008-09-01  Bruno Haible  <bruno@clisp.org>
44103
44104         Split module 'filename' into 'filename' and 'concat-filename'.
44105         * modules/filename: Keep only lib/filename.h.
44106         (License): Change to LGPLv2+.
44107         * modules/concat-filename: New file, extracted from modules/filename.
44108         * lib/filename.h (concatenated_filename): Remove declaration.
44109         * lib/concat-filename.h: New file, extracted from lib/filename.h.
44110         * lib/concat-filename.c: Include concat-filename.h.
44111         * NEWS: Mention the change.
44112
44113 2008-09-01  Simon Josefsson  <simon@josefsson.org>
44114
44115         * lib/bitrotate.h (rotl8, rotr8): Add.
44116
44117         * modules/bitrotate (configure.ac): Need
44118         AC_REQUIRE([AC_C_INLINE]).
44119         (Description): Mention stdint.h.  Reported by Bruno Haible
44120         <bruno@clisp.org>.
44121
44122         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
44123         Paolo Bonzini <bonzini@gnu.org>.
44124
44125 2008-08-31  Bruno Haible  <bruno@clisp.org>
44126
44127         Assume Solaris specific bi-arch conventions on Solaris systems.
44128         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
44129         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
44130         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
44131         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
44132         like acl_libdirstem.
44133         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
44134         acl_libdirstem.
44135         * NEWS: Mention the change.
44136         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
44137
44138 2008-08-31  Jim Meyering  <meyering@redhat.com>
44139
44140         * lib/strftime.h: Add comments describing the two added arguments.
44141
44142         remove duplicate #include directives
44143         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
44144         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
44145
44146 2008-08-31  Bruno Haible  <bruno@clisp.org>
44147
44148         New module 'sigpipe-die'.
44149         * modules/sigpipe-die: New file.
44150         * lib/sigpipe-die.h: New file.
44151         * lib/sigpipe-die.c: New file.
44152         * MODULES.html.sh (Signal handling): Add sigpipe-die.
44153
44154 2008-08-31  Bruno Haible  <bruno@clisp.org>
44155
44156         Don't override previously installed signal handlers.
44157         * lib/fatal-signal.c (saved_sigactions): New variable.
44158         (uninstall_handlers): Reset the signal to the saved handler, not
44159         to SIG_DFL (except when ignored).
44160         (install_handlers): Save the previous handlers.
44161
44162 2008-08-30  Bruno Haible  <bruno@clisp.org>
44163
44164         * gnulib-tool (func_reset_sigpipe): New function.
44165         (func_get_automake_snippet, func_modules_transitive_closure,
44166         func_import): Invoke it before a join command that reads from stdin,
44167         to avoid "echo: write error: Broken pipe" error messages on stderr.
44168         Reported by Sam Steingold <sds@gnu.org>.
44169
44170 2008-08-30  Bruno Haible  <bruno@clisp.org>
44171
44172         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
44173         Code copied from m4/open.m4.
44174         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
44175         access and the filename ends in a slash. Code copied from lib/open.c.
44176         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
44177         * tests/test-fopen.c (main): Check against bug with trailing slash.
44178
44179 2008-08-29  Bruno Haible  <bruno@clisp.org>
44180
44181         Avoid some "gcc -pedantic" warnings.
44182         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
44183         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
44184         * lib/dirent.in.h: Likewise.
44185         * lib/fcntl.in.h: Likewise.
44186         * lib/float.in.h: Likewise.
44187         * lib/iconv.in.h: Likewise.
44188         * lib/inttypes.in.h: Likewise.
44189         * lib/locale.in.h: Likewise.
44190         * lib/math.in.h: Likewise.
44191         * lib/netinet_in.in.h: Likewise.
44192         * lib/search.in.h: Likewise.
44193         * lib/signal.in.h: Likewise.
44194         * lib/stdarg.in.h: Likewise.
44195         * lib/stdint.in.h: Likewise.
44196         * lib/stdio.in.h: Likewise.
44197         * lib/stdlib.in.h: Likewise.
44198         * lib/string.in.h: Likewise.
44199         * lib/strings.in.h: Likewise.
44200         * lib/sys_select.in.h: Likewise.
44201         * lib/sys_socket.in.h: Likewise.
44202         * lib/sys_stat.in.h: Likewise.
44203         * lib/sys_time.in.h: Likewise.
44204         * lib/sysexits.in.h: Likewise.
44205         * lib/time.in.h: Likewise.
44206         * lib/unistd.in.h: Likewise.
44207         * lib/wchar.in.h: Likewise.
44208         * lib/wctype.in.h: Likewise.
44209         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
44210         * modules/fchdir (Makefile.am): Likewise.
44211         * modules/fcntl (Makefile.am): Likewise.
44212         * modules/float (Makefile.am): Likewise.
44213         * modules/iconv_open (Makefile.am): Likewise.
44214         * modules/inttypes (Makefile.am): Likewise.
44215         * modules/locale (Makefile.am): Likewise.
44216         * modules/math (Makefile.am): Likewise.
44217         * modules/netinet_in (Makefile.am): Likewise.
44218         * modules/search (Makefile.am): Likewise.
44219         * modules/signal (Makefile.am): Likewise.
44220         * modules/stdarg (Makefile.am): Likewise.
44221         * modules/stdint (Makefile.am): Likewise.
44222         * modules/stdio (Makefile.am): Likewise.
44223         * modules/stdlib (Makefile.am): Likewise.
44224         * modules/string (Makefile.am): Likewise.
44225         * modules/strings (Makefile.am): Likewise.
44226         * modules/sys_select (Makefile.am): Likewise.
44227         * modules/sys_socket (Makefile.am): Likewise.
44228         * modules/sys_stat (Makefile.am): Likewise.
44229         * modules/sys_time (Makefile.am): Likewise.
44230         * modules/sysexits (Makefile.am): Likewise.
44231         * modules/time (Makefile.am): Likewise.
44232         * modules/unistd (Makefile.am): Likewise.
44233         * modules/wchar (Makefile.am): Likewise.
44234         * modules/wctype (Makefile.am): Likewise.
44235         Reported by Reuben Thomas <rrt@sc3d.org>.
44236
44237 2008-08-29  Bruno Haible  <bruno@clisp.org>
44238
44239         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
44240         any more.
44241
44242 2008-08-29  Simon Josefsson  <simon@josefsson.org>
44243
44244         * MODULES.html.sh (Misc): Add bitrotate.
44245
44246         * modules/bitrotate: New file.
44247
44248         * lib/bitrotate.h: New file.
44249
44250         * modules/bitrotate-tests: New file.
44251
44252         * tests/test-bitrotate.c: New file.
44253
44254         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44255         on the bitrotate module.
44256
44257         * lib/arctwo.c: Use new bitrotate module.
44258
44259 2008-08-29  Jim Meyering  <meyering@redhat.com>
44260
44261         bootstrap: merge changes from coreutils
44262         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44263         of copied files.  Remove a kludge, now that this is fixed.
44264         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44265         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44266         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44267
44268 2008-08-29  Bruno Haible  <bruno@clisp.org>
44269
44270         * MODULES.html.sh: Remove --cvs-urls option.
44271
44272 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44273
44274         maint.mk: adjust to file name change
44275         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44276
44277 2008-08-28  Jim Meyering  <meyering@redhat.com>
44278
44279         * modules/getndelim2 (License): Relicense to LGPLv2+.
44280         Approved by Richard Stallman for the version of 1995, and by
44281         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44282
44283 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44284
44285         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44286         dummy if one is not available.  Do not touch them if
44287         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44288         (getc_maybe_unlocked): New.
44289         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44290
44291 2008-08-26  Eric Blake  <ebb9@byu.net>
44292
44293         doc/INSTALL: resync from autoconf
44294         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44295         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44296         moving...
44297         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44298         * INSTALL: Regenerate.
44299         * INSTALL.ISO: New file.
44300         * INSTALL.UTF-8: Likewise.
44301
44302 2008-08-26  Jim Meyering  <meyering@redhat.com>
44303
44304         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44305         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44306         these definitions conditional, so that they may be overridden, too.
44307
44308 2008-08-26  Bruno Haible  <bruno@clisp.org>
44309
44310         Generate INSTALL file variants with prettier quotes.
44311         * doc/Makefile (INSTALL_PRELUDE): New macro.
44312         (INSTALL): Use it.
44313         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44314
44315 2008-08-26  Bruno Haible  <bruno@clisp.org>
44316
44317         Run makeinfo in an English locale.
44318         * doc/Makefile (MAKEINFO): New variable.
44319
44320 2008-08-26  Bruno Haible  <bruno@clisp.org>
44321
44322         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44323         Suggested by Eric Blake.
44324
44325 2008-08-25  Bruno Haible  <bruno@clisp.org>
44326
44327         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44328
44329 2008-08-25  Eric Blake  <ebb9@byu.net>
44330
44331         c-stack: test that stack overflow can be caught
44332         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44333         that platform allows handling stack overflow; at least OS/2 EMX
44334         has sigaltstack, but crashes before transferring control to
44335         handler on stack overflow.
44336         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44337         check for HAVE_STACK_OVERFLOW_HANDLING.
44338         Reported by Elbert Pol.
44339
44340 2008-08-25  Bruno Haible  <bruno@clisp.org>
44341
44342         * doc/posix-functions/strftime.texi: Fix description of strftime
44343         module.
44344
44345 2008-08-24  Bruno Haible  <bruno@clisp.org>
44346
44347         * tests/uniwidth/test-uc_width2.c: New file.
44348         * tests/uniwidth/test-uc_width2.sh: New file.
44349         * modules/uniwidth/width-tests (Files): Add the new files.
44350         (TESTS): Add uniwidth/test-uc_width2.sh.
44351         (TESTS_ENVIRONMENT): New variable.
44352         (check_PROGRAMS): Add test-uc_width2.
44353         (test_uc_width2_SOURCES): New variable.
44354
44355         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44356         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44357         not 0x00AB.
44358         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44359
44360 2008-08-22  Eric Blake  <ebb9@byu.net>
44361
44362         test-lock, test-tls: mention why a test is skipped
44363         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44364         skipped.
44365         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44366
44367         count-one-bits: relax license
44368         * modules/count-one-bits (License): Relicense to LGPLv2+.
44369         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44370
44371 2008-08-22  Andreas Schwab  <schwab@suse.de>
44372
44373         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44374         Remove spurious space in assignment.
44375
44376 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44377
44378         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44379         Paul Eggert <eggert@CS.UCLA.EDU>.
44380
44381 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44382
44383         * modules/gettext: Add m4/threadlib.m4.
44384
44385 2008-08-19  Eric Blake  <ebb9@byu.net>
44386
44387         test-c-stack: fix compilation failure on FreeBSD 5.0
44388         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44389         headers before <sys/resource.h>.
44390         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44391         the bug.
44392         Reported by Nelson H. F. Beebe.
44393
44394         strverscmp: migrate from "strverscmp.h" to <string.h>
44395         * modules/string (Makefile.am): Add new hooks.
44396         * modules/strverscmp (Files): Remove strverscmp.h.
44397         (Depends-on): Add string.
44398         (configure.ac): Add indicator.
44399         (Include): Mention new header.
44400         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
44401         defaults.
44402         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
44403         results.
44404         * lib/strverscmp.h: Delete.
44405         * lib/string.in.h (strverscmp): Provide declaration, when needed.
44406         * tests/test-strverscmp.c (includes): Adjust client.
44407         * lib/check-version.c (includes): Likewise.
44408         * NEWS: Document the change.
44409
44410         strverscmp: add unit test
44411         * modules/strverscmp-tests: New file.
44412         * tests/test-strverscmp.c: Likewise.
44413
44414 2008-08-19  Simon Josefsson  <simon@josefsson.org>
44415
44416         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
44417         regarding Windows crypto stuff, from Mono.
44418
44419 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
44420
44421         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
44422         if present, for intel RND.  Return error on failures.
44423
44424 2008-08-18  Ben Pfaff  <blp@gnu.org>
44425
44426         gitlog-to-changelog: give better diagnostic for failed pipe-open
44427         * build-aux/gitlog-to-changelog: Improve error message: suggest
44428         that the version of Git may be too old.
44429
44430 2008-08-18  Simon Josefsson  <simon@josefsson.org>
44431
44432         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
44433         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
44434
44435 2008-08-18  Bruno Haible  <bruno@clisp.org>
44436
44437         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
44438         pthread_in_use().
44439
44440 2008-08-18  Bruno Haible  <bruno@clisp.org>
44441
44442         * lib/glthread/threadlib.c: Include <pthread.h>.
44443
44444 2008-08-18  Bruno Haible  <bruno@clisp.org>
44445
44446         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
44447         glthread_recursive_lock_* macros.
44448         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
44449         Fix syntax error.
44450
44451 2008-08-18  Bruno Haible  <bruno@clisp.org>
44452
44453         * lib/glthread/thread.c: Avoid forcing a context switch right after
44454         thread creation.
44455
44456 2008-08-17  Bruno Haible  <bruno@clisp.org>
44457
44458         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
44459         * lib/glthread/thread.h: Provide Win32 specific implementation.
44460         * modules/thread (Files): Add lib/glthread/thread.c.
44461         (Depends-on): Add lock.
44462         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
44463
44464 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44465
44466         New module 'yield'.
44467         * modules/yield: New file.
44468         * lib/glthread/yield.h: New file.
44469         * m4/yield.m4: New file.
44470         * MODULES.html.sh (Multithreading): Add yield.
44471
44472 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44473
44474         New module 'thread'.
44475         * modules/thread: New file.
44476         * lib/glthread/thread.h: New file.
44477         * m4/thread.m4: New file.
44478         * MODULES.html.sh (Multithreading): Add thread.
44479
44480 2008-08-17  Bruno Haible  <bruno@clisp.org>
44481
44482         * lib/glthread/lock.h: Include <stdlib.h> always.
44483         * lib/glthread/tls.h: Likewise.
44484         * lib/glthread/cond.h: Likewise.
44485
44486 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44487
44488         New module 'cond'.
44489         * modules/cond: New file.
44490         * lib/glthread/cond.h: New file.
44491         * lib/glthread/cond.c: New file.
44492         * m4/cond.m4: New file.
44493         * MODULES.html.sh (Multithreading): Add cond.
44494
44495 2008-08-16  Eric Blake  <ebb9@byu.net>
44496
44497         c-stack: fix regression on Irix 5.3 from 2008-06-21
44498         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44499         sa_sigaction...
44500         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44501         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44502         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44503         * modules/signal (Makefile.am): Use the value.
44504         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44505         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44506         * doc/posix-headers/signal.texi (signal.h): Document this
44507         portability issue.
44508         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44509         Reported by Tom G. Christensen.
44510
44511 2008-08-17  Bruno Haible  <bruno@clisp.org>
44512
44513         New module 'threadlib'.
44514         * modules/threadlib: New file.
44515         * lib/glthread/threadlib.c: New file, extracted from
44516         lib/glthread/lock.c.
44517         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44518         functions.
44519         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44520         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44521         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44522         macros.
44523         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44524         (gl_DISABLE_THREADS): Remove macro.
44525         * modules/lock (Files): Remove build-aux/config.rpath.
44526         (Depends-on): Remove havelib. Add threadlib.
44527         (configure.ac-early): Remove section.
44528         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44529         * modules/tls (Depends-on): Remove lock. Add threadlib.
44530         (Link): New section, copied from threadlib.
44531         * MODULES.html.sh (Multithreading): Add threadlib.
44532
44533 2008-08-14  Bruno Haible  <bruno@clisp.org>
44534
44535         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44536         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44537         glthread_rwlock_unlock, glthread_rwlock_destroy,
44538         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44539         glthread_recursive_lock_destroy): Define as macros always.
44540         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44541         glthread_lock_lock.
44542         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44543         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44544         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44545         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44546         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44547         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44548         (glthread_recursive_lock_lock_func): Renamed from
44549         glthread_recursive_lock_lock.
44550         (glthread_recursive_lock_unlock_func): Renamed from
44551         glthread_recursive_lock_unlock.
44552         (glthread_recursive_lock_destroy_func): Renamed from
44553         glthread_recursive_lock_destroy.
44554
44555 2008-08-14  Bruno Haible  <bruno@clisp.org>
44556
44557         * lib/glthread/lock.h: Renamed from lib/lock.h.
44558         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44559         * lib/glthread/tls.h: Renamed from lib/tls.h.
44560         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44561         * lib/fstrcmp.c: Update includes.
44562         * lib/strsignal.c: Update includes.
44563         * modules/lock (Files, Makefile.am): Update.
44564         (Include): Change to "glthread/lock.h".
44565         * modules/tls (Files, Makefile.am): Update.
44566         (Include): Change to "glthread/tls.h".
44567         * tests/test-lock.c: Update includes.
44568         * tests/test-tls.c: Update includes.
44569         * NEWS: Mention the renamed header files.
44570
44571 2008-08-11  Jim Meyering  <meyering@redhat.com>
44572
44573         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44574
44575 2008-08-11  Eric Blake  <ebb9@byu.net>
44576
44577         test-c-stack: avoid C99-ism
44578         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44579         before statement.
44580         Reported by Alain Guibert.
44581
44582 2008-08-10  Jim Meyering  <meyering@redhat.com>
44583
44584         ensure that return value of uinttostr et al are not ignored
44585         * lib/inttostr.h (__GNUC_PREREQ): Define.
44586         (__attribute_warn_unused_result__): Define.
44587         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44588
44589 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44590
44591         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44592         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44593
44594 2008-08-07  Jim Meyering  <meyering@redhat.com>
44595
44596         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44597
44598         * modules/mkstemp (License): Relicense under LGPLv2+.
44599         * modules/tempname (License): Likewise.
44600
44601 2008-08-06  Bruno Haible  <bruno@clisp.org>
44602
44603         * lib/poll.c (poll): Further micro-optimization.
44604
44605 2008-08-06  Jim Meyering  <meyering@redhat.com>
44606
44607         inet_pton.c: use locale-independent tolower
44608         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44609         (inet_pton6): Use c_tolower rather than tolower.
44610         * modules/inet_pton (Depends-on): Add c-ctype.
44611
44612 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44613
44614         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44615         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44616
44617 2008-08-06  Jim Meyering  <meyering@redhat.com>
44618
44619         * modules/inet_pton (License): Relicense under LGPLv2+.
44620
44621 2008-08-03  Bruno Haible  <bruno@clisp.org>
44622
44623         Additional non-aborting API for lock and tls.
44624         * lib/lock.h: Include <errno.h>.
44625         (glthread_lock_init): New macro/function.
44626         (gl_lock_init): Define as wrapper around glthread_lock_init.
44627         (glthread_lock_lock): New macro/function.
44628         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44629         (glthread_lock_unlock): New macro/function.
44630         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44631         (glthread_lock_destroy): New macro/function.
44632         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44633         (glthread_rwlock_init): New macro/function.
44634         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44635         (glthread_rwlock_rdlock): New macro/function.
44636         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44637         (glthread_rwlock_wrlock): New macro/function.
44638         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44639         (glthread_rwlock_unlock): New macro/function.
44640         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44641         (glthread_rwlock_destroy): New macro/function.
44642         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44643         (glthread_recursive_lock_init): New macro/function.
44644         (gl_recursive_lock_init): Define as wrapper around
44645         glthread_recursive_lock_init.
44646         (glthread_recursive_lock_lock): New macro/function.
44647         (gl_recursive_lock_lock): Define as wrapper around
44648         glthread_recursive_lock_lock.
44649         (glthread_recursive_lock_unlock): New macro/function.
44650         (gl_recursive_lock_unlock): Define as wrapper around
44651         glthread_recursive_lock_unlock.
44652         (glthread_recursive_lock_destroy): New macro/function.
44653         (gl_recursive_lock_destroy): Define as wrapper around
44654         glthread_recursive_lock_destroy.
44655         (glthread_once): New macro/function.
44656         (gl_once): Define as wrapper around glthread_once.
44657         Update function declarations.
44658         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44659         glthread_rwlock_init. Return error code.
44660         (glthread_rwlock_rdlock_multithreaded): Renamed from
44661         glthread_rwlock_rdlock. Return error code.
44662         (glthread_rwlock_wrlock_multithreaded): Renamed from
44663         glthread_rwlock_wrlock. Return error code.
44664         (glthread_rwlock_unlock_multithreaded): Renamed from
44665         glthread_rwlock_unlock. Return error code.
44666         (glthread_rwlock_destroy_multithreaded): Renamed from
44667         glthread_rwlock_destroy. Return error code.
44668         (glthread_recursive_lock_init_multithreaded): Renamed from
44669         glthread_recursive_lock_init. Return error code.
44670         (glthread_recursive_lock_lock_multithreaded): Renamed from
44671         glthread_recursive_lock_lock. Return error code.
44672         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44673         glthread_recursive_lock_unlock. Return error code.
44674         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44675         glthread_recursive_lock_destroy. Return error code.
44676         (glthread_once_call): Make static.
44677         (glthread_once_multithreaded): Renamed from glthread_once.
44678         * lib/tls.h: Include <errno.h>.
44679         (glthread_tls_key_init): New macro/function.
44680         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44681         (glthread_tls_set): New macro/function.
44682         (gl_tls_set): Define as wrapper around glthread_tls_set.
44683         (glthread_tls_key_destroy): New macro/function.
44684         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44685         Update function declarations.
44686         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44687         glthread_tls_get.
44688         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44689
44690 2008-08-04  Eric Blake  <ebb9@byu.net>
44691
44692         gnumakefile: use space, not TAB, outside of targets
44693         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44694
44695 2008-08-02  Jim Meyering  <meyering@redhat.com>
44696
44697         getdate.y: avoid locale-dependent date parsing failure
44698         In Turkish locales, getdate would fail to recognize keywords
44699         containing a lowercase "i".  The solution is not to rely on
44700         locale-sensitive case-conversion.
44701         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44702         (lookup_word): Use c_toupper in place of toupper.
44703         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44704         Reported by Vefa Bicakci <bicave@superonline.com> in
44705         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44706         * modules/getdate (Depends-on): Add c-ctype.
44707
44708 2008-08-02  Bruno Haible  <bruno@clisp.org>
44709
44710         * gnulib-tool (func_import): When updating or creating a .gitignore
44711         file, prepend each added line with a slash, and ignore leading slashes
44712         from the existing lines.
44713         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44714
44715 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44716
44717         Portability fix for GNU make 3.79.1.
44718         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44719         versions do not understand.
44720
44721 2008-08-01  Bruno Haible  <bruno@clisp.org>
44722
44723         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44724         * tests/test-isnanf.h (zero): New variable.
44725         (main): Avoid literal -0.0f.
44726         * tests/test-isnand.h (zero): New variable.
44727         (main): Avoid literal -0.0.
44728         * tests/test-isnanl.h (zero): New variable.
44729         (main): Avoid literal -0.0L.
44730         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44731         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44732         -0.0, -0.0L.
44733         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44734         (test_signbitd): Avoid literal -0.0.
44735         (test_signbitl): Avoid literal -0.0L.
44736         * tests/test-ceilf1.c (zero): New variable.
44737         (main): Avoid literal -0.0f.
44738         * tests/test-ceill.c (zero): New variable.
44739         (main): Avoid literal -0.0L.
44740         * tests/test-floorf1.c (zero): New variable.
44741         (main): Avoid literal -0.0f.
44742         * tests/test-floorl.c (zero): New variable.
44743         (main): Avoid literal -0.0L.
44744         * tests/test-roundf1.c (zero): New variable.
44745         (main): Avoid literal -0.0f.
44746         * tests/test-round1.c (zero): New variable.
44747         (main): Avoid literal -0.0.
44748         * tests/test-roundl.c (zero): New variable.
44749         (main): Avoid literal -0.0L.
44750         * tests/test-truncf1.c (zero): New variable.
44751         (main): Avoid literal -0.0f.
44752         * tests/test-trunc1.c (zero): New variable.
44753         (main): Avoid literal -0.0.
44754         * tests/test-truncl.c (zero): New variable.
44755         (main): Avoid literal -0.0L.
44756         * tests/test-frexp.c (zero): New variable.
44757         (main): Avoid literal -0.0.
44758         * tests/test-frexpl.c (zero): New variable.
44759         (main): Avoid literal -0.0L.
44760         * tests/test-ldexpl.c (zero): New variable.
44761         (main): Avoid literal -0.0L.
44762         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44763         (zerod, zerol): New variables.
44764         (test_function): Avoid literals -0.0, -0.0L.
44765         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44766         (zerod, zerol): New variables.
44767         (test_function): Avoid literals -0.0, -0.0L.
44768         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44769         (zerod, zerol): New variables.
44770         (test_function): Avoid literals -0.0, -0.0L.
44771         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44772         (zerod, zerol): New variables.
44773         (test_function): Avoid literals -0.0, -0.0L.
44774         * tests/test-strtod.c (zero): New variable.
44775         (main): Avoid literal -0.0.
44776         Reported by Jonathan C. Patschke <jp@centtech.com>.
44777
44778 2008-07-31  Jim Meyering  <meyering@redhat.com>
44779
44780         sha256.h: correct definition of SHA224_DIGEST_SIZE
44781         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44782         Reported by Paulie Pena IV <paulie4@gmail.com>.
44783         Define as 224 / 8, rather than as a literal.
44784         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44785         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44786         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44787
44788 2008-07-31  Bruno Haible  <bruno@clisp.org>
44789
44790         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44791         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44792         Reported by Jonathan Patschke <jp@centtech.com>.
44793
44794 2008-07-31  Bruno Haible  <bruno@clisp.org>
44795
44796         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44797         Reported by Paolo Bonzini <bonzini@gnu.org>.
44798
44799 2008-07-30  Eric Blake  <ebb9@byu.net>
44800
44801         test-strtod: allow compilation without -lm
44802         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44803         Reported by Dennis Clarke <blastwave@gmail.com>.
44804
44805 2008-07-28  Jim Meyering  <meyering@redhat.com>
44806
44807         bootstrap: work also when there are no .po files in po/
44808         * build-aux/bootstrap (update_po_files): Complete the change
44809         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44810
44811 2008-07-27  Jim Meyering  <meyering@redhat.com>
44812
44813         * users.txt: Add zile.
44814
44815 2008-07-26  Ben Pfaff  <blp@gnu.org>
44816
44817         Add missing dependencies on new m4/exponent[fdl].m4 files.
44818         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44819         * modules/isnand-nolibm: Add m4/exponentd.m4.
44820         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44821         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44822         m4/isnan[fdl].m4, because the macros actually used moved.
44823         Reported by Jim Meyering.
44824
44825 2008-07-14  Ben Pfaff  <blp@gnu.org>
44826
44827         Add isinf module.
44828         * lib/isinf.c: New file.
44829         * lib/math.in.h: Define isinf macro if we have decided to replace
44830         it.
44831         * m4/isinf.m4: New file.
44832         * m4/math_h.m4: Initialize and substitute variables for isinf
44833         module.
44834         * modules/isinf: New file.
44835         * modules/isinf-tests: New file.
44836         * modules/math: Add substitutions for new module.
44837         * tests/test-isinf.c: New file.
44838         * doc/posix-functions/isinf.texi: Mention new module.
44839         * MODULES.html.sh: Mention new module.
44840
44841 2008-07-14  Ben Pfaff  <blp@gnu.org>
44842
44843         Factor out some macros for use by additional modules.
44844         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44845         exponentf.m4.
44846         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44847         exponentd.m4.
44848         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44849         file exponentl.m4.
44850         * m4/exponentf.m4: New file.
44851         * m4/exponentd.m4: New file.
44852         * m4/exponentl.m4: New file.
44853         * modules/isnanf: Use new file m4/exponentf.m4.
44854         * modules/isnand: Use new file m4/exponentd.m4.
44855         * modules/isnanl: Use new file m4/exponentl.m4.
44856
44857 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44858
44859         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44860         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44861         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44862         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44863
44864         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44865         readlink on platforms without PATH_MAX.
44866
44867 2008-07-21  Eric Blake  <ebb9@byu.net>
44868
44869         Warn, not fail, on stale version.
44870         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44871
44872         Don't allow installation with stale devel version number.
44873         * top/GNUmakefile (_is-install-target): New macro.
44874         (_curr-ver): Forbid installation with stale version number.
44875
44876 2008-07-20  Bruno Haible  <bruno@clisp.org>
44877
44878         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44879         TESTS_ENVIRONMENT.
44880         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44881
44882 2008-07-20  Bruno Haible  <bruno@clisp.org>
44883
44884         * lib/c-stack.h (c_stack_action): Add documentation.
44885         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44886
44887 2008-07-20  Bruno Haible  <bruno@clisp.org>
44888
44889         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44890         * modules/readlink (License): Likewise.
44891
44892 2008-07-17  Eric Blake  <ebb9@byu.net>
44893
44894         * modules/c-stack (Link): Fix typo.
44895
44896         Make c-stack use libsigsegv, when available.
44897         * modules/c-stack (Depends-on): Add libsigsegv.
44898         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44899         needed.
44900         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44901         (segv_handler, overflow_handler, c_stack_action)
44902         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44903         implementation when libsigsegv is available, but only when using
44904         the library is necessary.
44905         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44906         comment, explaining why XSI check fails on Linux.
44907         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44908         * tests/test-c-stack2.sh: Tweak skip message.
44909         * NEWS: Document new link-time requirements.
44910
44911 2008-07-16  Eric Blake  <ebb9@byu.net>
44912
44913         c-stack: Expose false positives when not using libsigsegv.
44914         * modules/c-stack-tests (Files): Expand test.
44915         * tests/test-c-stack.c (main): Add means to conditionally trigger
44916         non-overflow SIGSEGV.
44917         * tests/test-c-stack2.sh: New file.
44918
44919 2008-07-14  Bruno Haible  <bruno@clisp.org>
44920
44921         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44922         Reported by Eric Blake.
44923
44924 2008-07-14  Sam Steingold  <sds@gnu.org>
44925             Bruno Haible  <bruno@clisp.org>
44926
44927         New module libsigsegv.
44928         * modules/libsigsegv: New file.
44929         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44930         modifications.
44931         * MODULES.html.sh (Signal handling): New section.
44932
44933 2008-07-14  Bruno Haible  <bruno@clisp.org>
44934
44935         * modules/unictype/ctype-* (Description): Add the word "function".
44936         Improves the resulting doc in MODULES.html.
44937
44938 2008-07-12  Ben Pfaff  <blp@gnu.org>
44939
44940         Add longlong module.
44941         * modules/longlong: New file.
44942
44943 2008-07-12  Bruno Haible  <bruno@clisp.org>
44944
44945         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44946         to empty.
44947
44948 2008-07-10  Ben Pfaff  <blp@gnu.org>
44949
44950         Add isnan module.
44951         * doc/posix-functions/isnan.texi: Mention new module.
44952         * lib/math.in.h: Define isnan macro if we have decided to replace
44953         it.
44954         * m4/isnan.m4: New file.
44955         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44956         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44957         also.
44958         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44959         redundancy.
44960         * m4/math_h.m4: Initialize and substitute variables for isnan
44961         module.
44962         * modules/isnan: New file.
44963         * modules/isnan-tests: New file.
44964         * modules/math: Add substitutions for new module.
44965         * tests/test-isnan.c: New file.
44966         * MODULES.html.sh: Mention new module.
44967
44968 2008-07-10  Ben Pfaff  <blp@gnu.org>
44969
44970         Add isnanf module.
44971         * lib/isnanf.m4: New file.
44972         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44973         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44974         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44975         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44976         * modules/isnanf: New file.
44977         * modules/isnanf-tests: New file.
44978         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44979         files.
44980         * tests/test-isnanf-nolibm.c: factored most of its contents into
44981         new file tests/test-isnanf.h.
44982         * tests/test-isnanf.h: New file.
44983         * tests/test-isnanf.c: New file.
44984         * MODULES.html.sh: Mention new module.
44985         * doc/glibc-functions/isnanf.texi: Mention new module.
44986
44987 2008-07-10  Ben Pfaff  <blp@gnu.org>
44988
44989         Add isnand module.
44990         * lib/isnand.h: New file.
44991         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44992         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44993         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44994         functionality also.
44995         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44996         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44997         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44998         * modules/isnand: New file.
44999         * modules/isnand-tests: New file.
45000         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
45001         files.
45002         * tests/test-isnand-nolibm.c: factored most of its contents into
45003         new file tests/test-isnand.h.
45004         * tests/test-isnand.h: New file.
45005         * tests/test-isnand.c: New file.
45006         * MODULES.html.sh: Mention new module.
45007
45008 2008-07-10  Ben Pfaff  <blp@gnu.org>
45009
45010         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
45011         * lib/isnand.h: Rename lib/isnand-nolibm.h.
45012         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
45013         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
45014         * modules/isnanf-nolibm: Update references to renamed files.
45015         * modules/isnand-nolibm: Likewise.
45016         * modules/isnanf-nolibm-tests: Likewise.
45017         * modules/isnand-nolibm-tests: Likewise.
45018         * lib/frexp.c: Likewise.
45019         * lib/isfinite.c: Likewise.
45020         * lib/signbitd.c: Likewise.
45021         * lib/signbitf.c: Likewise.
45022         * lib/vasnprintf.c: Likewise.
45023         * tests/test-ceilf1.c: Likewise.
45024         * tests/test-ceilf2.c: Likewise.
45025         * tests/test-floorf1.c: Likewise.
45026         * tests/test-floorf2.c: Likewise.
45027         * tests/test-frexp.c: Likewise.
45028         * tests/test-round1.c: Likewise.
45029         * tests/test-round2.c: Likewise.
45030         * tests/test-roundf1.c: Likewise.
45031         * tests/test-strtod.c: Likewise.
45032         * tests/test-trunc1.c: Likewise.
45033         * tests/test-trunc2.c: Likewise.
45034         * tests/test-truncf1.c: Likewise.
45035         * tests/test-truncf2.c: Likewise.
45036         * NEWS: Mention the renamed header files.
45037
45038 2008-07-11  Jim Meyering  <meyering@redhat.com>
45039
45040         vc-list-files: make the last-resort awk code more portable
45041         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
45042         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
45043         does not support it.
45044
45045 2008-07-10  Eric Blake  <ebb9@byu.net>
45046
45047         Work with tar's bootstrap.
45048         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
45049         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
45050         an m4 comment.
45051
45052 2008-07-09  Jim Meyering  <meyering@redhat.com>
45053
45054         posix-shell.m4: fix typo that made this test malfunction
45055         * m4/posix-shell.m4: Remove capitalization in variable name.
45056
45057 2008-07-08  Bruno Haible  <bruno@clisp.org>
45058
45059         * m4/onceonly.m4: Update comments.
45060         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45061
45062 2008-07-04  Jim Meyering  <meyering@redhat.com>
45063
45064         * users.txt: Add vc-dwim.
45065         (bison, coreutils): Use the gitweb URL.
45066
45067 2008-07-03  Jim Meyering  <meyering@redhat.com>
45068
45069         * users.txt: Add libffcall.  From Sam Steingold.
45070
45071 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
45072
45073         getdate.y: do not ignore TZ with relative day, month or year offset
45074         * lib/getdate.y (get_date): Move the tz-handling block to follow the
45075         relative-date-handling, since otherwise, the latter would clobber the
45076         sole output (an updated Start value) of the tz-handling block.
45077         * tests/test-getdate.c: Tests for the fix
45078
45079 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45080
45081         Recognize 'foo_LIBRARIES += libgnu.a'.
45082         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
45083         makefile snippet has already specified an installation location,
45084         also using '+='.
45085
45086 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
45087
45088         getdate.y: factor out common actions
45089         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
45090         Use them in place of open-coded actions.
45091
45092 2008-07-01  Simon Josefsson  <simon@josefsson.org>
45093
45094         Add self-test for getdate module.
45095         * modules/getdate-tests: New file.
45096         * tests/test-getdate.c: New file.
45097
45098 2008-06-29  Bruno Haible  <bruno@clisp.org>
45099
45100         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
45101         .gitignore.
45102         Reported by Sylvain Beucler <beuc@beuc.net>.
45103
45104 2008-06-29  Bruno Haible  <bruno@clisp.org>
45105
45106         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
45107         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
45108
45109 2008-06-29  Bruno Haible  <bruno@clisp.org>
45110
45111         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
45112         EXTRA_DIST.
45113         Reported by Sylvain Beucler <beuc@beuc.net>.
45114
45115 2008-06-26  Jim Meyering  <meyering@redhat.com>
45116
45117         make several modules depend on the "open" module
45118         This provides slightly increased consistency when opening-for-write
45119         the name of a non-directory spelled with a trailing slash.
45120         * modules/chdir-safer: Likewise.
45121         * modules/chown: Likewise.
45122         * modules/clean-temp: Likewise.
45123         * modules/copy-file: Likewise.
45124         * modules/fchdir: Likewise.
45125         * modules/fcntl-safer: Likewise.
45126         * modules/pipe: Likewise.
45127         * modules/utime: Likewise.
45128         Prompted by Eric Blake and Bruno Haible.
45129
45130 2008-06-24  Andreas Schwab  <schwab@suse.de>
45131
45132         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
45133         literals can be used as initializers for global variables.
45134
45135 2008-06-23  Eric Blake  <ebb9@byu.net>
45136
45137         Make gnulib-cache.m4 easier to diff.
45138         * gnulib-tool (func_import): Allow newlines when reading cached
45139         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
45140
45141 2008-06-23  Bruno Haible  <bruno@clisp.org>
45142
45143         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
45144         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
45145         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
45146         m4/signalblocking.m4.
45147         (gl_PREREQ_SIGACTION): Don't invoke it.
45148         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
45149         gl_PREREQ_SIG_HANDLER_H.
45150         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45151         Don't check for sigaction here.
45152
45153 2008-06-23  Bruno Haible  <bruno@clisp.org>
45154
45155         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
45156         (install_handlers): Don't set the SA_RESETHAND flag.
45157
45158 2008-06-23  Bruno Haible  <bruno@clisp.org>
45159
45160         * m4/sigaction.m4: Comment fixes.
45161         * lib/signal.in.h: Likewise.
45162
45163 2008-06-23  Eric Blake  <ebb9@byu.net>
45164
45165         Fix typo.
45166         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
45167
45168         Avoid SA_ namespace.
45169         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
45170         Reported by Ralf Wildenhues.
45171
45172         Avoid test failure due to SA_RESTORER.
45173         * tests/test-sigaction.c (SA_MASK): New macro.
45174         (main): Avoid failing due to extension flags being set.
45175         Reported by Jim Meyering.
45176
45177         Revert use of sig-handler.h in sigprocmask.c.
45178         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
45179         it requires the existence of struct sigaction.
45180         * lib/sigprocmask.c (handler_t): Restore typedef.
45181         (rpl_signal, old_handlers): Use local type.
45182
45183 2008-06-22  Bruno Haible  <bruno@clisp.org>
45184
45185         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
45186         conditionally.
45187         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45188
45189 2008-06-22  Bruno Haible  <bruno@clisp.org>
45190
45191         * doc/posix-functions/siginterrupt.texi: Move note.
45192
45193         * lib/signal.in.h (SA_RESTART): New macro.
45194         * lib/sigaction.c: Update comment.
45195
45196         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
45197
45198         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
45199         (gl_PREREQ_SIGPROCMASK): Invoke it.
45200         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
45201
45202         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
45203
45204         * lib/sigprocmask.c: Update a comment.
45205
45206 2008-06-21  Eric Blake  <ebb9@byu.net>
45207
45208         Use sigaction module rather than signal().
45209         * modules/c-stack (Depends-on): Add sigaction.
45210         * modules/fatal-signal (Depends-on): Likewise.
45211         * modules/nanosleep (Depends-on): Likewise.
45212         * modules/sigprocmask (Files): Add sig-handler.h.
45213         * modules/sigaction (Files): Likewise.
45214         * lib/sig-handler.h (get_handler): New file, suggested by Paul
45215         Eggert.
45216         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
45217         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
45218         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
45219         (init_fatal_signals): Likewise.
45220         * lib/nanosleep.c (rpl_nanosleep): Likewise.
45221         (siginterrupt): Delete fallback.
45222         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
45223         instead.
45224         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
45225         siginterrupt.
45226
45227         New module sigaction, for mingw.
45228         * modules/sigaction: New module...
45229         * modules/sigaction-tests: ...and its test.
45230         * m4/sigaction.m4: New file.
45231         * lib/sigaction.c: Likewise.
45232         * tests/test-sigaction.c: Likewise.
45233         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
45234         * modules/signal (Makefile.am): Likewise.
45235         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
45236         needed.
45237         * doc/posix-headers/signal.texi (signal.h): Mention provided
45238         types.
45239         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
45240         that sigaction is preferable.
45241         * doc/posix-functions/sigaction.texi (sigaction): Mention new
45242         module.
45243         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45244         sigaction.
45245
45246         Improve robustness of sigprocmask by overriding signal.
45247         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
45248         is in use.
45249         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
45250         (SIGKILL, SIGSTOP): Provide fallbacks.
45251         (rpl_signal): Implement.
45252         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45253         signal can be called inside handlers.
45254
45255         Fix nanosleep module on mingw.
45256         * modules/nanosleep (Depends-on): Add sys_select.
45257         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45258
45259         Fix licensing of sigprocmask.
45260         * modules/raise (License): Relicense as LGPL.
45261
45262 2008-06-21  Bruno Haible  <bruno@clisp.org>
45263
45264         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45265         result if it contains question marks.
45266         Reported by Michael Geng <linux@michaelgeng.de>.
45267
45268 2008-06-19  Bruno Haible  <bruno@clisp.org>
45269
45270         Fix CVS-ism.
45271         * doc/gnulib.texi: Include updated-stamp.texi.
45272         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45273         (updated-stamp.texi): New rule.
45274         (gnulib.info): Depend on it.
45275         * doc/.gitignore: Add updated-stamp.texi.
45276         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45277
45278 2008-06-19  Bruno Haible  <bruno@clisp.org>
45279
45280         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45281         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45282
45283 2008-06-19  Eric Blake  <ebb9@byu.net>
45284
45285         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45286         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45287         Reported by Stepan Kasal.
45288
45289 2008-06-18  Bruno Haible  <bruno@clisp.org>
45290
45291         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45292         Reported by Eric Blake.
45293
45294 2008-06-18  Eric Blake  <ebb9@byu.net>
45295
45296         Work around cygwin 1.5.25 strsignal bug.
45297         * tests/test-strsignal.c: Allow for const char *.
45298         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45299
45300 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45301
45302         * users.txt: Update URL to article and add author/date
45303         information.
45304
45305 2008-06-17  Bruno Haible  <bruno@clisp.org>
45306
45307         New macro gl_DISABLE_THREADS.
45308         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45309         if the user did not pass --enable-threads or --disable-threads option.
45310         (gl_DISABLE_THREADS): New macro.
45311         Reported by Eric Blake <ebb9@byu.net>.
45312
45313 2008-06-17  Bruno Haible  <bruno@clisp.org>
45314
45315         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45316         when the macro ignores it.
45317         Based on a patch by Eric Blake <ebb9@byu.net>.
45318
45319 2008-06-17  Bruno Haible  <bruno@clisp.org>
45320
45321         * modules/tls (License): Change to LGPLv2+.
45322         Reported by Eric Blake.
45323
45324 2008-06-17  Eric Blake  <ebb9@byu.net>
45325
45326         Simplify c-stack prerequisites.
45327         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45328         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45329         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45330         check.
45331         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45332         <sys/resource.h>.
45333
45334         Move c-stack test into testsuite.
45335         * modules/c-stack-tests: New file.
45336         * lib/c-stack.c [DEBUG]: Move test program...
45337         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45338         fail test if sigaltstack is lacking.
45339         * tests/test-c-stack.sh: New driver file.
45340
45341 2008-06-16  Eric Blake  <ebb9@byu.net>
45342
45343         Use raise module consistently.
45344         * modules/fatal-signal (Depends-on): Add raise.
45345         * modules/sigprocmask (Depends-on): Likewise.
45346         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45347         * lib/sigprocmask.c (sigprocmask): Likewise.
45348         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45349         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45350
45351         Fix compliance bug in sigpending.
45352         * lib/sigprocmask.c (sigpending): Return pending array via
45353         parameter, not return value.
45354
45355 2008-06-14  Eric Blake  <ebb9@byu.net>
45356
45357         Improve obstack-printf test code.
45358         * tests/test-obstack-printf.c (test_function): Fix comment, and
45359         simplify usage of obstack_* in macros.  Add a test for coverage.
45360         Reported by Bruno Haible.
45361
45362 2008-06-14  Bruno Haible  <bruno@clisp.org>
45363
45364         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45365         array size as a constant, not as a const variable.
45366         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45367         AC_USE_SYSTEM_EXTENSIONS.
45368         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45369         Test whether the obstack_printf function actually exists.
45370         * modules/obstack-printf (Depends-on): Add extensions.
45371         (Include): Remove obstack.h.
45372         * modules/obstack-printf-posix (Depends-on): Add extensions.
45373         (Include): Remove obstack.h.
45374
45375 2008-06-13  Eric Blake  <ebb9@byu.net>
45376
45377         Add obstack-printf and obstack-printf-posix modules.
45378         * modules/obstack-printf: New file.
45379         * modules/obstack-printf-posix: Likewise.
45380         * MODULES.html.sh (Misc): Mention them.
45381         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45382         Likewise.
45383         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45384         Likewise.
45385         * modules/stdio (Makefile.am): Accomodate new modules.
45386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45387         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45388         Declare.
45389         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45390         functions.
45391         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45392         (gl_REPLACE_OBSTACK_PRINTF): New macros
45393         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45394         * tests/test-obstack-printf.c: New file.
45395         * modules/obstack-printf-tests: Likewise.
45396         * modules/obstack-printf-posix-tests: Likewise.
45397
45398 2008-06-11  Bruno Haible  <bruno@clisp.org>
45399
45400         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
45401         * lib/open.c: Include errno.h.
45402         (open): Fail when attempting to write to a file that has a trailing
45403         slash.
45404         * tests/test-open.c (main): Test against trailing slash bug.
45405         * doc/posix-functions/open.texi: Mention the trailing slash bug.
45406
45407 2008-06-10  Bruno Haible  <bruno@clisp.org>
45408
45409         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
45410         for $? to work inside the trap command, with various /bin/sh-s.
45411         * tests/test-vc-list-files-cvs.sh: Likewise.
45412
45413 2008-06-10  Bruno Haible  <bruno@clisp.org>
45414
45415         * lib/acl-internal.h: Don't include gettext.h here.
45416         * lib/set-mode-acl.c: Include gettext.h here.
45417         * lib/copy-acl.c: Likewise.
45418
45419 2008-06-10  Bruno Haible  <bruno@clisp.org>
45420
45421         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
45422         * lib/wait-process.c (wait_subprocess): Likewise.
45423         * lib/execute.h (execute): Add termsigp argument.
45424         * lib/execute.c (execute): Likewise.
45425         * lib/csharpcomp.c (compile_csharp_using_pnet,
45426         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
45427         * lib/csharpexec.c (execute_csharp_using_pnet,
45428         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
45429         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
45430         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
45431         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
45432         is_jikes_present): Update.
45433         * lib/javaexec.c (execute_java_class): Update.
45434         * lib/javaversion.c (execute_and_read_line): Update.
45435         * NEWS: Document the changes.
45436         Reported by Eric Blake.
45437
45438 2008-06-10  Eric Blake  <ebb9@byu.net>
45439
45440         Add missing include.
45441         * tests/test-strstr.c (includes): Add <signal.h>.
45442         * tests/test-strcasestr.c (includes): Likewise.
45443         * tests/test-memmem.c (includes): Likewise.
45444
45445 2008-06-10  Bruno Haible  <bruno@clisp.org>
45446
45447         * lib/wait-process.c (wait_subprocess): Add an assertion.
45448
45449 2008-06-10  Bruno Haible  <bruno@clisp.org>
45450
45451         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
45452
45453 2008-06-10  Bruno Haible  <bruno@clisp.org>
45454
45455         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
45456         using alarm().
45457         * tests/test-strcasestr.c (main): Likewise.
45458         * tests/test-strstr.c (main): Likewise.
45459
45460 2008-06-09  Bruno Haible  <bruno@clisp.org>
45461
45462         Work around the Solaris 10 ACE ACLs ABI change.
45463         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
45464         declare if ACL_NO_TRIVIAL is present.
45465         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
45466         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
45467         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
45468         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
45469         define if ACL_NO_TRIVIAL is present.
45470         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
45471         and use the current ABI.
45472         (file_has_acl): Use same #if condition as elsewhere.
45473         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
45474         in use, and use the current ABI.
45475         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
45476         Reported by Jim Meyering.
45477
45478 2008-06-09  Eric Blake  <ebb9@byu.net>
45479
45480         Work around environments that (stupidly) ignore SIGALRM.
45481         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45482         before using alarm().
45483         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45484         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45485         Reported by Ian Beckwith <ianb@erislabs.net>.
45486
45487         Produce autobuild blurb earlier in log.
45488         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45489
45490 2008-06-09  Jim Meyering  <meyering@redhat.com>
45491         and OndÅ™ej Vašík  <ovasik@redhat.com>
45492
45493         utimens.c: correct kernel bug work-around
45494         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45495         failure, not success, and the kernel bug we're trying to work
45496         around affects not just the utimensat call, but also the fallback
45497         futimens call.
45498         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45499         not success.
45500         [HAVE_FUTIMENS]: Use the same work-around, here.
45501
45502 2008-06-09  Jim Meyering  <meyering@redhat.com>
45503
45504         add more guards around definition of ACE_-related code
45505         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45506         ALLOW and ACE_OWNER are also defined.
45507
45508 2008-06-08  Bruno Haible  <bruno@clisp.org>
45509
45510         * lib/acl-internal.h: Add me as co-author.
45511         * lib/file-has-acl.c: Likewise.
45512         * lib/set-mode-acl.c: Likewise.
45513         * lib/copy-acl.c: Likewise.
45514
45515 2008-06-08  Bruno Haible  <bruno@clisp.org>
45516
45517         Add support for AIX ACLs.
45518         * lib/acl-internal.h (acl_nontrivial): New declaration.
45519         * lib/file-has-acl.c (acl_nontrivial): New function.
45520         (file_has_acl): Add implementation using AIX 4 ACL API.
45521         * lib/set-mode-acl.c (qset_acl): Likewise.
45522         * lib/copy-acl.c (qcopy_acl): Likewise.
45523
45524 2008-06-08  Bruno Haible  <bruno@clisp.org>
45525
45526         Add support for HP-UX ACLs.
45527         * lib/acl-internal.h (acl_nontrivial): New declaration.
45528         * lib/file-has-acl.c (acl_nontrivial): New function.
45529         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45530         * lib/set-mode-acl.c (qset_acl): Likewise.
45531         * lib/copy-acl.c (qcopy_acl): Likewise.
45532
45533 2008-06-08  Bruno Haible  <bruno@clisp.org>
45534
45535         Add support for Cygwin ACLs.
45536         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45537         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45538         the chmod_or_fchmod call.
45539         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45540
45541 2008-06-08  Bruno Haible  <bruno@clisp.org>
45542
45543         Fix bug with setuid modes in Solaris 10+ code.
45544         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45545         succeeded, when the mode contains some special bits.
45546
45547 2008-06-08  Bruno Haible  <bruno@clisp.org>
45548
45549         Add support for Solaris 7..10 ACLs.
45550         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45551         declarations.
45552         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45553         functions.
45554         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45555         * lib/set-mode-acl.c (qset_acl): Likewise.
45556         * lib/copy-acl.c (qcopy_acl): Likewise.
45557
45558 2008-06-08  Bruno Haible  <bruno@clisp.org>
45559
45560         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45561         declaration.
45562         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45563         (acl_access_nontrivial): Remove MacOS X case.
45564         (file_has_acl): Use acl_extended_nontrivial.
45565         * lib/copy-acl.c (qcopy_acl): Likewise.
45566
45567 2008-06-08  Bruno Haible  <bruno@clisp.org>
45568
45569         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45570
45571 2008-06-08  Jim Meyering  <meyering@redhat.com>
45572
45573         * modules/acl (Maintainer): Add Bruno Haible.
45574
45575 2008-06-07  Bruno Haible  <bruno@clisp.org>
45576
45577         Improve support for Tru64 ACLs.
45578         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45579         ACL on OSF/1.
45580
45581 2008-06-07  Bruno Haible  <bruno@clisp.org>
45582
45583         Add support for MacOS X ACLs.
45584         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45585         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45586         * lib/set-mode-acl.c (qset_acl): Likewise.
45587         * lib/copy-acl.c (qcopy_acl): Likewise.
45588
45589 2008-06-07  Bruno Haible  <bruno@clisp.org>
45590
45591         Fix memory leak introduced on 2008-05-22.
45592         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45593         use.
45594
45595 2008-06-07  Bruno Haible  <bruno@clisp.org>
45596
45597         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45598         to construct an empty ACL.
45599
45600 2008-06-07  Bruno Haible  <bruno@clisp.org>
45601
45602         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45603         precisely.
45604         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45605
45606 2008-06-07  Bruno Haible  <bruno@clisp.org>
45607
45608         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45609         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45610
45611 2008-06-07  Bruno Haible  <bruno@clisp.org>
45612
45613         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45614         regardless of POSIX.
45615         * doc/posix-functions/_longjmp.texi: Likewise.
45616         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45617         SystemV platform in this case.
45618
45619 2008-06-06  Eric Blake  <ebb9@byu.net>
45620
45621         Document abort() bugs.
45622         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45623
45624         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45625         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45626         sigsetjmp.
45627         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45628         siglongjmp, but only as a macro.
45629         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45630         is obsolete.
45631         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45632
45633         Tweak documentation to cover cygwin argz bugs.
45634         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45635         argz bug fix; no code change needed since no cygwin releases
45636         occurred between the last fix and the bug being tested.
45637         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45638         module and recently fixed cygwin bugs.
45639         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45640         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45641         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45642         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45643         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45644         Likewise.
45645         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45646         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45647         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45648         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45649         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45650         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45651         Likewise.
45652
45653         Avoid gcc warning on cygwin.
45654         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45655         !ACL_NO_TRIVIAL]: Avoid unused variable.
45656
45657 2008-06-05  Eric Blake  <ebb9@byu.net>
45658
45659         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45660         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45661         git-version-gen fails to come up with a version.
45662         Reported by Simon Josefsson.
45663
45664 2008-06-05  Jim Meyering  <meyering@redhat.com>
45665             Paul Eggert  <eggert@cs.ucla.edu>
45666
45667         utimens.c: work around a probable Linux kernel bug
45668         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45669         appears to be a kernel bug that causes utimensat to return 280
45670         instead of 0, indicating success.
45671
45672 2008-06-04  Bruno Haible  <bruno@clisp.org>
45673
45674         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45675         2008-06-01 commit.
45676
45677 2008-06-04  Bruno Haible  <bruno@clisp.org>
45678
45679         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45680         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45681         (file_has_acl): Use it. Save errno afterwards.
45682         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45683
45684 2008-06-03  Bruno Haible  <bruno@clisp.org>
45685
45686         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45687         draft code. Simplify #ifs.
45688         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45689         Put Solaris code after POSIX-draft code. Fix comments regarding
45690         Solaris 10, HP-UX. Mention Cygwin.
45691         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45692
45693 2008-06-03  Eric Blake  <ebb9@byu.net>
45694
45695         Provide fallback for older kernels.
45696         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45697         Provide runtime fallback if kernel lacks support.
45698         Reported by Mike Frysinger.
45699
45700 2008-06-02  Bruno Haible  <bruno@clisp.org>
45701
45702         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45703         it exists.
45704
45705 2008-06-02  Bruno Haible  <bruno@clisp.org>
45706
45707         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45708         * lib/copy-acl.c (qcopy_acl): Update comment.
45709
45710 2008-06-02  Bruno Haible  <bruno@clisp.org>
45711
45712         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45713         like ACL APIs.
45714
45715 2008-06-02  Bruno Haible  <bruno@clisp.org>
45716
45717         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45718         * tests/test-set-mode-acl.sh: Likewise.
45719         * tests/test-copy-acl.sh: Likewise.
45720         * tests/test-copy-file.sh: Likewise.
45721
45722 2008-06-02  Bruno Haible  <bruno@clisp.org>
45723
45724         * tests/test-file-has-acl.sh: Remove unused code.
45725
45726 2008-06-01  Bruno Haible  <bruno@clisp.org>
45727
45728         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45729         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45730         messages.
45731         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45732
45733 2008-06-01  Bruno Haible  <bruno@clisp.org>
45734
45735         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45736         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45737         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45738         APIs.
45739         * modules/acl-tests (configure.ac): Remove tests now contained in
45740         m4/acl.m4.
45741
45742 2008-06-02  Jim Meyering  <meyering@redhat.com>
45743
45744         announce-gen: use a better key-server host name
45745         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45746         it may be more consistently reliable.  Suggested by Werner Koch
45747         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45748
45749 2008-06-01  Bruno Haible  <bruno@clisp.org>
45750
45751         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45752         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45753
45754 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45755
45756         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45757
45758 2008-06-01  Bruno Haible  <bruno@clisp.org>
45759
45760         New ACL tests.
45761         * tests/test-file-has-acl.sh: New file.
45762         * tests/test-file-has-acl.c: New file.
45763         * tests/test-set-mode-acl.sh: New file.
45764         * tests/test-set-mode-acl.c: New file.
45765         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45766         * tests/test-copy-acl.c: New file.
45767         * modules/acl-tests: New file, based on modules/copy-file-tests.
45768         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45769         (Depends-on): Add acl-tests.
45770         (configure.ac): Remove checks.
45771         (Makefile.am): Don't create test-sameacls program here any more.
45772
45773 2008-06-01  Bruno Haible  <bruno@clisp.org>
45774
45775         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45776         * tests/test-sameacls.c: Include progname.h.
45777         (main): Invoke set_program_name. Portability fixes for MacOS X,
45778         Solaris, HP-UX.
45779
45780 2008-06-01  Bruno Haible  <bruno@clisp.org>
45781
45782         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45783         function.
45784         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45785
45786 2008-06-01  Bruno Haible  <bruno@clisp.org>
45787
45788         * modules/rpmatch (Depends-on): Add strdup.
45789
45790 2008-06-01  Bruno Haible  <bruno@clisp.org>
45791
45792         * lib/pipe.c: Include unistd-safer.h.
45793         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45794         * modules/pipe (Depends-on): Add unistd-safer.
45795
45796 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45797
45798         * modules/autobuild (configure.ac): Call AB_INIT.
45799
45800 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45801
45802         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45803         Suggested by Bruno Haible <bruno@clisp.org>.
45804
45805 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45806
45807         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45808         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45809         <bruno@clisp.org>.
45810
45811 2008-05-29  Eric Blake  <ebb9@byu.net>
45812
45813         Prefer new POSIX 200x interfaces over futimesat.
45814         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45815         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45816         when available.
45817         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45818
45819 2008-05-28  Bruno Haible  <bruno@clisp.org>
45820
45821         * modules/stpcpy (License): Change to LGPLv2+.
45822         Requested by David Lutterkort <dlutter@redhat.com>.
45823
45824 2008-05-27  Bruno Haible  <bruno@clisp.org>
45825
45826         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45827         current mingw.
45828         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45829
45830 2008-05-27  Bruno Haible  <bruno@clisp.org>
45831
45832         * modules/iconv_open (Link): New section, from module 'iconv'.
45833         * modules/striconv (Link): Likewise.
45834         * modules/striconveh (Link): Likewise.
45835         * modules/xstriconv (Link): Likewise.
45836         * modules/unicodeio (Link): Likewise.
45837         * modules/propername (Link): Likewise.
45838         Reported by Jim Meyering.
45839
45840 2008-05-26  Jim Meyering  <meyering@redhat.com>
45841
45842         sha256: do not artificially restrict buffer length to be < 2^32
45843         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45844         uint32_t to size_t.
45845         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45846         to match.
45847
45848         avoid unaligned access errors, e.g., on sparc
45849         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45850         direct access through a possibly-unaligned uint64* pointer.
45851         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45852         direct access through a possibly-unaligned uint32* pointer.
45853         Prompted by this patch from Tom "spot" Callaway:
45854         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45855
45856         sha512.c: fix typo in comment
45857         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45858
45859 2008-05-25  Bruno Haible  <bruno@clisp.org>
45860
45861         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45862         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45863         (Makefile.am): Update lib_SOURCES.
45864
45865 2008-05-25  Bruno Haible  <bruno@clisp.org>
45866
45867         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45868
45869 2008-05-25  Jim Meyering  <meyering@redhat.com>
45870
45871         useless-if-before-free: freed expr may have white-space differences
45872         * build-aux/useless-if-before-free: Recognize cases in which the
45873         freed expression differs from the tested one in embedded white
45874         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45875         $1 was used, so we can't make any regexp shy.  Improved tests now
45876         detect this.
45877
45878         useless-if-before-free: accept white space in the expression.
45879         * build-aux/useless-if-before-free: For now, any white space
45880         in the expression must be identical in the free argument.
45881
45882         useless-if-before-free: efficiency tweak
45883         * build-aux/useless-if-before-free: Make the expression-matching
45884         regexp "shy".
45885         Make the *outer* regexp shy, not the expr-matching one.
45886
45887         update code-in-comment to accept cast of free arg
45888         * build-aux/useless-if-before-free: Update regexp.
45889
45890 2008-05-25  Bruno Haible  <bruno@clisp.org>
45891
45892         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45893         * modules/copy-file-tests (Files, Makefile.am): Update.
45894         * tests/test-copy-file.c (func_test_copy): Update.
45895
45896 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45897
45898         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45899
45900 2008-05-23  Bruno Haible  <bruno@clisp.org>
45901
45902         Improve support for ACLs on OSF/1.
45903         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45904         Remove fallback for unknown flavors of ACLs.
45905
45906 2008-05-22  Bruno Haible  <bruno@clisp.org>
45907
45908         Add support for ACLs on OSF/1.
45909         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45910         replacements.
45911         (acl_free_text): New macro fallback.
45912         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45913         acl_free.
45914         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45915         acl_free_text function. Require AC_C_INLINE.
45916
45917 2008-05-22  Bruno Haible  <bruno@clisp.org>
45918
45919         Make copy_acl work on MacOS X 10.5.
45920         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45921         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45922         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45923         If MODE_INSIDE_ACL, don't assume that every system has the same text
45924         representation for ACLs as FreeBSD.
45925         * lib/copy-acl.c (copy_acl): Add support for platforms with
45926         !MODE_INSIDE_ACL.
45927         * lib/file-has-acl.c (file_has_acl): Likewise.
45928         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45929         FreeBSD, MacOS X, or IRIX, respectively.
45930
45931 2008-05-22  Bruno Haible  <bruno@clisp.org>
45932
45933         * lib/acl.h: Don't include <sys/acl.h>.
45934         (GETACLCNT): Move fallback to lib/acl-internal.h.
45935         * lib/acl-internal.h: Include <sys/acl.h> here.
45936         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45937
45938 2008-05-22  Bruno Haible  <bruno@clisp.org>
45939
45940         Split off copy_acl function to separate file.
45941         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45942         * lib/acl.c (copy_acl): Moved function to separate file.
45943         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45944         * modules/acl (Files): Add lib/copy-acl.c.
45945         (Makefiles.am): Augment lib_SOURCES.
45946
45947 2008-05-22  Bruno Haible  <bruno@clisp.org>
45948
45949         * modules/copy-file-tests: New file.
45950         * tests/test-copy-file.sh: New file.
45951         * tests/test-copy-file.c: New file.
45952         * tests/test-copy-file-sameacls.c: New file.
45953
45954 2008-05-22  Eric Blake  <ebb9@byu.net>
45955
45956         Avoid gcc warning.
45957         * tests/test-memcmp.c (main): Pass NULL indirectly.
45958
45959 2008-05-21  Bruno Haible  <bruno@clisp.org>
45960
45961         Add reference doc about ACLs.
45962         * doc/acl-resources.txt: New file.
45963         * doc/acl-cygwin.txt: New file.
45964
45965 2008-05-21  Bruno Haible  <bruno@clisp.org>
45966
45967         Avoid one more warning from gcc.
45968         * lib/vasnprintf.c (IF_LINT): Update comments.
45969         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45970
45971 2008-05-21  Jim Meyering  <meyering@redhat.com>
45972
45973         avoid a warning from gcc
45974         * lib/vasnprintf.c (IF_LINT): Define.
45975         (scale10_round_decimal_long_double):
45976         Use it to avoid a "may be used uninitialized" warning.
45977         (scale10_round_decimal_double): Likewise.
45978
45979 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45980
45981         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45982         declared.
45983
45984 2008-05-20  Bruno Haible  <bruno@clisp.org>
45985
45986         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45987         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45988
45989 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45990
45991         * modules/memcmp-tests: New file.
45992         * tests/test-memcmp.c: New file.
45993
45994 2008-05-19  Bruno Haible  <bruno@clisp.org>
45995
45996         * modules/propername (Notice, configure.ac): Put quoted "..." into
45997         --keyword option.
45998         * lib/propername.h: Update comments accordingly.
45999         Reported by Eric Blake.
46000
46001 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
46002
46003         * modules/getpass-gnu (Depends-on): Add fseeko.
46004
46005 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46006
46007         * modules/base64-tests: New file.
46008
46009 2008-05-19  Bo Borgerson <gigabo@gmail.com>
46010
46011         * lib/base64.c (base64_decode_ctx): If a decode context structure
46012         was passed in use it to ignore newlines.  If a context structure
46013         was _not_ passed in, continue to treat newlines as garbage (this
46014         is the historical behavior).  Formerly base64_decode.
46015         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46016         takes a decode context structure.
46017         * lib/base64.h (base64_decode): Macro for four-argument calls.
46018         (base64_decode_alloc): Likewise.
46019         * lib/base64.c (base64_decode_ctx): If a decode context structure
46020         was passed in use it to ignore newlines.  If a context structure
46021         was _not_ passed in, continue to treat newlines as garbage (this
46022         is the historical behavior).  Formerly base64_decode.
46023         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46024         takes a decode context structure.
46025         * lib/base64.h (base64_decode): Macro for four-argument calls.
46026         (base64_decode_alloc): Likewise.
46027
46028 2008-05-19  Jim Meyering  <meyering@redhat.com>
46029
46030         avoid a warning from gcc
46031         * lib/trim.c (IF_LINT): Define.
46032         (trim2): Use it to avoid a "may be used uninitialized" warning.
46033
46034         Fix doc typo.
46035         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
46036
46037 2008-05-19  Bruno Haible  <bruno@clisp.org>
46038
46039         * doc/glibc-functions/getpass.texi: Document limits of other
46040         implementations.
46041
46042 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46043             Bruno Haible <bruno@clisp.org>
46044
46045         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
46046
46047 2008-05-18  Bruno Haible  <bruno@clisp.org>
46048
46049         * modules/propername: New file, from GNU gettext.
46050         * lib/propername.h: New file, from GNU gettext.
46051         * lib/propername.c: New file, from GNU gettext.
46052         * MODULES.html.sh (Internationalization functions): Add propername.
46053
46054 2008-05-16  Jim Meyering  <meyering@redhat.com>
46055             Bruno Haible  <bruno@clisp.org>
46056
46057         Avoid some warnings from "gcc -Wshadow".
46058         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
46059
46060 2008-05-15  Eric Blake  <ebb9@byu.net>
46061
46062         Extend previous patch to cygwin 1.7.0.
46063         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
46064         fast implementation in cygwin >= 1.7.0.
46065         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46066         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46067
46068 2008-05-15  Bruno Haible  <bruno@clisp.org>
46069
46070         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
46071         implementation in glibc >= 2.9.
46072         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46073         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46074
46075 2008-05-15  Bruno Haible  <bruno@clisp.org>
46076
46077         * MODULES.html.sh (Internationalization functions): Remove linebreak.
46078         (Unicode string functions): Add unilbrk/*.
46079         Reported by Karl Berry.
46080
46081 2008-05-15  Eric Blake  <ebb9@byu.net>
46082
46083         Fix violation of <stdbool.h> replacement in regex.
46084         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
46085         * lib/regexec.c (re_search_internal): Likewise.
46086         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
46087
46088 2008-05-15  Jim Meyering  <meyering@redhat.com>
46089
46090         avoid distracting test output when git or cvs is not found
46091         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
46092         * tests/test-vc-list-files-git.sh: Likewise.
46093
46094 2008-05-15  Eric Blake  <ebb9@byu.net>
46095
46096         Glibc finally accepted the memmem speedup code, bugzilla #5514.
46097         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
46098         glibc version.
46099         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46100         * doc/posix-functions/strstr.texi (strstr): Likewise.
46101         * lib/str-two-way.h (MAX): Sychronize with glibc.
46102
46103 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
46104
46105         * lib/regcomp.c (optimize_utf8): Add a note on why we test
46106         opr.ctx_type.
46107         (calc_first): Initialize constraint field.
46108         (duplicate_node_closure): Use it instead of special casing ANCHORS.
46109         Fix grammar.
46110         (duplicate_node): Merge constraint field for all node types.
46111         (calc_eclosure_iter): Look at constraint field for all node types.
46112         * lib/regex_internal.c (create_cd_newstate): Don't look at
46113         opr.ctx_type.
46114
46115 2008-05-14  Bruno Haible  <bruno@clisp.org>
46116
46117         Help GCC to do better code generation.
46118         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
46119         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46120         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
46121         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
46122         Declare with attribute 'malloc' if supported.
46123
46124 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
46125
46126         use "echo STR|wc -c" rather than unportable "expr length STR"
46127         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
46128         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
46129
46130 2008-05-14  Jim Meyering  <meyering@redhat.com>
46131
46132         use dd ibs=$n count=1 ... rather than less-portable head -c$n
46133         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
46134         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
46135         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
46136         via Collin Lasse.
46137
46138 2008-05-14  Eric Blake  <ebb9@byu.net>
46139
46140         Avoid quadratic growth in gl_LIBSOURCES.
46141         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
46142         Suggested by Bruno Haible.
46143
46144         Test xmemdup0.
46145         * modules/xmemdup0-tests: New file.
46146         * tests/test-xmemdup0.c: Likewise.
46147
46148 2008-05-13  Eric Blake  <ebb9@byu.net>
46149
46150         Split xmemdup0 into its own module.
46151         * modules/xmemdup0: New file.
46152         * lib/xmemdup0.h: Likewise.
46153         * lib/xmemdup0.c: Likewise.
46154         * MODULES.html.sh (Memory management functions): Add xmemdup0.
46155         * lib/xalloc.h (xmemdup0): Remove.
46156         * lib/xmalloc.c (xmemdup0): Likewise.
46157
46158 2008-05-13  Eric Blake  <ebb9@byu.net>
46159             Bruno Haible  <bruno@clisp.org>
46160
46161         Reduce number of forks required during autoconf.
46162         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
46163         and gl_LIBSOURCES_DIR.
46164         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
46165         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
46166         m4_syscmd per file.
46167         <m4_foreach_w>: Move...
46168         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
46169
46170 2008-05-13  Eric Blake  <ebb9@byu.net>
46171
46172         * gnulib-tool: Fix various comment typos.
46173
46174 2008-05-12  Bruno Haible  <bruno@clisp.org>
46175
46176         Tailor the linebreaking algorithm.
46177         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
46178
46179 2008-05-12  Bruno Haible  <bruno@clisp.org>
46180
46181         Update to Unicode 5.0.0.
46182         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46183         LBP_JV, LBP_JT. Redistribute values.
46184         (unilbrk_table): Change size.
46185         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
46186         Unicode TR#14 rev. 22.
46187         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46188         LBP_JV, LBP_JT. Redistribute values.
46189         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
46190         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
46191         Update.
46192         * lib/unilbrk/lbrkprop1.h: Regenerated.
46193         * lib/unilbrk/lbrkprop2.h: Regenerated.
46194         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
46195         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
46196         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
46197         Likewise.
46198         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
46199         Likewise.
46200         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
46201         result.
46202         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
46203         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
46204         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
46205         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
46206         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
46207         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
46208
46209 2008-05-11  Bruno Haible  <bruno@clisp.org>
46210
46211         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
46212
46213 2008-05-11  Bruno Haible  <bruno@clisp.org>
46214
46215         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
46216         * modules/unilbrk/gen-lbrk: New file.
46217
46218 2008-05-11  Bruno Haible  <bruno@clisp.org>
46219
46220         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
46221         * m4/sha512.m4 (gl_SHA512): Likewise.
46222
46223 2008-05-11  Jim Meyering  <meyering@redhat.com>
46224
46225         New modules: crypto/sha256, crypto/sha512 (from coreutils)
46226         * modules/crypto/sha256: New file.
46227         * modules/crypto/sha512: Likewise.
46228         * lib/sha256.c: Likewise.
46229         * lib/sha256.h: Likewise.
46230         * lib/sha512.c: Likewise.
46231         * lib/sha512.h: Likewise.
46232         * lib/u64.h: Likewise.
46233         * m4/sha256.m4: Likewise.
46234         * m4/sha512.m4: Likewise.
46235         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
46236
46237 2008-05-10  Bruno Haible  <bruno@clisp.org>
46238
46239         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
46240         (Input/Output <stdio.h>): Add xprintf.
46241         (Signal handling <signal.h>): Add strsignal.
46242         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
46243         (Core language properties): Add func.
46244         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
46245         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
46246         strings.
46247         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
46248         (Input/output): New section.
46249         (File system functions): Add openat-die, stat-macros.
46250         (Networking functions): Add sockets.
46251         (Unicode string functions): Add unictype/*.
46252         (Support for building libraries and executables): Add gperf.
46253         (Support for building documentation): Add agpl-3.0.
46254         (Misc): Add nocrash.
46255
46256 2008-05-10  Bruno Haible  <bruno@clisp.org>
46257
46258         * modules/unictype/gen-ctype: New file.
46259
46260 2008-05-10  Jim Meyering  <meyering@redhat.com>
46261
46262         Make chdir-safer.c more efficient on a system with no symlinks.
46263         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46264         also if ELOOP is zero.  Suggested by Bruno Haible.
46265
46266         Make chdir-safer.c slightly safer.
46267         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46268         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46269
46270         Avoid compile failure on systems without ELOOP (like mingw).
46271         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46272         Reported by Bruno Haible.
46273
46274 2008-05-10  Bruno Haible  <bruno@clisp.org>
46275
46276         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46277         (is_utf8_encoding): Use a case-insensitive comparison.
46278         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46279         streq.
46280
46281 2008-05-10  Bruno Haible  <bruno@clisp.org>
46282
46283         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46284         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46285         * lib/unilbrk/ulc-common.h (iconv_string_length,
46286         iconv_string_keeping_offsets): Remove declarations.
46287         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46288         Don't include <iconv.h>, streq.h, xsize.h.
46289         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46290         conversion.
46291         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46292         <iconv.h>, streq.h, xsize.h.
46293         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46294         conversion.
46295         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46296         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46297         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46298         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46299
46300 2008-05-10  Bruno Haible  <bruno@clisp.org>
46301
46302         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46303         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46304
46305         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46306         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46307
46308         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46309         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46310
46311         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46312         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46313
46314         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46315         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46316
46317         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46318         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46319
46320         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46321         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46322
46323         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46324         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46325
46326 2008-05-10  Bruno Haible  <bruno@clisp.org>
46327
46328         Split up 'linebreak' module.
46329         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46330         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46331         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46332         modifications.
46333         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46334         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46335         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46336         lib/linebreak.c.
46337         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46338         lib/linebreak.c.
46339         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46340         lib/linebreak.c.
46341         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46342         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46343         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46344         lib/linebreak.c.
46345         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46346         lib/linebreak.c.
46347         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46348         lib/linebreak.c.
46349         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46350         lib/linebreak.c.
46351         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46352         lib/linebreak.c.
46353         * modules/unilbrk/base: New file.
46354         * modules/unilbrk/tables: New file.
46355         * modules/unilbrk/u8-possible-linebreaks: New file.
46356         * modules/unilbrk/u16-possible-linebreaks: New file.
46357         * modules/unilbrk/u32-possible-linebreaks: New file.
46358         * modules/unilbrk/ulc-common: New file.
46359         * modules/unilbrk/ulc-possible-linebreaks: New file.
46360         * modules/unilbrk/u8-width-linebreaks: New file.
46361         * modules/unilbrk/u16-width-linebreaks: New file.
46362         * modules/unilbrk/u32-width-linebreaks: New file.
46363         * modules/unilbrk/ulc-width-linebreaks: New file.
46364         * lib/linebreak.h: Remove file.
46365         * lib/linebreak.c: Remove file.
46366         * m4/linebreak.m4: Remove file.
46367         * modules/linebreak: Remove file.
46368         * NEWS: Mention the changes.
46369
46370 2008-05-09  Eric Blake  <ebb9@byu.net>
46371
46372         Add xmemdup0.
46373         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46374         implementation.
46375         * lib/xmalloc.c (xmemdup0): New C implementation.
46376
46377 2008-05-08  Bruno Haible  <bruno@clisp.org>
46378
46379         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46380
46381 2008-05-07  Eric Blake  <ebb9@byu.net>
46382
46383         Support cross-compilation of <wctype.h>.
46384         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46385         AC_CACHE_CHECK.
46386
46387 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46388
46389         * build-aux/vc-list-files: Add support for bzr.
46390
46391 2008-05-03  Jim Meyering  <meyering@redhat.com>
46392
46393         avoid failed assertion with tight malloc
46394         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46395
46396 2008-05-03  Simon Josefsson  <simon@josefsson.org>
46397
46398         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
46399         are needed from arpa/inet.h.
46400         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
46401         Reported by Bruno Haible.
46402
46403 2008-05-02  Jim Meyering  <meyering@redhat.com>
46404
46405         avoid compilation error on FreeBSD 6
46406         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
46407
46408 2008-05-01  Jim Meyering  <meyering@redhat.com>
46409
46410         useless-if-before-free: correct --help's exit status description
46411         * build-aux/useless-if-before-free (usage): Like grep, exit 0
46412         for one or more matches, etc.  Reported by Bruno Haible.
46413
46414         vc-list-files: make the stand-alone gnulib test work
46415         * modules/vc-list-files-tests (configure.ac):
46416         Define and AC_SUBST abs_aux_dir.
46417         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
46418         $(abs_top_srcdir) to each script and having each of them
46419         duplicate the work of setting PATH, set PATH here, using
46420         the new variable, abs_aux_dir instead.
46421         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
46422         * tests/test-vc-list-files-git.sh: Likewise.
46423         Reported by Bruno Haible.
46424
46425 2008-05-01  Bruno Haible  <bruno@clisp.org>
46426
46427         * lib/getndelim2.c (getndelim2): Fix newsize computation during
46428         reallocation. Rename 'done' to 'found_delimiter'.
46429
46430 2008-05-01  Jim Meyering  <meyering@redhat.com>
46431
46432         vc-list-files: accommodate /bin/sh like the one from Solaris 10
46433         * build-aux/vc-list-files: Use `...`, not $(...).
46434
46435 2008-04-30  Jim Meyering  <meyering@redhat.com>
46436
46437         add tests for vc-list-files
46438         * modules/vc-list-files-tests: New module.
46439         * tests/test-vc-list-files-cvs.sh: New file.
46440         * tests/test-vc-list-files-git.sh: New file.
46441
46442         avoid a warning from gcc
46443         * lib/getndelim2.c (IF_LINT): Define.
46444         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
46445
46446         vc-list-files: work properly with build-aux/cvsu, too
46447         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
46448         to all cvs-based clauses.
46449
46450         vc-list-files: work properly in the CVS+awk case, too
46451         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
46452
46453         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
46454         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
46455         take more than one file argument, so .  Add quotes, just in case $dir
46456         ever contains a shell meta-character.  Prompted by Soren Hansen in
46457         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
46458
46459 2008-04-29  Eric Blake  <ebb9@byu.net>
46460
46461         Optimize getndelim2 to use block operations when possible.
46462         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
46463         freadseek, and memchr2.
46464         * lib/getndelim2.c (getndelim2): Use them for block reads.
46465
46466 2008-04-29  Bruno Haible  <bruno@clisp.org>
46467
46468         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
46469         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46470         * modules/inet_ntop (Depends-on): Add extensions.
46471         * modules/inet_pton (Depends-on): Likewise.
46472         Reported by Simon Josefsson.
46473
46474 2008-04-29  Jim Meyering  <meyering@redhat.com>
46475
46476         When the is more than one match in a block, match all of them.
46477         * build-aux/useless-if-before-free: Iterate through each block
46478         until there are no more matches.
46479
46480         Fix broken useless-if-before-free script.
46481         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46482         the expression to match cast of argument to free-like function.
46483
46484 2008-04-29  Eric Blake  <ebb9@byu.net>
46485
46486         Use new header.
46487         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46488
46489 2008-04-29  Jim Meyering  <meyering@redhat.com>
46490
46491         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46492         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46493         by gnulib to exist and to declare e.g., inet_ntop.
46494         Don't include "inet_ntop.h", now removed.
46495
46496         * m4/arpa_inet_h.m4: Remove trailing blanks.
46497
46498 2008-04-29  Eric Blake  <ebb9@byu.net>
46499
46500         Silence valgrind on safe reads beyond potential array bounds.
46501         * lib/rawmemchr.valgrind: New file.
46502         * lib/strchrnul.valgrind: Likewise.
46503         * modules/rawmemchr (Files): Distribute new file.
46504         * modules/strchrnul (Files): Likewise.
46505         Suggested by Bruno Haible.
46506
46507 2008-04-29  Bruno Haible  <bruno@clisp.org>
46508
46509         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46510         (inet_ntop, inet_pton): Change portability warning's wording.
46511         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46512         Invoke gl_CHECK_NEXT_HEADERS.
46513         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46514         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46515         set ARPA_INET_H.
46516         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46517         * modules/arpa_inet (Description): No longer only for systems that
46518         lack it.
46519         (Depends-on): Add include_next.
46520         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46521         HAVE_ARPA_INET_H.
46522
46523 2008-04-29  Jim Meyering  <meyering@redhat.com>
46524
46525         * modules/mkdir (License): Re-license as LGPLv2+.
46526
46527 2008-04-29  Bruno Haible  <bruno@clisp.org>
46528
46529         * modules/rawmemchr (Maintainer): Set to Eric.
46530         * modules/strchrnul (Maintainer): Likewise.
46531
46532 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46533
46534         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46535         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46536
46537         * modules/arpa_inet (arpa/inet.h): Use them.
46538
46539 2008-04-28  Eric Blake  <ebb9@byu.net>
46540
46541         Test getndelim2.
46542         * modules/getndelim2-tests: New file.
46543         * tests/test-getndelim2.c: Likewise.
46544         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46545         stream.
46546         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46547
46548         * MODULES.html.sh: Document new module.
46549
46550 2008-04-20  Bruno Haible  <bruno@clisp.org>
46551
46552         * lib/c-stack.c (die): Use raise.
46553         * modules/c-stack (Depends-on): Add raise.
46554
46555 2008-04-28  Bruno Haible  <bruno@clisp.org>
46556
46557         Expect rpmatch to be declared.
46558         * lib/yesno.c (rpmatch): Remove declaration.
46559
46560         Declare rpmatch.
46561         * lib/stdlib.in.h (rpmatch): New declaration.
46562         * lib/rpmatch.c: Include <stdlib.h> first.
46563         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46564         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46565         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46566         HAVE_RPMATCH.
46567         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46568         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46569         (Include): Set to <stdlib.h>.
46570         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46571         HAVE_RPMATCH.
46572         * NEWS: Document the change.
46573
46574 2008-04-28  Bruno Haible  <bruno@clisp.org>
46575
46576         Change rpmatch to use nl_langinfo when appropriate.
46577         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46578         (N_): New macro.
46579         (localized_pattern): New function/macro.
46580         (try): Remove match, nomatch arguments. Copy the pattern into safe
46581         memory before caching it.
46582         (rpmatch): Use localized_pattern. Add translator comments.
46583         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46584         Suggested by Eric Blake.
46585         * modules/rpmatch (Depends-on): Add stdbool.
46586
46587 2008-04-28  Eric Blake  <ebb9@byu.net>
46588
46589         Add rawmemchr module, matching glibc.
46590         * modules/string (Makefile.am): New indicator.
46591         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46592         * lib/string.in.h (rawmemchr): Declare when appropriate.
46593         * modules/rawmemchr: New file.
46594         * m4/rawmemchr.m4: Likewise.
46595         * lib/rawmemchr.c: Likewise.
46596         * modules/rawmemchr-tests: Likewise.
46597         * tests/test-rawmemchr.c: Likewise.
46598         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46599         module.
46600         * modules/strchrnul (Depends-on): Add rawmemchr.
46601         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46602
46603         Whitespace cleanup.
46604         * tests/test-strchrnul.c: Reindent.
46605         * lib/strchrnul.c: Likewise.
46606
46607         Optimize and test strchrnul.
46608         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46609         * modules/strchrnul-tests: New file.
46610         * tests/test-strchrnul.c: Likewise.
46611
46612         Remove intprops dependency.
46613         * modules/memchr (Depends-on): Remove intprops.
46614         * modules/memrchr (Depends-on): Likewise.
46615         * modules/memchr2 (Depends-on): Likewise.
46616         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46617         * lib/memrchr.c (__memrchr): Likewise.
46618         * lib/memrchr2.c (memchr2): Likewise.
46619         Reported by Simon Josefsson.
46620
46621 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46622
46623         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46624         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46625
46626 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46627
46628         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46629
46630         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46631
46632         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46633
46634         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46635         declarations.
46636         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46637
46638         * m4/inet_pton.m4: Don't check for header files.
46639
46640         * m4/inet_ntop.m4: Don't check for header files.
46641
46642 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46643
46644         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46645         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46646         trigger for cygwin).
46647         Reported by Bruno Haible  <bruno@clisp.org>.
46648
46649 2008-04-28  Bruno Haible  <bruno@clisp.org>
46650
46651         * doc/posix-functions/strdup.texi: Mention mingw problem.
46652
46653 2008-04-27  Bruno Haible  <bruno@clisp.org>
46654
46655         * modules/stat-time-tests (Depends-on): Add sleep.
46656         * tests/test-stat-time.c (force_unlink): New function.
46657         (cleanup): Use it.
46658         (test_mtime): Remove the ctime related tests.
46659         (test_ctime): New function, containing the ctime related tests.
46660         (main): Call test_ctime, except on native Windows platforms.
46661
46662 2008-04-27  Bruno Haible  <bruno@clisp.org>
46663
46664         * lib/rpmatch.c (rpmatch): Add some comments.
46665         Reported by James Youngman <jay@gnu.org>.
46666
46667 2008-04-27  Bruno Haible  <bruno@clisp.org>
46668
46669         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46670         quiet NaNs.
46671
46672 2008-04-27  Bruno Haible  <bruno@clisp.org>
46673
46674         Make test-yesno.sh work on mingw.
46675         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46676         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46677         (main): Set stdin to binary mode.
46678         * modules/yesno-tests (Depends-on): Add binary-io.
46679
46680 2008-04-27  Bruno Haible  <bruno@clisp.org>
46681
46682         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46683         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46684         argument that lie outside the IEEE 854 domain.
46685         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46686         (gl_ISFINITE): Use it.
46687         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46688
46689 2008-04-27  Bruno Haible  <bruno@clisp.org>
46690
46691         Allow local renaming in config.h.
46692         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46693
46694 2008-04-27  Bruno Haible  <bruno@clisp.org>
46695
46696         * lib/memchr.c (__memchr): Change type of 'i'.
46697         * lib/memchr2.c (memchr2): Likewise.
46698
46699 2008-04-26  Eric Blake  <ebb9@byu.net>
46700         and Bruno Haible  <bruno@clisp.org>
46701
46702         Optimize and test memrchr.
46703         * modules/memrchr (Depends-on): Add intprops.
46704         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46705         * modules/memrchr-tests: New file.
46706         * tests/test-memrchr.c: New file.
46707
46708 2008-04-26  Bruno Haible  <bruno@clisp.org>
46709
46710         Add tentative support for DragonFly BSD.
46711         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46712         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46713         fp.
46714         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46715         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46716         * lib/fpurge.c (fpurge): Likewise.
46717         * lib/freadable.c (freaadable): Likewise.
46718         * lib/freadahead.c (freadahead): Likewise.
46719         * lib/freading.c (freading): Likewise.
46720         * lib/freadptr.c (freadptr): Likewise.
46721         * lib/freadseek.c (freadptrinc): Likewise.
46722         * lib/fseeko.c (fseeko): Likewise.
46723         * lib/fseterr.c (fseterr): Likewise.
46724         * lib/fwritable.c (fwritable): Likewise.
46725         * lib/fwriting.c (fwriting): Likewise.
46726
46727 2008-04-26  Bruno Haible  <bruno@clisp.org>
46728
46729         * lib/stdio-impl.h: New file.
46730         * lib/fbufmode.c: Include stdio-impl.h.
46731         (fbufmode): Use fp_, remove redundant #defines.
46732         * lib/fflush.c: Include stdio-impl.h.
46733         (clear_ungetc_buffer): Remove redundant #defines.
46734         * lib/fpurge.c: Include stdio-impl.h.
46735         (fpurge): Remove redundant #defines.
46736         * lib/freadable.c: Include stdio-impl.h.
46737         (freadable): Remove redundant #defines.
46738         * lib/freadahead.c: Include stdio-impl.h.
46739         (freadahead): Remove redundant #defines.
46740         * lib/freading.c: Include stdio-impl.h.
46741         (freading): Remove redundant #defines.
46742         * lib/freadptr.c: Include stdio-impl.h.
46743         (freadptr): Remove redundant #defines.
46744         * lib/freadseek.c: Include stdio-impl.h.
46745         (freadptrinc): Remove redundant #defines.
46746         * lib/fseeko.c: Include stdio-impl.h.
46747         (rpl_fseeko): Remove redundant #defines.
46748         * lib/fseterr.c: Include stdio-impl.h.
46749         (fseterr): Remove redundant #defines.
46750         * lib/fwritable.c: Include stdio-impl.h.
46751         (fwritable: Remove redundant #defines.
46752         * lib/fwriting.c: Include stdio-impl.h.
46753         (fwriting): Remove redundant #defines.
46754         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46755         * modules/fflush (Files): Likewise.
46756         * modules/fpurge (Files): Likewise.
46757         * modules/freadable (Files): Likewise.
46758         * modules/freadahead (Files): Likewise.
46759         * modules/freading (Files): Likewise.
46760         * modules/freadptr (Files): Likewise.
46761         * modules/freadseek (Files): Likewise.
46762         * modules/fseeko (Files): Likewise.
46763         * modules/fseterr (Files): Likewise.
46764         * modules/fwritable (Files): Likewise.
46765         * modules/fwriting (Files): Likewise.
46766
46767 2008-04-26  Bruno Haible  <bruno@clisp.org>
46768
46769         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46770         restore_seek_optimization, update_fpos_cache): New functions, extracted
46771         from rpl_fflush.
46772         (rpl_fflush): Use them.
46773         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46774         (gl_REPLACE_FFLUSH): Use it.
46775
46776 2008-04-26  Bruno Haible  <bruno@clisp.org>
46777
46778         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46779         on Solaris.
46780         * tests/test-xstrtoimax.sh: Likewise.
46781         * tests/test-xstrtoumax.sh: Likewise.
46782         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46783
46784 2008-04-26  Bruno Haible  <bruno@clisp.org>
46785
46786         * modules/memchr-tests: New file.
46787         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46788
46789 2008-04-26  Eric Blake  <ebb9@byu.net>
46790             Bruno Haible  <bruno@clisp.org>
46791
46792         * lib/memchr.c: Include intprops.h.
46793         (__memchr): Optimize parallel detection of matching bytes. Rename local
46794         variables. Add explanatory comments.
46795
46796 2008-04-26  Bruno Haible  <bruno@clisp.org>
46797
46798         Fix module 'memchr', broken since 2000-10-28.
46799         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46800
46801 2008-04-26  Bruno Haible  <bruno@clisp.org>
46802
46803         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46804         comments.
46805
46806 2008-04-25  Eric Blake  <ebb9@byu.net>
46807
46808         Use native fstatat on cygwin 1.7.0.
46809         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46810         first.
46811
46812 2008-04-23  Eric Blake  <ebb9@byu.net>
46813
46814         Improve memchr2 performance.
46815         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46816         NUL bytes.
46817         * modules/memchr2 (Depends-on): Use intprops.h.
46818
46819 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46820
46821         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46822         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46823         <blp@cs.stanford.edu>.
46824
46825 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46826
46827         * lib/arpa_inet.in.h: New file.
46828
46829         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46830         (Makefile.am): Sed in substitute header file.
46831
46832         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46833         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46834
46835         * modules/inet_ntop (configure.ac): Use
46836         gl_ARPA_INET_MODULE_INDICATOR.
46837
46838         * modules/inet_pton (configure.ac): Use
46839         gl_ARPA_INET_MODULE_INDICATOR.
46840
46841 2008-04-22  Jim Meyering  <meyering@redhat.com>
46842
46843         * modules/verify (License): Re-license as LGPLv2+.
46844
46845 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46846
46847         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46848         parameter to void* as per POSIX standard (MinGW uses char*).
46849
46850 2008-04-21  Bruno Haible  <bruno@clisp.org>
46851
46852         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46853         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46854         Define to replacements if REPLACE_ISWCNTRL is 1.
46855         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46856         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46857         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46858         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46859         what it fixes.
46860         * doc/posix-functions/iswalpha.texi: Likewise.
46861         * doc/posix-functions/iswblank.texi: Likewise.
46862         * doc/posix-functions/iswcntrl.texi: Likewise.
46863         * doc/posix-functions/iswdigit.texi: Likewise.
46864         * doc/posix-functions/iswgraph.texi: Likewise.
46865         * doc/posix-functions/iswlower.texi: Likewise.
46866         * doc/posix-functions/iswprint.texi: Likewise.
46867         * doc/posix-functions/iswpunct.texi: Likewise.
46868         * doc/posix-functions/iswspace.texi: Likewise.
46869         * doc/posix-functions/iswupper.texi: Likewise.
46870         * doc/posix-functions/iswxdigit.texi: Likewise.
46871         Reported by Alain Guibert.
46872
46873 2008-04-21  Bruno Haible  <bruno@clisp.org>
46874
46875         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46876         Patch by Alain Guibert.
46877
46878 2008-04-21  Bruno Haible  <bruno@clisp.org>
46879
46880         Fix test failures on mingw.
46881         * tests/test-xstrtol.c (print_no_progname): New function.
46882         (main): Install it in error_print_progname hook.
46883         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46884         * tests/test-xstrtoimax.sh: Likewise.
46885         * tests/test-xstrtoumax.sh: Likewise.
46886
46887 2008-04-21  Bruno Haible  <bruno@clisp.org>
46888
46889         Fix test failure on mingw.
46890         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46891
46892 2008-04-21  Bruno Haible  <bruno@clisp.org>
46893
46894         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46895         Actually assign a value.
46896
46897 2008-04-20  Bruno Haible  <bruno@clisp.org>
46898
46899         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46900         take 2.
46901         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46902         'canonicalize-lgpl' module is also used.
46903         * lib/canonicalize-lgpl.c: Undo last change.
46904         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46905
46906 2008-04-20  Bruno Haible  <bruno@clisp.org>
46907
46908         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46909         config.h. Provide _mkdir based fallback for mingw.
46910         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46911         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46912         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46913         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46914         rather than defining mkdir in config.h.
46915         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46916         (gl_SYS_STAT_H_DEFAULTS): New macro.
46917         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46918         HAVE_IO_H any more.
46919         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46920         HAVE_DECL_MKDIR and HAVE_IO_H.
46921
46922 2008-04-20  Bruno Haible  <bruno@clisp.org>
46923
46924         * lib/isapipe.c: Port to native Windows platforms.
46925
46926 2008-04-20  Bruno Haible  <bruno@clisp.org>
46927
46928         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46929
46930 2008-04-21  Eric Blake  <ebb9@byu.net>
46931
46932         Work around preprocessors that don't handle UINTMAX_MAX.
46933         * lib/memchr2.c (memchr2): Avoid embedded #if.
46934         Reported by Alain Guibert, fix suggested by Bruno Haible.
46935
46936 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46937
46938         * doc/posix-functions/strftime.texi (strftime): Explain better
46939         Windows incompatibility.  Suggested by Micah Cowan
46940         <micah@cowan.name>.
46941
46942 2008-04-20  Bruno Haible  <bruno@clisp.org>
46943
46944         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46945         unistr/u8-mblen.
46946
46947 2008-04-20  Bruno Haible  <bruno@clisp.org>
46948
46949         Fix test failure on platforms with non-GNU iconv.
46950         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46951         (U_TO_U8): Use it, rather than u16_to_u8.
46952         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46953         units at the end of the input string.
46954         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46955
46956 2008-04-20  Bruno Haible  <bruno@clisp.org>
46957
46958         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46959         when the resulting length is 0.
46960         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46961
46962 2008-04-20  Bruno Haible  <bruno@clisp.org>
46963
46964         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46965         works.
46966         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46967
46968 2008-04-20  Bruno Haible  <bruno@clisp.org>
46969
46970         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46971         * modules/tsearch-tests (configure.ac): Test for initstate function.
46972
46973 2008-04-20  Bruno Haible  <bruno@clisp.org>
46974
46975         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46976         for nlink_t if missing.
46977         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46978
46979 2008-04-19  Bruno Haible  <bruno@clisp.org>
46980
46981         Work around snprintf bug on Linux libc5.
46982         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46983         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46984         gl_SNPRINTF_SIZE1.
46985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46986         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46987         that test failed.
46988         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46989         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46990         * modules/snprintf (Files): Add m4/printf.m4.
46991         * modules/vsnprintf (Files): Likewise.
46992         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46993         * doc/posix-functions/vsnprintf.texi: Likewise.
46994
46995 2008-04-19  Bruno Haible  <bruno@clisp.org>
46996
46997         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46998         from 0.0058 to less than 10^-7.
46999
47000 2008-04-19  Bruno Haible  <bruno@clisp.org>
47001
47002         Fix rounding when a precision is given.
47003         * lib/vasnprintf.c (is_borderline): New function.
47004         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
47005         9...9x.
47006         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
47007         %e, %g.
47008         * tests/test-vasprintf-posix.c (test_function): Likewise.
47009         * tests/test-snprintf-posix.h (test_function): Likewise.
47010         * tests/test-sprintf-posix.h (test_function): Likewise.
47011         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
47012         * tests/test-printf-posix.h (test_function): Likewise.
47013         * tests/test-printf-posix.output: Update.
47014         Reported by John Darrington <john@darrington.wattle.id.au> via
47015         Ben Pfaff <blp@cs.stanford.edu>.
47016
47017 2008-04-18  Simon Josefsson  <simon@josefsson.org>
47018
47019         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
47020         Suggested by Bruno Haible <bruno@clisp.org>.
47021
47022 2008-04-17  Bruno Haible  <bruno@clisp.org>
47023
47024         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
47025         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
47026         implementation.
47027         Patch by Bruce Merry <bmerry@gmail.com>.
47028
47029 2008-04-17  Simon Josefsson  <simon@josefsson.org>
47030
47031         * doc/posix-functions/strftime.texi (strftime): Mention that %e
47032         doesn't work under Windows.
47033
47034 2008-04-16  Bruno Haible  <bruno@clisp.org>
47035
47036         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
47037         New macros.
47038         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
47039         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
47040         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
47041         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
47042         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
47043         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
47044         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
47045         macros.
47046         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
47047         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
47048         Northern Sotho, Uighur.
47049
47050 2008-04-16  Bruno Haible  <bruno@clisp.org>
47051
47052         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
47053         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
47054         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
47055         Reported by Daniel Bergström <daniel@octocode.com>.
47056
47057 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
47058             Bruno Haible  <bruno@clisp.org>
47059
47060         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
47061         function.
47062         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
47063         New functions, mostly extracted from gl_locale_name_default.
47064         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
47065
47066 2008-04-16  Eric Blake  <ebb9@byu.net>
47067
47068         Adjust strtod detection to catch glibc 2.7 bug.
47069         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
47070         Reported by John Gatewood Ham.
47071
47072 2008-04-16  Bruno Haible  <bruno@clisp.org>
47073
47074         Add tentative support for Linux libc5.
47075         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
47076         * lib/fpurge.c (fpurge): Likewise.
47077         * lib/freadable.c (freadable): Likewise.
47078         * lib/freadahead.c (freadahead): Likewise.
47079         * lib/freading.c (freading): Likewise.
47080         * lib/freadptr.c (freadptr): Likewise.
47081         * lib/freadseek.c (freadptrinc): Likewise.
47082         * lib/fseeko.c (rpl_fseeko): Likewise.
47083         * lib/fseterr.c (fseterr): Likewise.
47084         * lib/fwritable.c (fwritable): Likewise.
47085         * lib/fwriting.c (fwriting): Likewise.
47086         Reported by Alain Guibert <alguibert+bts@free.fr>.
47087
47088 2008-04-15  Bruno Haible  <bruno@clisp.org>
47089
47090         * modules/mathl (configure.ac): Define module indicator.
47091
47092 2008-04-15  Bruno Haible  <bruno@clisp.org>
47093
47094         * lib/logl.c (logl): Remove unused variables.
47095
47096 2008-04-15  Bruno Haible  <bruno@clisp.org>
47097
47098         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
47099         fails.
47100
47101 2008-04-15  Bruno Haible  <bruno@clisp.org>
47102
47103         * lib/trim.c (trim2): Fix argument of isspace() macro.
47104
47105 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
47106
47107         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
47108         to 0.
47109         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
47110
47111 2008-04-14  Bruno Haible  <bruno@clisp.org>
47112
47113         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
47114         AC_LANG_PROGRAM argument.
47115         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
47116         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
47117         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47118         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47119         * m4/math_h.m4 (gl_MATH_H): Likewise.
47120         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
47121         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47122         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47123         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
47124         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47125         * m4/regex.m4 (gl_REGEX): Likewise.
47126         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
47127         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
47128         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47129         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
47130         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47131         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47132         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47133         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47134
47135 2008-04-14  Jim Meyering  <meyering@redhat.com>
47136
47137         test-strtod: fix typos: s/abs/fabs/
47138         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
47139
47140 2008-04-13  Bruno Haible  <bruno@clisp.org>
47141
47142         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
47143         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
47144         module is also used and while not building the reloc-wrapper.
47145
47146 2008-04-13  Bruno Haible  <bruno@clisp.org>
47147
47148         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
47149
47150 2008-04-13  Bruno Haible  <bruno@clisp.org>
47151
47152         Fix AIX compilation failure introduced on 2008-04-02.
47153         * tests/test-frexp.c (exp): Undefine before redefining.
47154         * tests/test-frexpl.c (exp): Likewise.
47155
47156 2008-04-13  Bruno Haible  <bruno@clisp.org>
47157
47158         Work around a HP-UX stdio bug.
47159         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
47160         * tests/test-ftello.c (main): Likewise.
47161         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
47162         * doc/posix-functions/ftello.texi: Likewise.
47163
47164 2008-04-13  Bruno Haible  <bruno@clisp.org>
47165
47166         Make test-signbit pass on HP-UX/hppa.
47167         * tests/test-signbit.c (minus_zerol): New variable.
47168         (test_signbitl): Use it.
47169
47170 2008-04-13  Bruno Haible  <bruno@clisp.org>
47171
47172         Make truncl work on OSF/1 4.0.
47173         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
47174         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47175         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
47177         HAVE_DECL_TRUNCL.
47178         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
47179         HAVE_DECL_TRUNCL.
47180         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
47181
47182 2008-04-13  Bruno Haible  <bruno@clisp.org>
47183
47184         * lib/unictype.h: Remove trailing comma from enumeration definitions.
47185
47186 2008-04-13  Bruno Haible  <bruno@clisp.org>
47187
47188         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
47189         expression, so as to avoid HP-UX 11 cc compiler bug.
47190
47191 2008-04-13  Bruno Haible  <bruno@clisp.org>
47192
47193         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
47194
47195 2008-04-13  Bruno Haible  <bruno@clisp.org>
47196
47197         * lib/git-merge-changelog.c: Remove empty declaration outside of
47198         functions.
47199
47200 2008-04-13  Bruno Haible  <bruno@clisp.org>
47201
47202         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
47203
47204 2008-04-13  Bruno Haible  <bruno@clisp.org>
47205
47206         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
47207         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
47208         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
47209         also if it exists but lacks definitions of the SHUT_* macros.
47210         * modules/sys_socket (Description): Update.
47211         Reported by Elbert Pol <e.pol@chello.nl>.
47212
47213 2008-04-13  Bruno Haible  <bruno@clisp.org>
47214
47215         * lib/localcharset.c (OS2): Don't redefine if already defined.
47216         Reported by Elbert Pol <e.pol@chello.nl>.
47217
47218 2008-04-13  Bruno Haible  <bruno@clisp.org>
47219
47220         * lib/binary-io.h [__EMX__]: Include <io.h>.
47221         Reported by Elbert Pol <e.pol@chello.nl>.
47222
47223 2008-04-12  Bruno Haible  <bruno@clisp.org>
47224
47225         * lib/fpucw.h: Enable the definitions also for x86_64.
47226         Needed for NetBSD/x86_64.
47227         Reported by Thomas Klausner <tk@giga.or.at>.
47228
47229 2008-04-12  Bruno Haible  <bruno@clisp.org>
47230
47231         * tests/test-strtod.c: Include isnand.h.
47232         (main): Use isnand instead of isnan.
47233         Reported by Jim Meyering.
47234
47235 2008-04-12  Bruno Haible  <bruno@clisp.org>
47236
47237         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
47238         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47239
47240 2008-04-12  Jim Meyering  <meyering@redhat.com>
47241
47242         * m4/math_h.m4 (gl_MATH_H): Fix typos.
47243
47244 2008-04-12  Bruno Haible  <bruno@clisp.org>
47245
47246         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
47247         Reported by Elbert Pol <e.pol@chello.nl>.
47248
47249 2008-04-12  Eric Blake  <ebb9@byu.net>
47250
47251         Work around Solaris 10 math.h bug.
47252         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47253         (gl_MATH_H_DEFAULTS): Set up default.
47254         * modules/math (Makefile.am): Replace new indicators.
47255         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47256         * tests/test-math.c (main): Test this.
47257         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47258         * doc/posix-headers/math.texi (math.h): Mention bug.
47259         Reported by Nelson H. F. Beebe and Jim Meyering.
47260
47261 2008-04-11  Bruno Haible  <bruno@clisp.org>
47262
47263         Adapt to future versions of Apple GCC.
47264         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47265         Reported by Peter O'Gorman <peter@pogma.com>.
47266
47267 2008-04-11  Bruno Haible  <bruno@clisp.org>
47268
47269         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47270
47271 2008-04-11  Bruno Haible  <bruno@clisp.org>
47272
47273         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47274
47275         * modules/getaddrinfo-tests (Makefile.am): Define
47276         test_getaddrinfo_LDADD.
47277
47278 2008-04-11  Bruno Haible  <bruno@clisp.org>
47279
47280         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47281         (init): Fix syntax error.
47282         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47283         is declared.
47284
47285 2008-04-11  Bruno Haible  <bruno@clisp.org>
47286
47287         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47288         * modules/glob (Depends-on): Add stdbool.
47289
47290 2008-04-11  Bruno Haible  <bruno@clisp.org>
47291
47292         * lib/trim.c: Include <string.h>.
47293
47294 2008-04-11  Eric Blake  <ebb9@byu.net>
47295
47296         Avoid compile failure on OS/2.
47297         * lib/regex_internal.h (internal_function): Disable optimization
47298         on OS/2 (__EMX__), where it caused compiler error.
47299         Reported by Elbert Pol.
47300
47301 2008-04-11  Bruno Haible  <bruno@clisp.org>
47302
47303         Flush the standard error stream before aborting. Needed on mingw.
47304         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47305         * tests/test-array_list.c (ASSERT): Likewise.
47306         * tests/test-array_oset.c (ASSERT): Likewise.
47307         * tests/test-avltree_list.c (ASSERT): Likewise.
47308         * tests/test-avltree_oset.c (ASSERT): Likewise.
47309         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47310         * tests/test-binary-io.c (ASSERT): Likewise.
47311         * tests/test-byteswap.c (ASSERT): Likewise.
47312         * tests/test-c-ctype.c (ASSERT): Likewise.
47313         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47314         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47315         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47316         * tests/test-c-strstr.c (ASSERT): Likewise.
47317         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47318         * tests/test-canonicalize.c (ASSERT): Likewise.
47319         * tests/test-carray_list.c (ASSERT): Likewise.
47320         * tests/test-ceilf1.c (ASSERT): Likewise.
47321         * tests/test-ceilf2.c (ASSERT): Likewise.
47322         * tests/test-ceill.c (ASSERT): Likewise.
47323         * tests/test-count-one-bits.c (ASSERT): Likewise.
47324         * tests/test-fbufmode.c (ASSERT): Likewise.
47325         * tests/test-fflush2.c (ASSERT): Likewise.
47326         * tests/test-floorf1.c (ASSERT): Likewise.
47327         * tests/test-floorf2.c (ASSERT): Likewise.
47328         * tests/test-floorl.c (ASSERT): Likewise.
47329         * tests/test-fopen.c (ASSERT): Likewise.
47330         * tests/test-fpending.c (ASSERT): Likewise.
47331         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47332         * tests/test-fpurge.c (ASSERT): Likewise.
47333         * tests/test-freadable.c (ASSERT): Likewise.
47334         * tests/test-freadahead.c (ASSERT): Likewise.
47335         * tests/test-freading.c (ASSERT): Likewise.
47336         * tests/test-freadptr.c (ASSERT): Likewise.
47337         * tests/test-freadptr2.c (ASSERT): Likewise.
47338         * tests/test-freadseek.c (ASSERT): Likewise.
47339         * tests/test-freopen.c (ASSERT): Likewise.
47340         * tests/test-frexp.c (ASSERT): Likewise.
47341         * tests/test-frexpl.c (ASSERT): Likewise.
47342         * tests/test-fseek.c (ASSERT): Likewise.
47343         * tests/test-fseeko.c (ASSERT): Likewise.
47344         * tests/test-fstrcmp.c (ASSERT): Likewise.
47345         * tests/test-ftell.c (ASSERT): Likewise.
47346         * tests/test-ftello.c (ASSERT): Likewise.
47347         * tests/test-func.c (ASSERT): Likewise.
47348         * tests/test-fwritable.c (ASSERT): Likewise.
47349         * tests/test-fwriting.c (ASSERT): Likewise.
47350         * tests/test-getdelim.c (ASSERT): Likewise.
47351         * tests/test-getline.c (ASSERT): Likewise.
47352         * tests/test-i-ring.c (ASSERT): Likewise.
47353         * tests/test-iconv-utf.c (ASSERT): Likewise.
47354         * tests/test-iconv.c (ASSERT): Likewise.
47355         * tests/test-isfinite.c (ASSERT): Likewise.
47356         * tests/test-isnand.c (ASSERT): Likewise.
47357         * tests/test-isnanf.c (ASSERT): Likewise.
47358         * tests/test-isnanl.h (ASSERT): Likewise.
47359         * tests/test-ldexpl.c (ASSERT): Likewise.
47360         * tests/test-linked_list.c (ASSERT): Likewise.
47361         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47362         * tests/test-localename.c (ASSERT): Likewise.
47363         * tests/test-lseek.c (ASSERT): Likewise.
47364         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47365         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47366         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47367         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47368         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47369         * tests/test-mbschr.c (ASSERT): Likewise.
47370         * tests/test-mbscspn.c (ASSERT): Likewise.
47371         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47372         * tests/test-mbspbrk.c (ASSERT): Likewise.
47373         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47374         * tests/test-mbsrchr.c (ASSERT): Likewise.
47375         * tests/test-mbsspn.c (ASSERT): Likewise.
47376         * tests/test-mbsstr1.c (ASSERT): Likewise.
47377         * tests/test-mbsstr2.c (ASSERT): Likewise.
47378         * tests/test-mbsstr3.c (ASSERT): Likewise.
47379         * tests/test-memchr2.c (ASSERT): Likewise.
47380         * tests/test-memmem.c (ASSERT): Likewise.
47381         * tests/test-open.c (ASSERT): Likewise.
47382         * tests/test-printf-frexp.c (ASSERT): Likewise.
47383         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47384         * tests/test-printf-posix.c (ASSERT): Likewise.
47385         * tests/test-quotearg.c (ASSERT): Likewise.
47386         * tests/test-rbtree_list.c (ASSERT): Likewise.
47387         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47388         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47389         * tests/test-round1.c (ASSERT): Likewise.
47390         * tests/test-roundf1.c (ASSERT): Likewise.
47391         * tests/test-roundl.c (ASSERT): Likewise.
47392         * tests/test-signbit.c (ASSERT): Likewise.
47393         * tests/test-sleep.c (ASSERT): Likewise.
47394         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47395         * tests/test-snprintf.c (ASSERT): Likewise.
47396         * tests/test-sprintf-posix.c (ASSERT): Likewise.
47397         * tests/test-stat-time.c (ASSERT): Likewise.
47398         * tests/test-strcasestr.c (ASSERT): Likewise.
47399         * tests/test-strerror.c (ASSERT): Likewise.
47400         * tests/test-striconv.c (ASSERT): Likewise.
47401         * tests/test-striconveh.c (ASSERT): Likewise.
47402         * tests/test-striconveha.c (ASSERT): Likewise.
47403         * tests/test-strsignal.c (ASSERT): Likewise.
47404         * tests/test-strstr.c (ASSERT): Likewise.
47405         * tests/test-strtod.c (ASSERT): Likewise.
47406         * tests/test-trunc1.c (ASSERT): Likewise.
47407         * tests/test-trunc2.c (ASSERT): Likewise.
47408         * tests/test-truncf1.c (ASSERT): Likewise.
47409         * tests/test-truncf2.c (ASSERT): Likewise.
47410         * tests/test-truncl.c (ASSERT): Likewise.
47411         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
47412         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
47413         * tests/test-vasnprintf.c (ASSERT): Likewise.
47414         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
47415         * tests/test-vasprintf.c (ASSERT): Likewise.
47416         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
47417         * tests/test-vprintf-posix.c (ASSERT): Likewise.
47418         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
47419         * tests/test-vsnprintf.c (ASSERT): Likewise.
47420         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
47421         * tests/test-wcwidth.c (ASSERT): Likewise.
47422         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
47423         * tests/test-xprintf-posix.c (ASSERT): Likewise.
47424         * tests/test-xvasprintf.c (ASSERT): Likewise.
47425         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
47426         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
47427         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
47428         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
47429         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
47430         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
47431         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
47432         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
47433         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
47434         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
47435         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
47436         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
47437         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
47438         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
47439         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
47440         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
47441         * tests/unictype/test-block_list.c (ASSERT): Likewise.
47442         * tests/unictype/test-block_of.c (ASSERT): Likewise.
47443         * tests/unictype/test-block_test.c (ASSERT): Likewise.
47444         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
47445         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
47446         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
47447         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
47448         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
47449         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
47450         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
47451         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
47452         * tests/unictype/test-combining.c (ASSERT): Likewise.
47453         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
47454         * tests/unictype/test-digit.c (ASSERT): Likewise.
47455         * tests/unictype/test-mirror.c (ASSERT): Likewise.
47456         * tests/unictype/test-numeric.c (ASSERT): Likewise.
47457         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
47458         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
47459         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
47460         * tests/unictype/test-scripts.c (ASSERT): Likewise.
47461         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
47462         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
47463         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
47464         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
47465         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
47466         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
47467         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
47468         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
47469         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
47470         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
47471         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
47472         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
47473         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
47474         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
47475         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
47476         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
47477         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
47478         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
47479         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47480         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47481         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47482         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47483         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47484         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47485         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47486         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47487         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47488         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47489         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47490         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47491         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47492         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47493         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47494         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47495         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47496         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47497         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47498         Reported by Eric Blake.
47499
47500 2008-04-11  Bruno Haible  <bruno@clisp.org>
47501
47502         * lib/wchar.in.h: Tweak comment.
47503
47504 2008-04-11  Bruno Haible  <bruno@clisp.org>
47505
47506         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47507         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47508         gl_COMMON.
47509         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47510
47511 2008-04-11  Bruno Haible  <bruno@clisp.org>
47512
47513         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47514
47515 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47516
47517         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47518         of attempting to use non-existing /dev/*random.  Based on patch
47519         from Adam Strzelecki <ono@java.pl> in
47520         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47521
47522 2008-04-08  Bruno Haible  <bruno@clisp.org>
47523
47524         Add tentative support for emx+gcc.
47525         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47526         * lib/fpurge.c (fpurge): Likewise.
47527         * lib/freadable.c (freadable): Likewise.
47528         * lib/freadahead.c (freadahead): Likewise.
47529         * lib/freading.c (freading): Likewise.
47530         * lib/freadptr.c (freadptr): Likewise.
47531         * lib/freadseek.c (freadptrinc): Likewise.
47532         * lib/fseeko.c (rpl_fseeko): Likewise.
47533         * lib/fseterr.c (fseterr): Likewise.
47534         * lib/fwritable.c (fwritable): Likewise.
47535         * lib/fwriting.c (fwriting): Likewise.
47536         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47537
47538 2008-04-09  Eric Blake  <ebb9@byu.net>
47539
47540         Avoid some autoconf warnings.
47541         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47542         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47543         * m4/afs.m4 (gl_AFS): Likewise.
47544         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47545         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47546         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47547         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47548         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47549         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47550         (AC_CHECK_DECLS_ONCE): Likewise.
47551         Rename file...
47552         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47553         gnulib-tool requires autoconf 2.59 or better.
47554         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47555
47556 2008-04-08  Eric Blake  <ebb9@byu.net>
47557
47558         Use 'git describe --match' if present (added in git 1.5.5).
47559         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47560         if possible.
47561
47562 2008-04-08  Bruno Haible  <bruno@clisp.org>
47563
47564         Add tentative support for OpenServer.
47565         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47566         _ptr, _cnt.
47567         * lib/fpurge.c (fpurge): Likewise.
47568         * lib/freadable.c (freadable): Likewise.
47569         * lib/freadahead.c (freadahead): Likewise.
47570         * lib/freading.c (freading): Likewise.
47571         * lib/freadptr.c (freadptr): Likewise.
47572         * lib/freadseek.c (freadptrinc): Likewise.
47573         * lib/fseeko.c (rpl_fseeko): Likewise.
47574         * lib/fseterr.c (fseterr): Likewise.
47575         * lib/fwritable.c (fwritable): Likewise.
47576         * lib/fwriting.c (fwriting): Likewise.
47577         Reported by Roger Cornelius <rac@tenzing.org> and
47578         Brian K. White <brian@aljex.com>.
47579
47580 2008-04-06  Jim Meyering  <meyering@redhat.com>
47581
47582         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47583
47584 2008-04-06  Bruno Haible  <bruno@clisp.org>
47585
47586         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47587         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47588         * tests/test-printf-posix.sh: Likewise.
47589         * tests/test-vfprintf-posix.sh: Likewise.
47590         * tests/test-vprintf-posix.sh: Likewise.
47591         * tests/test-xprintf-posix.sh: Likewise.
47592
47593 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47594
47595         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47596         hide error from 'ls', needed on OS/2.
47597         Report by Elbert Pol <elbert.pol@gmail.com>.
47598
47599 2008-04-04  Eric Blake  <ebb9@byu.net>
47600
47601         Make test-fseeko.c failures meaningful.
47602         * tests/test-fseeko.c: Print line number on failure.
47603         * tests/test-fseek.c: Likewise.
47604         Reported by Nelson H. F. Beebe.
47605
47606         Improve strtod bug detection check.
47607         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47608         required for Solaris 10.
47609         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47610
47611 2008-04-04  Bruno Haible  <bruno@clisp.org>
47612
47613         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47614         by m4/setenv.m4.
47615
47616 2008-04-03  Eric Blake  <ebb9@byu.net>
47617
47618         Ensure sane .version contents.
47619         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47620         version string.
47621         * build-aux/git-version-gen: Improve documentation.
47622
47623         Make GNU make output nicer.
47624         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47625         MAKECMDGOALS to enforce message for all command line targets.  Set
47626         srcdir for use in maint.mk.
47627
47628         Another maintainer tweak.
47629         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47630         a target that regenerates version.
47631
47632 2008-04-03  Jim Meyering  <meyering@redhat.com>
47633
47634         vc-list-files: don't cause coreutils "make po-check" failure
47635         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47636
47637 2008-04-03  Eric Blake  <ebb9@byu.net>
47638
47639         Allow VPATH usage of vc-list-files.
47640         * build-aux/vc-list-files (scriptversion): Add timestamp.
47641         (options): Add --help, --version, -C.
47642         (CVS): Support installed cvsu.
47643
47644 2008-04-02  Bruno Haible  <bruno@clisp.org>
47645
47646         Avoid some "statement with no effect" warnings from gcc.
47647         * tests/test-wctype.c (main): Explicitly ignore unused values.
47648         Reported by Jim Meyering.
47649
47650 2008-04-02  Jim Meyering  <meyering@redhat.com>
47651
47652         Avoid some warnings from "gcc -Wshadow".
47653         * tests/test-frexp.c (exp): Define to a different identifier.
47654         * tests/test-frexpl.c (exp): Likewise.
47655
47656 2008-04-03  Jim Meyering  <meyering@redhat.com>
47657
47658         bootstrap: remove dangling *.[ch] symlinks from lib
47659         * build-aux/bootstrap [dangling symlink removal]: Move find's
47660         -depth option to precede all others, to avoid a warning.
47661         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47662
47663 2008-04-02  Bruno Haible  <bruno@clisp.org>
47664
47665         Avoid some warnings from "gcc -Wshadow".
47666         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47667         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47668         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47669         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47670         Reported by Jim Meyering.
47671
47672 2008-04-01  Bruno Haible  <bruno@clisp.org>
47673
47674         Fix test to work on IRIX 6.5 with cc.
47675         * tests/test-math.c (numeric_equal): New function.
47676         (main): Use it.
47677
47678 2008-04-01  Bruno Haible  <bruno@clisp.org>
47679
47680         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47681
47682 2008-04-01  Bruno Haible  <bruno@clisp.org>
47683
47684         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47685         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47686         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47687         (Depends-on): Remove math.
47688
47689         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47690         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47691         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47692         (Depends-on): Remove math.
47693
47694         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47695         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47696         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47697         (Depends-on): Remove math.
47698         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47699         (Depends-on): Remove math.
47700
47701         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47702         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47703         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47704         (Depends-on): Remove math.
47705         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47706         (Depends-on): Remove math.
47707
47708         * tests/test-round1.c: Include nan.h.
47709         (main): Use NaNd instead of NAN.
47710         * modules/round-tests (Files): Add tests/nan.h.
47711
47712         * tests/test-trunc1.c: Include nan.h.
47713         (main): Use NaNd instead of NAN.
47714         * modules/trunc-tests (Files): Add tests/nan.h.
47715
47716         * tests/test-roundf1.c: Include nan.h.
47717         (main): Use NaNf instead of NAN.
47718         * modules/roundf-tests (Files): Add tests/nan.h.
47719
47720         * tests/test-truncf1.c: Include nan.h.
47721         (main): Use NaNf instead of NAN.
47722         * modules/truncf-tests (Files): Add tests/nan.h.
47723
47724         * tests/test-ceilf1.c: Include nan.h.
47725         (main): Use NaNf instead of NAN.
47726         * modules/ceilf-tests (Files): Add tests/nan.h.
47727
47728         * tests/test-floorf1.c: Include nan.h.
47729         (main): Use NaNf instead of NAN.
47730         * modules/floorf-tests (Files): Add tests/nan.h.
47731
47732         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47733         (main): Use NaNf instead of NAN.
47734         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47735
47736         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47737         (main): Use NaNd instead of NAN.
47738         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47739
47740         * tests/test-frexp.c: Include nan.h.
47741         (main): Use NaNd instead of NAN.
47742         * modules/frexp-tests (Files): Add tests/nan.h.
47743
47744         * lib/isnan.c: Don't include <math.h>.
47745         (FUNC): Don't use NAN macro.
47746         * modules/isnand-nolibm (Depends-on): Remove math.
47747         * modules/isnanf-nolibm (Depends-on): Remove math.
47748         * modules/isnanl (Depends-on): Remove math.
47749         * modules/isnanl-nolibm (Depends-on): Remove math.
47750
47751         * tests/nan.h: New file.
47752
47753 2008-04-01  Eric Blake  <ebb9@byu.net>
47754
47755         Fix typos.
47756         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47757         values to be the right type.
47758
47759         For now, cater to gnulib strtod inaccuracies.
47760         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47761         fractional results.  While not as nice from a QoI perspective, it
47762         is a quicker patch than correctly implementing decimal to binary
47763         rounding.
47764
47765 2008-03-31  Eric Blake  <ebb9@byu.net>
47766
47767         Guarantee a definition of NAN.
47768         * lib/math.in.h (NAN): Define if missing.
47769         * tests/test-math.c (main): Test it.
47770         * doc/posix-headers/math.texi (math.h): Document this.
47771         * lib/isnan.c (rpl_isnand): Use it.
47772         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47773         * tests/test-floorf1.c (NaN): Likewise.
47774         * tests/test-frexp.c (NaN): Likewise.
47775         * tests/test-isnand.c (NaN): Likewise.
47776         * tests/test-isnanf.c (NaN): Likewise.
47777         * tests/test-round1.c (NaN): Likewise.
47778         * tests/test-roundf1.c (NaN): Likewise.
47779         * tests/test-snprintf-posix.h (NaN): Likewise.
47780         * tests/test-sprintf-posix.h (NaN): Likewise.
47781         * tests/test-trunc1.c (NaN): Likewise.
47782         * tests/test-truncf1.c (NaN): Likewise.
47783         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47784         * tests/test-vasprintf-posix.c (NaN): Likewise.
47785         * modules/isnand-nolibm (Depends-on): Add math.
47786         * modules/isnanf-nolibm (Depends-on): Likewise.
47787         * modules/isnanl (Depends-on): Likewise.
47788         * modules/isnanl-nolibm (Depends-on): Likewise.
47789         * modules/snprintf-posix-tests (Depends-on): Likewise.
47790         * modules/sprintf-posix-tests (Depends-on): Likewise.
47791         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47792         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47793         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47794         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47795
47796 2008-03-31  Bruno Haible  <bruno@clisp.org>
47797
47798         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47799         * doc/posix-functions/strtod.texi: Likewise.
47800
47801 2008-03-31  Bruno Haible  <bruno@clisp.org>
47802
47803         * tests/test-strtod.c (main): Don't use C99 syntax.
47804
47805 2008-03-31  Bruno Haible  <bruno@clisp.org>
47806
47807         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47808         Reported by Eric Blake.
47809
47810 2008-03-31  Jim Meyering  <meyering@redhat.com>
47811
47812         Don't compare actual signbit return values.
47813         * tests/test-strtod.c (main): Rather, compare only their
47814         zero/non-zero nature.
47815
47816 2008-03-31  Eric Blake  <ebb9@byu.net>
47817
47818         More strtod documentation.
47819         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47820         failures as distinct bugs.
47821
47822 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47823
47824         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47825         Problem reported by Erik Benada in
47826         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47827
47828 2008-03-30  Bruno Haible  <bruno@clisp.org>
47829
47830         * tests/test-strtod.c: Add comments about which assertion fails on which
47831         platform.
47832         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47833
47834 2008-03-30  Eric Blake  <ebb9@byu.net>
47835
47836         Test signbit behavior on zeros.
47837         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47838         (test_signbitd, test_signbitl): Likewise.
47839
47840         More strtod touchups.
47841         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47842         sign of negative underflow, for now.  Use .5, not .1.
47843         * doc/posix-functions/strtod.texi (strtod): Mention these
47844         limitations.
47845         Reported by Jim Meyering.
47846
47847 2008-03-30  Bruno Haible  <bruno@clisp.org>
47848
47849         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47850         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47851
47852 2008-03-30  Bruno Haible  <bruno@clisp.org>
47853
47854         Avoid failure when attempting to return empty iconv results on some
47855         platforms.
47856         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47857         allocation, don't report ENOMEM when the resulting string is empty.
47858
47859 2008-03-30  Bruno Haible  <bruno@clisp.org>
47860
47861         Fix buffer overrun.
47862         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47863         Don't consider the width for tmp_length. Check count against tmp_length
47864         before doing the padding. Ensure enough allocation during padding.
47865
47866 2008-03-30  Eric Blake  <ebb9@byu.net>
47867
47868         strtod touchups.
47869         * lib/strtod.c (strtod): Avoid compiler warnings.
47870         Reported by Jim Meyering.
47871
47872 2008-03-30  Bruno Haible  <bruno@clisp.org>
47873
47874         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47875         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47876         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47877         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47878         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47879         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47880         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47881         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47882
47883         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47884         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47885         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47886         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47887         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47888         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47889         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47890         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47891
47892         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47893         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47894         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47895         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47896         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47897         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47898         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47899         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47900
47901         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47902         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47903
47904         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47905         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47906
47907         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47908         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47909
47910         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47911         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47912         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47913
47914         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47915         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47916         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47917
47918         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47919         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47920         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47921
47922         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47923         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47924         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47925
47926         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47927         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47928         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47929         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47930         (Depends-on): Add EOVERFLOW.
47931         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47932         (Depends-on): Add EOVERFLOW.
47933         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47934         (Depends-on): Add EOVERFLOW.
47935         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47936         (Depends-on): Add EOVERFLOW.
47937         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47938         (Depends-on): Add EOVERFLOW.
47939         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47940         (Depends-on): Add EOVERFLOW.
47941         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47942         (Depends-on): Add EOVERFLOW.
47943         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47944         (Depends-on): Add EOVERFLOW.
47945
47946         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47947         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47948         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47949
47950         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47951         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47952         * modules/snprintf (Depends-on): Add EOVERFLOW.
47953
47954         * lib/poll.c (EOVERFLOW): Remove fallback.
47955         * modules/poll (Depends-on): Add EOVERFLOW.
47956
47957         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47958         * modules/getugroups (Depends-on): Add EOVERFLOW.
47959
47960         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47961         * modules/getdelim (Depends-on): Add EOVERFLOW.
47962
47963         * lib/ftell.c (EOVERFLOW): Remove fallback.
47964         * modules/ftell (Depends-on): Add EOVERFLOW.
47965
47966         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47967         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47968         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47969
47970         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47971
47972         * modules/EOVERFLOW-tests: New file.
47973         * tests/test-EOVERFLOW.c: New file.
47974
47975         * modules/EOVERFLOW: New file.
47976         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47977
47978 2008-03-30  Bruno Haible  <bruno@clisp.org>
47979
47980         Fix bug introduced on 2007-06-10.
47981         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47982         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47983
47984 2008-03-30  Bruno Haible  <bruno@clisp.org>
47985
47986         Improve freadseek's efficiency after ungetc.
47987         * lib/freadseek.c: Include freadahead.h.
47988         (freadptrinc): New function, extracted from freadseek.
47989         (freadseek): Use it in a loop. Use freadahead to determine the number
47990         of loop iterations.
47991         * modules/freadseek (Depends-on): Add freadahead.
47992         (configure.ac): Require AC_C_INLINE.
47993
47994 2008-03-30  Bruno Haible  <bruno@clisp.org>
47995
47996         * lib/freadseek.c (freadseek): Don't ignore the return value of
47997         freadptr.
47998
47999 2008-03-29  Eric Blake  <ebb9@byu.net>
48000
48001         Add hex float support.
48002         * modules/strtod (Depends-on): Add c-ctype.
48003         (Link): Mention POW_LIB.
48004         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
48005         whitespace between 'e' and exponent.
48006         * tests/test-strtod.c (main): Enable hex float tests.
48007         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
48008         now provides.
48009
48010         Document various strtod bugs, with some fixes.
48011         * doc/posix-functions/strtod.texi (strtod): Document bugs with
48012         "-0x", "inf", "nan", and hex constants.
48013         * doc/posix-functions/atof.texi (atof): Likewise.
48014         * modules/stdlib (Makefile.am): Support strtod.
48015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
48016         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
48017         detect additional strtod bugs.
48018         * lib/stdlib.in.h (rpl_strtod): Add declarations.
48019         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
48020         bool where appropriate.  Parse 'inf' and 'nan'.
48021         * tests/test-strtod.c: New file.
48022         * modules/strtod (Depends-on): Add stdbool, stdlib.
48023         (configure.ac): Turn on module indicator.
48024         * modules/strtod-tests: New module.
48025
48026 2008-03-29  Eric Blake  <ebb9@byu.net>
48027
48028         Fix ftell on mingw.
48029         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
48030         * modules/ftell-tests (Depends-on): Add binary-io.
48031         * modules/ftello-tests (Depends-on): Likewise.
48032         * tests/test-ftell.c (main): Enhance test to cover behavior after
48033         ungetc.  Enforce binary mode.
48034         * tests/test-ftello.c (main): Likewise.
48035
48036         Pass test-freadseek on cygwin.
48037         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
48038         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
48039         ungetc buffer.
48040
48041         * tests/test-fflush2.c (main): Fix typo.
48042
48043 2008-03-29  Bruno Haible  <bruno@clisp.org>
48044
48045         * tests/test-fflush2.c (main): Temporarily disable the contents of
48046         this test.
48047         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
48048         Reported by Eric Blake.
48049
48050 2008-03-28  Simon Josefsson  <simon@josefsson.org>
48051
48052         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
48053         (GC_SHA224_DIGEST_SIZE): Add.
48054
48055         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
48056         (gc_hash_digest_length): Likewise.
48057         (gc_hash_buffer): Likewise.
48058
48059 2008-03-25  Bruno Haible  <bruno@clisp.org>
48060
48061         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
48062         detail which gettext release to use.
48063         Reported by Simon Josefsson.
48064
48065 2008-03-26  Jim Meyering  <meyering@redhat.com>
48066
48067         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
48068         * modules/gnumakefile (clean-GNUmakefile): Also, use
48069         test ... && ... || : syntax rather than if-then ... fi.
48070
48071         gnumakefile: Don't double-quote-expand $(VPATH) value.
48072         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
48073
48074 2008-03-24  Eric Blake  <ebb9@byu.net>
48075
48076         Alter GNUmakefile to install into top directory.
48077         * modules/maintainer-makefile: Split, and add dependency...
48078         * modules/gnumakefile: to this new module.
48079         * build-aux/GNUmakefile: Move...
48080         * top/GNUmakefile: ...here.
48081         * build-aux/maint.mk: Move...
48082         * top/maint.mk: ...here.
48083         * MODULES.html.sh (Support for maintaining...): Document new
48084         module.
48085
48086 2008-03-23  Bruno Haible  <bruno@clisp.org>
48087
48088         * gnulib-tool: New options --vc-files, --no-vc-files.
48089         (func_usage): Document them.
48090         (vc_files): New variable.
48091         (func_import): Consider vc_files.
48092         (func_create_testdir): Set vc_files to empty.
48093         Suggested by Jim Meyering and Karl Berry.
48094
48095 2008-03-23  Bruno Haible  <bruno@clisp.org>
48096
48097         Fix regex compilation error on HP-UX 11.
48098         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
48099         * modules/regex (Files): Add m4/mbstate_t.m4.
48100         Reported by Ton Voon <ton.voon@altinity.com>.
48101
48102 2008-03-23  Bruno Haible  <bruno@clisp.org>
48103
48104         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
48105
48106 2008-03-23  Eric Blake  <ebb9@byu.net>
48107             Bruno Haible  <bruno@clisp.org>
48108
48109         Install files from top/ in the destination directory.
48110         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48111         augmentation also for the files from top/.
48112         (func_import, func_create_testdir): Rewrite file names:
48113         top/filename -> filename.
48114
48115 2008-03-23  Bruno Haible  <bruno@clisp.org>
48116
48117         Tweak "gnulib --version" output.
48118         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
48119
48120 2008-03-23  Bruno Haible  <bruno@clisp.org>
48121
48122         Tweak "gnulib --version" output.
48123         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
48124         rather than contents of ChangeLog, when possible.
48125
48126 2008-03-21  Eric Blake  <ebb9@byu.net>
48127
48128         More --version tweaks.
48129         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
48130         date of last ChangeLog entry.
48131
48132 2008-03-21  Jim Meyering  <meyering@redhat.com>
48133
48134         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
48135
48136 2008-03-20  Eric Blake  <ebb9@byu.net>
48137
48138         VPATH fix.
48139         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
48140
48141 2008-03-20  Simon Josefsson  <simon@josefsson.org>
48142
48143         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
48144         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
48145
48146 2008-03-20  Eric Blake  <ebb9@byu.net>
48147
48148         Sync GNUmakefile with coreutils.
48149         * build-aux/GNUmakefile (have-Makefile): Rename...
48150         (_have-Makefile): ...to this, for namespace consideration.
48151         (GNUmakefile.cfg): Include, if present.
48152         (_autoreconf): Define a default.
48153         (_is-dist-target): New rule for rebuilds to pick up intra-release
48154         version.
48155         (maint-cfg.mk): Rename...
48156         (cfg.mk): ...to this.
48157
48158 2008-03-18  Jim Meyering  <meyering@redhat.com>
48159
48160         New script and module: mktempd
48161         * MODULES.html.sh (maint+release support): Add mktempd.
48162         * build-aux/mktempd: New file.
48163         * modules/mktempd: New file.
48164
48165 2008-03-15  Jim Meyering  <meyering@redhat.com>
48166
48167         Undo last change.
48168         * lib/sha1.c, lib/md5.c: 63 != ~63.
48169         Reported by Andreas Schwab.
48170
48171         sha1.c, md5.c: Hoist a redundant expression.
48172         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
48173         "ctx->buflen" only once, before calling *_process_block.
48174         * lib/md5.c (md5_process_bytes): Likewise.
48175
48176 2008-03-14  Eric Blake  <ebb9@byu.net>
48177
48178         Bump copyright year in files generated by gnulib-tool.
48179         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
48180         gnulib-tool, rather than hard-coding it.
48181
48182         Fix 'gnulib-tool --version' output to work with git.
48183         * gnulib-tool (func_gnulib_dir): New function, extracted from...
48184         (startup): ...here.
48185         (func_version): Use it to invoke git-version-gen, rather than
48186         relying on CVS keyword expansion.  Modernize wording.
48187         (cvsdatestamp, last_checkin_date, version): Kill unused
48188         variables.
48189
48190 2008-03-12  Jim Meyering  <meyering@redhat.com>
48191
48192         Recognize optional cast of the argument to free.
48193         * build-aux/useless-if-before-free: Update regexps.
48194
48195         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
48196
48197 2008-03-11  Bruno Haible  <bruno@clisp.org>
48198
48199         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
48200         by a single package.
48201         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
48202         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
48203         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
48204         Reported by Sam Steingold <sds@gnu.org>.
48205
48206 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48207
48208         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
48209         repositories.
48210
48211 2008-03-11  Bruno Haible  <bruno@clisp.org>
48212
48213         Avoid conflicts between local macro definitions.
48214         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48215         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
48216
48217 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
48218             Bruno Haible  <bruno@clisp.org>
48219
48220         Make va_copy work with some version of xlc on AIX 5.1.
48221         * lib/stdarg.in.h: New file.
48222         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
48223         On AIX, use a <stdarg.h> file substitute.
48224         * modules/stdarg (Files): Add lib/stdarg.in.h.
48225         (Depends-on): Add include_next.
48226         (Makefile.am): Build a stdarg.h substitute if requested.
48227         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
48228
48229 2008-03-10  Bruno Haible  <bruno@clisp.org>
48230
48231         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
48232         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48233         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48234
48235 2008-03-10  Bruno Haible  <bruno@clisp.org>
48236
48237         * modules/stdlib (Depends-on): Add include_next, remove
48238         absolute-header.
48239
48240 2008-03-09  Bruno Haible  <bruno@clisp.org>
48241
48242         * lib/freadahead.h (freadahead): Document more precisely.
48243         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
48244         the sum of both buffer sizes.
48245         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
48246         * NEWS: Document the change.
48247
48248 2008-03-09  Bruno Haible  <bruno@clisp.org>
48249
48250         Extend freadptr to return also the buffer size.
48251         * lib/freadptr.h (freadptr): Add sizep argument.
48252         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48253         (freadptr): Add sizep argument. Determine buffer size like freadahead
48254         does.
48255         * tests/test-freadptr.c: Don't include freadahead.h.
48256         (main): Adapt for new calling convention of freadptr.
48257         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48258         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48259         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48260         tests/test-freadptr2.sh.
48261         (Depends): Remove freadahead.
48262         (TESTS): Add test-freadptr2.sh.
48263         (check_PROGRAMS): Add test-freadptr2.
48264
48265 2008-03-09  Bruno Haible  <bruno@clisp.org>
48266
48267         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48268         Report and solution by Simon Josefsson.
48269
48270 2008-03-06  Bruno Haible  <bruno@clisp.org>
48271
48272         Make fflush after ungetc work on BSD platforms.
48273         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48274         * tests/test-fflush2.c: New file.
48275         * tests/test-fflush2.sh: New file.
48276         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48277         tests/test-fflush2.c.
48278         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48279         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48280
48281 2008-03-06  Eric Blake  <ebb9@byu.net>
48282
48283         Likewise for ftello.
48284         * modules/ftello (Dependencies): Add extensions.
48285         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48286
48287 2008-03-06  Bruno Haible  <bruno@clisp.org>
48288
48289         * modules/fseeko (Dependencies): Add extensions.
48290         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48291         Needed on glibc systems.
48292
48293 2008-03-06  Bruno Haible  <bruno@clisp.org>
48294
48295         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48296         email address.
48297         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48298
48299 2008-03-06  Bruno Haible  <bruno@clisp.org>
48300
48301         * users.txt: Add libgnupdf.
48302
48303 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48304
48305         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48306         (Header File Substitutes, Function Substitutes,
48307         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48308         (Build robot for gnulib): Fix typo.
48309
48310 2008-03-06  Bruno Haible  <bruno@clisp.org>
48311
48312         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48313         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48314
48315 2008-03-06  Bruno Haible  <bruno@clisp.org>
48316
48317         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48318         * doc/gnulib.texi: Include it.
48319
48320 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48321
48322         * modules/func (License): Change license to unlimited; there was
48323         no LGPL parts in the module anyway.
48324
48325 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48326
48327         * modules/__func__: Renamed to modules/func.
48328         * modules/__func__-tests: Renamed to modules/func-tests.
48329         * tests/test-__func__.c: Renamed to tests/test-func.c.
48330         * m4/__func__.m4: Renamed to m4/func.m4.
48331         * doc/gnulib.texi (__func__): Section renamed to func.
48332         Suggested by Eric Blake <ebb9@byu.net>.
48333
48334 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48335
48336         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48337         about __func__.  Make example self-contained.  Suggested by Eric
48338         Blake <ebb9@byu.net>.
48339
48340         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48341         Suggested by Eric Blake <ebb9@byu.net>.
48342
48343 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48344
48345         * modules/__func__: New file.
48346         * modules/__func__-tests: New file.
48347         * tests/test-__func__.c: New file.
48348         * m4/__func__.m4: New file.
48349         * doc/gnulib.texi (__func__): Document __func__ module.
48350
48351 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48352
48353         * modules/byteswap (License): Re-license as LGPLv2+.
48354
48355 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48356
48357         * doc/Makefile: Add pdf target.
48358
48359 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48360
48361         * modules/inline (License): Use 'unlimited', since there are only
48362         *.m4 files in this module.
48363
48364 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48365             Bruno Haible  <bruno@clisp.org>
48366
48367         Add support for HP C 7.1 on OpenVMS 8.3.
48368         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48369
48370 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48371
48372         Update VMS specifics.
48373         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48374
48375 2008-03-02  Jim Meyering  <meyering@redhat.com>
48376
48377         Remove the last dependency on the "free" module.
48378         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48379         Reported by Bob Proulx.
48380
48381         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48382
48383         Remove useless "if" tests before free.  Deprecate "free" module.
48384         * doc/posix-functions/free.texi: Mention that this
48385         module is no longer useful.
48386         * modules/free (Notice): Say this module is obsolete.
48387         * modules/readutmp (Depends-on): Remove free.
48388         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48389         * lib/putenv.c (putenv): Likewise.
48390         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48391         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48392         * tests/test-c-strcasestr.c (main): Likewise.
48393         * tests/test-c-strstr.c (main): Likewise.
48394         * tests/test-mbscasestr1.c (main): Likewise.
48395         * tests/test-mbscasestr2.c (main): Likewise.
48396         * tests/test-mbsstr1.c (main): Likewise.
48397         * tests/test-mbsstr2.c (main): Likewise.
48398         * tests/test-memmem.c (main): Likewise.
48399         * tests/test-strcasestr.c (main): Likewise.
48400         * tests/test-striconv.c (main): Likewise.
48401         * tests/test-striconveh.c (main): Likewise.
48402         * tests/test-striconveha.c (main): Likewise.
48403         * tests/test-strstr.c (main): Likewise.
48404
48405         * build-aux/git-version-gen: Adjust a comment and the Usage string.
48406
48407         bootstrap: sync from coreutils again
48408         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
48409
48410 2008-03-01  Jim Meyering  <meyering@redhat.com>
48411
48412         bootstrap: sync from coreutils
48413         * build-aux/bootstrap (update_po_files): Copy a .po file into place
48414         also when the target doesn't exist.
48415
48416 2008-03-01  Eric Blake  <ebb9@byu.net>
48417
48418         Fix bugs in last patch.
48419         * lib/memchr2.c (memchr2): Fix typo.
48420         * tests/test-memchr2.c: Test previous bug, and don't use GNU
48421         extension.
48422         Reported by Bruce Korb.
48423
48424         New module 'memchr2'.
48425         * modules/memchr2: New file.
48426         * modules/memchr2-tests: Likewise.
48427         * lib/memchr2.h: Likewise.
48428         * lib/memchr2.c: Likewise, based on memchr.c.
48429         * tests/test-memchr2.c: New test.
48430         * MODULES.html.sh (String handling): Add memchr2.
48431
48432 2008-02-29  Bruno Haible  <bruno@clisp.org>
48433
48434         * modules/freadseek-tests: New file.
48435         * tests/test-freadseek.sh: New file.
48436         * tests/test-freadseek.c: New file.
48437
48438         New module 'freadseek'.
48439         * modules/freadseek: New file.
48440         * lib/freadseek.h: New file.
48441         * lib/freadseek.c: New file.
48442         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
48443
48444 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48445
48446         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
48447         wydawca.
48448
48449         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
48450         program_invocation_name and program_invocation_short_name are
48451         present.
48452
48453 2008-02-28  Bruno Haible  <bruno@clisp.org>
48454
48455         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
48456         * tests/test-freadptr.sh: Also test non-seekable stdin.
48457
48458 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
48459
48460         * build-aux/bootstrap (source_base, m4_base)
48461         (doc_base, tests_base): New variables.
48462         (gnulib_tool_options): Do not hardcode base directories, use
48463         the above variables instead.
48464
48465 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
48466
48467         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
48468
48469 2008-02-28  Bruno Haible  <bruno@clisp.org>
48470
48471         * modules/freadptr-tests: New file.
48472         * tests/test-freadptr.sh: New file.
48473         * tests/test-freadptr.c: New file.
48474
48475         New module 'freadptr'.
48476         * modules/freadptr: New file.
48477         * lib/freadptr.h: New file.
48478         * lib/freadptr.c: New file.
48479         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48480
48481 2008-02-26  Karl Berry  <karl@freefriends.org>
48482
48483         Sync from Libtool:
48484         * libltdl/argz.c (argz_add, argz_count): New functions.
48485         * libltdl/argz.in.h: Declare them.
48486         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48487
48488 2008-02-22  Bruno Haible  <bruno@clisp.org>
48489
48490         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48491         is a pointer type.  Needed for HP-UX 10.
48492         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48493         * doc/posix-functions/gmtime_r.texi: Likewise.
48494         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48495
48496 2008-02-24  Bruno Haible  <bruno@clisp.org>
48497
48498         * modules/environ-tests: New file.
48499         * tests/test-environ.c: New file.
48500
48501         New module 'environ'.
48502         * modules/environ: New file.
48503         * lib/unistd.in.h (environ): New declaration.
48504         * m4/environ.m4: New file.
48505         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48506         after use.
48507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48508         HAVE_DECL_ENVIRON.
48509         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48510         HAVE_DECL_ENVIRON.
48511         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48512         wrong claim that 'environ' is missing on some systems.
48513         * modules/execute (Depends-on): Add environ.
48514         * lib/execute.c (environ): Remove fallback declaration.
48515         * modules/pipe (Depends-on): Add environ.
48516         * lib/pipe.c (environ): Remove fallback declaration.
48517         * modules/setenv (Depends-on): Add environ.
48518         * lib/setenv.c (environ): Remove fallback declaration.
48519         * modules/unsetenv (Depends-on): Add environ.
48520         * lib/unsetenv.c (environ): Remove fallback declaration.
48521         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48522         m4/environ.m4.
48523         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48524         (gl_PREREQ_UNSETENV): Likewise.
48525
48526 2008-02-24  Bruno Haible  <bruno@clisp.org>
48527
48528         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48529
48530 2008-02-20  Bob Proulx  <bob@proulx.com>
48531
48532         Enable use of older two part flavor 'git describe'.
48533         * build-aux/git-version-gen: If using the older two part flavor of
48534         git version then recreate the third part now present in the
48535         newer three part flavor of git describe.
48536
48537 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48538
48539         * lib/fts.c (fts_build): Typo correction to comment.
48540
48541 2008-02-17  Bruno Haible  <bruno@clisp.org>
48542
48543         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48544         generating no-op conflicts.
48545
48546 2008-02-17  Bruno Haible  <bruno@clisp.org>
48547
48548         Speed up by 10%.
48549         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48550         result_entries, rather than an index-based loop.
48551
48552 2008-02-17  Bruno Haible  <bruno@clisp.org>
48553
48554         Speed up by 25%.
48555         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48556         'hashcode_cached'.
48557         (entry_create): New function.
48558         (entry_hashcode): Use the cached hashcode if possible.
48559         (read_changelog_file, try_split_merged_entry): Use entry_create.
48560
48561 2008-02-17  Bruno Haible  <bruno@clisp.org>
48562
48563         Speed up from O(n^2) to O(n) for long ChangeLog files.
48564         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48565         (read_changelog_file): Change implementation of entries_reversed list
48566         to rbtreehash.
48567         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48568
48569 2008-02-17  Bruno Haible  <bruno@clisp.org>
48570
48571         New option --split-merged-entry.
48572         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48573         (find_paragraph_end, try_split_merged_entry): New functions.
48574         (long_options): Add option --split-merged-entry.
48575         (usage): Document option --split-merged-entry.
48576         (main): Implement option --split-merged-entry.
48577         Reported by Eric Blake.
48578
48579 2008-02-17  Bruno Haible  <bruno@clisp.org>
48580
48581         * lib/git-merge-changelog.c: Include c-strstr.h.
48582         (main): Support the "git pull --rebase" situation.
48583         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48584         Reported by Eric Blake.
48585
48586 2008-02-16  Eric Blake  <ebb9@byu.net>
48587
48588         Avoid doubling \ in common case of "c-maybe" quoting style.
48589         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48590         eliding outer quotes.
48591         * lib/quotearg.h: Document this.
48592         * tests/test-quotearg.c (result_strings, inputs, results_g)
48593         (flag_results, locale_results): Test it by adding a new string to
48594         each test group.
48595         (compare_strings): Test new string.
48596
48597 2008-02-13  Eric Blake  <ebb9@byu.net>
48598
48599         Avoid trigraph quoting in default output.
48600         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48601         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48602         unless explicitly requested.
48603         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48604
48605 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48606
48607         Don't rely on signed integer overflowing to negative value.
48608         * lib/getugroups.c (getugroups): Include <limits.h>.
48609         Instead, compare against INT_MAX, and increment only if the test passes.
48610
48611 2008-02-13  Jim Meyering  <meyering@redhat.com>
48612         and Eric Blake  <ebb9@byu.net>
48613
48614         Avoid shadowing warning and compile errors on Linux.
48615         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48616         forwarding macros on Linux.
48617         (dcgettext): Define a stub, for Linux.
48618         (results_g, main): Avoid warnings.
48619
48620 2008-02-12  Eric Blake  <ebb9@byu.net>
48621
48622         Silence warning in last patch.
48623         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48624
48625         Quotearg part 4: add tests, fix c-maybe colon quoting.
48626         * lib/quotearg.h: Improve documentation.
48627         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48628         escapes when adding outer quotes.  When quoting trigraphs, use
48629         valid C notation.  When quoting NUL, omit extra characters if next
48630         character is not digit.  Alter prototype.
48631         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48632         callers.
48633         * modules/quotearg-tests: New module.
48634         * tests/test-quotearg.c: New test.
48635
48636 2008-02-07  Eric Blake  <ebb9@byu.net>
48637
48638         Quotearg part 3: add flag to control outer quote elision.
48639         * lib/quotearg.h (c_maybe_quoting_style): New style.
48640         (enum quoting_flags): Better documentation of flags.
48641         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48642         c-maybe style.
48643         (quotearg_buffer_restyled): Handle new flag to elide outer
48644         quotes.
48645
48646         Quotearg part 2: add flag that can control NUL elision.
48647         * lib/quotearg.h (set_quoting_flags): New prototype.
48648         * lib/quotearg.c (struct quoting_options): Add flag field.
48649         (set_quoting_flags): New function.
48650         (quotearg_buffer_restyled): Add flags parameter.
48651         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48652         (quotearg_n_options): Set the flag, since length cannot be
48653         returned.
48654         (quoting_options_from_style): Default flags correctly.
48655
48656         Quotearg part 1: more wrappers, restore quotearg_char state.
48657         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48658         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48659         (quotearg_colon_mem): New wrappers.
48660         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48661         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48662         functions.
48663         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48664         (quotearg_colon_mem): New functions.
48665
48666 2008-02-11  Bruno Haible  <bruno@clisp.org>
48667
48668         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48669         library in the current directory: it does not work with parallel make.
48670         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48671
48672 2008-02-11  Bruno Haible  <bruno@clisp.org>
48673
48674         * .gitattributes: New file.
48675
48676 2008-02-11  Jim Meyering  <meyering@redhat.com>
48677
48678         useless-if-before-free: Fix reversed exit values.
48679         * build-aux/useless-if-before-free: Use correct values
48680         for EXIT_MATCH and EXIT_NO_MATCH.
48681
48682         * build-aux/useless-if-before-free: Close stdout carefully.
48683
48684 2008-02-10  Bruno Haible  <bruno@clisp.org>
48685
48686         New module 'git-merge-changelog'.
48687         * modules/git-merge-changelog: New file.
48688         * lib/git-merge-changelog.c: New file.
48689
48690 2008-02-10  Jim Meyering  <meyering@redhat.com>
48691
48692         useless-if-before-free: New option: --list (-l).
48693
48694         useless-if-before-free: Don't exit immediately upon open failure.
48695         * build-aux/useless-if-before-free: Exit 2 for errors.
48696         Upon failure to open a file, don't exit immediately.
48697         Rather, just warn and continue with any remaining files.
48698
48699 2008-02-10  Bruno Haible  <bruno@clisp.org>
48700
48701         New abstract list operation 'node_set_value'.
48702         * lib/gl_list.h (gl_list_node_set_value): New function.
48703         (struct gl_list_implementation): New field node_set_value.
48704         * lib/gl_list.c (gl_list_node_set_value): New function.
48705         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48706         (gl_array_list_implementation): Update.
48707         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48708         (gl_carray_list_implementation): Update.
48709         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48710         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48711         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48712         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48713         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48714         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48715         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48716         Update.
48717         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48718         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48719         (gl_sublist_list_implementation): Update.
48720
48721 2008-02-10  Bruno Haible  <bruno@clisp.org>
48722
48723         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48724         Needed when ELEMENT is #defined to 'some_type *'.
48725
48726 2008-02-10  Jim Meyering  <meyering@redhat.com>
48727
48728         New script and module: useless-if-before-free
48729         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48730         * build-aux/useless-if-before-free: New file.
48731         * modules/useless-if-before-free: New file.
48732
48733         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48734
48735         xstrtol_error: Fix typo.
48736         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48737         s/exit_failure/exit_status/.
48738
48739 2008-02-09  Jim Meyering  <meyering@redhat.com>
48740
48741         New script and module: gitlog-to-changelog
48742         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48743         * modules/gitlog-to-changelog: New file.
48744         * build-aux/gitlog-to-changelog: New file.
48745
48746 2008-02-08  Jim Meyering  <meyering@redhat.com>
48747
48748         Avoid two "parameter unused" warnings.
48749         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48750         Mark "st" as used.
48751
48752         Use "git COMMAND", not "git-COMMAND".
48753         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48754         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48755         * build-aux/git-version-gen: Use "git status", not "git-status".
48756
48757 2008-02-07  Bruno Haible  <bruno@clisp.org>
48758
48759         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48760         Avoids a crash on Windows Vista.
48761         Reported by Adam Strzelecki <ono@java.pl> via
48762         Simon Josefsson <simon@josefsson.org>.
48763
48764 2008-02-06  Bruno Haible  <bruno@clisp.org>
48765
48766         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48767         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48768         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48769         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48770         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48771         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48772         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48773         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48774         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48775         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48776         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48777         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48778         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48779         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48780         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48781         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48782         left-adjust flag.
48783         * tests/test-snprintf-posix.h (test_function): Likewise.
48784         * tests/test-sprintf-posix.h (test_function): Likewise.
48785         * tests/test-vasprintf-posix.c (test_function): Likewise.
48786         * doc/posix-functions/fprintf.texi: Update.
48787         * doc/posix-functions/printf.texi: Update.
48788         * doc/posix-functions/snprintf.texi: Update.
48789         * doc/posix-functions/sprintf.texi: Update.
48790         * doc/posix-functions/vfprintf.texi: Update.
48791         * doc/posix-functions/vprintf.texi: Update.
48792         * doc/posix-functions/vsnprintf.texi: Update.
48793         * doc/posix-functions/vsprintf.texi: Update.
48794         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48795
48796 2008-02-06  Bruno Haible  <bruno@clisp.org>
48797
48798         Fix bug introduced on 2008-01-26.
48799         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48800
48801 2008-02-06  Bruno Haible  <bruno@clisp.org>
48802
48803         Fix bug introduced on 2007-06-10.
48804         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48805         !NEED_PRINTF_FLAG_ZERO.
48806
48807 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48808
48809         getloadavg: use libperfstat on AIX5
48810         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48811
48812 2008-02-03  Bruno Haible  <bruno@clisp.org>
48813
48814         * lib/diffseq.h: Add comments about required #includes.
48815         Reported by Michael Biggs <gnulib@doubleplum.net>.
48816
48817 2008-02-01  Bruno Haible  <bruno@clisp.org>
48818
48819         * users.txt: Add gnuit.
48820
48821 2008-01-31  Bruno Haible  <bruno@clisp.org>
48822
48823         * lib/md4.c (set_uint32): Mark as inline.
48824         * lib/md5.c (set_uint32): Likewise.
48825         * lib/sha1.c (set_uint32): Likewise.
48826         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48827         * m4/md5.m4 (gl_MD5): Likewise.
48828         * m4/sha1.m4 (gl_SHA1): Likewise.
48829
48830 2008-01-31  Jim Meyering  <meyering@redhat.com>
48831
48832         Use "sizeof VAR", rather than a literal "4".
48833         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48834         * lib/md4.c (md4_read_ctx): Likewise.
48835         * lib/sha1.c (sha1_read_ctx): Likewise.
48836
48837 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48838
48839         * tests/test-sha1.c: New file, based on test-md5.c.
48840
48841         * modules/crypto/sha1-tests: New file.
48842
48843 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48844
48845         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48846
48847 2008-01-31  Jim Meyering  <meyering@redhat.com>
48848
48849         Prefer "sizeof v" over the equivalent "4".
48850         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48851         * lib/md5.c (set_uint32): Likewise.
48852         * lib/sha1.c (set_uint32): Likewise.
48853
48854 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48855
48856         * lib/sha1.c (set_uint32): Mark function as static.
48857
48858 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48859
48860         md2: clarify comments to say that alignment is not required.
48861         * lib/md2.h: Remove warning about alignment in comment.
48862         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48863         never been required.
48864
48865 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48866
48867         md4: adapt alignment constraint fix from sha1.
48868         * lib/md4.c (set_uint32): New function, from sha1.c
48869         (md4_read_ctx): Use it.
48870         (md4_finish_ctx): Doc fix.
48871         * lib/md4.h: Doc fix.
48872
48873 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48874
48875         md5: adapt alignment constraint fix from sha1.
48876         * lib/md5.c (set_uint32): New function, from sha1.c
48877         (md5_read_ctx): Use it.
48878         (md5_finish_ctx): Doc fix.
48879         * lib/md5.h: Doc fix.
48880
48881 2008-01-30  Peter Palfrader  <weasel@debian.org>
48882
48883         sha1: remove the result buffer alignment constraint
48884         * lib/sha1.c (set_uint32): New function.
48885         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48886         constraint.
48887         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48888         * lib/sha1.h: Likewise.
48889
48890 2008-01-30  Andreas Schwab  <schwab@suse.de>
48891             Bruno Haible  <bruno@clisp.org>
48892
48893         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48894         correct definition of LDBL_MIN_EXP.
48895
48896 2008-01-30  Karl Berry  <karl@gnu.org>
48897
48898         * config/srclist-update: try to preserve x bit on updates.
48899         * config/srclistvars.sh: update for karl.
48900
48901 2008-01-29  Jim Meyering  <meyering@redhat.com>
48902
48903         vasnprintf.c: Avoid warning about unused label
48904         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48905         "overflow" label definition and associated code with the
48906         same cpp condition that guards the sole use of that label.
48907
48908 2008-01-26  Bruno Haible  <bruno@clisp.org>
48909
48910         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48911         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48912         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48913         * lib/isnanl-nolibm.h (isnanl): Likewise.
48914         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48915
48916 2008-01-26  Bruno Haible  <bruno@clisp.org>
48917
48918         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48919         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48920
48921 2008-01-26  Bruno Haible  <bruno@clisp.org>
48922
48923         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48924         GCC >= 4.0 built-in.
48925         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48926
48927 2008-01-26  Bruno Haible  <bruno@clisp.org>
48928
48929         Rename isnan, applicable to 'double' only, to isnand.
48930         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48931         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48932         (configure.ac): Update.
48933         (Include): Replace "isnan.h" with "isnand.h".
48934         * m4/isnand.m4: Renamed from m4/isnan.m4.
48935         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48936         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48937         instead of isnan.c.
48938         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48939         instead of HAVE_ISNAN_IN_LIBC.
48940         (isnand): Renamed from isnan.
48941         * lib/isnand.c: New file.
48942         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48943         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48944         (Makefile.am): Update.
48945         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48946         Include isnand.h instead of isnan.h.
48947         (main): Test isnand instead of isnan.
48948         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48949         isnan-nolibm.
48950         * modules/frexp (Depends-on): Likewise.
48951         * modules/frexp-tests (Depends-on): Likewise.
48952         * modules/frexp-nolibm (Depends-on): Likewise.
48953         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48954         * modules/isfinite (Depends-on): Likewise.
48955         * modules/round-tests (Depends-on): Likewise.
48956         * modules/signbit (Depends-on): Likewise.
48957         * modules/signbit-tests (Depends-on): Likewise.
48958         * modules/snprintf-posix (Depends-on): Likewise.
48959         * modules/sprintf-posix (Depends-on): Likewise.
48960         * modules/trunc-tests (Depends-on): Likewise.
48961         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48962         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48963         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48964         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48965         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48966         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48967         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48968         * modules/vasnprintf-posix (Depends-on): Likewise.
48969         * modules/vasprintf-posix (Depends-on): Likewise.
48970         * modules/vfprintf-posix (Depends-on): Likewise.
48971         * modules/vsnprintf-posix (Depends-on): Likewise.
48972         * modules/vsprintf-posix (Depends-on): Likewise.
48973         * lib/frexp.c: Include isnand.h instead of isnan.h.
48974         (ISNAN): Set to isnand instead of isnan.
48975         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48976         (gl_isfinited): Use isnand instead of isnan.
48977         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48978         (gl_signbitd): Use isnand instead of isnan.
48979         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48980         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48981         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48982         (main): Use isnand instead of isnan.
48983         * tests/test-round1.c: Include isnand.h.
48984         (main): Use isnand instead of isnan.
48985         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48986         (ISNAN): Set to isnand instead of isnan.
48987         * tests/test-trunc1.c: Include isnand.h.
48988         (main): Use isnand instead of isnan.
48989         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48990         (equal): Use isnand instead of isnan.
48991         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48992         isnand-nolibm.
48993         * NEWS: Mention the change.
48994
48995 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48996             Bruno Haible  <bruno@clisp.org>
48997
48998         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48999         the GCC builtins for signbits are present and set
49000         REPLACE_SIGNBIT_USING_GCC if so.
49001         * lib/math.in.h (signbit): Define using GCC builtins if
49002         REPLACE_SIGNBIT_USING_GCC is set.
49003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
49004         REPLACE_SIGNBIT_USING_GCC.
49005         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
49006
49007 2008-01-25  Jim Meyering  <meyering@redhat.com>
49008
49009         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
49010         * lib/poll.c: Include <config.h>, not "config.h".
49011         * tests/test-getaddrinfo.c: Likewise.
49012
49013 2008-01-25  Simon Josefsson  <simon@josefsson.org>
49014
49015         * modules/sockets-tests: New file.
49016
49017 2008-01-24  Simon Josefsson  <simon@josefsson.org>
49018
49019         * modules/sockets: New module, can be used to call WSA_Startup and
49020         WSA_Cleanup when needed.
49021
49022         * lib/sockets.h, lib/sockets.c: New files.
49023
49024         * m4/sockets.m4: New file.
49025
49026         * tests/test-sockets.c: New file.
49027
49028 2008-01-19  Bruno Haible  <bruno@clisp.org>
49029
49030         * doc/posix-headers: Renamed from doc/headers.
49031         * doc/posix-functions: Renamed from doc/functions.
49032         * doc/gnulib.texi: Update.
49033
49034 2008-01-19  Bruno Haible  <bruno@clisp.org>
49035
49036         * doc/glibc-functions/strcasestr.texi: Include contents of
49037         doc/functions/strcasestr.texi, fixing the list of platforms.
49038         * doc/functions/strcasestr.texi: Remove file.
49039
49040 2008-01-19  Bruno Haible  <bruno@clisp.org>
49041
49042         * doc/glibc-functions/memmem.texi: Include contents of
49043         doc/functions/memmem.texi.
49044         * doc/functions/memmem.texi: Remove file.
49045
49046 2008-01-18  Bruno Haible  <bruno@clisp.org>
49047
49048         * doc/glibc-functions/*.texi: New files.
49049         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
49050         to use the new files.
49051
49052 2008-01-17  Bruno Haible  <bruno@clisp.org>
49053
49054         * tests/test-gethostname.c (main): Fix printf statement.
49055
49056 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49057
49058         * modules/gethostname-tests: New file.
49059
49060         * tests/test-gethostname.c: New file.
49061
49062 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49063
49064         * lib/gethostname.c: Include string.h unconditionally, strncpy is
49065         used by the UNAME case.  Reported by Bruno Haible
49066         <bruno@clisp.org>.
49067
49068 2008-01-17  Eric Blake  <ebb9@byu.net>
49069
49070         Convert c-strcasestr to be more efficient.
49071         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
49072         (Depends-on): Add c-strcase, remove malloca, strnlen.
49073         * tests/test-c-strcasestr.c (main): Enhance test.
49074         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
49075
49076 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49077
49078         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
49079         Use it in creating po/Makevars.
49080
49081 2008-01-15  Simon Josefsson  <simon@josefsson.org>
49082
49083         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
49084         Applications that requires it should initialize libgcrypt
49085         manually.
49086
49087 2008-01-16  Simon Josefsson  <simon@josefsson.org>
49088
49089         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
49090
49091 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
49092
49093         Fix problem with getdate on mingw32 reported by Simon Josefsson
49094         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
49095         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
49096         tzname", when deciding whether to declare tzname.
49097         * lib/strftime.c (tzname): Likewise.
49098
49099 2008-01-15  Bruno Haible  <bruno@clisp.org>
49100
49101         Work around a MacOS X 10.5 bug in frexpl().
49102         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
49103         * doc/functions/frexpl.texi: Document the bug.
49104         Reported by Elias Pipping <pipping@gentoo.org>.
49105
49106 2008-01-14  Eric Blake  <ebb9@byu.net>
49107
49108         Touch up previous patch.
49109         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
49110         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
49111
49112         Convert strcasestr module to use Two-Way algorithm.
49113         * modules/strcasestr-simple: New module, based on the old
49114         strcasestr, but with Two-Way rather than KMP.
49115         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
49116         * lib/string.in.h (rpl_strcasestr): Declare.
49117         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
49118         performance.
49119         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
49120         * modules/string (Makefile.am): Support strcasestr.
49121         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49122         * modules/strcasestr-tests (Depends-on): Check for alarm.
49123         * tests/test-strcasestr.c: Augment test.
49124         * lib/str-two-way.h: Clean up stray macro.
49125         * NEWS: Document new module.
49126         * MODULES.html.sh (string handling): Likewise.
49127         * doc/functions/strcasestr.texi: New file.
49128         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
49129         here, since it is not a POSIX function.
49130
49131 2008-01-14  Colin Watson  <cjwatson@debian.org>
49132             Bruno Haible  <bruno@clisp.org>
49133
49134         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
49135         works fine; if not, set REPLACE_STRSIGNAL.
49136         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
49137         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49138         REPLACE_STRSIGNAL.
49139         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
49140         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
49141         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
49142
49143 2008-01-14  Bruno Haible  <bruno@clisp.org>
49144
49145         * modules/strsignal (Include): Change to <string.h>.
49146
49147 2008-01-14  Colin Watson  <cjwatson@debian.org>
49148
49149         * modules/argp (Notice): Add a notice recommending to change
49150         XGETTEXT_OPTIONS.
49151         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
49152
49153 2008-01-13  Colin Watson  <cjwatson@debian.org>
49154
49155         * modules/strsignal-tests: New file.
49156         * tests/test-strsignal.c: New file.
49157
49158         * lib/strsignal.c: New file, from glibc with modifications.
49159         * lib/siglist.h: New file, from glibc with modifications.
49160         * lib/string.in.h (strsignal): New declaration.
49161         * m4/strsignal.m4: New file.
49162         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49163         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
49164         * modules/strsignal: New file.
49165         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
49166         HAVE_DECL_STRSIGNAL.
49167
49168 2008-01-13  Bruno Haible  <bruno@clisp.org>
49169
49170         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
49171         locale encoding is not ASCII. Needed for OpenBSD 4.0.
49172         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49173         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49174
49175 2008-01-13  Bruno Haible  <bruno@clisp.org>
49176
49177         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
49178         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
49179         * lib/argp.h (__attribute__): Likewise.
49180         * lib/c-stack.c (__attribute__): Likewise.
49181         * lib/error.h (__attribute__): Likewise.
49182         * lib/fts.c (__attribute__): Likewise.
49183         * lib/openat.h (__attribute__): Likewise.
49184         * lib/stdio.in.h (__attribute__): Likewise.
49185         * lib/string.in.h (__attribute__): Likewise.
49186         * lib/utimens.c (__attribute__): Likewise.
49187         * lib/vasnprintf.h (__attribute__): Likewise.
49188         * lib/xalloc.h (__attribute__): Likewise.
49189         * lib/xprintf.h (__attribute__): Likewise.
49190         * lib/xstrtol.h (__attribute__): Likewise.
49191         * lib/xvasprintf.h (__attribute__): Likewise.
49192
49193 2008-01-12  Bruno Haible  <bruno@clisp.org>
49194
49195         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
49196         * doc/glibc-headers/a.out.texi: New file.
49197         * doc/glibc-headers/aliases.texi: New file.
49198         * doc/glibc-headers/alloca.texi: New file.
49199         * doc/glibc-headers/ar.texi: New file.
49200         * doc/glibc-headers/argp.texi: New file.
49201         * doc/glibc-headers/argz.texi: New file.
49202         * doc/glibc-headers/byteswap.texi: New file.
49203         * doc/glibc-headers/crypt.texi: New file.
49204         * doc/glibc-headers/endian.texi: New file.
49205         * doc/glibc-headers/envz.texi: New file.
49206         * doc/glibc-headers/err.texi: New file.
49207         * doc/glibc-headers/error.texi: New file.
49208         * doc/glibc-headers/execinfo.texi: New file.
49209         * doc/glibc-headers/fpu_control.texi: New file.
49210         * doc/glibc-headers/fstab.texi: New file.
49211         * doc/glibc-headers/fts.texi: New file.
49212         * doc/glibc-headers/getopt.texi: New file.
49213         * doc/glibc-headers/ieee754.texi: New file.
49214         * doc/glibc-headers/ifaddrs.texi: New file.
49215         * doc/glibc-headers/libintl.texi: New file.
49216         * doc/glibc-headers/mcheck.texi: New file.
49217         * doc/glibc-headers/mntent.texi: New file.
49218         * doc/glibc-headers/obstack.texi: New file.
49219         * doc/glibc-headers/paths.texi: New file.
49220         * doc/glibc-headers/printf.texi: New file.
49221         * doc/glibc-headers/pty.texi: New file.
49222         * doc/glibc-headers/resolv.texi: New file.
49223         * doc/glibc-headers/shadow.texi: New file.
49224         * doc/glibc-headers/sysexits.texi: New file.
49225         * doc/glibc-headers/ttyent.texi: New file.
49226
49227 2008-01-12  Jim Meyering  <meyering@redhat.com>
49228
49229         announce-gen: emit Gnulib's git-based version string.
49230         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
49231         New option --gnulib-version=V, where V is expected to be
49232         the output of running git describe in the gnulib directory.
49233         (get_tool_versions): Request feedback on xdelta.  I suspect it's
49234         not useful, and plan to stop publishing an xdelta file with each
49235         coreutils release.
49236
49237         * build-aux/announce-gen: Also check for lzma-compressed files.
49238
49239 2008-01-11  Bruno Haible  <bruno@clisp.org>
49240
49241         * tests/test-memmem.c (main): Increase maximum allowed time.
49242         * tests/test-strstr.c (main): Likewise.
49243
49244 2008-01-11  Bruno Haible  <bruno@clisp.org>
49245
49246         * doc/functions/memmem.texi: Add more precisions about platforms.
49247         * doc/functions/strstr.texi: Likewise.
49248
49249 2008-01-10  Eric Blake  <ebb9@byu.net>
49250
49251         * m4/strstr.m4: Delete cruft from copy-n-paste.
49252         Reported by Bruno Haible.
49253
49254 2008-01-10  Bruno Haible  <bruno@clisp.org>
49255
49256         Make c-strstr rely on strstr.
49257         * lib/c-strstr.c: Don't include str-kmp.h.
49258         (c_strstr): Define in terms of strstr.
49259         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49260         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49261
49262 2008-01-10  Bruno Haible  <bruno@clisp.org>
49263
49264         * doc/gnulib.texi (String Functions in C Locale): New section.
49265         * doc/c-ctype.texi: New file.
49266         * doc/c-strcase.texi: New file.
49267         * doc/c-strcaseeq.texi: New file.
49268         * doc/c-strcasestr.texi: New file.
49269         * doc/c-strstr.texi: New file.
49270         * doc/c-strtod.texi: New file.
49271         * doc/c-strtold.texi: New file.
49272
49273 2008-01-10  Eric Blake  <ebb9@byu.net>
49274
49275         * lib/relocatable.h: Fix a comment.
49276
49277 2008-01-10  Eric Blake  <ebb9@byu.net>
49278
49279         Share two-way algorithm.
49280         * lib/str-two-way.h: New file, merged from...
49281         * lib/memmem.c: ...here...
49282         * lib/strstr.c: ...and here.
49283         * modules/memmem (Files): Use it.
49284         * modules/strstr (Files): Likewise.
49285
49286         Avoid quadratic strstr implementations.
49287         * lib/strstr.c: New file.
49288         * m4/strstr.m4: Likewise.
49289         * modules/strstr: Likewise.
49290         * modules/strstr-tests: Likewise.
49291         * tests/test-strstr.c: Likewise.
49292         * lib/string.in.h (rpl_strstr): Declare.
49293         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49295         * modules/string (Makefile.am): Likewise.
49296         * MODULES.html.sh (string handling): Mention new module.
49297         * doc/functions/strstr.texi (strstr): Document the bug.
49298
49299 2008-01-10  Bruno Haible  <bruno@clisp.org>
49300
49301         * lib/relocatable.h (relocate): State whether result is freshly
49302         allocated or not.
49303         * lib/relocatable.c (relocate): Return a freshly allocated string
49304         instead of a pointer to a privately held string.
49305         Reported by Sylvain Beucler <beuc@gnu.org>.
49306
49307 2008-01-10  Colin Watson  <cjwatson@debian.org>
49308
49309         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49310         s/S_ISNLK/S_ISLNK/.
49311
49312 2008-01-09  Bruno Haible  <bruno@clisp.org>
49313
49314         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49315         and other files.
49316         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49317         if it's only a guess.
49318         * modules/memmem: Simplify by depending on memmem-simple.
49319
49320 2008-01-09  Bruno Haible  <bruno@clisp.org>
49321
49322         Work around OpenBSD 4.0 tdelete() bug.
49323         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49324         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49325         macros and don't redefine the enum values.
49326         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49327         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49328         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49329
49330 2008-01-09  Bruno Haible  <bruno@clisp.org>
49331
49332         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49333         (main): Don't perform the tests if setlocale did not install a UTF-8
49334         locale. Needed on OpenBSD 4.0.
49335         * modules/wcwidth-tests (Depends-on): Add localcharset.
49336
49337 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49338
49339         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49340         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49341         * NEWS: announce this.
49342         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49343
49344 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49345         and Eric Blake  <ebb9@byu.net>
49346
49347         Add memmem-simple module.
49348         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49349         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49350         * modules/memmem-simple: New file.
49351         * modules/memmem (Description): Tweak.
49352         * MODULES.html.sh (string handling): Mention new module.
49353         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49354         addressed by memmem-simple.
49355         * NEWS: Document the difference.
49356
49357 2008-01-09  Eric Blake  <ebb9@byu.net>
49358
49359         Give gcc some memmem optimization hints.
49360         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49361         (strcasestr): Declare as pure.
49362         * modules/memmem (Maintainer): Claim my implementation.
49363
49364 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49365
49366         Support AIX 6.1 and higher.
49367         * build-aux/config.libpath: Likewise.
49368         * build-aux/config.rpath: Likewise.
49369
49370 2008-01-08  Jim Meyering  <meyering@redhat.com>
49371             Bruno Haible  <bruno@clisp.org>
49372
49373         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49374         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49375         Reported by Peter Fales in
49376         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49377
49378 2008-01-08  Bruno Haible  <bruno@clisp.org>
49379
49380         * modules/unictype/category-of (Depends-on): Add
49381         unictype/category-none.
49382         * modules/unictype/category-and-tests (Depends-on): Add
49383         unictype/category-{L,N,Lu,Nd}.
49384         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49385         * modules/unictype/category-or-tests (Depends-on): Add
49386         unictype/category-{L,N}.
49387         * modules/unictype/category-name-tests (Depends-on): Add
49388         unictype/category-{Z,Nl}.
49389         Reported by Simon Josefsson.
49390
49391 2008-01-08  Bruno Haible  <bruno@clisp.org>
49392
49393         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49394         convention better.
49395         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49396         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
49397         Reported by Peter Miller <millerp@canb.auug.org.au>.
49398
49399 2008-01-08  Eric Blake  <ebb9@byu.net>
49400
49401         Rewrite memmem to guarantee linear complexity without malloc.
49402         * lib/memmem.c (memmem): Use Two-Way rather than
49403         Knuth-Morris-Pratt, to allow O(1) space usage.
49404         (critical_factorization, two_way_short_needle)
49405         (two_way_long_needle): New functions.
49406         (knuth_morris_pratt): Delete.
49407         * modules/memmem (Depends-on): No longer need malloca or stdbool.
49408         Add stdint.
49409         * tests/test-memmem.c (main): Add tests for periodic needle and
49410         sublinear performance.
49411         * doc/functions/memmem.texi (memmem): Document other deficiencies
49412         in cygwin and older glibc.
49413
49414 2008-01-08  Bruno Haible  <bruno@clisp.org>
49415
49416         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
49417         augmentation.
49418
49419 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
49420
49421         Add a configure time option: --disable-acl.
49422         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
49423         AC_ARG_ENABLE(acl).
49424
49425 2008-01-06  Simon Josefsson  <simon@josefsson.org>
49426
49427         * tests/test-localename.c: Don't include obsolete "setenv.h".
49428
49429         * modules/localename-tests (Depends-on): Need unsetenv.
49430
49431 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49432
49433         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
49434
49435 2008-01-06  Colin Watson  <cjwatson@debian.org>
49436
49437         * users.txt: Add man-db.
49438
49439 2008-01-07  Bruno Haible  <bruno@clisp.org>
49440
49441         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
49442         previous section name.
49443
49444 2008-01-07  Bruno Haible  <bruno@clisp.org>
49445
49446         * lib/progname.c (set_program_name): Don't strip off a leading
49447         "lt-" prefix outside a .libs directory.
49448         Suggested by Paul Eggert.
49449
49450 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
49451             Bruno Haible  <bruno@clisp.org>
49452
49453         Improve memory cleanup in 'relocatable' module.
49454         * lib/relocatable.h (compute_curr_prefix): Change return type to
49455         'char *'.
49456         * lib/relocatable.c (compute_curr_prefix): Change return type to
49457         'char *'. Free curr_installdir after use.
49458         (relocate): Free curr_prefix_better after use.
49459         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
49460
49461 2008-01-01  Bruno Haible  <bruno@clisp.org>
49462
49463         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
49464         failure on older glibc systems.
49465         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49466
49467 2008-01-05  Eric Blake  <ebb9@byu.net>
49468
49469         Avoid quadratic system memmem.
49470         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
49471         Reported by Ralf Wildenhues.
49472
49473         Fix memmem test for mingw.
49474         * modules/memmem-tests (configure.ac): Check for alarm.
49475         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
49476         it.
49477         * doc/functions/memmem.texi: New file.
49478         * doc/gnulib.texi (Function Substitutes): Add memmem.
49479         Reported by Bruno Haible.
49480
49481 2008-01-04  Bruno Haible  <bruno@clisp.org>
49482
49483         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49484         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49485         gl_HEADER_STRING_H_DEFAULTS.
49486
49487 2008-01-04  Eric Blake  <ebb9@byu.net>
49488
49489         Shorten duration of memmem test.
49490         * tests/test-memmem.c (main): Use alarm to declare failure if test
49491         is taking too long.
49492         Reported by Ralf Wildenhues.
49493
49494 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49495
49496         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49497         string, needed by strerror.
49498
49499 2008-01-03  Colin Watson  <cjwatson@debian.org>
49500             Bruno Haible  <bruno@clisp.org>
49501
49502         * doc/gnulib-tool.texi (Localization): New section.
49503
49504 2008-01-02  Bruno Haible  <bruno@clisp.org>
49505
49506         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49507         variables to 'unsigned char *' type.
49508         Reported by Paul Eggert.
49509
49510 2008-01-02  Jim Meyering  <jim@meyering.net>
49511
49512         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49513
49514 2007-12-31  Jim Meyering  <jim@meyering.net>
49515
49516         Avoid use of private FTS type name.
49517         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49518
49519 2007-12-30  Karl Berry  <karl@gnu.org>
49520
49521         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49522         work around defect in Texinfo and/or the standalone Info browser.
49523
49524 2007-12-30  Bruno Haible  <bruno@clisp.org>
49525
49526         Unify 5 copies of the KMP code.
49527         * lib/str-kmp.h: New file.
49528         * lib/c-strcasestr.c: Include str-kmp.h.
49529         (knuth_morris_pratt): Remove function.
49530         (c_strcasestr): Update.
49531         * lib/c-strstr.c: Include str-kmp.h.
49532         (knuth_morris_pratt): Remove function.
49533         (c_strcasestr): Update.
49534         * lib/mbscasestr.c: Include str-kmp.h.
49535         (knuth_morris_pratt_unibyte): Remove function.
49536         * lib/mbsstr.c: Include str-kmp.h.
49537         (knuth_morris_pratt_unibyte): Remove function.
49538         * lib/strcasestr.c: Include str-kmp.h.
49539         (knuth_morris_pratt): Remove function.
49540         (strcasestr): Update.
49541         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49542         * modules/c-strstr (Files): Likewise.
49543         * modules/mbscasestr (Files): Likewise.
49544         * modules/mbsstr (Files): Likewise.
49545         * modules/strcasestr (Files): Likewise.
49546         Suggested by Paul Eggert.
49547
49548 2007-12-30  Bruno Haible  <bruno@clisp.org>
49549
49550         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49551         defined.
49552
49553 2007-12-30  Bruno Haible  <bruno@clisp.org>
49554
49555         * lib/xmalloca.h: Include xalloc.h.
49556         (xnmalloca): New macro.
49557
49558 2007-12-30  Bruno Haible  <bruno@clisp.org>
49559
49560         * lib/malloca.h (nmalloca): New macro.
49561         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49562         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49563         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49564         knuth_morris_pratt_multibyte): Likewise.
49565         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49566         knuth_morris_pratt_multibyte): Likewise.
49567         * lib/memmem.c (knuth_morris_pratt): Likewise.
49568         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49569
49570 2007-12-25  Bruno Haible  <bruno@clisp.org>
49571
49572         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49573         * lib/glob.c: Don't include openat.h.
49574         (link_exists2_p): Add back the code that deals with the
49575         !GLOB_ALTDIRFUNC case.
49576         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49577         let it do the filename concatenation.
49578         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49579         * modules/glob (Depends-on): Remove openat.
49580
49581 2007-12-31  Bruno Haible  <bruno@clisp.org>
49582
49583         * modules/dirfd (License): Change to LGPLv2+.
49584         Approved by Jim Meyering.
49585
49586 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49587
49588         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49589         when multiplying M by sizeof (size_t).
49590
49591 2007-12-10  Martin Lambers  <marlam@marlam.de>
49592
49593         Override getpagesize on mingw.
49594         * lib/getpagesize.c: New file.
49595         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49596         * modules/getpagesize (Files): Add lib/getpagesize.c.
49597         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49599         REPLACE_GETPAGESIZE.
49600         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49601
49602 2007-12-25  Bruno Haible  <bruno@clisp.org>
49603
49604         * modules/localcharset (Notice): New field.
49605         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49606         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49607
49608 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49609             Bruno Haible  <bruno@clisp.org>
49610
49611         Avoid using the syntax symbol() in formatted documentation.
49612         * MODULES.html.sh (func_module): When replacing symbol() with a
49613         hyperlink, remove the parentheses. Show an error if some remain.
49614         Recognize and render the '...' syntax.
49615         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49616         Rework. Add paragraph about GCC's inlining.
49617         * doc/alloca.texi: Likewise.
49618         * doc/error.texi: Remove parentheses from symbol reference.
49619         * doc/gnulib-intro.texi: Likewise.
49620         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49621         * modules/fnmatch (Description): Reword to say "the ... function".
49622         * modules/full-read (Description): Likewise.
49623         * modules/full-write (Description): Likewise.
49624         * modules/safe-read (Description): Likewise.
49625         * modules/safe-write (Description): Likewise.
49626         * modules/strchrnul (Description): Likewise.
49627         * modules/trim (Description): Likewise.
49628         * modules/error (Description): Remove parentheses from symbol
49629         references.
49630         * modules/verror (Description): Likewise.
49631         Reported by Karl Berry.
49632
49633 2007-12-25  Bruno Haible  <bruno@clisp.org>
49634
49635         Fixup after 2007-10-16 commit.
49636         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49637
49638 2007-12-24  Bruno Haible  <bruno@clisp.org>
49639
49640         Make --enable-relocatable work with DESTDIR.
49641         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49642         to compute installdir from destprog.
49643         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49644         also set the RELOC_DESTDIR variable.
49645         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49646
49647 2007-12-24  Bruno Haible  <bruno@clisp.org>
49648
49649         Fix link error due to xalloc_die().
49650         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49651         of xreadlink.
49652         * lib/relocwrapper.c: Update comments.
49653         * build-aux/install-reloc: Remove xreadlink.c from file list.
49654         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49655         xreadlink.c.
49656         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49657
49658 2007-12-24  Bruno Haible  <bruno@clisp.org>
49659
49660         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49661         * lib/setenv.h: Remove file.
49662         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49663         lib/setenv.h.
49664         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49665         (Depends-on): Add stdlib.
49666         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49667         gl_FUNC_UNSETENV.
49668         (Include): Replace setenv.h with <stdlib.h>.
49669         * modules/unsetenv: New file.
49670         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49671         * lib/unsetenv.c: Include <stdlib.h> first.
49672         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49673         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49674         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49675         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49676         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49677         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49679         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49680         * doc/functions/unsetenv.texi: Update.
49681         * modules/xsetenv (Depends-on): Add unsetenv.
49682         * modules/getdate (Depends-on): Likewise.
49683         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49684         * lib/xsetenv.c: Don't include setenv.h.
49685         * lib/getdate.y: Likewise.
49686         * lib/relocwrapper.c: Likewise.
49687         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49688         (Depends-on): Add stdlib.
49689         * NEWS: Mention the changes.
49690         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49691
49692 2007-12-23  Bruno Haible  <bruno@clisp.org>
49693
49694         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49695         indentation.
49696
49697 2007-12-23  Bruno Haible  <bruno@clisp.org>
49698
49699         * lib/c-strcasestr.c: Add more comments.
49700         * lib/c-strstr.c: Likewise.
49701         * lib/mbscasestr.c: Likewise.
49702         * lib/mbsstr.c: Likewise.
49703         * lib/strcasestr.c: Likewise.
49704         * lib/memmem.c: Likewise.
49705
49706 2007-12-23  Bruno Haible  <bruno@clisp.org>
49707
49708         * tests/test-memmem.c: Include <string.h> first.
49709
49710 2007-12-22  Bruno Haible  <bruno@clisp.org>
49711
49712         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49713         the contents of $testsbase.
49714         Reported by Ralf Wildenhues.
49715
49716 2007-12-22  Bruno Haible  <bruno@clisp.org>
49717
49718         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49719         two variables local_ldadd_before, local_ldadd_last.
49720
49721 2007-12-20  Eric Blake  <ebb9@byu.net>
49722
49723         Work around circular library issue when cross-compiling.
49724         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49725         that progname.o does not need to pull in rpl_memcmp.
49726
49727 2007-12-19  Eric Blake  <ebb9@byu.net>
49728
49729         Fix memmem to avoid O(n^2) worst-case complexity.
49730         * lib/memmem.c (knuth_morris_pratt): New function.
49731         (memmem): Use it if first few naive iterations fail.
49732         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49733         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49734         * modules/memchr (License): Likewise.
49735         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49736         malloca.
49737         * tests/test-memmem.c: Rewrite, borrowing ideas from
49738         test-mbsstr1.c; the old version wouldn't even compile!
49739         * modules/memmem-tests: New file.
49740         * lib/string.in.h (rpl_memmem): Add declaration.
49741         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49743         REPLACE_MEMMEM.
49744
49745 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49746
49747         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49748         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49749         before any system include files, and undef after them all.  This
49750         should fix a problem on VMS reported by John E. Malmberg in
49751         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49752
49753 2007-12-17  Eric Blake  <ebb9@byu.net>
49754
49755         Revert addition of verify, for BSD/OS.
49756         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49757         can't handle large files, for the sake of obsolete platforms.
49758         * modules/fseeko (Depends-on): Remove verify.
49759         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49760         * doc/functions/ftello.texi (ftello): Likewise.
49761         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49762         Reported by Larry Jones.
49763
49764 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49765
49766         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49767         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49768
49769 2007-12-17  Jim Meyering  <meyering@redhat.com>
49770
49771         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49772         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49773         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49774         * modules/getcwd (Depends-on): Add openat.
49775         Reported by Petr Salinger.
49776
49777 2007-12-17  Bruno Haible  <bruno@clisp.org>
49778
49779         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49780         avoid a segmentation fault of the configure test on x86_64 systems.
49781
49782 2007-12-15  Jim Meyering  <meyering@redhat.com>
49783
49784         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49785
49786 2007-12-13  Eric Blake  <ebb9@byu.net>
49787
49788         Another fseek test.
49789         * tests/test-fseek.c (main): Also test ungetc handling.
49790         * tests/test-fseeko.c (main): Likewise.
49791         * modules/fseeko (Depends-on): Add verify.
49792         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49793         large.
49794         Reported by Larry Jones.
49795
49796         Fix fseeko on mingw.
49797         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49798         seek.
49799
49800         Beef up fseek tests.
49801         * tests/test-fseek.c (main): Also test eof handling.
49802         * tests/test-fseeko.c (main): Likewise.
49803         Reported by Larry Jones.
49804
49805 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49806
49807         Fix fseeko on BSD-based platforms.
49808         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49809         successful seek.
49810
49811 2007-12-12  Eric Blake  <ebb9@byu.net>
49812
49813         Allow circular dependency of separate libtests.a
49814         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49815         when use_libtests.
49816
49817 2007-12-11  Eric Blake  <ebb9@byu.net>
49818
49819         Fix bug with -0.0L in previous patch.
49820         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49821         * tests/test-isnan.c (main): Also test on zeroes.
49822         * tests/test-isnanf.c (main): Likewise.
49823         * tests/test-isnanl.h (main): Likewise.
49824
49825         Detect pseudo-denormals on x86 even when cross-compiling.
49826         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49827         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49828         invalid bit patterns that happen to satisfy ==.
49829
49830         Avoid link failures with separate libtests.a.
49831         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49832         last, to satisfy circular dependencies.
49833
49834 2007-12-11  Eric Blake  <ebb9@byu.net>
49835         and Bruno Haible  <bruno@clisp.org>
49836
49837         Fix OpenBSD 4.0 <float.h> handling of long double.
49838         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49839         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49840         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49841
49842 2007-12-11  Jim Meyering  <meyering@redhat.com>
49843
49844         * users.txt: Add libvirt.
49845
49846         Support versions of autoconf prior to 2.59c.
49847         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49848         if it is not already defined.
49849
49850 2007-12-09  Bruno Haible  <bruno@clisp.org>
49851
49852         Let 'gnulib-tool --import' collect sources needed for the tests in
49853         tests/ rather than in lib/.
49854         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49855         argument. If true, add rules to generate libtests.a, and put libtests.a
49856         into $(LDADD). Consider source files in subdirectories and set
49857         uses_subdirs.
49858         (func_emit_initmacro_start, func_emit_initmacro_end,
49859         func_emit_initmacro_done): Pass all arguments explicitly.
49860         (func_import): Determine two module lists main_modules,
49861         testsrelated_modules. Determine use_libtests. Determine two variables
49862         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49863         instead of just sed_transform_lib_file. Determine two variables
49864         main_files and testsrelated_files. Compute 'files' as the union of
49865         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49866         func_add_or_update. In the generated gnulib-comp.m4, collect the
49867         object files for tests/ in different variables than those for lib/.
49868         Substitute LIBTESTS_LIBDEPS.
49869         (func_create_testdir): Combine the uses_subdirs results from
49870         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49871
49872 2007-12-09  Bruno Haible  <bruno@clisp.org>
49873
49874         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49875         the build-aux directory.
49876
49877 2007-12-09  Bruno Haible  <bruno@clisp.org>
49878
49879         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49880         introduced on 2006-09-09.
49881
49882 2007-12-07  Jim Meyering  <meyering@redhat.com>
49883
49884         Let these macros work also with autoconf-2.59.
49885         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49886         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49887         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49888
49889 2007-12-06  Jim Meyering  <meyering@redhat.com>
49890
49891         Avoid a configure-time syntax error in gl_FUNC_ACL.
49892         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49893         function in each branch, before testing the cache variable.
49894
49895 2007-12-04  Eric Blake  <ebb9@byu.net>
49896
49897         Make scripts executable.
49898         * build-aux/config.guess: Add execute permissions.
49899         * build-aux/config.sub: Likewise.
49900         * build-aux/gendocs.sh: Likewise.
49901
49902         Fix frexp on mingw.
49903         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49904         cross-compiling.
49905         * doc/functions/frexp.texi (frexp): Document the bug.
49906
49907         Make cygwin fseeko check more reliable.
49908         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49909         version numbers, rather than unrelated feature check.
49910         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49911         * doc/functions/ftello.texi (ftello): Likewise.
49912         Reported by Bruno Haible.
49913
49914         * m4/strerror.m4: Bump version number.
49915
49916 2007-12-03  Bruno Haible  <bruno@clisp.org>
49917
49918         * doc/functions/mprotect.texi: Mention the mingw problem.
49919
49920 2007-12-03  Eric Blake  <ebb9@byu.net>
49921
49922         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49923         REPLACE_STRERROR is initialized before this macro.
49924
49925 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49926
49927         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49928         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49929         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49930         put -lsec in even for programs other than 'ls'.  This fixes a problem
49931         for gettext reported by Bruno Haible in
49932         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49933         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49934         Add support for Solaris 10.  This isn't efficient, but should get the
49935         job done for now.
49936
49937 2007-12-03  James Youngman  <jay@gnu.org>
49938
49939         * doc/regexprops-generic.texi: change "an close-group" to "a
49940         close-group" and "illegal" to "not allowed".
49941
49942 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49943
49944         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49945         pr_byname.h. Needed for the rare case when the maintainer has done
49946         "make maintainer-clean" in the source directory and then attempts a
49947         build outside the source directory.
49948         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49949         scripts_byname.h.
49950
49951 2007-12-02  Martin Lambers <marlam@marlam.de>
49952             Bruno Haible  <bruno@clisp.org>
49953
49954         * lib/getpagesize.h: Remove file.
49955         * lib/unistd.in.h: Include declaration of getpagesize here.
49956         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49957         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49958         HAVE_SYS_PARAM_H.
49959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49960         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49961         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49962         (Depends-on): Add unistd.
49963         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49964         (Include): Use <unistd.h> instead of getpagesize.h.
49965         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49966         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49967         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49968         gl_GETPAGESIZE invocation, already handled by module dependency.
49969         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49970
49971 2007-12-02  Bruno Haible  <bruno@clisp.org>
49972
49973         * modules/strings-tests: New file.
49974         * tests/test-strings.c: New file.
49975
49976         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49977         * lib/strings.in.h: New file.
49978         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49979         * m4/strings_h.m4: New file.
49980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49981         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49982         * modules/strings: New file.
49983         * modules/string (Makefile.am): Update.
49984         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49985         Reported by Karl Berry.
49986
49987 2007-12-01  Eric Blake  <ebb9@byu.net>
49988
49989         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49990         accomodate fix in cygwin 1.5.25.
49991
49992 2007-12-01  Jim Meyering  <meyering@redhat.com>
49993
49994         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49995         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49996         that would inhibit utf8-optimization of a regexp containing line-
49997         or buffer-anchors, e.g., `^', `$'.
49998
49999 2007-11-30  Bruno Haible  <bruno@clisp.org>
50000
50001         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
50002         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
50003         glthread_recursive_lock_init.
50004         * lib/lock.c (glthread_recursive_lock_init)
50005         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
50006         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50007
50008 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
50009
50010         New function qset_acl, like set_acl but with syscall semantics.
50011         * lib/acl.h (qset_acl): New decl.
50012         * lib/acl.c (qset_acl): New function.
50013         (set_acl): Use new function.  Use more-consistent diagnostics.
50014
50015 2007-11-28  Jim Meyering  <meyering@redhat.com>
50016
50017         * modules/physmem (License): Change from GPL to LGPLv2+.
50018
50019 2007-11-26  Bruno Haible  <bruno@clisp.org>
50020
50021         * lib/vasnprintf.c (decode_long_double): Don't abort if the
50022         'long double' type has excess precision.
50023         Reported by Jim Meyering in
50024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
50025
50026 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50027
50028         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
50029         Sync from <http://gnu.org/licenses>.
50030         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
50031         with license text from same location.
50032         * doc/maintain.texi, doc/standards.texi:  Sync from
50033         <http://savannah.gnu.org/projects/gnustandards>.
50034
50035 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
50036         and Jim Meyering  <meyering@redhat.com>
50037
50038         Adjust getdate' grammar to accept a slightly more regular language.
50039         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
50040         Before, the former was rejected.
50041         * lib/getdate.y (digits_to_date_time): New function, factored
50042         out of ...
50043         (number): ...here.  Just call digits_to_date_time.
50044         (hybrid): New non-terminal to handle an <unsigned number,
50045         signed relative offset> sequence consistently.
50046
50047 2007-11-18  Jim Meyering  <meyering@redhat.com>
50048
50049         Pull my changes from coreutils:
50050         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
50051         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
50052         use of $gnulib_tool_option_extras, so that it's separated from the
50053         preceding argument.
50054
50055         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
50056         * build-aux/bootstrap (cp_mark_as_generated): Create any required
50057         parent destination directories before copying a file into place.
50058
50059 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50060
50061         bootstrap: work also with 4-argument variant of AC_INIT
50062         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
50063
50064 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50065
50066         Port test-getaddrinfo to Solaris.
50067         Problem reported by Bruno Haible in
50068         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
50069         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
50070         explanation of setting 'hints'.
50071         Don't reject an implementation merely because it returns EAI_SERVICE.
50072         (EAI_SERVICE): Define to 0 if not defined.
50073
50074 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
50075
50076         The license of gnu-make and posix-shell is now "GPLed build tool".
50077         * modules/gnu-make (License): Likewise.
50078         * modules/posix-shell (License): Likewise.
50079
50080         New module posix-shell, for determining a POSIX shell
50081         or perhaps something that is close enough to a POSIX shell.
50082         * m4/posix-shell.m4: New file.
50083         * modules/posix-shell: New file.
50084
50085         * MODULES.html.sh: Mention new module.
50086
50087         New module gnu-make, for determining whether we're using GNU Make.
50088         * m4/gnu-make.m4: New file.
50089         * modules/gnu-make: New file.
50090         * MODULES.html.sh: Mention new module.
50091
50092 2007-11-14  Jim Meyering  <meyering@redhat.com>
50093
50094         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
50095         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
50096         use this macro to create a function _definition_.
50097         Remove useless "#undef ARGMATCH_DIE".
50098
50099 2007-11-14  Bruno Haible  <bruno@clisp.org>
50100
50101         * lib/config.charset: Update for OpenBSD 4.1.
50102         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
50103
50104 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
50105
50106         Document 64-bit #if problems in stdint.texi.
50107         * doc/headers/stdint.texi (stdint.h): Mention problems with
50108         64-bit-#if, and how to work around them.
50109
50110         Don't insist on 'long long int' support in the preprocessor.  It
50111         breaks too many things.  For example, PRIdMAX still uses a 'long
50112         long int' format with the latest Sun compiler, even though
50113         HAVE_LONG_LONG_INT isn't defined due to that compiler's
50114         preprocessor problem.  This causes the latest coreutils to dump
50115         core on Solaris 10 sparc with the Sun C compiler.
50116         Instead, fix the 2007-10-16 problem in a different way, by evaluating
50117         the troublesome expressions at configure-time, not at #if-time.
50118         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
50119         preprocessor.
50120         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
50121         compile-time C checks, done at 'configure'-time.
50122         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
50123         * modules/inttypes (Makefile): Substitute the new symbols that
50124         gl_INTTYPES_H now generates.
50125         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
50126
50127 2007-11-12  Bruno Haible  <bruno@clisp.org>
50128
50129         Tests for Unicode character classification functions.
50130
50131         * modules/unictype/bidicategory-byname-tests: New file.
50132         * modules/unictype/bidicategory-name-tests: New file.
50133         * modules/unictype/bidicategory-of-tests: New file.
50134         * modules/unictype/bidicategory-test-tests: New file.
50135         * modules/unictype/block-list-tests: New file.
50136         * modules/unictype/block-of-tests: New file.
50137         * modules/unictype/block-test-tests: New file.
50138         * modules/unictype/category-C-tests: New file.
50139         * modules/unictype/category-Cc-tests: New file.
50140         * modules/unictype/category-Cf-tests: New file.
50141         * modules/unictype/category-Cn-tests: New file.
50142         * modules/unictype/category-Co-tests: New file.
50143         * modules/unictype/category-Cs-tests: New file.
50144         * modules/unictype/category-L-tests: New file.
50145         * modules/unictype/category-Ll-tests: New file.
50146         * modules/unictype/category-Lm-tests: New file.
50147         * modules/unictype/category-Lo-tests: New file.
50148         * modules/unictype/category-Lt-tests: New file.
50149         * modules/unictype/category-Lu-tests: New file.
50150         * modules/unictype/category-M-tests: New file.
50151         * modules/unictype/category-Mc-tests: New file.
50152         * modules/unictype/category-Me-tests: New file.
50153         * modules/unictype/category-Mn-tests: New file.
50154         * modules/unictype/category-N-tests: New file.
50155         * modules/unictype/category-Nd-tests: New file.
50156         * modules/unictype/category-Nl-tests: New file.
50157         * modules/unictype/category-No-tests: New file.
50158         * modules/unictype/category-P-tests: New file.
50159         * modules/unictype/category-Pc-tests: New file.
50160         * modules/unictype/category-Pd-tests: New file.
50161         * modules/unictype/category-Pe-tests: New file.
50162         * modules/unictype/category-Pf-tests: New file.
50163         * modules/unictype/category-Pi-tests: New file.
50164         * modules/unictype/category-Po-tests: New file.
50165         * modules/unictype/category-Ps-tests: New file.
50166         * modules/unictype/category-S-tests: New file.
50167         * modules/unictype/category-Sc-tests: New file.
50168         * modules/unictype/category-Sk-tests: New file.
50169         * modules/unictype/category-Sm-tests: New file.
50170         * modules/unictype/category-So-tests: New file.
50171         * modules/unictype/category-Z-tests: New file.
50172         * modules/unictype/category-Zl-tests: New file.
50173         * modules/unictype/category-Zp-tests: New file.
50174         * modules/unictype/category-Zs-tests: New file.
50175         * modules/unictype/category-and-not-tests: New file.
50176         * modules/unictype/category-and-tests: New file.
50177         * modules/unictype/category-byname-tests: New file.
50178         * modules/unictype/category-name-tests: New file.
50179         * modules/unictype/category-none-tests: New file.
50180         * modules/unictype/category-of-tests: New file.
50181         * modules/unictype/category-or-tests: New file.
50182         * modules/unictype/category-test-withtable-tests: New file.
50183         * modules/unictype/combining-class-tests: New file.
50184         * modules/unictype/ctype-alnum-tests: New file.
50185         * modules/unictype/ctype-alpha-tests: New file.
50186         * modules/unictype/ctype-blank-tests: New file.
50187         * modules/unictype/ctype-cntrl-tests: New file.
50188         * modules/unictype/ctype-digit-tests: New file.
50189         * modules/unictype/ctype-graph-tests: New file.
50190         * modules/unictype/ctype-lower-tests: New file.
50191         * modules/unictype/ctype-print-tests: New file.
50192         * modules/unictype/ctype-punct-tests: New file.
50193         * modules/unictype/ctype-space-tests: New file.
50194         * modules/unictype/ctype-upper-tests: New file.
50195         * modules/unictype/ctype-xdigit-tests: New file.
50196         * modules/unictype/decimal-digit-tests: New file.
50197         * modules/unictype/digit-tests: New file.
50198         * modules/unictype/mirror-tests: New file.
50199         * modules/unictype/numeric-tests: New file.
50200         * modules/unictype/property-alphabetic-tests: New file.
50201         * modules/unictype/property-ascii-hex-digit-tests: New file.
50202         * modules/unictype/property-bidi-arabic-digit-tests: New file.
50203         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
50204         * modules/unictype/property-bidi-block-separator-tests: New file.
50205         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
50206         * modules/unictype/property-bidi-common-separator-tests: New file.
50207         * modules/unictype/property-bidi-control-tests: New file.
50208         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
50209         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
50210         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
50211         * modules/unictype/property-bidi-european-digit-tests: New file.
50212         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
50213         * modules/unictype/property-bidi-left-to-right-tests: New file.
50214         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
50215         * modules/unictype/property-bidi-other-neutral-tests: New file.
50216         * modules/unictype/property-bidi-pdf-tests: New file.
50217         * modules/unictype/property-bidi-segment-separator-tests: New file.
50218         * modules/unictype/property-bidi-whitespace-tests: New file.
50219         * modules/unictype/property-byname-tests: New file.
50220         * modules/unictype/property-combining-tests: New file.
50221         * modules/unictype/property-composite-tests: New file.
50222         * modules/unictype/property-currency-symbol-tests: New file.
50223         * modules/unictype/property-dash-tests: New file.
50224         * modules/unictype/property-decimal-digit-tests: New file.
50225         * modules/unictype/property-default-ignorable-code-point-tests: New file.
50226         * modules/unictype/property-deprecated-tests: New file.
50227         * modules/unictype/property-diacritic-tests: New file.
50228         * modules/unictype/property-extender-tests: New file.
50229         * modules/unictype/property-format-control-tests: New file.
50230         * modules/unictype/property-grapheme-base-tests: New file.
50231         * modules/unictype/property-grapheme-extend-tests: New file.
50232         * modules/unictype/property-grapheme-link-tests: New file.
50233         * modules/unictype/property-hex-digit-tests: New file.
50234         * modules/unictype/property-hyphen-tests: New file.
50235         * modules/unictype/property-id-continue-tests: New file.
50236         * modules/unictype/property-id-start-tests: New file.
50237         * modules/unictype/property-ideographic-tests: New file.
50238         * modules/unictype/property-ids-binary-operator-tests: New file.
50239         * modules/unictype/property-ids-trinary-operator-tests: New file.
50240         * modules/unictype/property-ignorable-control-tests: New file.
50241         * modules/unictype/property-iso-control-tests: New file.
50242         * modules/unictype/property-join-control-tests: New file.
50243         * modules/unictype/property-left-of-pair-tests: New file.
50244         * modules/unictype/property-line-separator-tests: New file.
50245         * modules/unictype/property-logical-order-exception-tests: New file.
50246         * modules/unictype/property-lowercase-tests: New file.
50247         * modules/unictype/property-math-tests: New file.
50248         * modules/unictype/property-non-break-tests: New file.
50249         * modules/unictype/property-not-a-character-tests: New file.
50250         * modules/unictype/property-numeric-tests: New file.
50251         * modules/unictype/property-other-alphabetic-tests: New file.
50252         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50253         * modules/unictype/property-other-grapheme-extend-tests: New file.
50254         * modules/unictype/property-other-id-continue-tests: New file.
50255         * modules/unictype/property-other-id-start-tests: New file.
50256         * modules/unictype/property-other-lowercase-tests: New file.
50257         * modules/unictype/property-other-math-tests: New file.
50258         * modules/unictype/property-other-uppercase-tests: New file.
50259         * modules/unictype/property-paired-punctuation-tests: New file.
50260         * modules/unictype/property-paragraph-separator-tests: New file.
50261         * modules/unictype/property-pattern-syntax-tests: New file.
50262         * modules/unictype/property-pattern-white-space-tests: New file.
50263         * modules/unictype/property-private-use-tests: New file.
50264         * modules/unictype/property-punctuation-tests: New file.
50265         * modules/unictype/property-quotation-mark-tests: New file.
50266         * modules/unictype/property-radical-tests: New file.
50267         * modules/unictype/property-sentence-terminal-tests: New file.
50268         * modules/unictype/property-soft-dotted-tests: New file.
50269         * modules/unictype/property-space-tests: New file.
50270         * modules/unictype/property-terminal-punctuation-tests: New file.
50271         * modules/unictype/property-test-tests: New file.
50272         * modules/unictype/property-titlecase-tests: New file.
50273         * modules/unictype/property-unassigned-code-value-tests: New file.
50274         * modules/unictype/property-unified-ideograph-tests: New file.
50275         * modules/unictype/property-uppercase-tests: New file.
50276         * modules/unictype/property-variation-selector-tests: New file.
50277         * modules/unictype/property-white-space-tests: New file.
50278         * modules/unictype/property-xid-continue-tests: New file.
50279         * modules/unictype/property-xid-start-tests: New file.
50280         * modules/unictype/property-zero-width-tests: New file.
50281         * modules/unictype/scripts-tests: New file.
50282         * modules/unictype/syntax-c-ident-tests: New file.
50283         * modules/unictype/syntax-c-whitespace-tests: New file.
50284         * modules/unictype/syntax-java-ident-tests: New file.
50285         * modules/unictype/syntax-java-whitespace-tests: New file.
50286         * tests/unictype/test-bidi_byname.c: New file.
50287         * tests/unictype/test-bidi_name.c: New file.
50288         * tests/unictype/test-bidi_of.c: New file.
50289         * tests/unictype/test-bidi_test.c: New file.
50290         * tests/unictype/test-block_list.c: New file.
50291         * tests/unictype/test-block_of.c: New file.
50292         * tests/unictype/test-block_test.c: New file.
50293         * tests/unictype/test-categ_and.c: New file.
50294         * tests/unictype/test-categ_and_not.c: New file.
50295         * tests/unictype/test-categ_byname.c: New file.
50296         * tests/unictype/test-categ_name.c: New file.
50297         * tests/unictype/test-categ_none.c: New file.
50298         * tests/unictype/test-categ_of.c: New file.
50299         * tests/unictype/test-categ_or.c: New file.
50300         * tests/unictype/test-categ_test_withtable.c: New file.
50301         * tests/unictype/test-combining.c: New file.
50302         * tests/unictype/test-decdigit.c: New file.
50303         * tests/unictype/test-digit.c: New file.
50304         * tests/unictype/test-mirror.c: New file.
50305         * tests/unictype/test-numeric.c: New file.
50306         * tests/unictype/test-pr_byname.c: New file.
50307         * tests/unictype/test-pr_test.c: New file.
50308         * tests/unictype/test-predicate-part1.h: New file.
50309         * tests/unictype/test-predicate-part2.h: New file.
50310         * tests/unictype/test-scripts.c: New file.
50311         * tests/unictype/test-sy_c_ident.c: New file.
50312         * tests/unictype/test-sy_java_ident.c: New file.
50313
50314         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50315         for Unicode 5.0.0.
50316         * tests/unictype/test-categ_Cc.c: Likewise.
50317         * tests/unictype/test-categ_Cf.c: Likewise.
50318         * tests/unictype/test-categ_Cn.c: Likewise.
50319         * tests/unictype/test-categ_Co.c: Likewise.
50320         * tests/unictype/test-categ_Cs.c: Likewise.
50321         * tests/unictype/test-categ_L.c: Likewise.
50322         * tests/unictype/test-categ_Ll.c: Likewise.
50323         * tests/unictype/test-categ_Lm.c: Likewise.
50324         * tests/unictype/test-categ_Lo.c: Likewise.
50325         * tests/unictype/test-categ_Lt.c: Likewise.
50326         * tests/unictype/test-categ_Lu.c: Likewise.
50327         * tests/unictype/test-categ_M.c: Likewise.
50328         * tests/unictype/test-categ_Mc.c: Likewise.
50329         * tests/unictype/test-categ_Me.c: Likewise.
50330         * tests/unictype/test-categ_Mn.c: Likewise.
50331         * tests/unictype/test-categ_N.c: Likewise.
50332         * tests/unictype/test-categ_Nd.c: Likewise.
50333         * tests/unictype/test-categ_Nl.c: Likewise.
50334         * tests/unictype/test-categ_No.c: Likewise.
50335         * tests/unictype/test-categ_P.c: Likewise.
50336         * tests/unictype/test-categ_Pc.c: Likewise.
50337         * tests/unictype/test-categ_Pd.c: Likewise.
50338         * tests/unictype/test-categ_Pe.c: Likewise.
50339         * tests/unictype/test-categ_Pf.c: Likewise.
50340         * tests/unictype/test-categ_Pi.c: Likewise.
50341         * tests/unictype/test-categ_Po.c: Likewise.
50342         * tests/unictype/test-categ_Ps.c: Likewise.
50343         * tests/unictype/test-categ_S.c: Likewise.
50344         * tests/unictype/test-categ_Sc.c: Likewise.
50345         * tests/unictype/test-categ_Sk.c: Likewise.
50346         * tests/unictype/test-categ_Sm.c: Likewise.
50347         * tests/unictype/test-categ_So.c: Likewise.
50348         * tests/unictype/test-categ_Z.c: Likewise.
50349         * tests/unictype/test-categ_Zl.c: Likewise.
50350         * tests/unictype/test-categ_Zp.c: Likewise.
50351         * tests/unictype/test-categ_Zs.c: Likewise.
50352         * tests/unictype/test-ctype_alnum.c: Likewise.
50353         * tests/unictype/test-ctype_alpha.c: Likewise.
50354         * tests/unictype/test-ctype_blank.c: Likewise.
50355         * tests/unictype/test-ctype_cntrl.c: Likewise.
50356         * tests/unictype/test-ctype_digit.c: Likewise.
50357         * tests/unictype/test-ctype_graph.c: Likewise.
50358         * tests/unictype/test-ctype_lower.c: Likewise.
50359         * tests/unictype/test-ctype_print.c: Likewise.
50360         * tests/unictype/test-ctype_punct.c: Likewise.
50361         * tests/unictype/test-ctype_space.c: Likewise.
50362         * tests/unictype/test-ctype_upper.c: Likewise.
50363         * tests/unictype/test-ctype_xdigit.c: Likewise.
50364         * tests/unictype/test-decdigit.h: Likewise.
50365         * tests/unictype/test-digit.h: Likewise.
50366         * tests/unictype/test-numeric.h: Likewise.
50367         * tests/unictype/test-pr_alphabetic.c: Likewise.
50368         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50369         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50370         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50371         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50372         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50373         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50374         * tests/unictype/test-pr_bidi_control.c: Likewise.
50375         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50376         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50377         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50378         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50379         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50380         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50381         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50382         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50383         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50384         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50385         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50386         * tests/unictype/test-pr_combining.c: Likewise.
50387         * tests/unictype/test-pr_composite.c: Likewise.
50388         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50389         * tests/unictype/test-pr_dash.c: Likewise.
50390         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50391         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50392         * tests/unictype/test-pr_deprecated.c: Likewise.
50393         * tests/unictype/test-pr_diacritic.c: Likewise.
50394         * tests/unictype/test-pr_extender.c: Likewise.
50395         * tests/unictype/test-pr_format_control.c: Likewise.
50396         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50397         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50398         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50399         * tests/unictype/test-pr_hex_digit.c: Likewise.
50400         * tests/unictype/test-pr_hyphen.c: Likewise.
50401         * tests/unictype/test-pr_id_continue.c: Likewise.
50402         * tests/unictype/test-pr_id_start.c: Likewise.
50403         * tests/unictype/test-pr_ideographic.c: Likewise.
50404         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
50405         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
50406         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50407         * tests/unictype/test-pr_iso_control.c: Likewise.
50408         * tests/unictype/test-pr_join_control.c: Likewise.
50409         * tests/unictype/test-pr_left_of_pair.c: Likewise.
50410         * tests/unictype/test-pr_line_separator.c: Likewise.
50411         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50412         * tests/unictype/test-pr_lowercase.c: Likewise.
50413         * tests/unictype/test-pr_math.c: Likewise.
50414         * tests/unictype/test-pr_non_break.c: Likewise.
50415         * tests/unictype/test-pr_not_a_character.c: Likewise.
50416         * tests/unictype/test-pr_numeric.c: Likewise.
50417         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50418         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
50419         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
50420         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50421         * tests/unictype/test-pr_other_id_start.c: Likewise.
50422         * tests/unictype/test-pr_other_lowercase.c: Likewise.
50423         * tests/unictype/test-pr_other_math.c: Likewise.
50424         * tests/unictype/test-pr_other_uppercase.c: Likewise.
50425         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
50426         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
50427         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
50428         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
50429         * tests/unictype/test-pr_private_use.c: Likewise.
50430         * tests/unictype/test-pr_punctuation.c: Likewise.
50431         * tests/unictype/test-pr_quotation_mark.c: Likewise.
50432         * tests/unictype/test-pr_radical.c: Likewise.
50433         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50434         * tests/unictype/test-pr_soft_dotted.c: Likewise.
50435         * tests/unictype/test-pr_space.c: Likewise.
50436         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50437         * tests/unictype/test-pr_titlecase.c: Likewise.
50438         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50439         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50440         * tests/unictype/test-pr_uppercase.c: Likewise.
50441         * tests/unictype/test-pr_variation_selector.c: Likewise.
50442         * tests/unictype/test-pr_white_space.c: Likewise.
50443         * tests/unictype/test-pr_xid_continue.c: Likewise.
50444         * tests/unictype/test-pr_xid_start.c: Likewise.
50445         * tests/unictype/test-pr_zero_width.c: Likewise.
50446         * tests/unictype/test-sy_c_whitespace.c: Likewise.
50447         * tests/unictype/test-sy_java_whitespace.c: Likewise.
50448
50449 2007-11-12  Bruno Haible  <bruno@clisp.org>
50450
50451         Unicode character classification functions.
50452         * lib/unictype.h: New file.
50453         * modules/unictype/base: New file.
50454         * modules/unictype/category-L: New file.
50455         * modules/unictype/category-Lu: New file.
50456         * modules/unictype/category-Ll: New file.
50457         * modules/unictype/category-Lt: New file.
50458         * modules/unictype/category-Lm: New file.
50459         * modules/unictype/category-Lo: New file.
50460         * modules/unictype/category-M: New file.
50461         * modules/unictype/category-Mn: New file.
50462         * modules/unictype/category-Mc: New file.
50463         * modules/unictype/category-Me: New file.
50464         * modules/unictype/category-N: New file.
50465         * modules/unictype/category-Nd: New file.
50466         * modules/unictype/category-Nl: New file.
50467         * modules/unictype/category-No: New file.
50468         * modules/unictype/category-P: New file.
50469         * modules/unictype/category-Pc: New file.
50470         * modules/unictype/category-Pd: New file.
50471         * modules/unictype/category-Ps: New file.
50472         * modules/unictype/category-Pe: New file.
50473         * modules/unictype/category-Pi: New file.
50474         * modules/unictype/category-Pf: New file.
50475         * modules/unictype/category-Po: New file.
50476         * modules/unictype/category-S: New file.
50477         * modules/unictype/category-Sm: New file.
50478         * modules/unictype/category-Sc: New file.
50479         * modules/unictype/category-Sk: New file.
50480         * modules/unictype/category-So: New file.
50481         * modules/unictype/category-Z: New file.
50482         * modules/unictype/category-Zs: New file.
50483         * modules/unictype/category-Zl: New file.
50484         * modules/unictype/category-Zp: New file.
50485         * modules/unictype/category-C: New file.
50486         * modules/unictype/category-Cc: New file.
50487         * modules/unictype/category-Cf: New file.
50488         * modules/unictype/category-Cs: New file.
50489         * modules/unictype/category-Co: New file.
50490         * modules/unictype/category-Cn: New file.
50491         * modules/unictype/category-or: New file.
50492         * modules/unictype/category-of: New file.
50493         * modules/unictype/category-test: New file.
50494         * modules/unictype/category-test-withtable: New file.
50495         * modules/unictype/category-byname: New file.
50496         * modules/unictype/category-none: New file.
50497         * modules/unictype/category-and: New file.
50498         * modules/unictype/category-and-not: New file.
50499         * modules/unictype/category-name: New file.
50500         * modules/unictype/combining-class: New file.
50501         * modules/unictype/category-all: New file.
50502         * modules/unictype/bidicategory-all: New file.
50503         * modules/unictype/bidicategory-byname: New file.
50504         * modules/unictype/bidicategory-name: New file.
50505         * modules/unictype/bidicategory-of: New file.
50506         * modules/unictype/bidicategory-test: New file.
50507         * modules/unictype/decimal-digit: New file.
50508         * modules/unictype/digit: New file.
50509         * modules/unictype/numeric: New file.
50510         * modules/unictype/mirror: New file.
50511         * modules/unictype/property-white-space: New file.
50512         * modules/unictype/property-alphabetic: New file.
50513         * modules/unictype/property-other-alphabetic: New file.
50514         * modules/unictype/property-not-a-character: New file.
50515         * modules/unictype/property-default-ignorable-code-point: New file.
50516         * modules/unictype/property-other-default-ignorable-code-point: New
50517         file.
50518         * modules/unictype/property-deprecated: New file.
50519         * modules/unictype/property-logical-order-exception: New file.
50520         * modules/unictype/property-variation-selector: New file.
50521         * modules/unictype/property-private-use: New file.
50522         * modules/unictype/property-unassigned-code-value: New file.
50523         * modules/unictype/property-uppercase: New file.
50524         * modules/unictype/property-other-uppercase: New file.
50525         * modules/unictype/property-lowercase: New file.
50526         * modules/unictype/property-other-lowercase: New file.
50527         * modules/unictype/property-titlecase: New file.
50528         * modules/unictype/property-soft-dotted: New file.
50529         * modules/unictype/property-id-start: New file.
50530         * modules/unictype/property-other-id-start: New file.
50531         * modules/unictype/property-id-continue: New file.
50532         * modules/unictype/property-other-id-continue: New file.
50533         * modules/unictype/property-xid-start: New file.
50534         * modules/unictype/property-xid-continue: New file.
50535         * modules/unictype/property-pattern-white-space: New file.
50536         * modules/unictype/property-pattern-syntax: New file.
50537         * modules/unictype/property-join-control: New file.
50538         * modules/unictype/property-grapheme-base: New file.
50539         * modules/unictype/property-grapheme-extend: New file.
50540         * modules/unictype/property-other-grapheme-extend: New file.
50541         * modules/unictype/property-grapheme-link: New file.
50542         * modules/unictype/property-bidi-control: New file.
50543         * modules/unictype/property-bidi-left-to-right: New file.
50544         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50545         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50546         * modules/unictype/property-bidi-european-digit: New file.
50547         * modules/unictype/property-bidi-eur-num-separator: New file.
50548         * modules/unictype/property-bidi-eur-num-terminator: New file.
50549         * modules/unictype/property-bidi-arabic-digit: New file.
50550         * modules/unictype/property-bidi-common-separator: New file.
50551         * modules/unictype/property-bidi-block-separator: New file.
50552         * modules/unictype/property-bidi-segment-separator: New file.
50553         * modules/unictype/property-bidi-whitespace: New file.
50554         * modules/unictype/property-bidi-non-spacing-mark: New file.
50555         * modules/unictype/property-bidi-boundary-neutral: New file.
50556         * modules/unictype/property-bidi-pdf: New file.
50557         * modules/unictype/property-bidi-embedding-or-override: New file.
50558         * modules/unictype/property-bidi-other-neutral: New file.
50559         * modules/unictype/property-hex-digit: New file.
50560         * modules/unictype/property-ascii-hex-digit: New file.
50561         * modules/unictype/property-ideographic: New file.
50562         * modules/unictype/property-unified-ideograph: New file.
50563         * modules/unictype/property-radical: New file.
50564         * modules/unictype/property-ids-binary-operator: New file.
50565         * modules/unictype/property-ids-trinary-operator: New file.
50566         * modules/unictype/property-zero-width: New file.
50567         * modules/unictype/property-space: New file.
50568         * modules/unictype/property-non-break: New file.
50569         * modules/unictype/property-iso-control: New file.
50570         * modules/unictype/property-format-control: New file.
50571         * modules/unictype/property-dash: New file.
50572         * modules/unictype/property-hyphen: New file.
50573         * modules/unictype/property-punctuation: New file.
50574         * modules/unictype/property-line-separator: New file.
50575         * modules/unictype/property-paragraph-separator: New file.
50576         * modules/unictype/property-quotation-mark: New file.
50577         * modules/unictype/property-sentence-terminal: New file.
50578         * modules/unictype/property-terminal-punctuation: New file.
50579         * modules/unictype/property-currency-symbol: New file.
50580         * modules/unictype/property-math: New file.
50581         * modules/unictype/property-other-math: New file.
50582         * modules/unictype/property-paired-punctuation: New file.
50583         * modules/unictype/property-left-of-pair: New file.
50584         * modules/unictype/property-combining: New file.
50585         * modules/unictype/property-composite: New file.
50586         * modules/unictype/property-decimal-digit: New file.
50587         * modules/unictype/property-numeric: New file.
50588         * modules/unictype/property-diacritic: New file.
50589         * modules/unictype/property-extender: New file.
50590         * modules/unictype/property-ignorable-control: New file.
50591         * modules/unictype/property-test: New file.
50592         * modules/unictype/property-byname: New file.
50593         * modules/unictype/property-all: New file.
50594         * modules/unictype/scripts: New file.
50595         * modules/unictype/scripts-all: New file.
50596         * modules/unictype/block-of: New file.
50597         * modules/unictype/block-test: New file.
50598         * modules/unictype/block-list: New file.
50599         * modules/unictype/block-all: New file.
50600         * modules/unictype/syntax-c-whitespace: New file.
50601         * modules/unictype/syntax-java-whitespace: New file.
50602         * modules/unictype/syntax-c-ident: New file.
50603         * modules/unictype/syntax-java-ident: New file.
50604         * modules/unictype/ctype-alnum: New file.
50605         * modules/unictype/ctype-alpha: New file.
50606         * modules/unictype/ctype-cntrl: New file.
50607         * modules/unictype/ctype-digit: New file.
50608         * modules/unictype/ctype-graph: New file.
50609         * modules/unictype/ctype-lower: New file.
50610         * modules/unictype/ctype-print: New file.
50611         * modules/unictype/ctype-punct: New file.
50612         * modules/unictype/ctype-space: New file.
50613         * modules/unictype/ctype-upper: New file.
50614         * modules/unictype/ctype-xdigit: New file.
50615         * modules/unictype/ctype-blank: New file.
50616         * lib/unictype/bidi_byname.c: New file.
50617         * lib/unictype/bidi_name.c: New file.
50618         * lib/unictype/bidi_of.c: New file.
50619         * lib/unictype/bidi_test.c: New file.
50620         * lib/unictype/bitmap.h: New file.
50621         * lib/unictype/block_test.c: New file.
50622         * lib/unictype/blocks.c: New file.
50623         * lib/unictype/categ_C.c: New file.
50624         * lib/unictype/categ_Cc.c: New file.
50625         * lib/unictype/categ_Cf.c: New file.
50626         * lib/unictype/categ_Cn.c: New file.
50627         * lib/unictype/categ_Co.c: New file.
50628         * lib/unictype/categ_Cs.c: New file.
50629         * lib/unictype/categ_L.c: New file.
50630         * lib/unictype/categ_Ll.c: New file.
50631         * lib/unictype/categ_Lm.c: New file.
50632         * lib/unictype/categ_Lo.c: New file.
50633         * lib/unictype/categ_Lt.c: New file.
50634         * lib/unictype/categ_Lu.c: New file.
50635         * lib/unictype/categ_M.c: New file.
50636         * lib/unictype/categ_Mc.c: New file.
50637         * lib/unictype/categ_Me.c: New file.
50638         * lib/unictype/categ_Mn.c: New file.
50639         * lib/unictype/categ_N.c: New file.
50640         * lib/unictype/categ_Nd.c: New file.
50641         * lib/unictype/categ_Nl.c: New file.
50642         * lib/unictype/categ_No.c: New file.
50643         * lib/unictype/categ_P.c: New file.
50644         * lib/unictype/categ_Pc.c: New file.
50645         * lib/unictype/categ_Pd.c: New file.
50646         * lib/unictype/categ_Pe.c: New file.
50647         * lib/unictype/categ_Pf.c: New file.
50648         * lib/unictype/categ_Pi.c: New file.
50649         * lib/unictype/categ_Po.c: New file.
50650         * lib/unictype/categ_Ps.c: New file.
50651         * lib/unictype/categ_S.c: New file.
50652         * lib/unictype/categ_Sc.c: New file.
50653         * lib/unictype/categ_Sk.c: New file.
50654         * lib/unictype/categ_Sm.c: New file.
50655         * lib/unictype/categ_So.c: New file.
50656         * lib/unictype/categ_Z.c: New file.
50657         * lib/unictype/categ_Zl.c: New file.
50658         * lib/unictype/categ_Zp.c: New file.
50659         * lib/unictype/categ_Zs.c: New file.
50660         * lib/unictype/categ_and.c: New file.
50661         * lib/unictype/categ_and_not.c: New file.
50662         * lib/unictype/categ_byname.c: New file.
50663         * lib/unictype/categ_name.c: New file.
50664         * lib/unictype/categ_none.c: New file.
50665         * lib/unictype/categ_of.c: New file.
50666         * lib/unictype/categ_or.c: New file.
50667         * lib/unictype/categ_test.c: New file.
50668         * lib/unictype/combining.c: New file.
50669         * lib/unictype/ctype_alnum.c: New file.
50670         * lib/unictype/ctype_alpha.c: New file.
50671         * lib/unictype/ctype_blank.c: New file.
50672         * lib/unictype/ctype_cntrl.c: New file.
50673         * lib/unictype/ctype_digit.c: New file.
50674         * lib/unictype/ctype_graph.c: New file.
50675         * lib/unictype/ctype_lower.c: New file.
50676         * lib/unictype/ctype_print.c: New file.
50677         * lib/unictype/ctype_punct.c: New file.
50678         * lib/unictype/ctype_space.c: New file.
50679         * lib/unictype/ctype_upper.c: New file.
50680         * lib/unictype/ctype_xdigit.c: New file.
50681         * lib/unictype/decdigit.c: New file.
50682         * lib/unictype/digit.c: New file.
50683         * lib/unictype/identsyntaxmap.h: New file.
50684         * lib/unictype/mirror.c: New file.
50685         * lib/unictype/numeric.c: New file.
50686         * lib/unictype/pr_alphabetic.c: New file.
50687         * lib/unictype/pr_ascii_hex_digit.c: New file.
50688         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50689         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50690         * lib/unictype/pr_bidi_block_separator.c: New file.
50691         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50692         * lib/unictype/pr_bidi_common_separator.c: New file.
50693         * lib/unictype/pr_bidi_control.c: New file.
50694         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50695         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50696         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50697         * lib/unictype/pr_bidi_european_digit.c: New file.
50698         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50699         * lib/unictype/pr_bidi_left_to_right.c: New file.
50700         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50701         * lib/unictype/pr_bidi_other_neutral.c: New file.
50702         * lib/unictype/pr_bidi_pdf.c: New file.
50703         * lib/unictype/pr_bidi_segment_separator.c: New file.
50704         * lib/unictype/pr_bidi_whitespace.c: New file.
50705         * lib/unictype/pr_byname.c: New file.
50706         * lib/unictype/pr_byname.gperf: New file.
50707         * lib/unictype/pr_combining.c: New file.
50708         * lib/unictype/pr_composite.c: New file.
50709         * lib/unictype/pr_currency_symbol.c: New file.
50710         * lib/unictype/pr_dash.c: New file.
50711         * lib/unictype/pr_decimal_digit.c: New file.
50712         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50713         * lib/unictype/pr_deprecated.c: New file.
50714         * lib/unictype/pr_diacritic.c: New file.
50715         * lib/unictype/pr_extender.c: New file.
50716         * lib/unictype/pr_format_control.c: New file.
50717         * lib/unictype/pr_grapheme_base.c: New file.
50718         * lib/unictype/pr_grapheme_extend.c: New file.
50719         * lib/unictype/pr_grapheme_link.c: New file.
50720         * lib/unictype/pr_hex_digit.c: New file.
50721         * lib/unictype/pr_hyphen.c: New file.
50722         * lib/unictype/pr_id_continue.c: New file.
50723         * lib/unictype/pr_id_start.c: New file.
50724         * lib/unictype/pr_ideographic.c: New file.
50725         * lib/unictype/pr_ids_binary_operator.c: New file.
50726         * lib/unictype/pr_ids_trinary_operator.c: New file.
50727         * lib/unictype/pr_ignorable_control.c: New file.
50728         * lib/unictype/pr_iso_control.c: New file.
50729         * lib/unictype/pr_join_control.c: New file.
50730         * lib/unictype/pr_left_of_pair.c: New file.
50731         * lib/unictype/pr_line_separator.c: New file.
50732         * lib/unictype/pr_logical_order_exception.c: New file.
50733         * lib/unictype/pr_lowercase.c: New file.
50734         * lib/unictype/pr_math.c: New file.
50735         * lib/unictype/pr_non_break.c: New file.
50736         * lib/unictype/pr_not_a_character.c: New file.
50737         * lib/unictype/pr_numeric.c: New file.
50738         * lib/unictype/pr_other_alphabetic.c: New file.
50739         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50740         * lib/unictype/pr_other_grapheme_extend.c: New file.
50741         * lib/unictype/pr_other_id_continue.c: New file.
50742         * lib/unictype/pr_other_id_start.c: New file.
50743         * lib/unictype/pr_other_lowercase.c: New file.
50744         * lib/unictype/pr_other_math.c: New file.
50745         * lib/unictype/pr_other_uppercase.c: New file.
50746         * lib/unictype/pr_paired_punctuation.c: New file.
50747         * lib/unictype/pr_paragraph_separator.c: New file.
50748         * lib/unictype/pr_pattern_syntax.c: New file.
50749         * lib/unictype/pr_pattern_white_space.c: New file.
50750         * lib/unictype/pr_private_use.c: New file.
50751         * lib/unictype/pr_punctuation.c: New file.
50752         * lib/unictype/pr_quotation_mark.c: New file.
50753         * lib/unictype/pr_radical.c: New file.
50754         * lib/unictype/pr_sentence_terminal.c: New file.
50755         * lib/unictype/pr_soft_dotted.c: New file.
50756         * lib/unictype/pr_space.c: New file.
50757         * lib/unictype/pr_terminal_punctuation.c: New file.
50758         * lib/unictype/pr_test.c: New file.
50759         * lib/unictype/pr_titlecase.c: New file.
50760         * lib/unictype/pr_unassigned_code_value.c: New file.
50761         * lib/unictype/pr_unified_ideograph.c: New file.
50762         * lib/unictype/pr_uppercase.c: New file.
50763         * lib/unictype/pr_variation_selector.c: New file.
50764         * lib/unictype/pr_white_space.c: New file.
50765         * lib/unictype/pr_xid_continue.c: New file.
50766         * lib/unictype/pr_xid_start.c: New file.
50767         * lib/unictype/pr_zero_width.c: New file.
50768         * lib/unictype/scripts.c: New file.
50769         * lib/unictype/sy_c_ident.c: New file.
50770         * lib/unictype/sy_c_whitespace.c: New file.
50771         * lib/unictype/sy_java_ident.c: New file.
50772         * lib/unictype/sy_java_whitespace.c: New file.
50773
50774         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50775         Unicode 5.0.0.
50776         * lib/unictype/blocks.h: Likewise.
50777         * lib/unictype/categ_C.h: Likewise.
50778         * lib/unictype/categ_Cc.h: Likewise.
50779         * lib/unictype/categ_Cf.h: Likewise.
50780         * lib/unictype/categ_Cn.h: Likewise.
50781         * lib/unictype/categ_Co.h: Likewise.
50782         * lib/unictype/categ_Cs.h: Likewise.
50783         * lib/unictype/categ_L.h: Likewise.
50784         * lib/unictype/categ_Ll.h: Likewise.
50785         * lib/unictype/categ_Lm.h: Likewise.
50786         * lib/unictype/categ_Lo.h: Likewise.
50787         * lib/unictype/categ_Lt.h: Likewise.
50788         * lib/unictype/categ_Lu.h: Likewise.
50789         * lib/unictype/categ_M.h: Likewise.
50790         * lib/unictype/categ_Mc.h: Likewise.
50791         * lib/unictype/categ_Me.h: Likewise.
50792         * lib/unictype/categ_Mn.h: Likewise.
50793         * lib/unictype/categ_N.h: Likewise.
50794         * lib/unictype/categ_Nd.h: Likewise.
50795         * lib/unictype/categ_Nl.h: Likewise.
50796         * lib/unictype/categ_No.h: Likewise.
50797         * lib/unictype/categ_P.h: Likewise.
50798         * lib/unictype/categ_Pc.h: Likewise.
50799         * lib/unictype/categ_Pd.h: Likewise.
50800         * lib/unictype/categ_Pe.h: Likewise.
50801         * lib/unictype/categ_Pf.h: Likewise.
50802         * lib/unictype/categ_Pi.h: Likewise.
50803         * lib/unictype/categ_Po.h: Likewise.
50804         * lib/unictype/categ_Ps.h: Likewise.
50805         * lib/unictype/categ_S.h: Likewise.
50806         * lib/unictype/categ_Sc.h: Likewise.
50807         * lib/unictype/categ_Sk.h: Likewise.
50808         * lib/unictype/categ_Sm.h: Likewise.
50809         * lib/unictype/categ_So.h: Likewise.
50810         * lib/unictype/categ_Z.h: Likewise.
50811         * lib/unictype/categ_Zl.h: Likewise.
50812         * lib/unictype/categ_Zp.h: Likewise.
50813         * lib/unictype/categ_Zs.h: Likewise.
50814         * lib/unictype/categ_of.h: Likewise.
50815         * lib/unictype/combining.h: Likewise.
50816         * lib/unictype/ctype_alnum.h: Likewise.
50817         * lib/unictype/ctype_alpha.h: Likewise.
50818         * lib/unictype/ctype_blank.h: Likewise.
50819         * lib/unictype/ctype_cntrl.h: Likewise.
50820         * lib/unictype/ctype_digit.h: Likewise.
50821         * lib/unictype/ctype_graph.h: Likewise.
50822         * lib/unictype/ctype_lower.h: Likewise.
50823         * lib/unictype/ctype_print.h: Likewise.
50824         * lib/unictype/ctype_punct.h: Likewise.
50825         * lib/unictype/ctype_space.h: Likewise.
50826         * lib/unictype/ctype_upper.h: Likewise.
50827         * lib/unictype/ctype_xdigit.h: Likewise.
50828         * lib/unictype/decdigit.h: Likewise.
50829         * lib/unictype/digit.h: Likewise.
50830         * lib/unictype/mirror.h: Likewise.
50831         * lib/unictype/numeric.h: Likewise.
50832         * lib/unictype/pr_alphabetic.h: Likewise.
50833         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50834         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50835         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50836         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50837         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50838         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50839         * lib/unictype/pr_bidi_control.h: Likewise.
50840         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50841         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50842         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50843         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50844         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50845         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50846         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50847         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50848         * lib/unictype/pr_bidi_pdf.h: Likewise.
50849         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50850         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50851         * lib/unictype/pr_combining.h: Likewise.
50852         * lib/unictype/pr_composite.h: Likewise.
50853         * lib/unictype/pr_currency_symbol.h: Likewise.
50854         * lib/unictype/pr_dash.h: Likewise.
50855         * lib/unictype/pr_decimal_digit.h: Likewise.
50856         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50857         * lib/unictype/pr_deprecated.h: Likewise.
50858         * lib/unictype/pr_diacritic.h: Likewise.
50859         * lib/unictype/pr_extender.h: Likewise.
50860         * lib/unictype/pr_format_control.h: Likewise.
50861         * lib/unictype/pr_grapheme_base.h: Likewise.
50862         * lib/unictype/pr_grapheme_extend.h: Likewise.
50863         * lib/unictype/pr_grapheme_link.h: Likewise.
50864         * lib/unictype/pr_hex_digit.h: Likewise.
50865         * lib/unictype/pr_hyphen.h: Likewise.
50866         * lib/unictype/pr_id_continue.h: Likewise.
50867         * lib/unictype/pr_id_start.h: Likewise.
50868         * lib/unictype/pr_ideographic.h: Likewise.
50869         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50870         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50871         * lib/unictype/pr_ignorable_control.h: Likewise.
50872         * lib/unictype/pr_iso_control.h: Likewise.
50873         * lib/unictype/pr_join_control.h: Likewise.
50874         * lib/unictype/pr_left_of_pair.h: Likewise.
50875         * lib/unictype/pr_line_separator.h: Likewise.
50876         * lib/unictype/pr_logical_order_exception.h: Likewise.
50877         * lib/unictype/pr_lowercase.h: Likewise.
50878         * lib/unictype/pr_math.h: Likewise.
50879         * lib/unictype/pr_non_break.h: Likewise.
50880         * lib/unictype/pr_not_a_character.h: Likewise.
50881         * lib/unictype/pr_numeric.h: Likewise.
50882         * lib/unictype/pr_other_alphabetic.h: Likewise.
50883         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50884         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50885         * lib/unictype/pr_other_id_continue.h: Likewise.
50886         * lib/unictype/pr_other_id_start.h: Likewise.
50887         * lib/unictype/pr_other_lowercase.h: Likewise.
50888         * lib/unictype/pr_other_math.h: Likewise.
50889         * lib/unictype/pr_other_uppercase.h: Likewise.
50890         * lib/unictype/pr_paired_punctuation.h: Likewise.
50891         * lib/unictype/pr_paragraph_separator.h: Likewise.
50892         * lib/unictype/pr_pattern_syntax.h: Likewise.
50893         * lib/unictype/pr_pattern_white_space.h: Likewise.
50894         * lib/unictype/pr_private_use.h: Likewise.
50895         * lib/unictype/pr_punctuation.h: Likewise.
50896         * lib/unictype/pr_quotation_mark.h: Likewise.
50897         * lib/unictype/pr_radical.h: Likewise.
50898         * lib/unictype/pr_sentence_terminal.h: Likewise.
50899         * lib/unictype/pr_soft_dotted.h: Likewise.
50900         * lib/unictype/pr_space.h: Likewise.
50901         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50902         * lib/unictype/pr_titlecase.h: Likewise.
50903         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50904         * lib/unictype/pr_unified_ideograph.h: Likewise.
50905         * lib/unictype/pr_uppercase.h: Likewise.
50906         * lib/unictype/pr_variation_selector.h: Likewise.
50907         * lib/unictype/pr_white_space.h: Likewise.
50908         * lib/unictype/pr_xid_continue.h: Likewise.
50909         * lib/unictype/pr_xid_start.h: Likewise.
50910         * lib/unictype/pr_zero_width.h: Likewise.
50911         * lib/unictype/scripts.h: Likewise.
50912         * lib/unictype/scripts_byname.gperf: Likewise.
50913         * lib/unictype/sy_c_ident.h: Likewise.
50914         * lib/unictype/sy_c_whitespace.h: Likewise.
50915         * lib/unictype/sy_java_ident.h: Likewise.
50916         * lib/unictype/sy_java_whitespace.h: Likewise.
50917
50918         * lib/unictype/Makefile: New file.
50919         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50920         glibc.
50921         * lib/unictype/3level.h: New file, copied from glibc.
50922         * lib/unictype/3levelbit.h: New file.
50923
50924 2007-11-11  Bruno Haible  <bruno@clisp.org>
50925
50926         * modules/gperf: New file.
50927         * modules/iconv_open (Depends-on): Add it.
50928         (Makefile.am): Remove the GPERF definition.
50929
50930 2007-11-11  Bruno Haible  <bruno@clisp.org>
50931
50932         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50933         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50934
50935 2007-11-11  Bruno Haible  <bruno@clisp.org>
50936
50937         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50938         (usage): Remove function.
50939
50940 2007-11-11  Bruno Haible  <bruno@clisp.org>
50941
50942         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50943         gl_FUNC_CEILF_LIBS.
50944         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50945         gl_FUNC_CEIL_LIBS.
50946         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50947         gl_FUNC_CEILL_LIBS.
50948         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50949         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50950         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50951
50952 2007-11-11  Bruno Haible  <bruno@clisp.org>
50953
50954         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50955         roundf were declared but do not exist on functions.
50956         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50957         roundl were declared but do not exist on functions.
50958         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50959         HAVE_FLOORL_AND_CEILL, respectively.
50960         Needed for Sun C on Solaris 10.
50961
50962 2007-11-11  Bruno Haible  <bruno@clisp.org>
50963
50964         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50965         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50966         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50967         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50968         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50969         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50970         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50971         HAVE_DECL_ROUNDF.
50972         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50973         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50975         of HAVE_DECL_ROUND*.
50976         * modules/math (Makefile.am): Update.
50977
50978 2007-11-10  Bruno Haible  <bruno@clisp.org>
50979
50980         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50981         ptrdiff_t as m4/intl.m4.
50982
50983 2007-11-10  Jim Meyering  <meyering@redhat.com>
50984
50985         Avoid link failure for the argmatch test.
50986         * tests/test-argmatch.c (usage): Define function to avoid a link
50987         failure: argmatch_die requires a usage function.
50988
50989 2007-11-09  Bruno Haible  <bruno@clisp.org>
50990
50991         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50992         * doc/functions/vsnprintf.texi: Likewise.
50993         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50994         with a size argument < 2.
50995
50996 2007-11-09  Bruno Haible  <bruno@clisp.org>
50997
50998         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50999         buffer. Fixes an inefficiency introduced on 2007-11-03.
51000
51001 2007-11-09  Bruno Haible  <bruno@clisp.org>
51002
51003         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
51004         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
51005
51006 2007-11-08  Jim Meyering  <meyering@redhat.com>
51007
51008         Change cache variable name prefix "jm_" to "gl_" everywhere.
51009         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
51010         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
51011         * m4/uptime.m4: s/gl_/jm_/
51012
51013 2007-11-07  Bruno Haible  <bruno@clisp.org>
51014
51015         Update to GNU gettext 0.17.
51016         * m4/intl.m4: Update to GNU gettext 0.17.
51017         * m4/po.m4: Likewise.
51018         * modules/gettext (Files): Remove m4/ulonglong.m4.
51019         (configure.ac): Require gettext infrastructure from version 0.17.
51020
51021 2007-11-06  Bruno Haible  <bruno@clisp.org>
51022
51023         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
51024         symbolic values are not defined in a public header.
51025         * lib/freadable.c (freadable) [QNX]: Likewise.
51026         * lib/freadahead.c (freadahead) [QNX]: Likewise.
51027         * lib/freading.c (freading) [QNX]: Likewise.
51028         * lib/fseterr.c (fseterr) [QNX]: Likewise.
51029         * lib/fwritable.c (fwritable) [QNX]: Likewise.
51030         * lib/fwriting.c (fwriting) [QNX]: Likewise.
51031         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
51032         Reported by Alain Magloire.
51033
51034         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
51035
51036 2007-11-05  Bruno Haible  <bruno@clisp.org>
51037
51038         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
51039         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
51040         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
51041         Reported by Eric Blake.
51042
51043 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51044             Bruno Haible  <bruno@clisp.org>
51045
51046         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
51047         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
51048         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
51049         (malloc): Undefine also before including <stdlib.h>.
51050         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
51051         Needed on OSF/1 4.0.
51052
51053 2007-11-05  Jim Meyering  <meyering@redhat.com>
51054
51055         git-version-gen: sync from coreutils.
51056         * build-aux/git-version-gen: Add comments.
51057         Change the first '-' to '.' in the snapshot version string,
51058         e.g., 6.9-377-08144 -> 6.9.377-08144
51059         Remove first parameter.
51060         Don't declare a version "-dirty" merely because a time
51061         stamp has changed.
51062
51063 2007-11-04  Bruno Haible  <bruno@clisp.org>
51064
51065         * lib/lock.h: Protect all macro definitions containing an 'if'
51066         statement through a "do { ... } while (0)".
51067         * lib/tls.h: Likewise.
51068
51069 2007-11-04  Bruno Haible  <bruno@clisp.org>
51070
51071         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
51072
51073 2007-11-04  Bruno Haible  <bruno@clisp.org>
51074
51075         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
51076         * modules/fprintf-posix (Depends-on): Add nocrash.
51077         * modules/snprintf-posix (Depends-on): Likewise.
51078         * modules/sprintf-posix (Depends-on): Likewise.
51079         * modules/vasnprintf-posix (Depends-on): Likewise.
51080         * modules/vasprintf-posix (Depends-on): Likewise.
51081         * modules/vfprintf-posix (Depends-on): Likewise.
51082         * modules/vsnprintf-posix (Depends-on): Likewise.
51083         * modules/vsprintf-posix (Depends-on): Likewise.
51084         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51085         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51086         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51087         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51088         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51089         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51090         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51091
51092 2007-11-04  Bruno Haible  <bruno@clisp.org>
51093
51094         * modules/nocrash: New file.
51095         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
51096         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
51097
51098 2007-11-04  Bruno Haible  <bruno@clisp.org>
51099
51100         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
51101         precision handling.
51102         * tests/test-vasprintf-posix.c (test_function): Likewise.
51103         * tests/test-snprintf-posix.h (test_function): Likewise.
51104         * tests/test-sprintf-posix.h (test_function): Likewise.
51105
51106         Fix *printf behaviour for large precisions on mingw and BeOS.
51107         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
51108         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
51109         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
51110         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51111         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51112         gl_PRINTF_PRECISION and test its result. Invoke
51113         gl_PREREQ_VASNPRINTF_PRECISION.
51114         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51115         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51116         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51117         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51118         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51119         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51120         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51121         * doc/functions/fprintf.texi: Update.
51122         * doc/functions/printf.texi: Update.
51123         * doc/functions/snprintf.texi: Update.
51124         * doc/functions/sprintf.texi: Update.
51125         * doc/functions/vfprintf.texi: Update.
51126         * doc/functions/vprintf.texi: Update.
51127         * doc/functions/vsnprintf.texi: Update.
51128         * doc/functions/vsprintf.texi: Update.
51129
51130 2007-11-04  Bruno Haible  <bruno@clisp.org>
51131
51132         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
51133
51134 2007-11-04  Bruno Haible  <bruno@clisp.org>
51135
51136         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
51137         Reported by Sylvain Beucler <beuc@gnu.org>.
51138
51139 2007-11-03  Bruno Haible  <bruno@clisp.org>
51140
51141         * tests/test-fprintf-posix2.sh: New file.
51142         * tests/test-fprintf-posix2.c: New file.
51143         * modules/fprintf-posix-tests (Files): Add them.
51144         (TESTS): Add test-fprintf-posix2.sh.
51145         (configure.ac): Check for getrlimit and setrlimit.
51146         (check_PROGRAMS): Add test-fprintf-posix2.
51147
51148         * tests/test-printf-posix2.sh: New file.
51149         * tests/test-printf-posix2.c: New file.
51150         * modules/printf-posix-tests (Files): Add them.
51151         (TESTS): Add test-printf-posix2.sh.
51152         (configure.ac): Check for getrlimit and setrlimit.
51153         (check_PROGRAMS): Add test-printf-posix2.
51154
51155         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
51156         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
51157         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
51158         (decode_double): New function, copied from decode_long_double.
51159         (scale10_round_decimal_decoded): New function, extracted from
51160         scale10_round_decimal_long_double.
51161         (scale10_round_decimal_long_double): Use it.
51162         (scale10_round_decimal_double): New function.
51163         (floorlog10): New function.
51164         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
51165         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
51166         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51167         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51168         gl_PRINTF_ENOMEM and test its result. Invoke
51169         gl_PREREQ_VASNPRINTF_ENOMEM.
51170         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51171         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51172         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51173         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51174         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51175         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51176         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51177         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
51178         * modules/snprintf-posix (Depends-on): Likewise.
51179         * modules/sprintf-posix (Depends-on): Likewise.
51180         * modules/vasnprintf-posix (Depends-on): Likewise.
51181         * modules/vasprintf-posix (Depends-on): Likewise.
51182         * modules/vfprintf-posix (Depends-on): Likewise.
51183         * modules/vsnprintf-posix (Depends-on): Likewise.
51184         * modules/vsprintf-posix (Depends-on): Likewise.
51185         * doc/functions/fprintf.texi: Update.
51186         * doc/functions/printf.texi: Update.
51187         * doc/functions/snprintf.texi: Update.
51188         * doc/functions/sprintf.texi: Update.
51189         * doc/functions/vfprintf.texi: Update.
51190         * doc/functions/vprintf.texi: Update.
51191         * doc/functions/vsnprintf.texi: Update.
51192         * doc/functions/vsprintf.texi: Update.
51193
51194 2007-11-03  Bruno Haible  <bruno@clisp.org>
51195
51196         * modules/frexp-nolibm-tests: New file.
51197
51198         * modules/frexp-nolibm: New file.
51199         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
51200
51201 2007-11-03  Bruno Haible  <bruno@clisp.org>
51202
51203         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
51204         value is C99 compliant.
51205         Needed for OSF/1 5.1.
51206
51207 2007-11-03  Bruno Haible  <bruno@clisp.org>
51208
51209         Fix out-of-memory handling of vasnprintf.
51210         * lib/printf-parse.c: Include <errno.h>.
51211         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
51212         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
51213         is already set.
51214
51215 2007-11-02  Eric Blake  <ebb9@byu.net>
51216
51217         Fix tests on cygwin.
51218         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
51219
51220 2007-11-01  Bruno Haible  <bruno@clisp.org>
51221
51222         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
51223         warning.
51224         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
51225         needed for POSIX compatibility.
51226
51227 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51228
51229         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
51230         for compatibility with GNU.
51231
51232 2007-11-01  Bruno Haible  <bruno@clisp.org>
51233
51234         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
51235         (putenv): Renamed from rpl_putenv. Change argument type from
51236         'const char *' to 'char *'.
51237         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
51238         of defining putenv in config.h, just set REPLACE_PUTENV.
51239         * modules/putenv (Depends-on): Add stdlib.
51240         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51241         (Include): Use <stdlib.h>.
51242         * lib/stdlib.in.h (putenv): New declaration.
51243         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
51244         REPLACE_PUTENV.
51245         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
51246         REPLACE_PUTENV.
51247         Needed for MacOS X 10.5.0.
51248         Reported by Peter O'Gorman <peter@pogma.com>.
51249
51250 2007-11-01  Jim Meyering  <meyering@redhat.com>
51251
51252         Treat an empty date string exactly like "0".
51253         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51254         if the remaining date string (to be parsed) is empty, use "0".
51255         Reported by Mischa Molhoek and discussed in this thread:
51256         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51257
51258 2007-10-31  Bruno Haible  <bruno@clisp.org>
51259
51260         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51261         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51262         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51263         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51264         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51265         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51266
51267 2007-10-31  Bruno Haible  <bruno@clisp.org>
51268
51269         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51270         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51271         (AC_TYPE_LONG_LONG_INT): Use it.
51272         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51273         it as well.
51274         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51275         to m4/longlong.m4.
51276         * modules/stdint (Files): Remove m4/ulonglong.m4.
51277         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51278         m4/ulonglong.m4.
51279         * modules/strtoumax (Files): Likewise.
51280
51281 2007-10-30  Bruno Haible  <bruno@clisp.org>
51282
51283         * modules/xvasprintf-posix: New file.
51284         Suggested by Eric Blake.
51285
51286 2007-10-30  Bruno Haible  <bruno@clisp.org>
51287
51288         * modules/xprintf-posix-tests: New file.
51289         * tests/test-xprintf-posix.sh: New file.
51290         * tests/test-xprintf-posix.c: New file.
51291         * tests/test-xfprintf-posix.c: New file.
51292
51293         * modules/xprintf-posix: New file.
51294
51295 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51296
51297         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51298         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51299         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51300
51301 2007-10-29  Bruno Haible  <bruno@clisp.org>
51302
51303         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51304         contain the special marker '_cv_'.
51305         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51306         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51307         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51308         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51309         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51310         Reported by Ralf Wildenhues.
51311
51312 2007-10-29  Bruno Haible  <bruno@clisp.org>
51313
51314         * gnulib-tool (func_import): When --lgpl is not specified, set
51315         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51316         GPLv3.
51317         Reported by Simon Josefsson.
51318
51319 2007-10-28  Bruno Haible  <bruno@clisp.org>
51320
51321         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51322         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51323         HAVE_DECL_ISFINITE.
51324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51325         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51326         HAVE_DECL_ISFINITE.
51327
51328 2007-10-28  Bruno Haible  <bruno@clisp.org>
51329
51330         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51331         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51332
51333 2007-10-28  Bruno Haible  <bruno@clisp.org>
51334
51335         Fix link errors with Sun C 5.0 on Solaris 10.
51336         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51337         function is declared but not present in the compiler's libm.
51338         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51339         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51340         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51341         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51342         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51343         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51344         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51346         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51347         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51348         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51349         HAVE_DECL_FLOORL.
51350
51351 2007-10-28  Bruno Haible  <bruno@clisp.org>
51352
51353         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51354         gl_FUNC_FLOORL. Cache the result.
51355         (gl_FUNC_FLOORL): Use it.
51356         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51357         gl_FUNC_CEILL. Cache the result.
51358         (gl_FUNC_CEILL): Use it.
51359
51360         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51361         gl_FUNC_FLOOR. Cache the result.
51362         (gl_FUNC_FLOOR): Use it.
51363         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51364         gl_FUNC_CEIL. Cache the result.
51365         (gl_FUNC_CEIL): Use it.
51366
51367         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51368         gl_FUNC_FLOORF. Cache the result.
51369         (gl_FUNC_FLOORF): Use it.
51370         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51371         gl_FUNC_CEILF. Cache the result.
51372         (gl_FUNC_CEILF): Use it.
51373
51374 2007-10-28  Bruno Haible  <bruno@clisp.org>
51375
51376         * gnulib-tool: Allow specifying the LGPL version number through
51377         --lgpl=2 or --lgpl=3.
51378         (func_usage): Document --lgpl with argument.
51379         Handle --lgpl=... arguments.
51380         (func_import): Recognize also gl_LGPL calls with an argument. When
51381         --lgpl=2 is used and the module's license is just LGPL, report an
51382         error. Set sed_transform_lib_file according to the lgpl variable. In
51383         the generated files, use --lgpl or gl_LGPL invocations with argument,
51384         if necessary.
51385         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51386         an LGPv2+ license.
51387         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51388         gl_LGPL macro.
51389
51390 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51391             Bruno Haible  <bruno@clisp.org>
51392
51393         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51394         (u16_uctomb_aux): Likewise.
51395         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51396         !HAVE_INLINE.
51397         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
51398
51399 2007-10-28  Bruno Haible  <bruno@clisp.org>
51400
51401         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
51402         Invoke AM_GETTEXT_OPTION if it exists.
51403         * modules/vasprintf: Likewise.
51404         * modules/verror: Likewise.
51405         * modules/xprintf: Likewise.
51406         * modules/xvasprintf: Likewise.
51407
51408 2007-10-27  Ben Pfaff  <blp@gnu.org>
51409
51410         * lib/math.in.h: Define isfinite macro and prototypes for
51411         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
51412         implementations.
51413         * m4/math_h.m4: New substitutions for isfinite module.
51414         * lib/isfinite.c: New file.
51415         * m4/isfinite.m4: New file.
51416         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
51417         * modules/isfinite: New file.
51418         * modules/isfinite-tests: New file.
51419         * tests/tests-isfinite.c: New file.
51420         * doc/functions/isfinite.texi: Mention isfinite module.
51421         * MODULES.html.sh: Mention new module.
51422
51423 2007-10-27  Ben Pfaff  <blp@gnu.org>
51424
51425         Ralf Wildenhues reported that Tru64 4.0D declares the round
51426         functions but does not have definitions.
51427         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
51428         cannot be found in any library, set the output variable to
51429         "missing" instead of "".
51430         * m4/round.m4: Also use our substitute if we cannot find round in
51431         any library, even if it is declared.
51432         * m4/roundf.m4: Likewise for roundf.
51433         * m4/roundl.m4: Likewise for roundl.
51434         * lib/math.in.h: Undefine roundf, round, roundl before defining
51435         their replacements, to allow for hypothetical systems where these
51436         may be defined as macros but not available in libraries.
51437
51438 2007-10-27  Bruno Haible  <bruno@clisp.org>
51439
51440         * doc/gnulib.texi: Invoke @firstparagraphindent.
51441         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
51442         changes in gnulib.
51443         (Source changes): New section.
51444
51445 2007-10-26  Bruno Haible  <bruno@clisp.org>
51446
51447         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
51448         borrowed from autoconf.
51449
51450 2007-10-26  Bruno Haible  <bruno@clisp.org>
51451
51452         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
51453         strerror returned the empty string. Needed on HP-UX 11.00.
51454
51455 2007-10-24  Micah Cowan  <micah@cowan.name>
51456
51457         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
51458         * build-aux/bootstrap: Remove support for now-unnecessary option,
51459         --cvs-user, and envvars CVS_USER, CVS_RSH.
51460
51461 2007-10-24  Jim Meyering  <meyering@redhat.com>
51462
51463         Avoid diagnostics from sha1sum when there is no cached checksum.
51464         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
51465         if the po.s1 file hasn't been created yet.
51466
51467         * build-aux/bootstrap: Sync from coreutils:
51468         2007-10-24  Jim Meyering  <meyering@redhat.com>
51469         Get gnulib from the git repository, not from an obsolete cvs one.
51470         * build-aux/bootstrap: Suggestion from Micah Cowan.
51471         2007-10-04  Jim Meyering  <jim@meyering.net>
51472         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
51473         (update_po_files): Work also when there are no .po files in po/.
51474
51475 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51476
51477         * README: Append ".git" to git and cg examples.
51478         Problem reported by Benoit Sigoure.
51479
51480 2007-10-23  Micah Cowan  <micah@cowan.name>
51481
51482         * users.txt: Add wget.
51483
51484 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51485
51486         Fix linking of some unistdio tests on FreeBSD.
51487         * modules/unistdio/u16-vsnprintf-tests
51488         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51489         * modules/unistdio/u16-vsprintf-tests
51490         (test_u16_vsnprintf1_LDADD): Likewise.
51491         * modules/unistdio/u32-vsnprintf-tests
51492         (test_u32_vsnprintf1_LDADD): Likewise.
51493         * modules/unistdio/u32-vsprintf-tests
51494         (test_u32_vsprintf1_LDADD): Likewise.
51495         * modules/unistdio/u8-vsnprintf-tests
51496         (test_u8_vsnprintf1_LDADD): Likewise.
51497         * modules/unistdio/u8-vsprintf-tests
51498         (test_u8_vsprintf1_LDADD): Likewise.
51499         * modules/unistdio/ulc-vsnprintf-tests
51500         (test_ulc_vsnprintf1_LDADD): Likewise.
51501         * modules/unistdio/ulc-vsprintf-tests
51502         (test_ulc_vsprintf1_LDADD): Likewise.
51503
51504         Fix linking of some uniconv tests on FreeBSD.
51505         * modules/uniconv/u16-conv-from-enc-tests
51506         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51507         * modules/uniconv/u16-conv-to-enc-tests
51508         (test_u16_conv_to_enc_LDADD): Likewise.
51509         * modules/uniconv/u16-strconv-from-enc-tests
51510         (test_u16_strconv_from_enc_LDADD): Likewise.
51511         * modules/uniconv/u16-strconv-to-enc-tests
51512         (test_u16_strconv_to_enc_LDADD): Likewise.
51513         * modules/uniconv/u32-conv-from-enc-tests
51514         (test_u32_conv_from_enc_LDADD): Likewise.
51515         * modules/uniconv/u32-conv-to-enc-tests
51516         (test_u32_conv_to_enc_LDADD): Likewise.
51517         * modules/uniconv/u32-strconv-from-enc-tests
51518         (test_u32_strconv_from_enc_LDADD): Likewise.
51519         * modules/uniconv/u32-strconv-to-enc-tests
51520         (test_u32_strconv_to_enc_LDADD): Likewise.
51521         * modules/uniconv/u8-conv-from-enc-tests
51522         (test_u8_conv_from_enc_LDADD): Likewise.
51523         * modules/uniconv/u8-conv-to-enc-tests
51524         (test_u8_conv_to_enc_LDADD): Likewise.
51525         * modules/uniconv/u8-strconv-from-enc-tests
51526         (test_u8_strconv_from_enc_LDADD): Likewise.
51527         * modules/uniconv/u8-strconv-to-enc-tests
51528         (test_u8_strconv_to_enc_LDADD): Likewise.
51529
51530 2007-10-22  Bruno Haible  <bruno@clisp.org>
51531
51532         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51533         size.
51534
51535 2007-10-22  Eric Blake  <ebb9@byu.net>
51536
51537         Tweak x*printf documentation.
51538         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51539         variable name and comments.
51540         Suggested by Bruno Haible.
51541
51542 2007-10-22  Bruno Haible  <bruno@clisp.org>
51543
51544         * lib/acl.c (copy_acl): Fix file name in comment.
51545
51546 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51547
51548         Fix Tru64 problem with stdbool.h.
51549         * lib/stdbool.in.h (false, true):
51550         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51551         Don't declare as an enum in this situation; it runs afoul of Tru64.
51552         Problem reported by Steven M. Schweda in
51553         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51554
51555 2007-10-22  Eric Blake  <ebb9@byu.net>
51556
51557         Also wrap vf?printf.
51558         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51559         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51560         (xvprintf, xvfprintf): New functions.
51561
51562 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51563
51564         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51565         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51566
51567         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51568         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51569
51570 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51571
51572         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51573         by Bruno Haible.
51574
51575 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51576
51577         * lib/getloadavg.c
51578         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51579         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51580
51581         * tests/test-i-ring.c: Work for C89.
51582
51583 2007-10-22  Bruno Haible  <bruno@clisp.org>
51584
51585         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51586         -1u, in preprocessor expression, so that we don't test for the bug
51587         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51588         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51589
51590 2007-10-22  Eric Blake  <ebb9@byu.net>
51591
51592         * tests/test-yesno.sh: Silence stderr during test.
51593
51594 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51595
51596         * modules/crypto/gc-camellia: New file.
51597
51598         * m4/gc-camellia.m4: New file.
51599
51600         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51601
51602         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51603
51604 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51605
51606         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51607         --help to stdout.  Reported by sms@antinode.org (Steven
51608         M. Schweda).
51609
51610 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51611
51612         * users.txt: Fix link to libksba.
51613
51614 2007-10-21  Ben Pfaff  <blp@gnu.org>
51615
51616         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51617         round.c roundf implementation that depends on floorf and ceilf to
51618         be tested unconditionally.
51619
51620 2007-10-21  Ben Pfaff  <blp@gnu.org>
51621
51622         * m4/check-libm-func.m4: Removed.
51623         * m4/check-math-lib.m4: New file.
51624         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51625         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51626         definition and lack of AC_LIBOBJ([roundf]).
51627         * m4/roundl.m4: Ditto, and similarly for roundl.
51628         * modules/round: Reference new m4 file.
51629         * modules/roundf: Ditto.
51630         * modules/roundl: Ditto.
51631         * tests/test-round2.c (main): Use ROUND instead of round.
51632         Bug report from Bruno Haible.
51633
51634 2007-10-21  Bruno Haible  <bruno@clisp.org>
51635
51636         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51637         context.
51638
51639 2007-10-21  Bruno Haible  <bruno@clisp.org>
51640
51641         * tests/test-wcwidth.c (main): Allow negative result for some control
51642         characters.
51643
51644         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51645         Needed on OSF/1 5.1.
51646
51647 2007-10-21  Bruno Haible  <bruno@clisp.org>
51648
51649         * tests/test-floorf1.c: Include isnanf.h.
51650         (main): Use isnanf() instead of isnan().
51651         * tests/test-ceilf1.c: Include isnanf.h.
51652         (main): Use isnanf() instead of isnan().
51653         * tests/test-truncf1.c: Include isnanf.h.
51654         (main): Use isnanf() instead of isnan().
51655         * tests/test-roundf1.c: Include isnanf.h.
51656         (main): Use isnanf() instead of isnan().
51657
51658 2007-10-21  Eric Blake  <ebb9@byu.net>
51659
51660         * users.txt: Update URL for m4.
51661
51662 2007-10-21  Bruno Haible  <bruno@clisp.org>
51663
51664         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51665
51666 2007-10-21  Bruno Haible  <bruno@clisp.org>
51667
51668         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51669         Git's management files if the CVS files are not present.
51670
51671 2007-10-20  Bruno Haible  <bruno@clisp.org>
51672
51673         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51674         gcc-3.4.x.
51675
51676 2007-10-20  Ben Pfaff  <blp@gnu.org>
51677
51678         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51679         implementations.
51680         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51681         * lib/round.c: New file.
51682         * lib/roundf.c: New file.
51683         * lib/roundl.c: New file.
51684         * m4/round.m4: New file.
51685         * m4/roundf.m4: New file.
51686         * m4/roundl.m4: New file.
51687         * m4/check-libm-func-m4: New file.
51688         * modules/math: Replace round, roundf, roundl related @VARS@ in
51689         math.in.h.
51690         * modules/round: New file.
51691         * modules/round-tests: New file.
51692         * modules/roundf: New file.
51693         * modules/roundf-tests: New file.
51694         * modules/roundl: New file.
51695         * modules/roundl-tests: New file.
51696         * tests/test-round1.c: New file.
51697         * tests/test-round2.c: New file.
51698         * tests/test-roundf1.c: New file.
51699         * tests/test-roundf2.c: New file.
51700         * tests/test-roundl.c: New file.
51701         * doc/functions/round.texi: Mention round module.
51702         * doc/functions/roundf.texi: Mention roundf module.
51703         * doc/functions/roundl.texi: Mention roundl module.
51704         * MODULES.html.sh: Mention new modules.
51705         Thanks to Bruno Haible for suggestions.
51706
51707 2007-10-20  Jim Meyering  <meyering@redhat.com>
51708
51709         * lib/xprintf.c: Include <config.h> unconditionally.
51710
51711         Change xprintf's license to GPL.
51712         * modules/xprintf (License): s/LGPL/GPL/, since this module
51713         depends on modules (exit and exitfail) which are GPL.
51714         Suggestion from Bruno Haible.
51715
51716         xprintf fixes.
51717         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51718         Use a clearer diagnostic.
51719         Patch from Bruno Haible.
51720
51721 2007-10-20  Bruno Haible  <bruno@clisp.org>
51722
51723         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51724         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51725         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51726
51727 2007-10-20  Bruno Haible  <bruno@clisp.org>
51728
51729         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51730         precision in the comparison result > x - 1 or similar.
51731         * tests/test-ceilf2.c (correct_result_p): Likewise.
51732         * tests/test-truncf2.c (correct_result_p): Likewise.
51733         * tests/test-trunc2.c (correct_result_p): Likewise.
51734         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51735
51736 2007-10-20  Bruno Haible  <bruno@clisp.org>
51737
51738         * modules/ceil: New file.
51739         * m4/ceil.m4: New file.
51740         * doc/functions/ceil.texi: Mention the 'ceil' module.
51741
51742 2007-10-20  Bruno Haible  <bruno@clisp.org>
51743
51744         * modules/floor: New file.
51745         * m4/floor.m4: New file.
51746         * doc/functions/floor.texi: Mention the 'floor' module.
51747
51748 2007-10-20  Bruno Haible  <bruno@clisp.org>
51749
51750         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51751         of %a.
51752         * modules/floorf-tests (Depends-on): Likewise.
51753         * modules/truncf-tests (Depends-on): Likewise.
51754         * modules/trunc-tests (Depends-on): Likewise.
51755         Reported by Ben Pfaff.
51756
51757 2007-10-19  Jim Meyering  <meyering@redhat.com>
51758
51759         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51760         Don't bother testing specific errno values.  Just test ferror.
51761
51762         New module: xprintf
51763         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51764
51765 2007-10-19  Bruno Haible  <bruno@clisp.org>
51766
51767         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51768         syntax.
51769         * modules/javaexec (Makefile.am): Likewise.
51770         * modules/relocatable-prog (Makefile.am): Likewise.
51771         Suggested by Jim Meyering.
51772
51773 2007-10-18  Bruno Haible  <bruno@clisp.org>
51774
51775         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51776         Reported by Jim Meyering.
51777
51778 2007-10-18  Eric Blake  <ebb9@byu.net>
51779
51780         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51781
51782 2007-10-18  Bruno Haible  <bruno@clisp.org>
51783
51784         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51785         the format string into writable memory. Needed in Fortify conditions.
51786
51787 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51788             Bruno Haible  <bruno@clisp.org>
51789
51790         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51791         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51792         * modules/trim (Depends-on): Add mbchar.
51793         (configure.ac): Add gl_FUNC_MBRTOWC.
51794         (Makefile.am): Augment lib_SOURCES.
51795
51796 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51797
51798         Modify glob.c to use fstatat and dirfd, to simplify it.
51799         Suggested by Eric Blake.
51800         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51801         Don't include <stdbool.h>; not used.
51802         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51803         (link_exists_p): Simplify implementation, since we can now assume
51804         dirfd and fstatat.
51805         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51806
51807 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51808
51809         * gnulib-tool (func_get_dependencies): Fix sed script to
51810         match only tests.
51811
51812 2007-10-17  Bruno Haible  <bruno@clisp.org>
51813
51814         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51815         allow locale names without encoding suffix.
51816         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51817         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51818
51819 2007-10-16  Bruno Haible  <bruno@clisp.org>
51820
51821         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51822         * lib/getgroups.c (getgroups): Likewise.
51823         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51824
51825 2007-10-16  Bruno Haible  <bruno@clisp.org>
51826
51827         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51828         * modules/malloc-posix (License): Likewise.
51829         * modules/realloc-posix (License): Likewise.
51830         * modules/calloc-posix (License): Likewise.
51831         * modules/intprops (License): Change from GPL to LGPL, with
51832         Paul Eggert's approval.
51833
51834 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51835
51836         Merge glibc changes into lib/glob.c.
51837
51838         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51839         2007-10-15 04:59:03 UTC.  Here are the changes:
51840
51841         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51842
51843         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51844
51845         * lib/glob.c: Add some branch prediction throughout.
51846
51847         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51848
51849         [BZ #5103]
51850         * lib/glob.c (glob): Recognize patterns starting \/.
51851
51852         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51853
51854         [BZ #3996]
51855         * lib/glob.c (attribute_hidden): Define if not defined.
51856         (glob): Unescape dirname, filename or username when needed and not
51857         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51858         is NULL.  Handle unescaped [ in pattern without closing ].
51859         Don't pass GLOB_CHECK down to recursive glob for directories.
51860         (__glob_pattern_type): New function.
51861         (__glob_pattern_p): Implement using __glob_pattern_type.
51862         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51863         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51864         Remove unreachable code.
51865
51866         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51867
51868         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51869         explain why there are no leaks.
51870
51871         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51872
51873         [BZ #3253]
51874         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51875         time, rather allocate increasingly bigger arrays of pointers, if
51876         possible with alloca, if too large with malloc.
51877
51878 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51879
51880         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51881         Problem reported by H.Merijn Brand in
51882         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51883         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51884         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51885
51886 2007-10-15  Bruno Haible  <bruno@clisp.org>
51887
51888         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51889         with explicit rpl_ prefix.
51890         * lib/fopen.c (fopen): Likewise.
51891         * lib/freopen.c (freopen): Likewise.
51892         * lib/iconv.c (iconv): Likewise.
51893         * lib/iconv_close.c (iconv_close): Likewise.
51894
51895 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51896
51897         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51898
51899 2007-10-15  Bruno Haible  <bruno@clisp.org>
51900
51901         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51902         <stddef.h> instead of <stdlib.h> since we only need NULL.
51903         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51904
51905 2007-10-15  Bruno Haible  <bruno@clisp.org>
51906
51907         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51908         Replace paragraph talking about LIBOBJS.
51909         Reported by Colin Watson <cjwatson@debian.org>.
51910
51911 2007-10-15  Bruno Haible  <bruno@clisp.org>
51912
51913         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51914         <stdlib.h> before using NULL.
51915
51916 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51917
51918         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51919         Reported by Albert Chin <china@thewrittenword.com>.
51920
51921 2007-10-14  Bruno Haible  <bruno@clisp.org>
51922
51923         * modules/iconv_open-utf-tests: New file.
51924         * tests/test-iconv-utf.c: New file.
51925
51926         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51927         * modules/iconv_open-utf: New file.
51928         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51929         (iconv, iconv_close): New declarations.
51930         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51931         be defined.
51932         (iconv_open): Add special handling of conversion between UTF-8 and
51933         UTF-{16,32}{BE,LE}.
51934         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51935         * lib/iconv_close.c: New file.
51936         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51937         gl_FUNC_ICONV_OPEN.
51938         (gl_FUNC_ICONV_OPEN): Use it.
51939         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51940         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51941         and REPLACE_ICONV_UTF.
51942         * modules/iconv_open (Depends-on): Add c-strcase.
51943         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51944         ICONV_CONST.
51945         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51946
51947 2007-10-13  Albert Chin  <china@thewrittenword.com>
51948             Bruno Haible  <bruno@clisp.org>
51949
51950         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51951         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51952
51953 2007-10-13  Bruno Haible  <bruno@clisp.org>
51954
51955         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51956         defined, use the ISO C99 inline semantics.
51957         * lib/argp.h (ARGP_EI): Likewise.
51958
51959 2007-10-13  Bruno Haible  <bruno@clisp.org>
51960
51961         Handle 'inline' change in gcc 4.3.0.
51962         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51963         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51964         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51965         argp_fmtstream_point): Disable 'extern' declaration if the function
51966         definition is going to be provided inline.
51967         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51968         semantics, not the ISO C99 inline semantics.
51969         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51970         'extern' declaration if the function definition is going to be provided
51971         inline.
51972         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51973         the GNU C inline semantics, not the ISO C99 inline semantics. With
51974         GCC 4.2, avoid a warning.
51975
51976 2007-10-13  Bruno Haible  <bruno@clisp.org>
51977
51978         * lib/freading.h (freading): Enable the use of __freading for
51979         glibc >= 2.7.
51980         * lib/freading.c (freading): Likewise.
51981
51982 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51983
51984         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51985         "warning: C99 inline functions are not supported; using GNU89".
51986
51987 2007-10-12  Bruno Haible  <bruno@clisp.org>
51988
51989         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51990         of 2.
51991         * tests/test-ceilf2.c: New file.
51992         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51993
51994         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51995         * modules/ceilf-tests: Update.
51996
51997 2007-10-12  Bruno Haible  <bruno@clisp.org>
51998
51999         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
52000         of 2.
52001         * tests/test-floorf2.c: New file.
52002         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
52003
52004         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
52005         * modules/floorf-tests: Update.
52006
52007 2007-10-12  Bruno Haible  <bruno@clisp.org>
52008
52009         * tests/test-trunc2.c: New file.
52010         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
52011
52012         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
52013         * modules/trunc-tests: Update.
52014
52015 2007-10-12  Bruno Haible  <bruno@clisp.org>
52016
52017         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
52018         of 2.
52019         * tests/test-truncf2.c: New file.
52020         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
52021
52022         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
52023         * modules/truncf-tests: Update.
52024
52025 2007-10-11  Eric Blake  <ebb9@byu.net>
52026
52027         Don't claim strerror is broken on Interix.
52028         * doc/functions/strerror.texi (strerror): Known broken systems are
52029         now Solaris 8, and not Interix.
52030         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
52031         Interix on cross-compile.
52032         Reported by Martin Koeppe in
52033         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
52034
52035 2007-10-11  Bruno Haible  <bruno@clisp.org>
52036
52037         * modules/i-ring-tests: New file.
52038         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
52039         instead of assert.
52040
52041 2007-10-11  Bruno Haible  <bruno@clisp.org>
52042
52043         * modules/filenamecat-tests: New file.
52044         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
52045         * lib/filenamecat.c: Remove test code.
52046
52047 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52048
52049         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
52050
52051         * lib/strerror.c: Include <string.h> always, to test interface,
52052         and to remove the need for the dummy.
52053         Include intprops.h to compute width instead of doing it ourselves
52054         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
52055         (strerror): Define it to return NULL if there's no system strerror.
52056         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
52057         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
52058         ancient pre-strerror Unix systems well any more.  Saying "unknown
52059         system error" is enough.
52060         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
52061         simpler strerror.c implementation.
52062         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
52063         Simplify the tests to reflect the simpler strerror implementation.
52064         * modules/strerror (Depends-on): Add intprops.
52065
52066 2007-10-09  Eric Blake  <ebb9@byu.net>
52067
52068         Silence test-fpending.
52069         * modules/fpending-tests (Files): Add wrapper script.
52070         * tests/test-fpending.sh: New file.
52071
52072 2007-10-09  Bruno Haible  <bruno@clisp.org>
52073
52074         * MODULES.html.sh (func_module): Don't create a hyperlink for
52075         function names like 'printf_frexp'.
52076         (Misc): Add crc, memxor.
52077         (Characteristics of floating types): New section.
52078         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
52079         isnanf-nolibm, signbit, trunc, truncf, truncl.
52080         (Enhancements for ISO C 99 functions): New subsection Input/output.
52081         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
52082         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
52083         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
52084         (Compatibility checks for POSIX:2001 functions): Add clock-time.
52085         (Enhancements for POSIX:2001 functions): Add chdir-long.
52086         (File system functions): Add areadlink, chdir-safer, read-file.
52087         Remove cycle-check.
52088         (File system as inode set): New section.
52089         (Date and time): Add gethrxtime.
52090         (Multithreading): Add openmp.
52091         (Internationalization functions): Add localename.
52092         (Unicode string functions): Add unistr/u*-mbsnlen.
52093         (Support for maintaining and releasing projects): Add git-version-gen.
52094         (Lone files): Remove directories.
52095
52096 2007-10-08  Ben Pfaff  <blp@gnu.org>
52097
52098         * lib/xmalloca.h: Fix typo in comment.
52099
52100 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52101
52102         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
52103         when avoiding problems with integer overflow.  Use a portable test
52104         instead.
52105
52106 2007-10-08  Simon Josefsson  <simon@josefsson.org>
52107
52108         * modules/dummy (License): Change to LGPLv2+.
52109         * modules/float (License): Likewise
52110         * modules/realloc (License): Likewise
52111         * modules/stdlib (License): Likewise
52112
52113 2007-10-07  Bruno Haible  <bruno@clisp.org>
52114
52115         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
52116         * floor.c (TWO_MANT_DIG): Likewise.
52117         * ceil.c (TWO_MANT_DIG): Likewise.
52118         Reported by Ben Pfaff.
52119
52120 2007-10-07  Bruno Haible  <bruno@clisp.org>
52121
52122         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
52123         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
52124         * lib/frexp.c (FUNC): Likewise.
52125         * lib/printf-frexp.h (printf_frexp): Likewise.
52126         * lib/printf-frexpl.h (printf_frexpl): Likewise.
52127         * lib/printf-frexp.c (FUNC): Likewise.
52128         Suggested by Jim Meyering.
52129
52130 2007-10-07  Jim Meyering  <meyering@redhat.com>
52131
52132         Make xnanosleep's integer overflow test more robust.
52133         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
52134         so that gcc-4.3.0 doesn't optimize away this test for overflow.
52135
52136 2007-10-07  Bruno Haible  <bruno@clisp.org>
52137
52138         * NEWS: Mention the license change.
52139
52140         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
52141         abbreviations in the modules files.
52142
52143         Change copyright notice from GPLv2+ to GPLv3+.
52144         * README: Change copyright notice.
52145         * MODULES.html.sh: Likewise.
52146         * build-aux/bootstrap.conf: Likewise.
52147         * build-aux/config.libpath: Likewise.
52148         * build-aux/csharpcomp.sh.in: Likewise.
52149         * build-aux/csharpexec.sh.in: Likewise.
52150         * build-aux/install-reloc: Likewise.
52151         * build-aux/javacomp.sh.in: Likewise.
52152         * build-aux/javaexec.sh.in: Likewise.
52153         * build-aux/ldd.sh.in: Likewise.
52154         * build-aux/reloc-ldflags: Likewise.
52155         * build-aux/relocatable.sh.in: Likewise.
52156         * build-aux/x-to-1.in: Likewise.
52157         * check-module: Likewise.
52158         * config/srclistvars.sh: Likewise.
52159         * gnulib-tool: Likewise.
52160         * lib/acl-internal.h: Likewise.
52161         * lib/acl.c: Likewise.
52162         * lib/acl.h: Likewise.
52163         * lib/acl_entries.c: Likewise.
52164         * lib/areadlink-with-size.c: Likewise.
52165         * lib/areadlink.c: Likewise.
52166         * lib/areadlink.h: Likewise.
52167         * lib/argmatch.c: Likewise.
52168         * lib/argmatch.h: Likewise.
52169         * lib/argp-ba.c: Likewise.
52170         * lib/argp-eexst.c: Likewise.
52171         * lib/argp-fmtstream.c: Likewise.
52172         * lib/argp-fmtstream.h: Likewise.
52173         * lib/argp-fs-xinl.c: Likewise.
52174         * lib/argp-help.c: Likewise.
52175         * lib/argp-namefrob.h: Likewise.
52176         * lib/argp-parse.c: Likewise.
52177         * lib/argp-pin.c: Likewise.
52178         * lib/argp-pv.c: Likewise.
52179         * lib/argp-pvh.c: Likewise.
52180         * lib/argp-xinl.c: Likewise.
52181         * lib/argp.h: Likewise.
52182         * lib/at-func.c: Likewise.
52183         * lib/atanl.c: Likewise.
52184         * lib/backupfile.c: Likewise.
52185         * lib/backupfile.h: Likewise.
52186         * lib/basename.c: Likewise.
52187         * lib/binary-io.h: Likewise.
52188         * lib/byteswap.in.h: Likewise.
52189         * lib/c-stack.c: Likewise.
52190         * lib/c-stack.h: Likewise.
52191         * lib/c-strcasestr.c: Likewise.
52192         * lib/c-strcasestr.h: Likewise.
52193         * lib/c-strstr.c: Likewise.
52194         * lib/c-strstr.h: Likewise.
52195         * lib/c-strtod.c: Likewise.
52196         * lib/calloc.c: Likewise.
52197         * lib/canon-host.c: Likewise.
52198         * lib/canon-host.h: Likewise.
52199         * lib/canonicalize-lgpl.c: Likewise.
52200         * lib/canonicalize.c: Likewise.
52201         * lib/canonicalize.h: Likewise.
52202         * lib/ceil.c: Likewise.
52203         * lib/ceilf.c: Likewise.
52204         * lib/ceill.c: Likewise.
52205         * lib/chdir-long.c: Likewise.
52206         * lib/chdir-long.h: Likewise.
52207         * lib/chdir-safer.c: Likewise.
52208         * lib/chdir-safer.h: Likewise.
52209         * lib/chown.c: Likewise.
52210         * lib/classpath.c: Likewise.
52211         * lib/classpath.h: Likewise.
52212         * lib/clean-temp.c: Likewise.
52213         * lib/clean-temp.h: Likewise.
52214         * lib/cloexec.c: Likewise.
52215         * lib/close-stream.c: Likewise.
52216         * lib/closein.c: Likewise.
52217         * lib/closein.h: Likewise.
52218         * lib/closeout.c: Likewise.
52219         * lib/closeout.h: Likewise.
52220         * lib/concat-filename.c: Likewise.
52221         * lib/copy-file.c: Likewise.
52222         * lib/copy-file.h: Likewise.
52223         * lib/count-one-bits.h: Likewise.
52224         * lib/crc.c: Likewise.
52225         * lib/crc.h: Likewise.
52226         * lib/creat-safer.c: Likewise.
52227         * lib/csharpcomp.c: Likewise.
52228         * lib/csharpcomp.h: Likewise.
52229         * lib/csharpexec.c: Likewise.
52230         * lib/csharpexec.h: Likewise.
52231         * lib/cycle-check.c: Likewise.
52232         * lib/cycle-check.h: Likewise.
52233         * lib/diacrit.c: Likewise.
52234         * lib/diacrit.h: Likewise.
52235         * lib/diffseq.h: Likewise.
52236         * lib/dirchownmod.c: Likewise.
52237         * lib/dirent.in.h: Likewise.
52238         * lib/dirfd.c: Likewise.
52239         * lib/dirfd.h: Likewise.
52240         * lib/dirname.c: Likewise.
52241         * lib/dirname.h: Likewise.
52242         * lib/dummy.c: Likewise.
52243         * lib/dup-safer.c: Likewise.
52244         * lib/dup2.c: Likewise.
52245         * lib/eealloc.h: Likewise.
52246         * lib/error.c: Likewise.
52247         * lib/error.h: Likewise.
52248         * lib/euidaccess.c: Likewise.
52249         * lib/exclude.c: Likewise.
52250         * lib/exclude.h: Likewise.
52251         * lib/execute.c: Likewise.
52252         * lib/execute.h: Likewise.
52253         * lib/exitfail.c: Likewise.
52254         * lib/exitfail.h: Likewise.
52255         * lib/expl.c: Likewise.
52256         * lib/fatal-signal.c: Likewise.
52257         * lib/fatal-signal.h: Likewise.
52258         * lib/fbufmode.c: Likewise.
52259         * lib/fbufmode.h: Likewise.
52260         * lib/fchdir.c: Likewise.
52261         * lib/fchmodat.c: Likewise.
52262         * lib/fchownat.c: Likewise.
52263         * lib/fcntl--.h: Likewise.
52264         * lib/fcntl-safer.h: Likewise.
52265         * lib/fcntl.in.h: Likewise.
52266         * lib/fd-safer.c: Likewise.
52267         * lib/fflush.c: Likewise.
52268         * lib/file-has-acl.c: Likewise.
52269         * lib/file-set.c: Likewise.
52270         * lib/file-type.c: Likewise.
52271         * lib/file-type.h: Likewise.
52272         * lib/fileblocks.c: Likewise.
52273         * lib/filemode.c: Likewise.
52274         * lib/filemode.h: Likewise.
52275         * lib/filename.h: Likewise.
52276         * lib/filenamecat.c: Likewise.
52277         * lib/filenamecat.h: Likewise.
52278         * lib/findprog.c: Likewise.
52279         * lib/findprog.h: Likewise.
52280         * lib/float.in.h: Likewise.
52281         * lib/floor.c: Likewise.
52282         * lib/floorf.c: Likewise.
52283         * lib/floorl.c: Likewise.
52284         * lib/fopen-safer.c: Likewise.
52285         * lib/fopen.c: Likewise.
52286         * lib/fpending.c: Likewise.
52287         * lib/fpending.h: Likewise.
52288         * lib/fprintf.c: Likewise.
52289         * lib/fprintftime.h: Likewise.
52290         * lib/fpucw.h: Likewise.
52291         * lib/fpurge.c: Likewise.
52292         * lib/fpurge.h: Likewise.
52293         * lib/freadable.c: Likewise.
52294         * lib/freadable.h: Likewise.
52295         * lib/freadahead.c: Likewise.
52296         * lib/freadahead.h: Likewise.
52297         * lib/freading.c: Likewise.
52298         * lib/freading.h: Likewise.
52299         * lib/free.c: Likewise.
52300         * lib/freopen.c: Likewise.
52301         * lib/frexp.c: Likewise.
52302         * lib/frexpl.c: Likewise.
52303         * lib/fseek.c: Likewise.
52304         * lib/fseterr.c: Likewise.
52305         * lib/fseterr.h: Likewise.
52306         * lib/fstatat.c: Likewise.
52307         * lib/fstrcmp.c: Likewise.
52308         * lib/fstrcmp.h: Likewise.
52309         * lib/fsusage.c: Likewise.
52310         * lib/fsusage.h: Likewise.
52311         * lib/ftell.c: Likewise.
52312         * lib/ftello.c: Likewise.
52313         * lib/fts-cycle.c: Likewise.
52314         * lib/fts.c: Likewise.
52315         * lib/fts_.h: Likewise.
52316         * lib/full-read.c: Likewise.
52317         * lib/full-read.h: Likewise.
52318         * lib/full-write.c: Likewise.
52319         * lib/full-write.h: Likewise.
52320         * lib/fwritable.c: Likewise.
52321         * lib/fwritable.h: Likewise.
52322         * lib/fwriteerror.c: Likewise.
52323         * lib/fwriteerror.h: Likewise.
52324         * lib/fwriting.c: Likewise.
52325         * lib/fwriting.h: Likewise.
52326         * lib/gcd.c: Likewise.
52327         * lib/gcd.h: Likewise.
52328         * lib/getcwd.c: Likewise.
52329         * lib/getdate.h: Likewise.
52330         * lib/getdate.y: Likewise.
52331         * lib/getdomainname.c: Likewise.
52332         * lib/getdomainname.h: Likewise.
52333         * lib/getgroups.c: Likewise.
52334         * lib/gethostname.c: Likewise.
52335         * lib/gethrxtime.c: Likewise.
52336         * lib/gethrxtime.h: Likewise.
52337         * lib/getloadavg.c: Likewise.
52338         * lib/getndelim2.c: Likewise.
52339         * lib/getndelim2.h: Likewise.
52340         * lib/getnline.c: Likewise.
52341         * lib/getnline.h: Likewise.
52342         * lib/getopt.c: Likewise.
52343         * lib/getopt.in.h: Likewise.
52344         * lib/getopt1.c: Likewise.
52345         * lib/getopt_int.h: Likewise.
52346         * lib/getpagesize.h: Likewise.
52347         * lib/getsubopt.c: Likewise.
52348         * lib/gettime.c: Likewise.
52349         * lib/getugroups.c: Likewise.
52350         * lib/getugroups.h: Likewise.
52351         * lib/getusershell.c: Likewise.
52352         * lib/gl_anyavltree_list1.h: Likewise.
52353         * lib/gl_anyavltree_list2.h: Likewise.
52354         * lib/gl_anyhash_list1.h: Likewise.
52355         * lib/gl_anyhash_list2.h: Likewise.
52356         * lib/gl_anylinked_list1.h: Likewise.
52357         * lib/gl_anylinked_list2.h: Likewise.
52358         * lib/gl_anyrbtree_list1.h: Likewise.
52359         * lib/gl_anyrbtree_list2.h: Likewise.
52360         * lib/gl_anytree_list1.h: Likewise.
52361         * lib/gl_anytree_list2.h: Likewise.
52362         * lib/gl_anytree_oset.h: Likewise.
52363         * lib/gl_anytreehash_list1.h: Likewise.
52364         * lib/gl_anytreehash_list2.h: Likewise.
52365         * lib/gl_array_list.c: Likewise.
52366         * lib/gl_array_list.h: Likewise.
52367         * lib/gl_array_oset.c: Likewise.
52368         * lib/gl_array_oset.h: Likewise.
52369         * lib/gl_avltree_list.c: Likewise.
52370         * lib/gl_avltree_list.h: Likewise.
52371         * lib/gl_avltree_oset.c: Likewise.
52372         * lib/gl_avltree_oset.h: Likewise.
52373         * lib/gl_avltreehash_list.c: Likewise.
52374         * lib/gl_avltreehash_list.h: Likewise.
52375         * lib/gl_carray_list.c: Likewise.
52376         * lib/gl_carray_list.h: Likewise.
52377         * lib/gl_linked_list.c: Likewise.
52378         * lib/gl_linked_list.h: Likewise.
52379         * lib/gl_linkedhash_list.c: Likewise.
52380         * lib/gl_linkedhash_list.h: Likewise.
52381         * lib/gl_list.c: Likewise.
52382         * lib/gl_list.h: Likewise.
52383         * lib/gl_oset.c: Likewise.
52384         * lib/gl_oset.h: Likewise.
52385         * lib/gl_rbtree_list.c: Likewise.
52386         * lib/gl_rbtree_list.h: Likewise.
52387         * lib/gl_rbtree_oset.c: Likewise.
52388         * lib/gl_rbtree_oset.h: Likewise.
52389         * lib/gl_rbtreehash_list.c: Likewise.
52390         * lib/gl_rbtreehash_list.h: Likewise.
52391         * lib/gl_sublist.c: Likewise.
52392         * lib/gl_sublist.h: Likewise.
52393         * lib/group-member.c: Likewise.
52394         * lib/group-member.h: Likewise.
52395         * lib/hard-locale.c: Likewise.
52396         * lib/hard-locale.h: Likewise.
52397         * lib/hash-pjw.c: Likewise.
52398         * lib/hash-pjw.h: Likewise.
52399         * lib/hash-triple.c: Likewise.
52400         * lib/hash.c: Likewise.
52401         * lib/hash.h: Likewise.
52402         * lib/human.c: Likewise.
52403         * lib/human.h: Likewise.
52404         * lib/i-ring.c: Likewise.
52405         * lib/i-ring.h: Likewise.
52406         * lib/idcache.c: Likewise.
52407         * lib/imaxabs.c: Likewise.
52408         * lib/imaxdiv.c: Likewise.
52409         * lib/inet_pton.c: Likewise.
52410         * lib/inet_pton.h: Likewise.
52411         * lib/intprops.h: Likewise.
52412         * lib/inttostr.c: Likewise.
52413         * lib/inttostr.h: Likewise.
52414         * lib/inttypes.in.h: Likewise.
52415         * lib/isapipe.c: Likewise.
52416         * lib/isdir.c: Likewise.
52417         * lib/isnan.c: Likewise.
52418         * lib/isnan.h: Likewise.
52419         * lib/isnanf.c: Likewise.
52420         * lib/isnanf.h: Likewise.
52421         * lib/isnanl-nolibm.h: Likewise.
52422         * lib/isnanl.c: Likewise.
52423         * lib/isnanl.h: Likewise.
52424         * lib/javacomp.c: Likewise.
52425         * lib/javacomp.h: Likewise.
52426         * lib/javaexec.c: Likewise.
52427         * lib/javaexec.h: Likewise.
52428         * lib/javaversion.c: Likewise.
52429         * lib/javaversion.h: Likewise.
52430         * lib/javaversion.java: Likewise.
52431         * lib/lbrkprop.h: Likewise.
52432         * lib/lchmod.h: Likewise.
52433         * lib/lchown.c: Likewise.
52434         * lib/ldexpl.c: Likewise.
52435         * lib/linebreak.c: Likewise.
52436         * lib/linebreak.h: Likewise.
52437         * lib/linebuffer.c: Likewise.
52438         * lib/linebuffer.h: Likewise.
52439         * lib/locale.in.h: Likewise.
52440         * lib/logl.c: Likewise.
52441         * lib/long-options.c: Likewise.
52442         * lib/long-options.h: Likewise.
52443         * lib/lstat.c: Likewise.
52444         * lib/lstat.h: Likewise.
52445         * lib/math.in.h: Likewise.
52446         * lib/mbchar.c: Likewise.
52447         * lib/mbchar.h: Likewise.
52448         * lib/mbfile.h: Likewise.
52449         * lib/mbiter.h: Likewise.
52450         * lib/mbscasecmp.c: Likewise.
52451         * lib/mbscasestr.c: Likewise.
52452         * lib/mbschr.c: Likewise.
52453         * lib/mbscspn.c: Likewise.
52454         * lib/mbslen.c: Likewise.
52455         * lib/mbsncasecmp.c: Likewise.
52456         * lib/mbsnlen.c: Likewise.
52457         * lib/mbspbrk.c: Likewise.
52458         * lib/mbspcasecmp.c: Likewise.
52459         * lib/mbsrchr.c: Likewise.
52460         * lib/mbssep.c: Likewise.
52461         * lib/mbsspn.c: Likewise.
52462         * lib/mbsstr.c: Likewise.
52463         * lib/mbstok_r.c: Likewise.
52464         * lib/mbswidth.c: Likewise.
52465         * lib/mbswidth.h: Likewise.
52466         * lib/mbuiter.h: Likewise.
52467         * lib/memcasecmp.c: Likewise.
52468         * lib/memcasecmp.h: Likewise.
52469         * lib/memchr.c: Likewise.
52470         * lib/memcmp.c: Likewise.
52471         * lib/memcoll.c: Likewise.
52472         * lib/memcoll.h: Likewise.
52473         * lib/memcpy.c: Likewise.
52474         * lib/memrchr.c: Likewise.
52475         * lib/mkancesdirs.c: Likewise.
52476         * lib/mkdir-p.c: Likewise.
52477         * lib/mkdir-p.h: Likewise.
52478         * lib/mkdir.c: Likewise.
52479         * lib/mkdirat.c: Likewise.
52480         * lib/mkdtemp.c: Likewise.
52481         * lib/mkstemp-safer.c: Likewise.
52482         * lib/mkstemp.c: Likewise.
52483         * lib/modechange.c: Likewise.
52484         * lib/modechange.h: Likewise.
52485         * lib/mountlist.c: Likewise.
52486         * lib/mountlist.h: Likewise.
52487         * lib/mpsort.c: Likewise.
52488         * lib/nanosleep.c: Likewise.
52489         * lib/obstack.c: Likewise.
52490         * lib/obstack.h: Likewise.
52491         * lib/open-safer.c: Likewise.
52492         * lib/open.c: Likewise.
52493         * lib/openat-die.c: Likewise.
52494         * lib/openat-priv.h: Likewise.
52495         * lib/openat-proc.c: Likewise.
52496         * lib/openat.c: Likewise.
52497         * lib/openat.h: Likewise.
52498         * lib/pagealign_alloc.c: Likewise.
52499         * lib/pagealign_alloc.h: Likewise.
52500         * lib/physmem.c: Likewise.
52501         * lib/physmem.h: Likewise.
52502         * lib/pipe-safer.c: Likewise.
52503         * lib/pipe.c: Likewise.
52504         * lib/pipe.h: Likewise.
52505         * lib/posixtm.c: Likewise.
52506         * lib/posixtm.h: Likewise.
52507         * lib/posixver.c: Likewise.
52508         * lib/printf-frexp.c: Likewise.
52509         * lib/printf-frexp.h: Likewise.
52510         * lib/printf-frexpl.c: Likewise.
52511         * lib/printf-frexpl.h: Likewise.
52512         * lib/printf.c: Likewise.
52513         * lib/progname.c: Likewise.
52514         * lib/progname.h: Likewise.
52515         * lib/progreloc.c: Likewise.
52516         * lib/putenv.c: Likewise.
52517         * lib/quote.c: Likewise.
52518         * lib/quote.h: Likewise.
52519         * lib/quotearg.c: Likewise.
52520         * lib/quotearg.h: Likewise.
52521         * lib/raise.c: Likewise.
52522         * lib/readline.c: Likewise.
52523         * lib/readline.h: Likewise.
52524         * lib/readlink.c: Likewise.
52525         * lib/readtokens.c: Likewise.
52526         * lib/readtokens.h: Likewise.
52527         * lib/readtokens0.c: Likewise.
52528         * lib/readtokens0.h: Likewise.
52529         * lib/readutmp.c: Likewise.
52530         * lib/readutmp.h: Likewise.
52531         * lib/realloc.c: Likewise.
52532         * lib/relocwrapper.c: Likewise.
52533         * lib/rename-dest-slash.c: Likewise.
52534         * lib/rename.c: Likewise.
52535         * lib/rmdir.c: Likewise.
52536         * lib/rpmatch.c: Likewise.
52537         * lib/safe-read.c: Likewise.
52538         * lib/safe-read.h: Likewise.
52539         * lib/safe-write.c: Likewise.
52540         * lib/safe-write.h: Likewise.
52541         * lib/same-inode.h: Likewise.
52542         * lib/same.c: Likewise.
52543         * lib/same.h: Likewise.
52544         * lib/save-cwd.c: Likewise.
52545         * lib/save-cwd.h: Likewise.
52546         * lib/savedir.c: Likewise.
52547         * lib/savedir.h: Likewise.
52548         * lib/savewd.c: Likewise.
52549         * lib/savewd.h: Likewise.
52550         * lib/search.in.h: Likewise.
52551         * lib/setenv.c: Likewise.
52552         * lib/setenv.h: Likewise.
52553         * lib/settime.c: Likewise.
52554         * lib/sh-quote.c: Likewise.
52555         * lib/sh-quote.h: Likewise.
52556         * lib/sig2str.c: Likewise.
52557         * lib/sig2str.h: Likewise.
52558         * lib/signal.in.h: Likewise.
52559         * lib/signbitd.c: Likewise.
52560         * lib/signbitf.c: Likewise.
52561         * lib/signbitl.c: Likewise.
52562         * lib/sigprocmask.c: Likewise.
52563         * lib/sincosl.c: Likewise.
52564         * lib/sleep.c: Likewise.
52565         * lib/sprintf.c: Likewise.
52566         * lib/sqrtl.c: Likewise.
52567         * lib/stat-time.h: Likewise.
52568         * lib/stdio--.h: Likewise.
52569         * lib/stdio-safer.h: Likewise.
52570         * lib/stdlib--.h: Likewise.
52571         * lib/stdlib-safer.h: Likewise.
52572         * lib/stdlib.in.h: Likewise.
52573         * lib/stpcpy.c: Likewise.
52574         * lib/stpncpy.c: Likewise.
52575         * lib/strchrnul.c: Likewise.
52576         * lib/strcspn.c: Likewise.
52577         * lib/strerror.c: Likewise.
52578         * lib/strftime.c: Likewise.
52579         * lib/strftime.h: Likewise.
52580         * lib/striconveh.c: Likewise.
52581         * lib/striconveh.h: Likewise.
52582         * lib/striconveha.c: Likewise.
52583         * lib/striconveha.h: Likewise.
52584         * lib/stripslash.c: Likewise.
52585         * lib/strnlen1.c: Likewise.
52586         * lib/strnlen1.h: Likewise.
52587         * lib/strtod.c: Likewise.
52588         * lib/strtoimax.c: Likewise.
52589         * lib/strtok_r.c: Likewise.
52590         * lib/strtol.c: Likewise.
52591         * lib/strtoll.c: Likewise.
52592         * lib/strtoul.c: Likewise.
52593         * lib/strtoull.c: Likewise.
52594         * lib/sysexits.in.h: Likewise.
52595         * lib/tempname.c: Likewise.
52596         * lib/tempname.h: Likewise.
52597         * lib/timespec.h: Likewise.
52598         * lib/tls.c: Likewise.
52599         * lib/tls.h: Likewise.
52600         * lib/tmpdir.c: Likewise.
52601         * lib/tmpdir.h: Likewise.
52602         * lib/tmpfile-safer.c: Likewise.
52603         * lib/tmpfile.c: Likewise.
52604         * lib/trigl.c: Likewise.
52605         * lib/trigl.h: Likewise.
52606         * lib/trim.c: Likewise.
52607         * lib/trim.h: Likewise.
52608         * lib/trunc.c: Likewise.
52609         * lib/truncf.c: Likewise.
52610         * lib/truncl.c: Likewise.
52611         * lib/tsearch.c: Likewise.
52612         * lib/unicodeio.c: Likewise.
52613         * lib/unicodeio.h: Likewise.
52614         * lib/unistd--.h: Likewise.
52615         * lib/unistd-safer.h: Likewise.
52616         * lib/unistdio/ulc-fprintf.c: Likewise.
52617         * lib/unistdio/ulc-vfprintf.c: Likewise.
52618         * lib/unlinkdir.c: Likewise.
52619         * lib/unlinkdir.h: Likewise.
52620         * lib/unlocked-io.h: Likewise.
52621         * lib/unsetenv.c: Likewise.
52622         * lib/userspec.c: Likewise.
52623         * lib/utime.c: Likewise.
52624         * lib/utimecmp.c: Likewise.
52625         * lib/utimecmp.h: Likewise.
52626         * lib/utimens.c: Likewise.
52627         * lib/verify.h: Likewise.
52628         * lib/verror.c: Likewise.
52629         * lib/verror.h: Likewise.
52630         * lib/version-etc-fsf.c: Likewise.
52631         * lib/version-etc.c: Likewise.
52632         * lib/version-etc.h: Likewise.
52633         * lib/vfprintf.c: Likewise.
52634         * lib/vprintf.c: Likewise.
52635         * lib/vsprintf.c: Likewise.
52636         * lib/w32spawn.h: Likewise.
52637         * lib/wait-process.c: Likewise.
52638         * lib/wait-process.h: Likewise.
52639         * lib/wcwidth.c: Likewise.
52640         * lib/write-any-file.c: Likewise.
52641         * lib/xalloc-die.c: Likewise.
52642         * lib/xalloc.h: Likewise.
52643         * lib/xasprintf.c: Likewise.
52644         * lib/xgetcwd.c: Likewise.
52645         * lib/xgetcwd.h: Likewise.
52646         * lib/xgetdomainname.c: Likewise.
52647         * lib/xgetdomainname.h: Likewise.
52648         * lib/xgethostname.c: Likewise.
52649         * lib/xmalloc.c: Likewise.
52650         * lib/xmalloca.c: Likewise.
52651         * lib/xmalloca.h: Likewise.
52652         * lib/xmemcoll.c: Likewise.
52653         * lib/xnanosleep.c: Likewise.
52654         * lib/xreadlink.c: Likewise.
52655         * lib/xreadlink.h: Likewise.
52656         * lib/xsetenv.c: Likewise.
52657         * lib/xsetenv.h: Likewise.
52658         * lib/xstriconv.c: Likewise.
52659         * lib/xstriconv.h: Likewise.
52660         * lib/xstrndup.c: Likewise.
52661         * lib/xstrndup.h: Likewise.
52662         * lib/xstrtod.c: Likewise.
52663         * lib/xstrtod.h: Likewise.
52664         * lib/xstrtol-error.c: Likewise.
52665         * lib/xstrtol.c: Likewise.
52666         * lib/xstrtol.h: Likewise.
52667         * lib/xtime.h: Likewise.
52668         * lib/xvasprintf.c: Likewise.
52669         * lib/xvasprintf.h: Likewise.
52670         * lib/yesno.c: Likewise.
52671         * lib/yesno.h: Likewise.
52672         * posix-modules: Likewise.
52673         * tests/test-alloca-opt.c: Likewise.
52674         * tests/test-arcfour.c: Likewise.
52675         * tests/test-arctwo.c: Likewise.
52676         * tests/test-argmatch.c: Likewise.
52677         * tests/test-argp-2.sh: Likewise.
52678         * tests/test-argp.c: Likewise.
52679         * tests/test-arpa_inet.c: Likewise.
52680         * tests/test-array_list.c: Likewise.
52681         * tests/test-array_oset.c: Likewise.
52682         * tests/test-atexit.c: Likewise.
52683         * tests/test-avltree_list.c: Likewise.
52684         * tests/test-avltree_oset.c: Likewise.
52685         * tests/test-avltreehash_list.c: Likewise.
52686         * tests/test-base64.c: Likewise.
52687         * tests/test-binary-io.c: Likewise.
52688         * tests/test-byteswap.c: Likewise.
52689         * tests/test-c-ctype.c: Likewise.
52690         * tests/test-c-strcasecmp.c: Likewise.
52691         * tests/test-c-strcasestr.c: Likewise.
52692         * tests/test-c-strncasecmp.c: Likewise.
52693         * tests/test-c-strstr.c: Likewise.
52694         * tests/test-canonicalize-lgpl.c: Likewise.
52695         * tests/test-canonicalize.c: Likewise.
52696         * tests/test-carray_list.c: Likewise.
52697         * tests/test-ceilf.c: Likewise.
52698         * tests/test-ceill.c: Likewise.
52699         * tests/test-count-one-bits.c: Likewise.
52700         * tests/test-crc.c: Likewise.
52701         * tests/test-dirname.c: Likewise.
52702         * tests/test-fbufmode.c: Likewise.
52703         * tests/test-fcntl.c: Likewise.
52704         * tests/test-fflush.c: Likewise.
52705         * tests/test-floorf.c: Likewise.
52706         * tests/test-floorl.c: Likewise.
52707         * tests/test-fopen.c: Likewise.
52708         * tests/test-fprintf-posix.c: Likewise.
52709         * tests/test-fprintf-posix.h: Likewise.
52710         * tests/test-fpurge.c: Likewise.
52711         * tests/test-freadable.c: Likewise.
52712         * tests/test-freadahead.c: Likewise.
52713         * tests/test-freading.c: Likewise.
52714         * tests/test-freopen.c: Likewise.
52715         * tests/test-frexp.c: Likewise.
52716         * tests/test-frexpl.c: Likewise.
52717         * tests/test-fseek.c: Likewise.
52718         * tests/test-fseeko.c: Likewise.
52719         * tests/test-fseterr.c: Likewise.
52720         * tests/test-fstrcmp.c: Likewise.
52721         * tests/test-ftell.c: Likewise.
52722         * tests/test-ftello.c: Likewise.
52723         * tests/test-fwritable.c: Likewise.
52724         * tests/test-fwriting.c: Likewise.
52725         * tests/test-getaddrinfo.c: Likewise.
52726         * tests/test-getpass.c: Likewise.
52727         * tests/test-gettimeofday.c: Likewise.
52728         * tests/test-hmac-md5.c: Likewise.
52729         * tests/test-hmac-sha1.c: Likewise.
52730         * tests/test-iconv.c: Likewise.
52731         * tests/test-iconvme.c: Likewise.
52732         * tests/test-inttypes.c: Likewise.
52733         * tests/test-isnan.c: Likewise.
52734         * tests/test-isnanf.c: Likewise.
52735         * tests/test-isnanl-nolibm.c: Likewise.
52736         * tests/test-isnanl.c: Likewise.
52737         * tests/test-isnanl.h: Likewise.
52738         * tests/test-ldexpl.c: Likewise.
52739         * tests/test-linked_list.c: Likewise.
52740         * tests/test-linkedhash_list.c: Likewise.
52741         * tests/test-locale.c: Likewise.
52742         * tests/test-localename.c: Likewise.
52743         * tests/test-lock.c: Likewise.
52744         * tests/test-lseek.c: Likewise.
52745         * tests/test-malloca.c: Likewise.
52746         * tests/test-math.c: Likewise.
52747         * tests/test-mbscasecmp.c: Likewise.
52748         * tests/test-mbscasestr1.c: Likewise.
52749         * tests/test-mbscasestr2.c: Likewise.
52750         * tests/test-mbscasestr3.c: Likewise.
52751         * tests/test-mbscasestr4.c: Likewise.
52752         * tests/test-mbschr.c: Likewise.
52753         * tests/test-mbscspn.c: Likewise.
52754         * tests/test-mbsncasecmp.c: Likewise.
52755         * tests/test-mbspbrk.c: Likewise.
52756         * tests/test-mbspcasecmp.c: Likewise.
52757         * tests/test-mbsrchr.c: Likewise.
52758         * tests/test-mbsspn.c: Likewise.
52759         * tests/test-mbsstr1.c: Likewise.
52760         * tests/test-mbsstr2.c: Likewise.
52761         * tests/test-mbsstr3.c: Likewise.
52762         * tests/test-md5.c: Likewise.
52763         * tests/test-memmem.c: Likewise.
52764         * tests/test-netinet_in.c: Likewise.
52765         * tests/test-open.c: Likewise.
52766         * tests/test-printf-frexp.c: Likewise.
52767         * tests/test-printf-frexpl.c: Likewise.
52768         * tests/test-printf-posix.c: Likewise.
52769         * tests/test-printf-posix.h: Likewise.
52770         * tests/test-rbtree_list.c: Likewise.
52771         * tests/test-rbtree_oset.c: Likewise.
52772         * tests/test-rbtreehash_list.c: Likewise.
52773         * tests/test-read-file.c: Likewise.
52774         * tests/test-rijndael.c: Likewise.
52775         * tests/test-search.c: Likewise.
52776         * tests/test-signbit.c: Likewise.
52777         * tests/test-sleep.c: Likewise.
52778         * tests/test-snprintf-posix.c: Likewise.
52779         * tests/test-snprintf-posix.h: Likewise.
52780         * tests/test-snprintf.c: Likewise.
52781         * tests/test-sprintf-posix.c: Likewise.
52782         * tests/test-sprintf-posix.h: Likewise.
52783         * tests/test-stat-time.c: Likewise.
52784         * tests/test-stdbool.c: Likewise.
52785         * tests/test-stdint.c: Likewise.
52786         * tests/test-stdio.c: Likewise.
52787         * tests/test-stdlib.c: Likewise.
52788         * tests/test-stpncpy.c: Likewise.
52789         * tests/test-strcasestr.c: Likewise.
52790         * tests/test-striconv.c: Likewise.
52791         * tests/test-striconveh.c: Likewise.
52792         * tests/test-striconveha.c: Likewise.
52793         * tests/test-string.c: Likewise.
52794         * tests/test-sys_select.c: Likewise.
52795         * tests/test-sys_socket.c: Likewise.
52796         * tests/test-sys_stat.c: Likewise.
52797         * tests/test-sys_time.c: Likewise.
52798         * tests/test-sysexits.c: Likewise.
52799         * tests/test-time.c: Likewise.
52800         * tests/test-tls.c: Likewise.
52801         * tests/test-trunc.c: Likewise.
52802         * tests/test-truncf.c: Likewise.
52803         * tests/test-truncl.c: Likewise.
52804         * tests/test-unistd.c: Likewise.
52805         * tests/test-vasnprintf-posix.c: Likewise.
52806         * tests/test-vasnprintf-posix2.c: Likewise.
52807         * tests/test-vasnprintf.c: Likewise.
52808         * tests/test-vasprintf-posix.c: Likewise.
52809         * tests/test-vasprintf.c: Likewise.
52810         * tests/test-verify.c: Likewise.
52811         * tests/test-vfprintf-posix.c: Likewise.
52812         * tests/test-vprintf-posix.c: Likewise.
52813         * tests/test-vsnprintf-posix.c: Likewise.
52814         * tests/test-vsnprintf.c: Likewise.
52815         * tests/test-vsprintf-posix.c: Likewise.
52816         * tests/test-wchar.c: Likewise.
52817         * tests/test-wctype.c: Likewise.
52818         * tests/test-wcwidth.c: Likewise.
52819         * tests/test-xstrtol.c: Likewise.
52820         * tests/test-xvasprintf.c: Likewise.
52821         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52822         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52823         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52824         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52825         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52826         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52827         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52828         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52829         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52830         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52831         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52832         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52833         * tests/uniname/test-uninames.c: Likewise.
52834         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52835         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52836         * tests/unistdio/test-u16-printf1.h: Likewise.
52837         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52838         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52839         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52840         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52841         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52842         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52843         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52844         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52845         * tests/unistdio/test-u32-printf1.h: Likewise.
52846         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52847         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52848         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52849         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52850         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52851         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52852         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52853         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52854         * tests/unistdio/test-u8-printf1.h: Likewise.
52855         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52856         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52857         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52858         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52859         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52860         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52861         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52862         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52863         * tests/unistdio/test-ulc-printf1.h: Likewise.
52864         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52865         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52866         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52867         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52868         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52869         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52870         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52871         * tests/uniwidth/test-u16-width.c: Likewise.
52872         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52873         * tests/uniwidth/test-u32-width.c: Likewise.
52874         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52875         * tests/uniwidth/test-u8-width.c: Likewise.
52876         * tests/uniwidth/test-uc_width.c: Likewise.
52877         * config/srclist-update: Likewise.
52878         (fixlicense): Update to GPLv3+.
52879
52880         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52881         * tests/test-tsearch.c: Change copyright notice.
52882
52883         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52884         * lib/c-strcaseeq.h: Change copyright notice.
52885         * lib/streq.h: Likewise.
52886         * lib/uniconv.h: Likewise.
52887         * lib/uniconv/u-conv-from-enc.h: Likewise.
52888         * lib/uniconv/u-conv-to-enc.h: Likewise.
52889         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52890         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52891         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52892         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52893         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52894         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52895         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52896         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52897         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52898         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52899         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52900         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52901         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52902         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52903         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52904         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52905         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52906         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52907         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52908         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52909         * lib/uniname.h: Likewise.
52910         * lib/uniname/uniname.c: Likewise.
52911         * lib/unistdio.h: Likewise.
52912         * lib/unistdio/u-asnprintf.h: Likewise.
52913         * lib/unistdio/u-asprintf.h: Likewise.
52914         * lib/unistdio/u-printf-args.c: Likewise.
52915         * lib/unistdio/u-printf-args.h: Likewise.
52916         * lib/unistdio/u-printf-parse.h: Likewise.
52917         * lib/unistdio/u-snprintf.h: Likewise.
52918         * lib/unistdio/u-sprintf.h: Likewise.
52919         * lib/unistdio/u-vasprintf.h: Likewise.
52920         * lib/unistdio/u-vsnprintf.h: Likewise.
52921         * lib/unistdio/u-vsprintf.h: Likewise.
52922         * lib/unistdio/u16-asnprintf.c: Likewise.
52923         * lib/unistdio/u16-asprintf.c: Likewise.
52924         * lib/unistdio/u16-printf-parse.c: Likewise.
52925         * lib/unistdio/u16-snprintf.c: Likewise.
52926         * lib/unistdio/u16-sprintf.c: Likewise.
52927         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52928         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52929         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52930         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52931         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52932         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52933         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52934         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52935         * lib/unistdio/u16-vasnprintf.c: Likewise.
52936         * lib/unistdio/u16-vasprintf.c: Likewise.
52937         * lib/unistdio/u16-vsnprintf.c: Likewise.
52938         * lib/unistdio/u16-vsprintf.c: Likewise.
52939         * lib/unistdio/u32-asnprintf.c: Likewise.
52940         * lib/unistdio/u32-asprintf.c: Likewise.
52941         * lib/unistdio/u32-printf-parse.c: Likewise.
52942         * lib/unistdio/u32-snprintf.c: Likewise.
52943         * lib/unistdio/u32-sprintf.c: Likewise.
52944         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52945         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52946         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52947         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52948         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52949         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52950         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52951         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52952         * lib/unistdio/u32-vasnprintf.c: Likewise.
52953         * lib/unistdio/u32-vasprintf.c: Likewise.
52954         * lib/unistdio/u32-vsnprintf.c: Likewise.
52955         * lib/unistdio/u32-vsprintf.c: Likewise.
52956         * lib/unistdio/u8-asnprintf.c: Likewise.
52957         * lib/unistdio/u8-asprintf.c: Likewise.
52958         * lib/unistdio/u8-printf-parse.c: Likewise.
52959         * lib/unistdio/u8-snprintf.c: Likewise.
52960         * lib/unistdio/u8-sprintf.c: Likewise.
52961         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52962         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52963         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52964         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52965         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52966         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52967         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52968         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52969         * lib/unistdio/u8-vasnprintf.c: Likewise.
52970         * lib/unistdio/u8-vasprintf.c: Likewise.
52971         * lib/unistdio/u8-vsnprintf.c: Likewise.
52972         * lib/unistdio/u8-vsprintf.c: Likewise.
52973         * lib/unistdio/ulc-asnprintf.c: Likewise.
52974         * lib/unistdio/ulc-asprintf.c: Likewise.
52975         * lib/unistdio/ulc-printf-parse.c: Likewise.
52976         * lib/unistdio/ulc-snprintf.c: Likewise.
52977         * lib/unistdio/ulc-sprintf.c: Likewise.
52978         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52979         * lib/unistdio/ulc-vasprintf.c: Likewise.
52980         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52981         * lib/unistdio/ulc-vsprintf.c: Likewise.
52982         * lib/unistr.h: Likewise.
52983         * lib/unistr/u-cpy-alloc.h: Likewise.
52984         * lib/unistr/u-cpy.h: Likewise.
52985         * lib/unistr/u-endswith.h: Likewise.
52986         * lib/unistr/u-move.h: Likewise.
52987         * lib/unistr/u-set.h: Likewise.
52988         * lib/unistr/u-startswith.h: Likewise.
52989         * lib/unistr/u-stpcpy.h: Likewise.
52990         * lib/unistr/u-stpncpy.h: Likewise.
52991         * lib/unistr/u-strcat.h: Likewise.
52992         * lib/unistr/u-strcpy.h: Likewise.
52993         * lib/unistr/u-strcspn.h: Likewise.
52994         * lib/unistr/u-strdup.h: Likewise.
52995         * lib/unistr/u-strlen.h: Likewise.
52996         * lib/unistr/u-strncat.h: Likewise.
52997         * lib/unistr/u-strncpy.h: Likewise.
52998         * lib/unistr/u-strnlen.h: Likewise.
52999         * lib/unistr/u-strpbrk.h: Likewise.
53000         * lib/unistr/u-strspn.h: Likewise.
53001         * lib/unistr/u-strstr.h: Likewise.
53002         * lib/unistr/u-strtok.h: Likewise.
53003         * lib/unistr/u16-check.c: Likewise.
53004         * lib/unistr/u16-chr.c: Likewise.
53005         * lib/unistr/u16-cmp.c: Likewise.
53006         * lib/unistr/u16-cpy-alloc.c: Likewise.
53007         * lib/unistr/u16-cpy.c: Likewise.
53008         * lib/unistr/u16-endswith.c: Likewise.
53009         * lib/unistr/u16-mblen.c: Likewise.
53010         * lib/unistr/u16-mbsnlen.c: Likewise.
53011         * lib/unistr/u16-mbtouc-aux.c: Likewise.
53012         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
53013         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
53014         * lib/unistr/u16-mbtouc.c: Likewise.
53015         * lib/unistr/u16-mbtoucr.c: Likewise.
53016         * lib/unistr/u16-move.c: Likewise.
53017         * lib/unistr/u16-next.c: Likewise.
53018         * lib/unistr/u16-prev.c: Likewise.
53019         * lib/unistr/u16-set.c: Likewise.
53020         * lib/unistr/u16-startswith.c: Likewise.
53021         * lib/unistr/u16-stpcpy.c: Likewise.
53022         * lib/unistr/u16-stpncpy.c: Likewise.
53023         * lib/unistr/u16-strcat.c: Likewise.
53024         * lib/unistr/u16-strchr.c: Likewise.
53025         * lib/unistr/u16-strcmp.c: Likewise.
53026         * lib/unistr/u16-strcpy.c: Likewise.
53027         * lib/unistr/u16-strcspn.c: Likewise.
53028         * lib/unistr/u16-strdup.c: Likewise.
53029         * lib/unistr/u16-strlen.c: Likewise.
53030         * lib/unistr/u16-strmblen.c: Likewise.
53031         * lib/unistr/u16-strmbtouc.c: Likewise.
53032         * lib/unistr/u16-strncat.c: Likewise.
53033         * lib/unistr/u16-strncmp.c: Likewise.
53034         * lib/unistr/u16-strncpy.c: Likewise.
53035         * lib/unistr/u16-strnlen.c: Likewise.
53036         * lib/unistr/u16-strpbrk.c: Likewise.
53037         * lib/unistr/u16-strrchr.c: Likewise.
53038         * lib/unistr/u16-strspn.c: Likewise.
53039         * lib/unistr/u16-strstr.c: Likewise.
53040         * lib/unistr/u16-strtok.c: Likewise.
53041         * lib/unistr/u16-to-u32.c: Likewise.
53042         * lib/unistr/u16-to-u8.c: Likewise.
53043         * lib/unistr/u16-uctomb-aux.c: Likewise.
53044         * lib/unistr/u16-uctomb.c: Likewise.
53045         * lib/unistr/u32-check.c: Likewise.
53046         * lib/unistr/u32-chr.c: Likewise.
53047         * lib/unistr/u32-cmp.c: Likewise.
53048         * lib/unistr/u32-cpy-alloc.c: Likewise.
53049         * lib/unistr/u32-cpy.c: Likewise.
53050         * lib/unistr/u32-endswith.c: Likewise.
53051         * lib/unistr/u32-mblen.c: Likewise.
53052         * lib/unistr/u32-mbsnlen.c: Likewise.
53053         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
53054         * lib/unistr/u32-mbtouc.c: Likewise.
53055         * lib/unistr/u32-mbtoucr.c: Likewise.
53056         * lib/unistr/u32-move.c: Likewise.
53057         * lib/unistr/u32-next.c: Likewise.
53058         * lib/unistr/u32-prev.c: Likewise.
53059         * lib/unistr/u32-set.c: Likewise.
53060         * lib/unistr/u32-startswith.c: Likewise.
53061         * lib/unistr/u32-stpcpy.c: Likewise.
53062         * lib/unistr/u32-stpncpy.c: Likewise.
53063         * lib/unistr/u32-strcat.c: Likewise.
53064         * lib/unistr/u32-strchr.c: Likewise.
53065         * lib/unistr/u32-strcmp.c: Likewise.
53066         * lib/unistr/u32-strcpy.c: Likewise.
53067         * lib/unistr/u32-strcspn.c: Likewise.
53068         * lib/unistr/u32-strdup.c: Likewise.
53069         * lib/unistr/u32-strlen.c: Likewise.
53070         * lib/unistr/u32-strmblen.c: Likewise.
53071         * lib/unistr/u32-strmbtouc.c: Likewise.
53072         * lib/unistr/u32-strncat.c: Likewise.
53073         * lib/unistr/u32-strncmp.c: Likewise.
53074         * lib/unistr/u32-strncpy.c: Likewise.
53075         * lib/unistr/u32-strnlen.c: Likewise.
53076         * lib/unistr/u32-strpbrk.c: Likewise.
53077         * lib/unistr/u32-strrchr.c: Likewise.
53078         * lib/unistr/u32-strspn.c: Likewise.
53079         * lib/unistr/u32-strstr.c: Likewise.
53080         * lib/unistr/u32-strtok.c: Likewise.
53081         * lib/unistr/u32-to-u16.c: Likewise.
53082         * lib/unistr/u32-to-u8.c: Likewise.
53083         * lib/unistr/u32-uctomb.c: Likewise.
53084         * lib/unistr/u8-check.c: Likewise.
53085         * lib/unistr/u8-chr.c: Likewise.
53086         * lib/unistr/u8-cmp.c: Likewise.
53087         * lib/unistr/u8-cpy-alloc.c: Likewise.
53088         * lib/unistr/u8-cpy.c: Likewise.
53089         * lib/unistr/u8-endswith.c: Likewise.
53090         * lib/unistr/u8-mblen.c: Likewise.
53091         * lib/unistr/u8-mbsnlen.c: Likewise.
53092         * lib/unistr/u8-mbtouc-aux.c: Likewise.
53093         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
53094         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
53095         * lib/unistr/u8-mbtouc.c: Likewise.
53096         * lib/unistr/u8-mbtoucr.c: Likewise.
53097         * lib/unistr/u8-move.c: Likewise.
53098         * lib/unistr/u8-next.c: Likewise.
53099         * lib/unistr/u8-prev.c: Likewise.
53100         * lib/unistr/u8-set.c: Likewise.
53101         * lib/unistr/u8-startswith.c: Likewise.
53102         * lib/unistr/u8-stpcpy.c: Likewise.
53103         * lib/unistr/u8-stpncpy.c: Likewise.
53104         * lib/unistr/u8-strcat.c: Likewise.
53105         * lib/unistr/u8-strchr.c: Likewise.
53106         * lib/unistr/u8-strcmp.c: Likewise.
53107         * lib/unistr/u8-strcpy.c: Likewise.
53108         * lib/unistr/u8-strcspn.c: Likewise.
53109         * lib/unistr/u8-strdup.c: Likewise.
53110         * lib/unistr/u8-strlen.c: Likewise.
53111         * lib/unistr/u8-strmblen.c: Likewise.
53112         * lib/unistr/u8-strmbtouc.c: Likewise.
53113         * lib/unistr/u8-strncat.c: Likewise.
53114         * lib/unistr/u8-strncmp.c: Likewise.
53115         * lib/unistr/u8-strncpy.c: Likewise.
53116         * lib/unistr/u8-strnlen.c: Likewise.
53117         * lib/unistr/u8-strpbrk.c: Likewise.
53118         * lib/unistr/u8-strrchr.c: Likewise.
53119         * lib/unistr/u8-strspn.c: Likewise.
53120         * lib/unistr/u8-strstr.c: Likewise.
53121         * lib/unistr/u8-strtok.c: Likewise.
53122         * lib/unistr/u8-to-u16.c: Likewise.
53123         * lib/unistr/u8-to-u32.c: Likewise.
53124         * lib/unistr/u8-uctomb-aux.c: Likewise.
53125         * lib/unistr/u8-uctomb.c: Likewise.
53126         * lib/unitypes.h: Likewise.
53127         * lib/uniwidth.h: Likewise.
53128         * lib/uniwidth/cjk.h: Likewise.
53129         * lib/uniwidth/u16-strwidth.c: Likewise.
53130         * lib/uniwidth/u16-width.c: Likewise.
53131         * lib/uniwidth/u32-strwidth.c: Likewise.
53132         * lib/uniwidth/u32-width.c: Likewise.
53133         * lib/uniwidth/u8-strwidth.c: Likewise.
53134         * lib/uniwidth/u8-width.c: Likewise.
53135         * lib/uniwidth/width.c: Likewise.
53136
53137 2007-10-07  Bruno Haible  <bruno@clisp.org>
53138
53139         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
53140         The file is still under LGPL (see modules/inttypes).
53141
53142 2007-10-06  Bruno Haible  <bruno@clisp.org>
53143
53144         * modules/trunc (Dependencies): Add 'extensions'.
53145         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
53146         Reported by Ben Pfaff <blp@gnu.org>.
53147
53148 2007-10-06  Bruno Haible  <bruno@clisp.org>
53149
53150         * modules/freopen-tests: New file.
53151         * tests/test-freopen.c: New file.
53152
53153         * modules/fopen-tests: New file.
53154         * tests/test-fopen.c: New file.
53155
53156         * modules/fopen: New file.
53157         * lib/fopen.c: New file.
53158         * m4/fopen.m4: New file.
53159         * modules/freopen: New file.
53160         * lib/freopen.c: New file.
53161         * m4/freopen.m4: New file.
53162         * lib/stdio.in.h (fopen, freopen): New declarations.
53163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
53164         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53165         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
53166         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53167         * doc/functions/fopen.texi: Mention the 'fopen' module.
53168         * doc/functions/freopen.texi: Mention the 'freopen' module.
53169
53170 2007-10-06  Bruno Haible  <bruno@clisp.org>
53171
53172         * modules/open-tests: New file.
53173         * tests/test-open.c: New file.
53174
53175         * modules/open: New file.
53176         * lib/open.c: New file.
53177         * m4/open.m4: New file.
53178         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
53179         lib/open.c does.
53180         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
53181         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
53182         macros.
53183         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
53184         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
53185         REPLACE_OPEN.
53186         * doc/functions/open.texi: Mention the 'open' module.
53187
53188 2007-10-04  Bruno Haible  <bruno@clisp.org>
53189
53190         * modules/ceill-tests: New file.
53191         * tests/test-ceill.c: New file.
53192
53193         * modules/ceill: New file.
53194         * lib/ceill.c: Replace entire file.
53195         * m4/ceill.m4: New file.
53196         * lib/math.in.h (ceill): Replace declaration.
53197         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
53198         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
53199         * doc/functions/ceill.texi: Mention the 'ceill' module.
53200         * modules/mathl (Files): Remove lib/ceill.c.
53201         (Depends-on): Add ceill.
53202
53203 2007-10-04  Bruno Haible  <bruno@clisp.org>
53204
53205         * modules/ceilf-tests: New file.
53206         * tests/test-ceilf.c: New file.
53207
53208         * modules/ceilf: New file.
53209         * lib/ceil.c: New file.
53210         * lib/ceilf.c: New file.
53211         * m4/ceilf.m4: New file.
53212         * lib/math.in.h (ceilf): New declaration.
53213         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
53214         HAVE_DECL_CEILF.
53215         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
53216         HAVE_DECL_CEILF.
53217         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
53218
53219 2007-10-04  Bruno Haible  <bruno@clisp.org>
53220
53221         * modules/floorl-tests: New file.
53222         * tests/test-floorl.c: New file.
53223
53224         * modules/floorl: New file.
53225         * lib/floorl.c: Replace entire file.
53226         * m4/floorl.m4: New file.
53227         * lib/math.in.h (floorl): Replace declaration.
53228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
53229         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
53230         * doc/functions/floorl.texi: Mention the 'floorl' module.
53231         * modules/mathl (Files): Remove lib/floorl.c.
53232         (Depends-on): Add floorl.
53233
53234 2007-10-04  Bruno Haible  <bruno@clisp.org>
53235
53236         * modules/floorf-tests: New file.
53237         * tests/test-floorf.c: New file.
53238
53239         * modules/floorf: New file.
53240         * lib/floor.c: New file.
53241         * lib/floorf.c: New file.
53242         * m4/floorf.m4: New file.
53243         * lib/math.in.h (floorf): New declaration.
53244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
53245         HAVE_DECL_FLOORF.
53246         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
53247         HAVE_DECL_FLOORF.
53248         * doc/functions/floorf.texi: Mention the 'floorf' module.
53249
53250 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
53251             Bruno Haible  <bruno@clisp.org>
53252
53253         Advertise for the Git server instead of the CVS server.
53254         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53255         repository instead of the CVS one.
53256         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53257         about all VCS systems generically.
53258         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53259
53260 2007-10-04  Bruno Haible  <bruno@clisp.org>
53261
53262         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53263         means.
53264         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53265
53266 2007-10-04  Bruno Haible  <bruno@clisp.org>
53267
53268         * modules/truncl-tests: New file.
53269         * tests/test-truncl.c: New file.
53270
53271         * modules/truncl: New file.
53272         * lib/truncl.c: New file.
53273         * m4/truncl.m4: New file.
53274         * lib/math.in.h (truncl): New declaration.
53275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53276         HAVE_DECL_TRUNCL.
53277         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53278         HAVE_DECL_TRUNCL.
53279         * doc/functions/truncl.texi: Mention the 'truncl' module.
53280
53281 2007-10-04  Bruno Haible  <bruno@clisp.org>
53282
53283         * modules/truncf-tests: New file.
53284         * tests/test-truncf.c: New file.
53285
53286         * modules/truncf: New file.
53287         * lib/trunc.c: Make paramerizable through USE_* macros.
53288         * lib/truncf.c: New file.
53289         * m4/truncf.m4: New file.
53290         * lib/math.in.h (truncf): New declaration.
53291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53292         HAVE_DECL_TRUNCF.
53293         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53294         HAVE_DECL_TRUNCF.
53295         * doc/functions/truncf.texi: Mention the 'truncf' module.
53296
53297 2007-10-03  Bruno Haible  <bruno@clisp.org>
53298
53299         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53300         augmentation also for tests modules.
53301         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53302         * modules/atexit-tests (Makefile.am): Likewise.
53303         * modules/binary-io-tests (Makefile.am): Likewise.
53304         * modules/c-strcase-tests (Makefile.am): Likewise.
53305         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53306         * modules/canonicalize-tests (Makefile.am): Likewise.
53307         * modules/closein-tests (Makefile.am): Likewise.
53308         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53309         * modules/freadahead-tests (Makefile.am): Likewise.
53310         * modules/fseek-tests (Makefile.am): Likewise.
53311         * modules/fseeko-tests (Makefile.am): Likewise.
53312         * modules/ftell-tests (Makefile.am): Likewise.
53313         * modules/ftello-tests (Makefile.am): Likewise.
53314         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53315         * modules/isnanl-tests (Makefile.am): Likewise.
53316         * modules/lseek-tests (Makefile.am): Likewise.
53317         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53318         * modules/mbscasestr-tests (Makefile.am): Likewise.
53319         * modules/mbschr-tests (Makefile.am): Likewise.
53320         * modules/mbscspn-tests (Makefile.am): Likewise.
53321         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53322         * modules/mbspbrk-tests (Makefile.am): Likewise.
53323         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53324         * modules/mbsrchr-tests (Makefile.am): Likewise.
53325         * modules/mbsspn-tests (Makefile.am): Likewise.
53326         * modules/mbsstr-tests (Makefile.am): Likewise.
53327         * modules/printf-posix-tests (Makefile.am): Likewise.
53328         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53329         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53330         * modules/tsearch-tests (Makefile.am): Likewise.
53331         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53332         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53333         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53334         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53335         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53336         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53337         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53338         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53339         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53340         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53341         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53342         * modules/xstrtol-tests (Makefile.am): Likewise.
53343         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53344         * modules/yesno-tests (Makefile.am): Likewise.
53345
53346 2007-10-03  Bruno Haible  <bruno@clisp.org>
53347
53348         * modules/trunc-tests: New file.
53349         * tests/test-trunc.c: New file.
53350
53351         * modules/trunc: New file.
53352         * lib/trunc.c: New file.
53353         * m4/trunc.m4: New file.
53354         * lib/math.in.h (trunc): New declaration.
53355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53356         HAVE_DECL_TRUNC.
53357         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53358         HAVE_DECL_TRUNC.
53359         * doc/functions/trunc.texi: Mention the 'trunc' module.
53360
53361 2007-10-03  Bruno Haible  <bruno@clisp.org>
53362
53363         * tests/test-fpending.c: New file, mostly copied
53364         from coreutils/lib/t-fpending.c.
53365         * modules/fpending-tests: New file.
53366
53367 2007-10-03  Bruno Haible  <bruno@clisp.org>
53368
53369         Port the stdio extensions to QNX (untested).
53370         * lib/fseterr.c (fseterr): Add support for QNX.
53371         * lib/fbufmode.c (fbufmode): Likewise.
53372         * lib/freadable.c (freadable): Likewise.
53373         * lib/fwritable.c (fwritable): Likewise.
53374         * lib/freading.c (freading): Likewise.
53375         * lib/fwriting.c (fwriting): Likewise.
53376         * lib/freadahead.c (freadahed): Likewise.
53377         * lib/fpurge.c (fpurge): Likewise.
53378         * lib/fseeko.c (rpl_fseeko): Likewise.
53379
53380 2007-10-03  Bruno Haible  <bruno@clisp.org>
53381             Jim Meyering  <jim@meyering.net>
53382             Eric Blake  <ebb9@byu.net>
53383
53384         * doc/relocatable.texi: Use @command instead of @program.
53385
53386 2007-10-02  Jim Meyering  <jim@meyering.net>
53387
53388         Perform one more "_.h" -> ".in.h" substitution.
53389         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53390         instead of unistd_.h here, too.
53391
53392 2007-10-01  Bruno Haible  <bruno@clisp.org>
53393
53394         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53395         Needed for the alloca-opt module.
53396
53397 2007-09-30  Bruno Haible  <bruno@clisp.org>
53398
53399         * lib/alloca.in.h: Renamed from lib/alloca_.h.
53400         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
53401         alloca_.h.
53402         * lib/argz.in.h: Renamed from lib/argz_.h.
53403         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
53404         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
53405         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
53406         byteswap_.h.
53407         * lib/dirent.in.h: Renamed from lib/dirent_.h.
53408         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
53409         dirent_.h.
53410         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
53411         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
53412         fcntl_.h.
53413         * lib/float.in.h: Renamed from lib/float_.h.
53414         * modules/float (Files, Makefile.am): Use float.in.h instead of
53415         float_.h.
53416         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
53417         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53418         fnmatch_.h.
53419         * lib/getopt.in.h: Renamed from lib/getopt_.h.
53420         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
53421         getopt_.h.
53422         * lib/glob.in.h: Renamed from lib/glob_.h.
53423         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
53424         * lib/iconv.in.h: Renamed from lib/iconv_.h.
53425         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
53426         iconv_.h.
53427         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
53428         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
53429         inttypes_.h.
53430         * lib/locale.in.h: Renamed from lib/locale_.h.
53431         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
53432         locale_.h.
53433         * lib/math.in.h: Renamed from lib/math_.h.
53434         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
53435         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
53436         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
53437         of netinet_in_.h. Add dependency.
53438         * lib/poll.in.h: Renamed from lib/poll_.h.
53439         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
53440         * lib/search.in.h: Renamed from lib/search_.h.
53441         * modules/search (Files, Makefile.am): Use search.in.h instead of
53442         search_.h.
53443         * lib/signal.in.h: Renamed from lib/signal_.h.
53444         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
53445         _signal.h.
53446         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
53447         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
53448         stdbool_.h.
53449         * lib/stdint.in.h: Renamed from lib/stdint_.h.
53450         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
53451         stdint_.h.
53452         * lib/stdio.in.h: Renamed from lib/stdio_.h.
53453         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
53454         stdio_.h.
53455         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
53456         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
53457         stdlib_.h.
53458         * lib/string.in.h: Renamed from lib/string_.h.
53459         * modules/string (Files, Makefile.am): Use string.in.h instead of
53460         string_.h.
53461         * doc/gnulib-tool.texi (Initial import): Update.
53462         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
53463         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
53464         of sys_select_.h. Add dependency.
53465         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
53466         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
53467         of sys_socket_.h.
53468         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
53469         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
53470         sys_stat_.h.
53471         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
53472         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
53473         sys_time_.h.
53474         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
53475         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
53476         sysexits_.h.
53477         * lib/time.in.h: Renamed from lib/time_.h.
53478         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
53479         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53480         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53481         unistd_.h.
53482         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53483         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53484         wchar_.h.
53485         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53486         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53487         wctype_.h.
53488         * build-aux/bootstrap (slurp): Update.
53489         * lib/.cppi-disable: Update.
53490
53491 2007-09-30  Bruno Haible  <bruno@clisp.org>
53492
53493         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53494         Needed on BeOS.
53495
53496 2007-09-30  Bruno Haible  <bruno@clisp.org>
53497
53498         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53499
53500 2007-09-29  Bruno Haible  <bruno@clisp.org>
53501
53502         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53503
53504 2007-09-29  Bruno Haible  <bruno@clisp.org>
53505
53506         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53507         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53508         * build-aux/install-reloc: Compile also areadlink.c.
53509         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53510
53511 2007-09-29  Bruno Haible  <bruno@clisp.org>
53512
53513         * gnulib-tool (func_emit_initmacro_done): Indentation.
53514
53515 2007-09-29  Bruno Haible  <bruno@clisp.org>
53516
53517         * README: Add CVS checkout update instructions.
53518         Info from Bob Proulx <bob@proulx.com>.
53519
53520 2007-09-28  Eric Blake  <ebb9@byu.net>
53521
53522         Provide move-if-change.
53523         * build-aux/move-if-change: New file, based on best practice
53524         rather than any canonical upstream location.
53525
53526 2007-09-28  Jim Meyering  <jim@meyering.net>
53527
53528         Fix canonicalize loop-detection corner case.
53529         Do not attempt to stat the symlink values stored via seen_triple.
53530         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53531         on linux-2.6.18, (but not 2.6.22).
53532         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53533         triple_compare.  The former compares dev,ino,filename, while the latter
53534         would actually stat dirname(filename) when dev and ino were equal.
53535         * lib/hash-triple.c: Install <string.h>.
53536         (STREQ): Define.
53537         (triple_compare_ino_str): New function.
53538         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53539
53540 2007-09-28  Eric Blake  <ebb9@byu.net>
53541
53542         Enforce that AC_REPLACE_FUNCS files exist.
53543         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53544         override check for typos.
53545
53546         Fix test-closein on Solaris 10.
53547         * tests/test-closein.c (main): Don't assume stdin can be inherited
53548         closed on all systems.
53549         * tests/test-closein.sh: Likewise.
53550         Reported by Piotr Tarnowski.
53551
53552 2007-09-28  Jim Meyering  <jim@meyering.net>
53553
53554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53555
53556 2007-09-27  Jim Meyering  <jim@meyering.net>
53557
53558         canonicalize: Avoid a false-positive cycle failure.
53559         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53560         Sort.  Remove cycle-check.
53561         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53562         not cycle-check.h.
53563         (seen_triple): New function.
53564         (canonicalize_filename_mode): Use it instead of cycle-check.
53565         * tests/test-canonicalize.c: Add a test for this bug.
53566         * tests/test-canonicalize.sh: Set up and run the test.
53567
53568         New module, file-set, from coreutils.
53569         * modules/file-set: Define it.
53570         * lib/file-set.c, lib/file-set.h: Implement.
53571
53572         New module, hash-triple, from coreutils.
53573         * modules/hash-triple: Define it.
53574         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53575
53576 2007-09-25  Eric Blake  <ebb9@byu.net>
53577
53578         Fix strerror on Interix.
53579         * lib/string_.h (strerror): Declare replacement.
53580         * doc/functions/strerror.texi (strerror): Document the Interix
53581         shortcoming.
53582         * modules/string (Makefile.am): Support new hooks.
53583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53584         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53585         gl_FUNC_STRERROR_SEPARATE.
53586         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53587         * lib/strerror.c (rpl_strerror): Provide replacement.
53588         * modules/strerror (Depends-on): Add string.
53589         (configure.ac): Detect use of module.
53590         * tests/test-strerror.c: New file.
53591         * modules/strerror-tests: New test module.
53592         * modules/argp (Depends-on): Add strerror.
53593         * modules/error (Depends-on): Likewise.
53594         Reported by Martin Koeppe.
53595
53596 2007-09-24  Bruno Haible  <bruno@clisp.org>
53597
53598         * README: Update git instructions.
53599
53600 2007-09-24  Eric Blake  <ebb9@byu.net>
53601
53602         Revert fpending breakage from 2007-09-08.
53603         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53604         __fpending.c.
53605
53606 2007-09-24  Jim Meyering  <jim@meyering.net>
53607
53608         filenamecat.c: Add a test.
53609         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53610         showing how the function works when DIR is the empty string.
53611
53612 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53613
53614         * tests/test-canonicalize.sh: Turn on executable bit.
53615
53616 2007-09-19  Eric Blake  <ebb9@byu.net>
53617
53618         * README: Update CVS instructions.
53619
53620 2007-09-18  Bruno Haible  <bruno@clisp.org>
53621
53622         * modules/areadlink: New file.
53623         * lib/areadlink.h (areadlink): New declaration.
53624         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53625
53626 2007-09-17  Jim Meyering  <jim@meyering.net>
53627
53628         * lib/savewd.c (ESTALE) [!defined]: Define.
53629         Reported to be required on Interix by Martin Koeppe.
53630
53631 2007-09-17  Bruno Haible  <bruno@clisp.org>
53632
53633         * gnulib-tool (func_version): Use $version.
53634
53635 2007-09-16  Bruno Haible  <bruno@clisp.org>
53636
53637         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53638         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53639         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53640         Reported by Greg Schafer <gschafer@zip.com.au>.
53641
53642 2007-09-15  Bruno Haible  <bruno@clisp.org>
53643
53644         * gnulib-tool (sed): Try a little harder to make bash understand the
53645         alias.
53646         Reported by Bruce Korb <bruce.korb@gmail.com>.
53647
53648 2007-09-13  Eric Blake  <ebb9@byu.net>
53649
53650         * ChangeLog: Remove conflict markers.
53651
53652 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53653
53654         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53655         Reported by Bruno Haible <bruno@clisp.org>.
53656
53657 2007-09-12  Bruno Haible  <bruno@clisp.org>
53658
53659         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53660         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53661         is not defined.
53662
53663 2007-09-12  Eric Blake  <ebb9@byu.net>
53664
53665         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53666         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53667         Autoconf definition.
53668         * modules/euidaccess (Depends-on): Add extensions, for
53669         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53670         * modules/fnmatch (Depends-on): Likewise.
53671         * modules/getaddrinfo (Depends-on): Likewise.
53672         * modules/getdelim (Depends-on): Likewise.
53673         * modules/getline (Depends-on): Likewise.
53674         * modules/getsubopt (Depends-on): Likewise.
53675         * modules/gettext (Depends-on): Likewise.
53676         * modules/group-member (Depends-on): Likewise.
53677         * modules/mbchar (Depends-on): Likewise.
53678         * modules/memmem (Depends-on): Likewise.
53679         * modules/mempcpy (Depends-on): Likewise.
53680         * modules/memrchr (Depends-on): Likewise.
53681         * modules/pagealign_alloc (Depends-on): Likewise.
53682         * modules/readutmp (Depends-on): Likewise.
53683         * modules/stpcpy (Depends-on): Likewise.
53684         * modules/stpncpy (Depends-on): Likewise.
53685         * modules/strchrnul (Depends-on): Likewise.
53686         * modules/strndup (Depends-on): Likewise.
53687         * modules/strsep (Depends-on): Likewise.
53688         * modules/strverscmp (Depends-on): Likewise.
53689         * modules/vasprintf (Depends-on): Likewise.
53690         * modules/wcwidth (Depends-on): Likewise.
53691         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53692         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53693         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53694         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53695         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53696         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53697         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53698         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53699         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53700         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53701         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53702         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53703         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53704         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53705         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53706         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53707         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53708         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53709         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53710         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53711         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53712         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53713         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53714         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53715         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53716         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53717         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53718         so that lock.m4 can be used in gettext without extensions module.
53719
53720 2007-09-11  Bruno Haible  <bruno@clisp.org>
53721
53722         * m4/isc-posix.m4: Remove file.
53723         Suggested by Eric Blake.
53724
53725 2007-09-11  Eric Blake  <ebb9@byu.net>
53726
53727         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53728
53729 2007-09-10  Bruno Haible  <bruno@clisp.org>
53730
53731         * posix-modules: Fix typo in error message.
53732         Reported by Matt <mkraai@beckman.com>.
53733
53734 2007-09-09  Bruno Haible  <bruno@clisp.org>
53735
53736         * doc/functions/getdelim.texi: Update list of platforms lacking the
53737         function.
53738         * doc/functions/getline.texi: Likewise.
53739
53740 2007-09-09  Jim Meyering  <jim@meyering.net>
53741
53742         * lib/hash.c (hash_initialize): Detect calloc failure.
53743         Reported by Bruno Haible.
53744
53745 2007-09-09  Bruno Haible  <bruno@clisp.org>
53746
53747         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53748         malloc or realloc fails.
53749
53750 2007-09-09  Bruno Haible  <bruno@clisp.org>
53751
53752         * modules/getcwd (Depends-on): Add malloc-posix.
53753         * modules/glob (Depends-on): Likewise.
53754         * modules/putenv (Depends-on): Likewise.
53755         * modules/strdup (Depends-on): Likewise.
53756         * modules/getdelim (Depends-on): Add realloc-posix.
53757         * modules/read-file (Depends-on): Likewise.
53758
53759 2007-09-09  Bruno Haible  <bruno@clisp.org>
53760
53761         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53762         (gl_FUNC_MALLOC_POSIX): Require it.
53763         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53764         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53765         * modules/realloc (Files): Add m4/malloc.m4.
53766         * modules/calloc (Files): Likewise.
53767
53768 2007-09-09  Bruno Haible  <bruno@clisp.org>
53769
53770         * modules/malloc-posix: New file.
53771         * modules/malloc (Depends-on): Add malloc-posix.
53772         * lib/malloc.c: Include errno.h.
53773         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53774         and a POSIX-compatible malloc into a single function. Set ENOMEM
53775         when returning NULL.
53776         * m4/malloc.m4: New file.
53777         * doc/functions/malloc.texi: Mention the malloc-posix module.
53778         * lib/stdlib_.h (malloc): New declaration.
53779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53780         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53781         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53782         and HAVE_MALLOC_POSIX.
53783
53784 2007-09-09  Bruno Haible  <bruno@clisp.org>
53785
53786         * modules/realloc-posix: New file.
53787         * modules/realloc (Depends-on): Add realloc-posix.
53788         * lib/realloc.c: Include errno.h.
53789         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53790         and a POSIX-compatible realloc into a single function. Set ENOMEM
53791         when returning NULL.
53792         * m4/realloc.m4: New file.
53793         * doc/functions/realloc.texi: Mention the realloc-posix module.
53794         * lib/stdlib_.h (realloc): New declaration.
53795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53796         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53797         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53798         and HAVE_REALLOC_POSIX.
53799
53800 2007-09-09  Bruno Haible  <bruno@clisp.org>
53801
53802         * modules/calloc-posix: New file.
53803         * modules/calloc (Depends-on): Add calloc-posix.
53804         * lib/calloc.c: Include errno.h.
53805         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53806         and a POSIX-compatible calloc into a single function. Set ENOMEM
53807         when returning NULL.
53808         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53809         * doc/functions/calloc.texi: Mention the calloc-posix module.
53810         * lib/stdlib_.h (calloc): New declaration.
53811         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53812         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53813         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53814         and HAVE_CALLOC_POSIX.
53815
53816 2007-09-09  Bruno Haible  <bruno@clisp.org>
53817
53818         Allow for modules to show an arbitrary notice.
53819         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53820         * gnulib-tool: New option --extract-notice.
53821         (func_usage): Document it.
53822         (sed_extract_prog): Update.
53823         (func_get_notice): New function.
53824         (func_modules_notice): New function.
53825         (func_import, func_create_testdir): Invoke it.
53826         Suggested by Jim Meyering.
53827
53828 2007-09-09  Bruno Haible  <bruno@clisp.org>
53829
53830         * gnulib-tool: New options --verbose, --quiet.
53831         (func_usage): Document them.
53832         (verbose): New variable.
53833         (func_execute_command): New function.
53834         (func_import): Don't show the module list and the file list if
53835         $verbose < 0.
53836         (func_create_testdir): Likewise. Use func_execute_command.
53837         (func_create_megatestdir): Use func_execute_command.
53838
53839 2007-09-08  Bruno Haible  <bruno@clisp.org>
53840
53841         * gnulib-tool (func_import): Prefer rsync over wget when available,
53842         for fetching the PO files.
53843
53844 2007-09-08  Bruno Haible  <bruno@clisp.org>
53845
53846         * posix-modules: New file. Portions copied from gnulib-tool.
53847         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53848
53849 2007-09-08  Jim Meyering  <jim@meyering.net>
53850
53851         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53852         * lib/fpending.h: Rename from __fpending.h.
53853         * lib/fpending.c: Rename from __fpending.c.
53854         Include "fpending.h", not "__fpending.h".
53855         * lib/__fpending.h, lib/__fpending.c: Remove files.
53856         * modules/fpending (Files): Reflect new file names.
53857         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53858
53859 2007-09-08  Bruno Haible  <bruno@clisp.org>
53860
53861         * m4/inttypes-h.m4: Remove stub file.
53862
53863 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53864
53865         * doc/headers/stdint.texi: Discuss #include_next issue.
53866
53867 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53868
53869         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53870
53871 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53872
53873         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53874         in variable name.
53875
53876 2007-09-03  Jim Meyering  <jim@meyering.net>
53877
53878         New module: git-version-gen.
53879         * modules/git-version-gen: New file.
53880
53881         Import changes from coreutils for bootstrap script.
53882
53883         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53884
53885         bootstrap: uses rsync to download the .po files
53886         * build-aux/bootstrap (po_download_command_format): New global.
53887         (download_po_files): Use rsync.
53888         (update_po_files): Don't remove .po files after download,
53889         so future rsync runs can take advantage of the copies.
53890
53891         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53892
53893         Solve the unnecessary-.po-file-regeneration problem once and for all.
53894         * build-aux/bootstrap (download_po_files): New function, renamed from
53895         get_translations.  Now, downloads, but doesn't update LINGUAS.
53896         (update_po_files): New function.
53897
53898         bootstrap: Ignore more.
53899         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53900         uniwidth to e.g., lib/.gitignore.
53901         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53902
53903         * build-aux/bootstrap: New setting: vc_ignore.
53904         (insert_sorted_if_absent): Create $file if absent.
53905         Adapt to new, possibly empty, list: $vc_ignore.
53906
53907         bootstrap: generate more ignorable names
53908         * build-aux/bootstrap (slurp): When generating ignorable names,
53909         also map .sin to .sed, .gperf to .c, and .y to .c.
53910
53911 2007-09-03  Jim Meyering  <jim@meyering.net>
53912
53913         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53914         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53915
53916 2007-09-02  Bruno Haible  <bruno@clisp.org>
53917
53918         Fix mis-recognition of 'mcs' on QNX 6.
53919         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53920         output contains the string "Mono".
53921         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53922         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53923
53924 2007-09-01  Bruno Haible  <bruno@clisp.org>
53925
53926         Fix collision between uniwidth/* and linebreak modules.
53927         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53928         u32_width): Remove declarations.
53929         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53930         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53931         streq3, streq2, streq1, streq0): Remove functions.
53932         (STREQ): Remove macro.
53933         (is_cjk_encoding): Remove function.
53934         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53935         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53936         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53937         * NEWS: Document the change.
53938
53939 2007-09-01  Bruno Haible  <bruno@clisp.org>
53940
53941         * lib/streq.h: Add double-inclusion guard.
53942
53943 2007-09-01  Karl Berry  <karl@gnu.org>
53944
53945         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53946
53947 2007-08-28  Jim Meyering  <jim@meyering.net>
53948
53949         Rename mreadlink_with_size to areadlink_with_size.
53950         * NEWS: Document the change.
53951         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53952         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53953         * lib/mreadlink.h: Rename this to...
53954         * lib/areadlink.h: ...this.
53955         * modules/mreadlink-with-size: Rename this to...
53956         * modules/areadlink-with-size: ...this.
53957         * lib/canonicalize.c: Reflect the renaming.
53958         * modules/canonicalize: Likewise.
53959
53960 2007-08-26  Bruno Haible  <bruno@clisp.org>
53961
53962         * gnulib-tool (func_import): When deciding which files to remove,
53963         consider also dangling symbolic links.
53964         Reported by Eric Blake.
53965
53966 2007-08-26  Bruno Haible  <bruno@clisp.org>
53967
53968         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53969
53970 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53971
53972         * lib/readline.c: Don't include getline.h, the prototype is now
53973         found in stdio.h.
53974
53975 2007-08-23  Jim Meyering  <jim@meyering.net>
53976
53977         Getdelim touchup.
53978         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53979         around the funlockfile call, since funlockfile never sets errno.
53980         Don't set errno upon failed realloc.
53981
53982 2007-08-22  Eric Blake  <ebb9@byu.net>
53983
53984         Getline touchups.
53985         * lib/getdelim.c (getdelim): Revert regression that required *n to
53986         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53987         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53988         getdelim, rather than whether implementation is missing.
53989         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53990         * lib/stdio_.h (getline): Also declare if replacement is
53991         required.
53992         * doc/functions/getdelim.texi: New file.
53993         * doc/functions/getline.texi: Likewise.
53994         * doc/gnulib.texi (Function Substitutes): Add new files.
53995         Reported by Bruno Haible.
53996
53997 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53998
53999         * users.txt: Add Guile.
54000
54001 2007-08-22  Eric Blake  <ebb9@byu.net>
54002
54003         * tests/test-getdelim.c (main): Use remove, not unlink.
54004         * tests/test-getline.c (main): Likewise.
54005
54006         Move getline and getdelim into stdio.h, per POSIX 200x.
54007         * modules/getline (Files): Remove getline.h.
54008         (Depends-on): Add stdio.
54009         (configure.ac): Add module indicator.
54010         * modules/getdelim (Files): Remove getdelim.h.
54011         (Depends-on): Add stdio.
54012         (configure.ac): Add module indicator.
54013         * modules/stdio (Makefile.am): Work with new indicators.
54014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
54015         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
54016         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54017         * lib/getdelim.h: Delete.
54018         * lib/getline.h: Delete.
54019         * lib/stdio_.h (getdelim, getline): Declare.
54020         * modules/getdelim-tests: New module.
54021         * modules/getline-tests: Likewise.
54022         * tests/test-getdelim.c: New file.
54023         * tests/test-getline.c: Likewise.
54024         * NEWS: Document the change.
54025         * lib/getline.c: Update choice of header.
54026         * lib/csharpcomp.c: Likewise.
54027         * lib/getpass.c: Likewise.
54028         * lib/javacomp.c: Likewise.
54029         * lib/javaversion.c: Likewise.
54030         * lib/yesno.c: Likewise.
54031         * lib/getdelim.c: Likewise.
54032         (getdelim): Set errno on failure, and avoid memory leak.
54033
54034 2007-08-19  Bruno Haible  <bruno@clisp.org>
54035
54036         * modules/closein (Depends-on): Add freadahead.
54037         * lib/closein.c: Include freadahead.h.
54038         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
54039         is zero.
54040
54041 2007-08-19  Bruno Haible  <bruno@clisp.org>
54042
54043         * modules/freadahead-tests: New file.
54044         * tests/test-freadahead.sh: New file.
54045         * tests/test-freadahead.c: New file.
54046
54047         * modules/freadahead: New file.
54048         * lib/freadahead.h: New file.
54049         * lib/freadahead.c: New file.
54050         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
54051         fbufmode, fpurge, freadable, fwritable.
54052
54053 2007-08-19  Eric Blake  <ebb9@byu.net>
54054
54055         Test yesno in combination with closein.
54056         * lib/yesno.c (yesno): Document use of stdin.
54057         * modules/yesno-tests (Files): New module.
54058         * tests/test-yesno.c (main): New file.
54059         * tests/test-yesno.sh: Likewise.
54060
54061 2007-08-19  Bruno Haible  <bruno@clisp.org>
54062
54063         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
54064         * lib/fseeko.c (rpl_fseeko): Likewise.
54065         * lib/fseterr.c (fseterr): Likewise.
54066
54067 2007-08-19  Bruno Haible  <bruno@clisp.org>
54068
54069         * tests/test-lseek.c (main): Disable a test for BeOS.
54070         * doc/functions/lseek.texi: Document the BeOS bug.
54071
54072 2007-08-19  Bruno Haible  <bruno@clisp.org>
54073             Eric Blake  <ebb9@byu.net>
54074
54075         * lib/lseek.c: Include <sys/stat.h>.
54076         (rpl_lseek): Add workaround code also for Unix platforms.
54077         Needed for BeOS.
54078         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
54079         * doc/functions/lseek.texi: Document BeOS definiency.
54080
54081 2007-08-18  Bruno Haible  <bruno@clisp.org>
54082
54083         * modules/fstrcmp-tests: New file.
54084         * tests/test-fstrcmp.c: New file.
54085
54086 2007-08-18  Bruno Haible  <bruno@clisp.org>
54087
54088         * modules/fstrcmp: New file, from GNU gettext with modifications.
54089         * lib/fstrcmp.h: New file, from GNU gettext.
54090         * lib/fstrcmp.c: New file, from GNU gettext.
54091         * MODULES.html.sh (String handling): Add fstrcmp.
54092
54093 2007-08-18  Bruno Haible  <bruno@clisp.org>
54094
54095         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
54096         'bool'.
54097         (diag, compareseq): Remove const from the ctxt argument.
54098         (USE_HEURISTIC): Undefine at the end.
54099
54100 2007-08-18  Jim Meyering  <jim@meyering.net>
54101
54102         New file: lib/idcache.h
54103         * NEWS: Mention the addition.
54104         * modules/idcache (Files): Add lib/idcache.h
54105         * lib/idcache.c: Include "idcache.h".
54106         Don't include <sys/types.h>.
54107         Add a FIXME comment.
54108         Move file-scoped "static" declarations to the top.
54109         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
54110
54111 2007-08-17  Bruno Haible  <bruno@clisp.org>
54112         and Paul Eggert  <eggert@cs.ucla.edu>
54113
54114         * MODULES.html.sh: Add diffseq.
54115         * modules/diffseq: New file.
54116         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
54117         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
54118
54119 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54120
54121         Import changes from coreutils for bootstrap script.
54122
54123         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
54124
54125         * build-aux/bootstrap (slurp): Work even in environments where
54126         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
54127         current code does not slurp files whose names start with ".", and
54128         this looks like it might be a troublesome area.
54129
54130         2007-07-11  Jim Meyering  <jim@meyering.net>
54131
54132         If there's a GPL vN copyright comment, require that N == 3.
54133
54134         2007-07-08  Jim Meyering  <jim@meyering.net>
54135
54136         Run the coreutils-specific code only if tests/Makefile.am.in exists.
54137         * build-aux/bootstrap (mam_template): Move definition out of loop.
54138
54139         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
54140
54141         * build-aux/bootstrap (symlink_to_dir): Rename function from
54142         symlink_to_gnulib.  Add a directory parameter.  Update all
54143         callers.
54144         (cp_mark_as_generated): Also check for -- and link to -- files in
54145         gl/.
54146
54147         2007-07-08  Jim Meyering  <jim@meyering.net>
54148
54149         Adapt to deeper hierarchy in gnulib.
54150         * build-aux/bootstrap (symlink_to_dir): If the destination
54151         directory doesn't exist, create it. This is required at least for
54152         "lib/uniwidth/cjk.h".
54153
54154         2007-05-15  Jim Meyering  <jim@meyering.net>
54155
54156         * build-aux/bootstrap: Now that generated Makefile.am files
54157         are no longer under version control, they must be created at
54158         bootstrap time.
54159
54160 2007-08-14  Ben Pfaff  <blp@gnu.org>
54161
54162         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
54163
54164 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54165
54166         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
54167         given the changes below.
54168         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
54169         even on hosts that have padding bits beyond the supported 64.
54170
54171 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54172
54173         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
54174         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
54175         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
54176         depends on it.
54177         (xstrtol_error): Remove.
54178         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
54179         but with a different signature.
54180         (ATTRIBUTE_NORETURN, __attribute__): New macros.
54181         * lib/xstrtol-error.c: Include exitfail.h.
54182         (xstrtol_fatal): New function, with a different signature from the
54183         old xstrtol_error, so that the caller need not worry about passing
54184         in an exit status, or about storage management of the option argument.
54185         (xstrtol_error): Now a static function.  Redo signature to
54186         implement xstrtol_fatal.  Output the correct number of hyphens in
54187         front of the option so that the caller need not worry about
54188         storage management.
54189         (N_): New macro.
54190         (_): Remove; not used now.
54191         * modules/xstrtol: Depend on getopt.
54192         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
54193         of old STRTOL_FATAL_ERROR macro.
54194         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
54195         of test program.
54196         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
54197         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
54198
54199 2007-08-08  Eric Blake  <ebb9@byu.net>
54200
54201         * lib/xstrtol-error.c: Add missing include.
54202
54203         Move xstrtol messages into gnulib domain, when --pobase is used.
54204         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
54205         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
54206         * modules/xstrtol (Files): Distribute new file.
54207         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
54208         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
54209         * tests/test-xstrtol.c: ...into new file.
54210         * tests/test-xstrtoul.c: Also test xstrtoul.
54211         * tests/test-xstrtoimax.c: Also test xstrtoimax.
54212         * tests/test-xstrtoumax.c: Also test xstrtoumax.
54213         * tests/test-xstrtol.sh: Drive the tests.
54214         * tests/test-xstrtoimax.sh: Likewise.
54215         * tests/test-xstrtoumax.sh: Likewise.
54216         * modules/xstrtol-tests: New module.
54217         * modules/xstrtoimax-tests: Likewise.
54218         * modules/xstrtoumax-tests: Likewise.
54219
54220 2007-08-08  Jim Meyering  <jim@meyering.net>
54221
54222         New function: mfile_name_concat.
54223         * lib/filenamecat.c (mfile_name_concat): New function, just like
54224         file_name_concat, but return NULL upon failure rather than exiting
54225         with a diagnostic.
54226         * lib/filenamecat.h: Declare it.
54227
54228 2007-08-07  Bruno Haible  <bruno@clisp.org>
54229
54230         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
54231         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
54232         warning from gcc.
54233         Reported by Eric Blake.
54234
54235 2007-08-07  Simon Josefsson  <simon@josefsson.org>
54236
54237         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
54238         * modules/crypto/arcfour (License): Likewise.
54239         * modules/crypto/des-tests (License): Likewise.
54240         * modules/crypto/gc-arctwo-tests (License): Likewise.
54241         * modules/crypto/gc-des-tests (License): Likewise.
54242         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
54243         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
54244         * modules/crypto/gc-md2-tests (License): Likewise.
54245         * modules/crypto/gc-md4-tests (License): Likewise.
54246         * modules/crypto/gc-md5-tests (License): Likewise.
54247         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
54248         * modules/crypto/gc-rijndael-tests (License): Likewise.
54249         * modules/crypto/gc-sha1-tests (License): Likewise.
54250         * modules/crypto/gc-tests (License): Likewise.
54251         * modules/crypto/hmac-md5 (License): Likewise.
54252         * modules/crypto/hmac-sha1 (License): Likewise.
54253         * modules/crypto/md2-tests (License): Likewise.
54254         * modules/crypto/md4-tests (License): Likewise.
54255         * modules/crypto/md5 (License): Likewise.
54256         * modules/crypto/rijndael (License): Likewise.
54257         * modules/crypto/sha1 (License): Likewise.
54258         * modules/memxor (License): Likewise.
54259
54260 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54261         and Bruno Haible  <bruno@clisp.org>
54262
54263         * NEWS: Describe interface changes to human, xstrtol.
54264         * lib/human.h: Include <xstrtol.h>.
54265         (human_options): Return enum strtol_error, not int.  Remove
54266         bool arg; take int * instead.
54267         * lib/human.c: Don't include "gettext.h".
54268         (_): Remove; no longer used.
54269         Don't include <xstrtol.h>, since human.h does it.
54270         (human_options): Adjust to abovementioned interface changes.
54271         Do not report error to stderr; that's now the caller's
54272         responsibility.
54273         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54274         interface change.
54275         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54276         Str, Argument_type_string.  All uses changed.  Put " argument"
54277         in diagnostics to make them clearer.  Change wording of suffix
54278         message for clarity.
54279         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54280         Argument_type_string.
54281         (STRTOL_FATAL_WARN): Remove; no longer used.
54282         * modules/human (Depends-on): Remove gettext-h.
54283
54284 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54285
54286         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54287
54288 2007-07-31  Bruno Haible  <bruno@clisp.org>
54289
54290         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54291         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54292         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54293
54294 2007-07-31  Bruno Haible  <bruno@clisp.org>
54295
54296         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54297         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54298
54299 2007-07-30  Bruno Haible  <bruno@clisp.org>
54300
54301         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54302         * modules/c-ctype (License): Likewise.
54303         * modules/c-strcase (License): Likewise.
54304         * modules/check-version (License): Likewise.
54305         * modules/iconv (License): Likewise.
54306         * modules/iconv_open (License): Likewise.
54307         * modules/read-file (License): Likewise.
54308         * modules/striconv (License): Likewise.
54309         * modules/strverscmp (License): Likewise.
54310         * modules/vasprintf (License): Likewise.
54311         * modules/crypto/des (License): Likewise.
54312         * modules/crypto/gc (License): Likewise.
54313         * modules/crypto/gc-arcfour (License): Likewise.
54314         * modules/crypto/gc-arctwo (License): Likewise.
54315         * modules/crypto/gc-des (License): Likewise.
54316         * modules/crypto/gc-hmac-md5 (License): Likewise.
54317         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54318         * modules/crypto/gc-md2 (License): Likewise.
54319         * modules/crypto/gc-md4 (License): Likewise.
54320         * modules/crypto/gc-md5 (License): Likewise.
54321         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54322         * modules/crypto/gc-random (License): Likewise.
54323         * modules/crypto/gc-rijndael (License): Likewise.
54324         * modules/crypto/gc-sha1 (License): Likewise.
54325         * modules/crypto/md2 (License): Likewise.
54326         * modules/crypto/md4 (License): Likewise.
54327
54328 2007-07-30  Jim Meyering  <jim@meyering.net>
54329
54330         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54331         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54332         it has valid stat data.  This bug would cause du not to count the
54333         sizes of inaccessible directories.
54334         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54335         in <http://bugzilla.redhat.com/250077>.
54336
54337 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54338             Bruno Haible  <bruno@clisp.org>
54339
54340         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54341         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54342         #include_next, gives a diagnostic about it, but reports no error in
54343         the exit code.
54344         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54345
54346 2007-07-24  Ben Pfaff  <blp@gnu.org>
54347
54348         Improve name: "count-one-bits" is better than "popcount".
54349         * MODULES.html.sh: Update name.
54350         * lib/popcount.h: Renamed lib/count-one-bits.h.
54351         (popcount): Renamed count_one_bits.
54352         (popcountl): Renamed count_one_bits_l.
54353         (popcountll): Renamed count_one_bits_ll.
54354         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54355         * modules/popcount: Renamed module/count-one-bits.
54356         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54357         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54358
54359 2007-07-23  Ben Pfaff  <blp@gnu.org>
54360
54361         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54362         better code generation, and add U to large constants to avoid
54363         warnings, in non-GCC case.
54364         Suggested by Bruno Haible.
54365
54366 2007-07-23  Ben Pfaff  <blp@gnu.org>
54367
54368         * lib/popcount.h: Use verify_true instead of if...abort.
54369         * modules/popcount: Depend on verify module.
54370         Suggested by Jim Meyering.
54371
54372 2007-07-23  Bruno Haible  <bruno@clisp.org>
54373
54374         * gnulib-tool (func_import): Create a .cvsignore file also when the
54375         directory is not yet in CVS but the toplevel directory is. When
54376         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54377         Reported by Karl Berry.
54378
54379 2007-07-22  Ben Pfaff  <blp@gnu.org>
54380
54381         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54382         case.
54383         Suggested by Eric Blake.
54384
54385 2007-07-22  Ben Pfaff  <blp@gnu.org>
54386
54387         New module: popcount.
54388         * MODULES.html.sh: Add popcount.
54389         * modules/popcount: New file.
54390         * modules/popcount-tests: New file.
54391         * tests/test-popcount.c: New file.
54392         * lib/popcount.h: New file.
54393         * m4/popcount.m4: New file.
54394
54395 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54396
54397         * build-aux/announce-gen: Update to GPLv3.
54398
54399         * build-aux/config.guess: Update from config.
54400
54401 2007-07-21  Bruno Haible  <bruno@clisp.org>
54402
54403         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
54404         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
54405
54406 2007-07-20  Jim Meyering  <jim@meyering.net>
54407
54408         * check-module: Diagnose a self-dependency.
54409
54410 2007-07-19  Bruno Haible  <bruno@clisp.org>
54411
54412         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
54413         empty.
54414         Reported by Eric Blake.
54415
54416 2007-07-18  Bruno Haible  <bruno@clisp.org>
54417
54418         * gnulib-tool: New options --po-base, --po-domain.
54419         (func_usage): Document them.
54420         (pobase, po_domain): New variables.
54421         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
54422         DEFAULT_TEXT_DOMAIN.
54423         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
54424         (func_import): Consider pobase and po_domain. Create a po/ directory.
54425         (func_create_testdir): Set pobase and po_domain to empty.
54426         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
54427         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
54428
54429 2007-07-18  Bruno Haible  <bruno@clisp.org>
54430
54431         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54432         EXTRA_DIST augmentation for files in build-aux/.
54433
54434 2007-07-16  Bruno Haible  <bruno@clisp.org>
54435
54436         * modules/lseek (License): Use the synonymous term "LGPLv2+".
54437         * modules/getdelim (License): Likewise.
54438
54439 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54440
54441         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
54442         * modules/d-type (License): Likewise.
54443         * modules/extensions (License): Likewise.
54444         * modules/fnmatch (License): Likewise.
54445         * modules/fseeko (License): Likewise.
54446         * modules/getaddrinfo (License): Likewise.
54447         * modules/getline (License): Likewise.
54448         * modules/getlogin_r (License): Likewise.
54449         * modules/getpass (License): Likewise.
54450         * modules/gettimeofday (License): Likewise.
54451         * modules/glob (License): Likewise.
54452         * modules/inet_ntop (License): Likewise.
54453         * modules/malloc (License): Likewise.
54454         * modules/malloca (License): Likewise.
54455         * modules/memmem (License): Likewise.
54456         * modules/mempcpy (License): Likewise.
54457         * modules/memset (License): Likewise.
54458         * modules/minmax (License): Likewise.
54459         * modules/mktime (License): Likewise.
54460         * modules/netinet_in (License): Likewise.
54461         * modules/pathmax (License): Likewise.
54462         * modules/poll (License): Likewise.
54463         * modules/regex (License): Likewise.
54464         * modules/snprintf (License): Likewise.
54465         * modules/stdbool (License): Likewise.
54466         * modules/stdint (License): Likewise.
54467         * modules/stdio (License): Likewise.
54468         * modules/strcase (License): Likewise.
54469         * modules/strcasestr (License): Likewise.
54470         * modules/strdup (License): Likewise.
54471         * modules/string (License): Likewise.
54472         * modules/strndup (License): Likewise.
54473         * modules/strnlen (License): Likewise.
54474         * modules/strpbrk (License): Likewise.
54475         * modules/strptime (License): Likewise.
54476         * modules/strsep (License): Likewise.
54477         * modules/sys_select (License): Likewise.
54478         * modules/sys_socket (License): Likewise.
54479         * modules/sys_stat (License): Likewise.
54480         * modules/sys_time (License): Likewise.
54481         * modules/time (License): Likewise.
54482         * modules/time_r (License): Likewise.
54483         * modules/timegm (License): Likewise.
54484         * modules/unistd (License): Likewise.
54485         * modules/vsnprintf (License): Likewise.
54486         * modules/wctype (License): Likewise.
54487
54488 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54489
54490         * modules/argz (License): LGPLv2+.
54491
54492 2007-07-15  Karl Berry  <karl@gnu.org>
54493
54494         * doc/gnulib.texi: revise node structure per new fdl.texi.
54495
54496 2007-07-14  Bruno Haible  <bruno@clisp.org>
54497
54498         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54499         the output file.
54500         * lib/uniname/uninames.h: Regenerated.
54501
54502 2007-07-14  Karl Berry  <karl@gnu.org>
54503
54504         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54505         omitting sectioning and index commands.
54506
54507 2007-07-13  Bruno Haible  <bruno@clisp.org>
54508
54509         New gnulib-tool option --more-symlinks.
54510         * gnulib-tool (func_usage): Document --more-symlinks.
54511         (do_copyrights): New variable.
54512         Recognize option --more-symlinks.
54513         (func_import): Don't add a copyright notice transform to
54514         sed_transform_lib_file if do_copyrights is empty.
54515
54516 2007-07-13  Bruno Haible  <bruno@clisp.org>
54517
54518         * lib/vasnprintf.c (decimal_point_char): Define also if
54519         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54520         && !NEED_PRINTF_DIRECTIVE_A.
54521         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54522         Gary V. Vaughan <gary@gnu.org>.
54523
54524 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54525
54526         * lib/inttypes_.h: Undo previous change, since it was fixed
54527         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54528
54529 2007-07-13  Bruno Haible  <bruno@clisp.org>
54530
54531         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54532         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54533
54534 2007-07-13  Jim Meyering  <jim@meyering.net>
54535
54536         df: Don't fail for Tru64's "file-on-file mount".
54537         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54538         so we fall through and use statfs instead.  Details here:
54539         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54540         Reported by Albert Chin.
54541
54542 2007-07-13  Bruno Haible  <bruno@clisp.org>
54543
54544         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54545         * modules/configmake (License): Likewise.
54546         * modules/gettext (License): Likewise.
54547         * modules/gettext-h (License): Likewise.
54548         * modules/include_next (License): Likewise.
54549         * modules/link-warning (License): Likewise.
54550         * modules/localcharset (License): Likewise.
54551         * modules/localename (License): Likewise.
54552         * modules/lock (License): Likewise.
54553         * modules/relocatable-lib-lgpl (License): Likewise.
54554         * modules/size_max (License): Likewise.
54555         * modules/vasnprintf (License): Likewise.
54556         * modules/wchar (License): Likewise.
54557         * modules/xsize (License): Likewise.
54558
54559 2007-07-13  Bruno Haible  <bruno@clisp.org>
54560
54561         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54562         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54563
54564 2007-07-12  Bruno Haible  <bruno@clisp.org>
54565
54566         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54567         in the modules files.
54568
54569 2007-07-11  Karl Berry  <karl@gnu.org>
54570
54571         * MODULES.html.sh (func_module): use
54572          sed -e '\|^'"${includefile}"'$|d'
54573          instead of /.../d, to avoid errors on $includefile's containing /.
54574
54575 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54576
54577         * gnulib-tool (func_import): Avoid duplication of --avoid
54578         statements
54579         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54580         names to `_' in variable names.
54581
54582 2007-07-10  Eric Blake  <ebb9@byu.net>
54583
54584         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54585         * NEWS: Document this change.
54586
54587 2007-07-08  Bruno Haible  <bruno@clisp.org>
54588
54589         Update to Unicode 5.0.
54590         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54591         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54592         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54593         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54594         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54595         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54596         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54597         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54598         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54599         U+10A3F, U+1D242..U+1D244.
54600         (nonspacing_table_ind): Update.
54601         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54602         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54603
54604 2007-07-08  Bruno Haible  <bruno@clisp.org>
54605
54606         Update to Unicode 5.0.
54607         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54608         code transform. Extend the name index field of unicode_name_to_code and
54609         unicode_code_to_name from 16 to 24 bits.
54610         * lib/uniname/uniname.c (unicode_character_name,
54611         unicode_name_character): Add the range 0x12xxx to the code transform.
54612         * lib/uniname/uninames.h: Regenerated.
54613         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54614
54615 2007-07-07  Bruno Haible  <bruno@clisp.org>
54616
54617         * modules/wcwidth-tests: New file.
54618         * tests/test-wcwidth.c: New file.
54619
54620         Work around MacOS X wcwidth() bug.
54621         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54622         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54623         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54624         original wcwidth in non-UTF-8 locales.
54625         * modules/wcwidth (Depends-on): Add localcharset, streq,
54626         uniwidth/width.
54627         * doc/functions/wcwidth.texi: Update.
54628
54629 2007-07-07  Bruno Haible  <bruno@clisp.org>
54630
54631         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54632         (wcwidth): New declaration.
54633         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54634         macros.
54635         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54636         here. Prepare for creating <wchar.h> unconditionally.
54637         * modules/wchar (Depends-on): Add link-warning.
54638         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54639         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54640         * lib/wcwidth.h: Remove file.
54641         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54642         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54643         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54644         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54645         (Include): Replace wcwidth.h with <wchar.h>.
54646         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54647         * lib/mbchar.h: Don't include wcwidth.h.
54648         * lib/mbswidth.c: Likewise.
54649         * NEWS: Mention the change.
54650
54651 2007-07-07  Bruno Haible  <bruno@clisp.org>
54652
54653         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54654         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54655         definition with an external declaration.
54656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54657         defined as a function. Remove AC_C_INLINE requirement.
54658         * modules/wcwidth (Files): Add lib/wcwidth.c.
54659         (Makefile.am): Remove redundant statement.
54660
54661 2007-07-07  Bruno Haible  <bruno@clisp.org>
54662
54663         * MODULES.html.sh (Unicode string functions): Add the new modules.
54664
54665         * tests/uniwidth/test-u32-strwidth.c: New file.
54666         * modules/uniwidth/u32-strwidth-tests: New file.
54667
54668         * lib/uniwidth/u32-strwidth.c: New file.
54669         * modules/uniwidth/u32-strwidth: New file.
54670
54671         * tests/uniwidth/test-u16-strwidth.c: New file.
54672         * modules/uniwidth/u16-strwidth-tests: New file.
54673
54674         * lib/uniwidth/u16-strwidth.c: New file.
54675         * modules/uniwidth/u16-strwidth: New file.
54676
54677         * tests/uniwidth/test-u8-strwidth.c: New file.
54678         * modules/uniwidth/u8-strwidth-tests: New file.
54679
54680         * lib/uniwidth/u8-strwidth.c: New file.
54681         * modules/uniwidth/u8-strwidth: New file.
54682
54683         * tests/uniwidth/test-u32-width.c: New file.
54684         * modules/uniwidth/u32-width-tests: New file.
54685
54686         * lib/uniwidth/u32-width.c: New file.
54687         * modules/uniwidth/u32-width: New file.
54688
54689         * tests/uniwidth/test-u16-width.c: New file.
54690         * modules/uniwidth/u16-width-tests: New file.
54691
54692         * lib/uniwidth/u16-width.c: New file.
54693         * modules/uniwidth/u16-width: New file.
54694
54695         * tests/uniwidth/test-u8-width.c: New file.
54696         * modules/uniwidth/u8-width-tests: New file.
54697
54698         * lib/uniwidth/u8-width.c: New file.
54699         * modules/uniwidth/u8-width: New file.
54700
54701         * tests/uniwidth/test-uc_width.c: New file.
54702         * modules/uniwidth/width-tests: New file.
54703
54704         * lib/uniwidth/width.c: New file, from GNU libiconv.
54705         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54706         * modules/uniwidth/width: New file.
54707
54708         * lib/uniwidth.h: New file, from GNU libiconv.
54709         * modules/uniwidth/base: New file.
54710
54711 2007-07-07  Bruno Haible  <bruno@clisp.org>
54712
54713         * lib/uniname.h: New file, from GNU gettext.
54714         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54715         * lib/uniname/uninames.h: New file, from GNU gettext.
54716         * lib/uniname/uniname.c: New file, from GNU gettext.
54717         * tests/uniname/test-uninames.sh: New file.
54718         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54719         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54720         * modules/uniname/base: New file.
54721         * modules/uniname/uniname: New file.
54722         * modules/uniname/uniname-tests: New file.
54723         * MODULES.html.sh (Unicode string functions): Add the new modules.
54724
54725 2007-07-06  Bruno Haible  <bruno@clisp.org>
54726
54727         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54728
54729 2007-07-06  Bruno Haible  <bruno@clisp.org>
54730
54731         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54732         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54733         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54734         include <sys/time.h>.
54735         Reported by Eric Blake.
54736
54737 2007-07-06  Eric Blake  <ebb9@byu.net>
54738
54739         Fix testing canonicalize on cygwin.
54740         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54741         Revert patch from 2007-06-19.
54742         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54743         canonicalize module is also in use.
54744         * tests/test-canonicalize.c: New file.
54745         * tests/test-canonicalize.sh: Likewise.
54746         * modules/canonicalize-tests: Likewise.
54747
54748 2007-07-06  Jim Meyering  <jim@meyering.net>
54749
54750         * lib/getugroups.c (getugroups): Detect getgrent failure.
54751         Adjust comment to reflect reality: this function may return -1.
54752
54753 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54754
54755         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54756         the new TP address.
54757         (usage): Fix typo
54758         (gnulib_mk): New variable.
54759
54760 2007-07-05  Jim Meyering  <jim@meyering.net>
54761
54762         Don't let endgrent clobber errno, no matter how improbable.
54763         * lib/getugroups.c (getugroups): Save and restore errno around
54764         endgrent call.
54765
54766         Close the group DB even when failing with 2^31 or more members.
54767         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54768
54769 2007-07-04  Jim Meyering  <jim@meyering.net>
54770
54771         * lib/getugroups.h: New file.
54772         * lib/getugroups.c: Include "getugroups.h".
54773         Remove uses of "register" keyword.
54774         Move local variable, "cp", down into scope where used.
54775         Give "username" parameter the "const" attribute.
54776         * modules/getugroups (Files): Add lib/getugroups.h
54777
54778 2007-07-04  Karl Berry  <karl@gnu.org>
54779
54780         * MODULES.html.sh (func_all_modules): Complete rename of
54781         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54782
54783 2007-07-02  Bruno Haible  <bruno@clisp.org>
54784
54785         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54786         mode, when inttypes.h comes from gnulib.
54787         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54788
54789 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54790
54791         * NEWS: Mention lgpl module name change.
54792
54793         * modules/lgpl-2.1: Renamed from lgpl.
54794
54795         * NEWS: Mention gpl module name change.
54796
54797         * modules/gpl-3.0: New file, based on gpl-2.0.
54798
54799         * modules/gpl-2.0: Renamed from gpl.
54800
54801         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54802         doc/gpl-2.0.texi.
54803
54804 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54805
54806         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54807         #define __STDC_LIMIT_MACROS temporarily while including
54808         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54809         Problem reported by Joel E. Denny in
54810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54811
54812 2007-07-01  Bruno Haible  <bruno@clisp.org>
54813
54814         * lib/unistdio.h: New file.
54815         * lib/unistdio/u-asnprintf.h: New file.
54816         * lib/unistdio/u-asprintf.h: New file.
54817         * lib/unistdio/u-printf-args.c: New file.
54818         * lib/unistdio/u-printf-args.h: New file.
54819         * lib/unistdio/u-printf-parse.h: New file.
54820         * lib/unistdio/u-snprintf.h: New file.
54821         * lib/unistdio/u-sprintf.h: New file.
54822         * lib/unistdio/u-vasprintf.h: New file.
54823         * lib/unistdio/u-vsnprintf.h: New file.
54824         * lib/unistdio/u-vsprintf.h: New file.
54825         * lib/unistdio/ulc-asnprintf.c: New file.
54826         * lib/unistdio/ulc-asprintf.c: New file.
54827         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54828         * lib/unistdio/ulc-printf-parse.c: New file.
54829         * lib/unistdio/ulc-snprintf.c: New file.
54830         * lib/unistdio/ulc-sprintf.c: New file.
54831         * lib/unistdio/ulc-vasnprintf.c: New file.
54832         * lib/unistdio/ulc-vasprintf.c: New file.
54833         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54834         * lib/unistdio/ulc-vsnprintf.c: New file.
54835         * lib/unistdio/ulc-vsprintf.c: New file.
54836         * lib/unistdio/u8-asnprintf.c: New file.
54837         * lib/unistdio/u8-asprintf.c: New file.
54838         * lib/unistdio/u8-printf-parse.c: New file.
54839         * lib/unistdio/u8-snprintf.c: New file.
54840         * lib/unistdio/u8-sprintf.c: New file.
54841         * lib/unistdio/u8-vasnprintf.c: New file.
54842         * lib/unistdio/u8-vasprintf.c: New file.
54843         * lib/unistdio/u8-vsnprintf.c: New file.
54844         * lib/unistdio/u8-vsprintf.c: New file.
54845         * lib/unistdio/u8-u8-asnprintf.c: New file.
54846         * lib/unistdio/u8-u8-asprintf.c: New file.
54847         * lib/unistdio/u8-u8-snprintf.c: New file.
54848         * lib/unistdio/u8-u8-sprintf.c: New file.
54849         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54850         * lib/unistdio/u8-u8-vasprintf.c: New file.
54851         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54852         * lib/unistdio/u8-u8-vsprintf.c: New file.
54853         * lib/unistdio/u16-asnprintf.c: New file.
54854         * lib/unistdio/u16-asprintf.c: New file.
54855         * lib/unistdio/u16-printf-parse.c: New file.
54856         * lib/unistdio/u16-snprintf.c: New file.
54857         * lib/unistdio/u16-sprintf.c: New file.
54858         * lib/unistdio/u16-vasnprintf.c: New file.
54859         * lib/unistdio/u16-vasprintf.c: New file.
54860         * lib/unistdio/u16-vsnprintf.c: New file.
54861         * lib/unistdio/u16-vsprintf.c: New file.
54862         * lib/unistdio/u16-u16-asnprintf.c: New file.
54863         * lib/unistdio/u16-u16-asprintf.c: New file.
54864         * lib/unistdio/u16-u16-snprintf.c: New file.
54865         * lib/unistdio/u16-u16-sprintf.c: New file.
54866         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54867         * lib/unistdio/u16-u16-vasprintf.c: New file.
54868         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54869         * lib/unistdio/u16-u16-vsprintf.c: New file.
54870         * lib/unistdio/u32-asnprintf.c: New file.
54871         * lib/unistdio/u32-asprintf.c: New file.
54872         * lib/unistdio/u32-printf-parse.c: New file.
54873         * lib/unistdio/u32-snprintf.c: New file.
54874         * lib/unistdio/u32-sprintf.c: New file.
54875         * lib/unistdio/u32-vasnprintf.c: New file.
54876         * lib/unistdio/u32-vasprintf.c: New file.
54877         * lib/unistdio/u32-vsnprintf.c: New file.
54878         * lib/unistdio/u32-vsprintf.c: New file.
54879         * lib/unistdio/u32-u32-asnprintf.c: New file.
54880         * lib/unistdio/u32-u32-asprintf.c: New file.
54881         * lib/unistdio/u32-u32-snprintf.c: New file.
54882         * lib/unistdio/u32-u32-sprintf.c: New file.
54883         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54884         * lib/unistdio/u32-u32-vasprintf.c: New file.
54885         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54886         * lib/unistdio/u32-u32-vsprintf.c: New file.
54887         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54888         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54889         * tests/unistdio/test-ulc-printf1.h: New file.
54890         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54891         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54892         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54893         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54894         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54895         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54896         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54897         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54898         * tests/unistdio/test-u8-asnprintf1.c: New file.
54899         * tests/unistdio/test-u8-asnprintf1.h: New file.
54900         * tests/unistdio/test-u8-printf1.h: New file.
54901         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54902         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54903         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54904         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54905         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54906         * tests/unistdio/test-u8-vasprintf1.c: New file.
54907         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54908         * tests/unistdio/test-u8-vsprintf1.c: New file.
54909         * tests/unistdio/test-u16-asnprintf1.c: New file.
54910         * tests/unistdio/test-u16-asnprintf1.h: New file.
54911         * tests/unistdio/test-u16-printf1.h: New file.
54912         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54913         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54914         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54915         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54916         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54917         * tests/unistdio/test-u16-vasprintf1.c: New file.
54918         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54919         * tests/unistdio/test-u16-vsprintf1.c: New file.
54920         * tests/unistdio/test-u32-asnprintf1.c: New file.
54921         * tests/unistdio/test-u32-asnprintf1.h: New file.
54922         * tests/unistdio/test-u32-printf1.h: New file.
54923         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54924         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54925         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54926         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54927         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54928         * tests/unistdio/test-u32-vasprintf1.c: New file.
54929         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54930         * tests/unistdio/test-u32-vsprintf1.c: New file.
54931         * modules/unistdio/base: New file.
54932         * modules/unistdio/u-printf-args: New file.
54933         * modules/unistdio/ulc-asnprintf: New file.
54934         * modules/unistdio/ulc-asprintf: New file.
54935         * modules/unistdio/ulc-fprintf: New file.
54936         * modules/unistdio/ulc-printf-parse: New file.
54937         * modules/unistdio/ulc-snprintf: New file.
54938         * modules/unistdio/ulc-sprintf: New file.
54939         * modules/unistdio/ulc-vasnprintf: New file.
54940         * modules/unistdio/ulc-vasprintf: New file.
54941         * modules/unistdio/ulc-vfprintf: New file.
54942         * modules/unistdio/ulc-vsnprintf: New file.
54943         * modules/unistdio/ulc-vsprintf: New file.
54944         * modules/unistdio/u8-asnprintf: New file.
54945         * modules/unistdio/u8-asprintf: New file.
54946         * modules/unistdio/u8-printf-parse: New file.
54947         * modules/unistdio/u8-snprintf: New file.
54948         * modules/unistdio/u8-sprintf: New file.
54949         * modules/unistdio/u8-vasnprintf: New file.
54950         * modules/unistdio/u8-vasprintf: New file.
54951         * modules/unistdio/u8-vsnprintf: New file.
54952         * modules/unistdio/u8-vsprintf: New file.
54953         * modules/unistdio/u8-u8-asnprintf: New file.
54954         * modules/unistdio/u8-u8-asprintf: New file.
54955         * modules/unistdio/u8-u8-snprintf: New file.
54956         * modules/unistdio/u8-u8-sprintf: New file.
54957         * modules/unistdio/u8-u8-vasnprintf: New file.
54958         * modules/unistdio/u8-u8-vasprintf: New file.
54959         * modules/unistdio/u8-u8-vsnprintf: New file.
54960         * modules/unistdio/u8-u8-vsprintf: New file.
54961         * modules/unistdio/u16-asnprintf: New file.
54962         * modules/unistdio/u16-asprintf: New file.
54963         * modules/unistdio/u16-printf-parse: New file.
54964         * modules/unistdio/u16-snprintf: New file.
54965         * modules/unistdio/u16-sprintf: New file.
54966         * modules/unistdio/u16-vasnprintf: New file.
54967         * modules/unistdio/u16-vasprintf: New file.
54968         * modules/unistdio/u16-vsnprintf: New file.
54969         * modules/unistdio/u16-vsprintf: New file.
54970         * modules/unistdio/u16-u16-asnprintf: New file.
54971         * modules/unistdio/u16-u16-asprintf: New file.
54972         * modules/unistdio/u16-u16-snprintf: New file.
54973         * modules/unistdio/u16-u16-sprintf: New file.
54974         * modules/unistdio/u16-u16-vasnprintf: New file.
54975         * modules/unistdio/u16-u16-vasprintf: New file.
54976         * modules/unistdio/u16-u16-vsnprintf: New file.
54977         * modules/unistdio/u16-u16-vsprintf: New file.
54978         * modules/unistdio/u32-asnprintf: New file.
54979         * modules/unistdio/u32-asprintf: New file.
54980         * modules/unistdio/u32-printf-parse: New file.
54981         * modules/unistdio/u32-snprintf: New file.
54982         * modules/unistdio/u32-sprintf: New file.
54983         * modules/unistdio/u32-vasnprintf: New file.
54984         * modules/unistdio/u32-vasprintf: New file.
54985         * modules/unistdio/u32-vsnprintf: New file.
54986         * modules/unistdio/u32-vsprintf: New file.
54987         * modules/unistdio/u32-u32-asnprintf: New file.
54988         * modules/unistdio/u32-u32-asprintf: New file.
54989         * modules/unistdio/u32-u32-snprintf: New file.
54990         * modules/unistdio/u32-u32-sprintf: New file.
54991         * modules/unistdio/u32-u32-vasnprintf: New file.
54992         * modules/unistdio/u32-u32-vasprintf: New file.
54993         * modules/unistdio/u32-u32-vsnprintf: New file.
54994         * modules/unistdio/u32-u32-vsprintf: New file.
54995         * modules/unistdio/ulc-asnprintf-tests: New file.
54996         * modules/unistdio/ulc-vasnprintf-tests: New file.
54997         * modules/unistdio/ulc-vasprintf-tests: New file.
54998         * modules/unistdio/ulc-vsnprintf-tests: New file.
54999         * modules/unistdio/ulc-vsprintf-tests: New file.
55000         * modules/unistdio/u8-asnprintf-tests: New file.
55001         * modules/unistdio/u8-vasnprintf-tests: New file.
55002         * modules/unistdio/u8-vasprintf-tests: New file.
55003         * modules/unistdio/u8-vsnprintf-tests: New file.
55004         * modules/unistdio/u8-vsprintf-tests: New file.
55005         * modules/unistdio/u16-asnprintf-tests: New file.
55006         * modules/unistdio/u16-vasnprintf-tests: New file.
55007         * modules/unistdio/u16-vasprintf-tests: New file.
55008         * modules/unistdio/u16-vsnprintf-tests: New file.
55009         * modules/unistdio/u16-vsprintf-tests: New file.
55010         * modules/unistdio/u32-asnprintf-tests: New file.
55011         * modules/unistdio/u32-vasnprintf-tests: New file.
55012         * modules/unistdio/u32-vasprintf-tests: New file.
55013         * modules/unistdio/u32-vsnprintf-tests: New file.
55014         * modules/unistdio/u32-vsprintf-tests: New file.
55015         * MODULES.html.sh (Unicode string functions): Add the new modules.
55016
55017 2007-07-01  Bruno Haible  <bruno@clisp.org>
55018
55019         * lib/sprintf.c (sprintf): Limit the available length estimation,
55020         to avoid address wraparound.
55021         * lib/vsprintf.c (vsprintf): Likewise.
55022         * modules/sprintf-posix (Dependencies): Add stdint.
55023         * modules/vsprintf-posix (Dependencies): Likewise.
55024
55025 2007-07-01  Bruno Haible  <bruno@clisp.org>
55026
55027         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
55028         Windows PATH as well. Conservative double-quoting. Comments.
55029
55030 2007-07-01  Bruno Haible  <bruno@clisp.org>
55031             Eric Blake  <ebb9@byu.net>
55032             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55033
55034         * gnulib-tool (self_abspathname): Fix algorithm to cope with
55035         empty components in $PATH, denoting '.'.
55036
55037 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55038
55039         * gnulib-tool: Fix indentation.
55040         (func_create_megatestdir): Likewise.
55041         Report by Bruno Haible.
55042
55043 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55044
55045         Sync from Automake.
55046         * build-aux/gnupload: Fix shell portability issues with for loops.
55047         Report by Karl Berry.
55048
55049 2007-06-29  Simon Josefsson  <simon@josefsson.org>
55050
55051         * build-aux/maint.mk (POURL): Use translationproject.org.
55052
55053 2007-06-27  Simon Josefsson  <simon@josefsson.org>
55054             Bruno Haible  <bruno@clisp.org>
55055
55056         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
55057         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
55058         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
55059         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
55060         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
55061
55062 2007-06-27  Bruno Haible  <bruno@clisp.org>
55063
55064         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
55065         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
55066
55067 2007-06-26  Karl Berry  <karl@gnu.org>
55068
55069         * MODULES.html.sh: remove xreadlink-with-size.
55070
55071 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55072
55073         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
55074         method that I hope also handles the double-include problem noted
55075         by Bruno Haible in
55076         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
55077
55078 2007-06-23  Bruno Haible  <bruno@clisp.org>
55079
55080         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55081         Don't let the 'mostlyclean' target fail if the last subdirectory could
55082         not be removed.
55083         Reported by Karl Berry.
55084
55085 2007-06-23  Bruno Haible  <bruno@clisp.org>
55086
55087         * gnulib-tool (echo): Add a speedier workaround for ksh.
55088         * tests/test-echo.sh: Likewise.
55089
55090 2007-06-23  Bruno Haible  <bruno@clisp.org>
55091
55092         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
55093         * tests/test-echo.sh: Likewise.
55094
55095 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55096
55097         * gnulib-tool (IFS): Initialize early, so we don't set it to
55098         empty later.
55099         (self_abspathname): Rewrite algorithm to set it, reindent.
55100         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
55101         (func_create_megatestdir): Merge some sed scripts.
55102
55103 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55104
55105         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
55106         exposed by Sun Studio 11 cc on Solaris 8.
55107
55108 2007-06-22  Bruno Haible  <bruno@clisp.org>
55109
55110         * gnulib-tool (echo): Ensure the echo primitive does not interpret
55111         backslashes.
55112         * tests/test-echo.sh: New file.
55113
55114 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55115
55116         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
55117         simplify `sed_replace_build_aux' scripts, they are portable but
55118         echoing them with `echo' is not.
55119         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
55120
55121 2007-06-21  Karl Berry  <karl@gnu.org>
55122
55123         * config/srclist.txt: guess we can't handle the licenses via
55124         srclist at the moment.
55125
55126 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55127
55128         * MODULES.html.sh: Add include_next.
55129         * modules/include_next: New file.
55130
55131 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55132
55133         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
55134         INCLUDE_NEXT.
55135         (gl_CHECK_NEXT_HEADERS): New macro.
55136         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
55137         the obsolescent gl_ABSOLUTE_HEADER.
55138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
55139         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
55140         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55141         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55142         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55143         * m4/math_h.m4 (gl_MATH_H): Likewise.
55144         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55145         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55146         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
55147         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55148         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
55149         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
55150         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
55151         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55152         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55153         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
55154         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55155         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55156         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
55157         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55158         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55159         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55160         * m4/inttypes.m4 (gl_INTTYPES_H): Define
55161         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
55162         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
55163         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
55164         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
55165         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
55166         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
55167         * lib/float_.h: Likewise.
55168         * lib/inttypes_.h: Likewise.
55169         * lib/math_.h: Likewise.
55170         * lib/search_.h: Likewise.
55171         * lib/signal_.h: Likewise.
55172         * lib/stdint_.h: Likewise.
55173         * lib/stdio_.h: Likewise.
55174         * lib/stdlib_.h: Likewise.
55175         * lib/string_.h: Likewise.
55176         * lib/sys_stat_.h: Likewise.
55177         * lib/sys_time_.h: Likewise.
55178         * lib/time_.h: Likewise.
55179         * lib/unistd_.h: Likewise.
55180         * lib/wchar_.h: Likewise.
55181         * lib/wctype_.h: Likewise.
55182         * lib/dirent_.h: Likewise.
55183         * lib/iconv_.h: Likewise.
55184         * lib/locale_.h: Likewise.
55185         * lib/netinet_in_.h: Likewise.
55186         * lib/sys_select_.h: Likewise.
55187         * lib/sys_socket_.h: Likewise.
55188         * lib/sysexits_.h: Likewise.
55189         * modules/fcntl (Depends-on): Depend on include_next, not
55190         absolute_header.
55191         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
55192         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
55193         * modules/fchdir: Likewise.
55194         * modules/float: Likewise.
55195         * modules/iconv_open: Likewise.
55196         * modules/inttypes: Likewise.
55197         * modules/locale: Likewise.
55198         * modules/math: Likewise.
55199         * modules/netinet_in: Likewise.
55200         * modules/search: Likewise.
55201         * modules/signal: Likewise.
55202         * modules/stdint: Likewise.
55203         * modules/stdio: Likewise.
55204         * modules/stdlib: Likewise.
55205         * modules/string: Likewise.
55206         * modules/sys_select: Likewise.
55207         * modules/sys_socket: Likewise.
55208         * modules/sys_stat: Likewise.
55209         * modules/sys_time: Likewise.
55210         * modules/sysexits: Likewise.
55211         * modules/time: Likewise.
55212         * modules/unistd: Likewise.
55213         * modules/wchar: Likewise.
55214         * modules/wctype: Likewise.
55215         * modules/sys_stat: Change maintainer to "all".
55216         * modules/unistd: Likewise.
55217
55218 2007-06-20  Karl Berry  <karl@gnu.org>
55219
55220         * config/srclist.txt: track www changes in license files.
55221
55222 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
55223
55224         * build-aux/bootstrap: Remove stray dot.
55225         Make sure build_aux settings are honored when linking
55226         gnulib_extra_files.
55227
55228 2007-06-19  Eric Blake  <ebb9@byu.net>
55229
55230         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55231         Allow compilation on cygwin.
55232
55233 2007-06-19  Jim Meyering  <jim@meyering.net>
55234
55235         xreadlink-with-size: Remove module.  No longer used.
55236         Ex-callers now use xreadlink or mreadlink-with-size.
55237         * modules/xreadlink-with-size: Remove module.
55238         * lib/xreadlink-with-size.c: Remove file.
55239         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
55240         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
55241         just before the function definition *is* accurate.
55242
55243         Eliminate one way canonicalize_filename_mode could exit.
55244         * lib/canonicalize.c (canonicalize_filename_mode):
55245         Use mreadlink_with_size, not xreadlink_with_size.
55246
55247 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
55248
55249         Detect porting problems to FreeBSD/arm, which has time_t wider than
55250         long int.  Original problem reported for GNU diff by Xin Li in
55251         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
55252         * modules/getdate (Depends-on): Add intprops, verify.
55253         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55254         is an integer type no wider than long int.
55255
55256 2007-06-18  Jim Meyering  <jim@meyering.net>
55257
55258         New module: mreadlink-with-size.
55259         * MODULES.html.sh: Add mreadlink-with-size.
55260         * modules/mreadlink-with-size: New module
55261         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55262         not xreadlink-with-size.
55263         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55264
55265 2007-06-16  Bruno Haible  <bruno@clisp.org>
55266
55267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55268         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55269         Reported by Gary V. Vaughan <gary@gnu.org>.
55270
55271 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55272
55273         Revamp lchown so that it lives in unistd.h where it belongs.
55274         * lib/lchown.h: Remove.
55275         * lib/dirchownmod.c: Don't include lib/lchown.h.
55276         * lib/fchownat.c: Likewise.
55277         * lib/openat.c: Likewise.
55278         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55279         does not follow symlinks.
55280         (EOPNOTSUPP): Define if not defined.
55281         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55282         is defined to 0.
55283         (lchown): New decl.
55284         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55285         Do not check for lchown decl.
55286         Set REPLACE_LCHOWN.
55287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55288         REPLACE_LCHOWN.
55289         * modules/chown: Make it clear it follows symlinks.
55290         * modules/lchown: Make it clear it doesn't follow symlinks.
55291         (Files): Remove lib/lchown.h
55292         (Depends-on): Add unistd.
55293         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55294         (Include): Include <unistd.h>, not "lchown.h".
55295         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55296         REPLACE_LCHOWN.
55297
55298 2007-06-15  Jim Meyering  <jim@meyering.net>
55299
55300         Change license (GPL to LGPL) of fsusage and dependents.
55301         * modules/fsusage (License): Change to LGPL.
55302         * modules/full-read (License): Likewise.
55303         * modules/full-write (License): Likewise.
55304         * modules/safe-read (License): Likewise.
55305         * modules/safe-write (License): Likewise.
55306
55307 2007-06-14  Ben Pfaff  <blp@gnu.org>
55308
55309         Missing part of allocsa -> malloca transition.
55310         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55311         gl_MALLOCA.
55312
55313 2007-06-12  Bruno Haible  <bruno@clisp.org>
55314
55315         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55316         to ia64, x86_64, i386.
55317         Reported by Eric Blake.
55318
55319 2007-06-12  Bruno Haible  <bruno@clisp.org>
55320
55321         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55322         cross-compiling to x86_64.
55323
55324 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55325
55326         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55327         glitch reported by Ralf Wildenhues in
55328         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55329
55330         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55331         Vin Shelton.
55332
55333 2007-06-11  Bruno Haible  <bruno@clisp.org>
55334
55335         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55336         replacement string.
55337         Reported by Eric Blake.
55338
55339 2007-06-10  Bruno Haible  <bruno@clisp.org>
55340
55341         Prepare vasnprintf code for use with Unicode strings.
55342         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55343         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55344         TYPE_U32_STRING.
55345         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55346         a_u32_string variants.
55347         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55348         * lib/printf-args.c: Don't include config.h and the specification
55349         header if PRINTF_FETCHARGS is already defined.
55350         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55351         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55352         TYPE_U16_STRING, TYPE_U32_STRING.
55353         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55354         u16_directive, u16_directives, u32_directive, u32_directives): New
55355         types.
55356         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55357         New declarations.
55358         * lib/printf-parse.c: Don't include config.h and the specification
55359         header if PRINTF_PARSE is already defined. Eliminate the set of
55360         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55361         them now. Include c-ctype.h.
55362         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55363         directive and CHAR_T_ONLY_ASCII.
55364         * lib/vasnprintf.c: Don't include config.h and the specification header
55365         if VASNPRINTF is already defined.
55366         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55367         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55368         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55369         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55370         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55371         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55372         code accordingly.
55373         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55374         pad_ourselves also in this case, with the 'c' and 's' directives, and
55375         with a different notion of "width".
55376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55377
55378 2007-06-10  Bruno Haible  <bruno@clisp.org>
55379
55380         * modules/unistr/u32-mbsnlen: New file.
55381         * lib/unistr/u32-mbsnlen.c: New file.
55382
55383         * modules/unistr/u16-mbsnlen: New file.
55384         * lib/unistr/u16-mbsnlen.c: New file.
55385
55386         * modules/unistr/u8-mbsnlen: New file.
55387         * lib/unistr/u8-mbsnlen.c: New file.
55388
55389         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55390         declarations.
55391
55392 2007-06-10  Bruno Haible  <bruno@clisp.org>
55393
55394         * lib/string_.h (mbsnlen): New declaration.
55395         * lib/mbsnlen.c: New file.
55396         * m4/mbsnlen.m4: New file.
55397         * modules/mbsnlen: New file.
55398         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
55399         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
55400         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
55401
55402 2007-06-10  Bruno Haible  <bruno@clisp.org>
55403
55404         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
55405
55406 2007-06-10  Bruno Haible  <bruno@clisp.org>
55407
55408         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
55409         * lib/mbuiter.h: Likewise.
55410
55411 2007-06-10  Bruno Haible  <bruno@clisp.org>
55412
55413         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
55414         declaration.
55415
55416 2007-06-10  Karl Berry  <karl@gnu.org>
55417
55418         * config/srclist.txt: remove gettext entries, Bruno prefers
55419         to update individually.
55420
55421 2007-06-10  Bruno Haible  <bruno@clisp.org>
55422
55423         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
55424         'maxlen'. Ensure only length + width bytes are allocated, not
55425         length + 1 + width.
55426
55427 2007-06-09  Bruno Haible  <bruno@clisp.org>
55428
55429         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
55430         (CHAR_T): Remove macro.
55431         (VASNPRINTF): Update.
55432
55433 2007-06-09  Bruno Haible  <bruno@clisp.org>
55434
55435         * MODULES.html.sh (Unicode string functions): Add the new modules.
55436
55437         * modules/uniconv/u32-conv-to-enc: New file.
55438         * lib/uniconv/u32-conv-to-enc.c: New file.
55439         * modules/uniconv/u32-conv-to-enc-tests: New file.
55440         * tests/uniconv/test-u32-conv-to-enc.c: New file.
55441
55442         * modules/uniconv/u16-conv-to-enc: New file.
55443         * lib/uniconv/u16-conv-to-enc.c: New file.
55444         * lib/uniconv/u-conv-to-enc.h: New file.
55445         * modules/uniconv/u16-conv-to-enc-tests: New file.
55446         * tests/uniconv/test-u16-conv-to-enc.c: New file.
55447
55448         * modules/uniconv/u8-conv-to-enc: New file.
55449         * lib/uniconv/u8-conv-to-enc.c: New file.
55450         * modules/uniconv/u8-conv-to-enc-tests: New file.
55451         * tests/uniconv/test-u8-conv-to-enc.c: New file.
55452
55453         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
55454         u32_conv_to_encoding): New declarations.
55455
55456 2007-06-09  Bruno Haible  <bruno@clisp.org>
55457
55458         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
55459
55460 2007-06-09  Bruno Haible  <bruno@clisp.org>
55461
55462         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
55463         * modules/malloca: Renamed from modules/allocsa, updated.
55464         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
55465         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
55466         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
55467         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
55468         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
55469         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
55470         * modules/xmalloca: Renamed from modules/xallocsa, updated.
55471         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
55472         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
55473         * modules/c-strcasestr (Depends-on): Update.
55474         * lib/c-strcasestr.c: Update.
55475         * modules/c-strstr (Depends-on): Update.
55476         * lib/c-strstr.c: Update.
55477         * modules/canonicalize-lgpl (Depends-on): Update.
55478         * lib/canonicalize-lgpl.c: Update.
55479         * modules/clean-temp (Depends-on): Update.
55480         * lib/clean-temp.c: Update.
55481         * modules/csharpcomp (Depends-on): Update.
55482         * lib/csharpcomp.c: Update.
55483         * modules/csharpexec (Depends-on): Update.
55484         * lib/csharpexec.c: Update.
55485         * modules/javacomp (Depends-on): Update.
55486         * lib/javacomp.c: Update.
55487         * modules/javaexec (Depends-on): Update.
55488         * lib/javaexec.c: Update.
55489         * modules/mbscasestr (Depends-on): Update.
55490         * lib/mbscasestr.c: Update.
55491         * modules/mbsstr (Depends-on): Update.
55492         * lib/mbsstr.c: Update.
55493         * modules/setenv (Depends-on): Update.
55494         * lib/setenv.c: Update.
55495         * modules/strcasestr (Depends-on): Update.
55496         * lib/strcasestr.c: Update.
55497         * modules/striconveha (Depends-on): Update.
55498         * lib/striconveha.c: Update.
55499         * modules/relocatable-prog-wrapper (Files): Update.
55500         * lib/relocwrapper.c: Update.
55501         * build-aux/install-reloc: Update.
55502         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55503
55504 2007-06-08  Bruno Haible  <bruno@clisp.org>
55505
55506         Port to uClibc.
55507         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55508         * lib/fpurge.c (fpurge): Likewise.
55509         * lib/freading.c (freading): Likewise.
55510         * lib/fseeko.c (rpl_fseeko): Likewise.
55511         * lib/fseterr.c (fseterr): Likewise.
55512         * lib/fwriting.c (fwriting): Likewise.
55513         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55514
55515 2007-06-08  Bruno Haible  <bruno@clisp.org>
55516
55517         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55518         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55519         * modules/gettext (Files): Add m4/intlmacosx.m4.
55520
55521 2007-06-07  Bruno Haible  <bruno@clisp.org>
55522
55523         * modules/localename-tests: New file.
55524         * tests/test-localename.c: New file.
55525
55526         New module 'localename'.
55527         * lib/localename.h: New file.
55528         * lib/localename.c: New file, from GNU gettext.
55529         * m4/localename.m4: New file.
55530         * modules/localename: New file.
55531
55532 2007-06-07  Bruno Haible  <bruno@clisp.org>
55533
55534         Work around the lack of <wchar.h> on some builds of uClibc.
55535         * doc/headers/wchar.texi: Update.
55536         * lib/wchar_.h: Include <wchar.h> only if it exists.
55537         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55538         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55539         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55540         doesn't exist.
55541         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55542         * modules/mbfile (Depends-on): Add wchar.
55543         * modules/mbiter (Depends-on): Likewise.
55544         * modules/mbuiter (Depends-on): Likewise.
55545         Reported by Simon Josefsson.
55546
55547 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55548
55549         Work around problem reported by Steven M. Schweda in
55550         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55551         Tru64 5.1B with the Compaq compiler environment installed declares
55552         an 'isblank' function but does not define it in the C library.
55553         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55554         * lib/regex_internal.h (isblank): Likewise.
55555         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55556         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55557
55558 2007-06-05  Bruno Haible  <bruno@clisp.org>
55559
55560         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55561         ia64.
55562         * modules/printf-safe: New file.
55563         * modules/fprintf-posix (Depends-on): Add printf-safe.
55564         * modules/printf-posix (Depends-on): Likewise.
55565         * modules/snprintf-posix (Depends-on): Likewise.
55566         * modules/sprintf-posix (Depends-on): Likewise.
55567         * modules/vasnprintf-posix (Depends-on): Likewise.
55568         * modules/vasprintf-posix (Depends-on): Likewise.
55569         * modules/vfprintf-posix (Depends-on): Likewise.
55570         * modules/vprintf-posix (Depends-on): Likewise.
55571         * modules/vsnprintf-posix (Depends-on): Likewise.
55572         * modules/vsprintf-posix (Depends-on): Likewise.
55573         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55574         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55575         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55576         "no" on i386, x86_64, ia64.
55577         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55578         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55579         on i386, x86_64, ia64.
55580         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55581         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55582         on i386, x86_64, ia64.
55583         * tests/test-vasnprintf-posix.c: Include float.h.
55584         (LDBL80_WORDS): New macro.
55585         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55586         on i386, x86_64, ia64.
55587         * tests/test-vasprintf-posix.c: Include float.h.
55588         (LDBL80_WORDS): New macro.
55589         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55590         on i386, x86_64, ia64.
55591         * tests/test-snprintf-posix.c: Include float.h.
55592         * tests/test-sprintf-posix.c: Likewise.
55593         * tests/test-vsnprintf-posix.c: Likewise.
55594         * tests/test-vsprintf-posix.c: Likewise.
55595
55596 2007-06-05  Bruno Haible  <bruno@clisp.org>
55597
55598         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55599         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55600         non-IEEE numbers on i386, x86_64, ia64.
55601         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55602         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55603         * tests/test-isnanl.h: Include float.h.
55604         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55605
55606 2007-06-05  Bruno Haible  <bruno@clisp.org>
55607
55608         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55609         also the %a / %A. Handle the %a / %A code before this extra handling.
55610
55611 2007-06-05  Bruno Haible  <bruno@clisp.org>
55612
55613         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55614         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55615
55616 2007-06-05  Bruno Haible  <bruno@clisp.org>
55617
55618         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55619         typo in variable name.
55620
55621 2007-06-05  Eric Blake  <ebb9@byu.net>
55622
55623         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55624         Reported by Simon Josefsson.
55625
55626 2007-06-04  Bruno Haible  <bruno@clisp.org>
55627
55628         Avoid test failures on some PowerPC platforms.
55629         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55630         Define differently for PowerPC.
55631         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55632         Reported by Gary V. Vaughan <gary@gnu.org>.
55633
55634 2007-06-02  Bruno Haible  <bruno@clisp.org>
55635
55636         Fix test-stdint failure on FreeBSD/ia64.
55637         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55638         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55639         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55640         * doc/headers/stdint.texi: Update.
55641
55642 2007-06-01  Bruno Haible  <bruno@clisp.org>
55643
55644         * tests/test-binary-io.c (main): Pass a third argument to open().
55645         Reported by Gary V. Vaughan <gary@gnu.org>.
55646
55647 2007-06-01  Bruno Haible  <bruno@clisp.org>
55648
55649         * doc/functions/frexpl.texi: Update for mingw.
55650
55651 2007-06-01  Bruno Haible  <bruno@clisp.org>
55652
55653         * tests/test-lseek.c (main): Disable test of errno for invalid third
55654         argument.
55655         * doc/functions/lseek.texi: Update.
55656         Reported by Gary V. Vaughan <gary@gnu.org>.
55657
55658 2007-05-28  Bruno Haible  <bruno@clisp.org>
55659
55660         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55661
55662 2007-05-31  Eric Blake  <ebb9@byu.net>
55663
55664         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55665         cross compiling.
55666
55667 2007-05-30  Eric Blake  <ebb9@byu.net>
55668         and Bruno Haible  <bruno@clisp.org>
55669
55670         Work around mingw test failures exposed by m4-1.4.9b.
55671         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55672         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55673         moment.
55674
55675 2007-05-30  Bruno Haible  <bruno@clisp.org>
55676
55677         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55678         assuming that they are closed. Needed on HP-UX 11.
55679
55680 2007-05-29  Bruno Haible  <bruno@clisp.org>
55681
55682         Fix a problem with #include_next.
55683         * lib/dirent_.h: Split the double-inclusion guard.
55684         * lib/fcntl_.h: Likewise.
55685         * lib/float_.h: Likewise.
55686         * lib/iconv_.h: Likewise.
55687         * lib/inttypes_.h: Likewise.
55688         * lib/locale_.h: Likewise.
55689         * lib/math_.h: Likewise.
55690         * lib/netinet_in_.h: Likewise.
55691         * lib/search_.h: Likewise.
55692         * lib/signal_.h: Likewise.
55693         * lib/stdint_.h: Likewise.
55694         * lib/stdio_.h: Likewise.
55695         * lib/stdlib_.h: Likewise.
55696         * lib/string_.h: Likewise.
55697         * lib/sys_select_.h: Likewise.
55698         * lib/sys_socket_.h: Likewise.
55699         * lib/sys_stat_.h: Likewise.
55700         * lib/sys_time_.h: Likewise.
55701         * lib/sysexits_.h: Likewise.
55702         * lib/time_.h: Likewise.
55703         * lib/unistd_.h: Likewise.
55704         * lib/wchar_.h: Likewise.
55705         * lib/wctype_.h: Likewise.
55706
55707 2007-05-29  Bruno Haible  <bruno@clisp.org>
55708
55709         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55710         for the moment.
55711
55712 2007-05-29  Bruno Haible  <bruno@clisp.org>
55713
55714         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55715         invocation.
55716         Reported by Eric Blake.
55717
55718 2007-05-29  Bruno Haible  <bruno@clisp.org>
55719
55720         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55721         compiling case.
55722
55723 2007-05-29  Eric Blake  <ebb9@byu.net>
55724             Bruno Haible  <bruno@clisp.org>
55725
55726         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55727         cross compiles.
55728
55729 2007-05-28  Eric Blake  <ebb9@byu.net>
55730
55731         * modules/closein-tests (test_closein_LDADD): Support test on
55732         cygwin with libtool.
55733
55734 2007-05-28  Bruno Haible  <bruno@clisp.org>
55735
55736         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55737         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55738         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55739         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55740         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55741         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55742         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55743         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55744         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55745
55746 2007-05-28  Eric Blake  <ebb9@byu.net>
55747
55748         Unconditionally include <config.h> in unit tests.
55749         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55750         * tests/test-allocsa.c, tests/test-arcfour.c,
55751         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55752         tests/test-array_list.c, tests/test-array_oset.c,
55753         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55754         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55755         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55756         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55757         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55758         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55759         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55760         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55761         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55762         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55763         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55764         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55765         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55766         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55767         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55768         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55769         test-md5.c, test-memmem.c, test-printf-posix.c,
55770         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55771         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55772         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55773         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55774         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55775         test-vasnprintf-posix2.c, test-vasnprintf.c,
55776         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55777         test-vfprintf-posix.c, test-vprintf-posix.c,
55778         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55779         test-xvasprintf.c: Likewise.
55780
55781 2007-05-28  Bruno Haible  <bruno@clisp.org>
55782
55783         * gnulib-tool (func_import): Remember the --with-tests command-line
55784         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55785         Reported by Eric Blake.
55786
55787 2007-05-28  Bruno Haible  <bruno@clisp.org>
55788
55789         * modules/ftell-tests: New file.
55790         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55791         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55792
55793         * lib/ftell.c: New file.
55794         * modules/ftell: New file.
55795         * m4/ftell.m4: New file.
55796         * doc/functions/ftell.texi: Update.
55797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55798         REPLACE_FTELL.
55799         * lib/stdio_.h (rpl_ftell): New declaration.
55800         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55801         REPLACE_FTELL.
55802
55803 2007-05-28  Eric Blake  <ebb9@byu.net>
55804
55805         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55806
55807 2007-05-28  Bruno Haible  <bruno@clisp.org>
55808
55809         * modules/fseek-tests: New file.
55810         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55811         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55812
55813         * lib/fseek.c: New file.
55814         * modules/fseek: New file.
55815         * m4/fseek.m4: New file.
55816         * doc/functions/fseek.texi: Update.
55817         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55818         REPLACE_FSEEK.
55819         * lib/stdio_.h (rpl_fseek): New declaration.
55820         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55821         REPLACE_FSEEK.
55822
55823 2007-05-28  Bruno Haible  <bruno@clisp.org>
55824
55825         * lib/stdio_.h (fflush): More comments.
55826
55827 2007-05-28  Bruno Haible  <bruno@clisp.org>
55828
55829         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55830         runtime test.
55831
55832 2007-05-28  Eric Blake  <ebb9@byu.net>
55833
55834         Improve lseek module.
55835         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55836         * lib/unistd_.h (lseek): Scale back link warning message.
55837         * tests/test-lseek.c: Beef up test.
55838         * tests/test-lseek.sh: Exercise more facets of lseek.
55839         Reported by Bruno Haible.
55840
55841 2007-05-28  Bruno Haible  <bruno@clisp.org>
55842
55843         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55844         to define.
55845
55846 2007-05-27  Bruno Haible  <bruno@clisp.org>
55847
55848         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55849
55850 2007-05-27  Bruno Haible  <bruno@clisp.org>
55851
55852         * modules/openmp: New file.
55853         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55854         Noah Misch.
55855
55856 2007-05-26  Bruno Haible  <bruno@clisp.org>
55857
55858         * modules/chdir-long (Depends-on): Add fchdir.
55859         * modules/chdir-safer (Depends-on): Likewise.
55860         * modules/fts (Depends-on): Likewise.
55861         * modules/fts-lgpl (Depends-on): Likewise.
55862         * modules/openat (Depends-on): Likewise.
55863         * modules/savewd (Depends-on): Likewise.
55864
55865 2007-05-24  Eric Blake  <ebb9@byu.net>
55866
55867         Fix lseek on mingw.
55868         * modules/lseek: New module.
55869         * m4/lseek.m4: New file.
55870         * lib/lseek.c: New file.
55871         * modules/lseek-tests: New file.
55872         * tests/test-lseek.c: New file.
55873         * tests/test-lseek.sh: New file.
55874         * MODULES.html.sh: Document lseek module.
55875         * modules/fflush (Depends-on): Add lseek, fseeko.
55876         * modules/fseeko (Depends-on): Likewise.
55877         * modules/ftello (Depends-on): Likewise.
55878         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55879         broken.
55880         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55881         broken.
55882         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55883         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55884         * lib/ftello.c (rpl_ftello): Likewise.
55885         * tests/test-fseeko.c (main): Test this.
55886         * tests/test-fseeko.sh: Likewise.
55887         * tests/test-ftello.c (main): Likewise.
55888         * tests/test-ftello.sh: Likewise.
55889         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55890         implies replacing fseek.
55891         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55892         HAVE_FTELLO.
55893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55894         * modules/unistd (Makefile.am): Likewise.
55895         * lib/unistd_.h (lseek): Declare a replacement.
55896         * doc/functions/lseek.texi (lseek): Document this fix.
55897         * doc/functions/fseek.texi (fseek): Likewise.
55898         * doc/functions/ftell.texi (ftell): Likewise.
55899
55900 2007-05-24  Bruno Haible  <bruno@clisp.org>
55901
55902         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55903         in the printed representation of a NaN.
55904         * tests/test-vasprintf-posix.c (test_function): Likewise.
55905         * tests/test-snprintf-posix.h (test_function): Likewise.
55906         * tests/test-sprintf-posix.h (test_function): Likewise.
55907         Reported by Eric Blake.
55908
55909 2007-05-23  Eric Blake  <ebb9@byu.net>
55910
55911         Fix fseeko/ftello on cygwin 1.5.24.
55912         * doc/functions/fseeko.texi (fseeko): Document the fix.
55913         * doc/functions/ftello.texi (ftello): Document the fix.
55914         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55915         * doc/functions/stdout.text (stdout): New file.
55916         * doc/functions/stderr.text (stderr): New file.
55917         * doc/gnulib.texi (Function Substitutes): Use new files.
55918         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55919         prior to 1.7.0.
55920         * tests/test-ftello.c (main): Likewise for ftello.
55921         * tests/test-fseeko.sh: New file.
55922         * tests/test-ftello.sh: New file.
55923         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55924         with seekable stdin.
55925         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55926         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55927         (gl_REPLACE_FSEEKO): New macro.
55928         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55929         * modules/fseeko (Files): Distribute fseeko.c.
55930         * modules/ftello (Files): Distribute ftello.c.
55931         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55932         mode.
55933         * lib/ftello.c (rpl_ftello): New file.
55934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55935         fseeko, ftello.
55936         (gl_STDIN_LARGE_OFFSET): New macro.
55937         * modules/stdio (Makefile.am): Perform the replacement.
55938         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55939
55940 2007-05-23  Bruno Haible  <bruno@clisp.org>
55941
55942         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55943         GNULIB_POSIXCHECK is defined.
55944
55945 2007-05-21  Bruno Haible  <bruno@clisp.org>
55946
55947         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55948         Check also the output for NaN arguments. When cross-compiling, guess
55949         no on IRIX.
55950         * lib/vasnprintf.c: Update comments.
55951         * tests/test-vasnprintf-posix.c (strisnan): New function.
55952         (test_function): Use it.
55953         * tests/test-vasprintf-posix.c (strisnan): New function.
55954         (test_function): Use it.
55955         * tests/test-snprintf-posix.h (strisnan): New function.
55956         (test_function): Use it.
55957         * tests/test-sprintf-posix.h (strisnan): New function.
55958         (test_function): Use it.
55959         Reported by Eric Blake.
55960
55961 2007-05-20  Bruno Haible  <bruno@clisp.org>
55962
55963         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55964         numbers that fails on BeOS.
55965         * doc/functions/frexpl.texi: Update.
55966
55967 2007-05-20  Jim Meyering  <jim@meyering.net>
55968
55969         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55970         forced upon us by glibc-2.6.
55971
55972 2007-05-20  Bruno Haible  <bruno@clisp.org>
55973
55974         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55975         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55976         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55977         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55978         NEED_PRINTF_INFINITE.
55979         (is_infinitel): New function.
55980         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55981         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55982         gl_PREREQ_VASNPRINTF_INFINITE.
55983         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55984         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55985         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55986         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55987         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55988         gl_PREREQ_VASNPRINTF_INFINITE.
55989         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55990         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55991         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55992         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55993         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55994         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55995         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55996         * doc/functions/fprintf.texi: Update.
55997         * doc/functions/printf.texi: Update.
55998         * doc/functions/snprintf.texi: Update.
55999         * doc/functions/sprintf.texi: Update.
56000         * doc/functions/vfprintf.texi: Update.
56001         * doc/functions/vprintf.texi: Update.
56002         * doc/functions/vsnprintf.texi: Update.
56003         * doc/functions/vsprintf.texi: Update.
56004
56005 2007-05-20  Bruno Haible  <bruno@clisp.org>
56006
56007         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
56008         was not found in libc.
56009         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56010
56011 2007-05-20  Bruno Haible  <bruno@clisp.org>
56012
56013         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56014         printed as "-nan" instead of "nan".
56015         * tests/test-vasprintf-posix.c (test_function): Likewise.
56016         * tests/test-snprintf-posix.h (test_function): Likewise.
56017         * tests/test-sprintf-posix.h (test_function): Likewise.
56018         Needed for HP-UX 11.
56019
56020 2007-05-20  Jim Meyering  <jim@meyering.net>
56021
56022         Fix buggy test for the fchownat-deref bug.
56023         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
56024         symlink required for the run-test.  Without it, this test would
56025         always declare that fchownat doesn't work, and client code would
56026         unnecessarily use the replacement function with fixed libc.
56027         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
56028         Reported by Greg Schafer.
56029
56030 2007-05-19  Bruno Haible  <bruno@clisp.org>
56031
56032         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
56033         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
56034         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
56035         Needed for IRIX 6.5 and Solaris 2.5.1.
56036
56037 2007-05-19  Bruno Haible  <bruno@clisp.org>
56038
56039         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
56040         (test_function): Skip tests involving -0.0 on platforms where
56041         -0.0 = 0.0.
56042         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
56043         (test_function): Skip tests involving -0.0 on platforms where
56044         -0.0 = 0.0.
56045         * tests/test-snprintf-posix.h (have_minus_zero): New function.
56046         (test_function): Skip tests involving -0.0 on platforms where
56047         -0.0 = 0.0.
56048         * tests/test-sprintf-posix.h (have_minus_zero): New function.
56049         (test_function): Skip tests involving -0.0 on platforms where
56050         -0.0 = 0.0.
56051         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
56052         tests.
56053         * tests/test-printf-posix.h (test_function): Likewise.
56054         * tests/test-printf-posix.output: Remove all -0.0 related results.
56055         Needed for IRIX 6.5.
56056
56057 2007-05-19  Bruno Haible  <bruno@clisp.org>
56058
56059         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56060         printed as "nan0x7fffffff" instead of "nan".
56061         * tests/test-vasprintf-posix.c (test_function): Likewise.
56062         * tests/test-snprintf-posix.h (test_function): Likewise.
56063         * tests/test-sprintf-posix.h (test_function): Likewise.
56064         * tests/test-fprintf-posix.h (NaN): Remove macro.
56065         (test_function): Remove all NaN related tests.
56066         * tests/test-printf-posix.h (NaN): Remove macro.
56067         (test_function): Remove all NaN related tests.
56068         * tests/test-printf-posix.output: Remove all NaN related results.
56069         Needed for IRIX 6.5.
56070
56071 2007-05-19  Bruno Haible  <bruno@clisp.org>
56072
56073         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
56074         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
56075
56076 2007-05-19  Bruno Haible  <bruno@clisp.org>
56077
56078         * lib/float_.h: New file.
56079         * m4/float_h.m4: New file.
56080         * modules/float: New file.
56081         * modules/isnanl (Dependencies): Add float.
56082         * modules/isnanl-nolibm (Dependencies): Likewise.
56083         * modules/mathl (Dependencies): Likewise.
56084         * modules/printf-frexpl (Dependencies): Likewise.
56085         * modules/signbit (Dependencies): Likewise.
56086         * modules/vasnprintf (Dependencies): Likewise.
56087         * doc/headers/float.texi: Update.
56088
56089 2007-05-19  Jim Meyering  <jim@meyering.net>
56090
56091         * lib/utimens.c (gl_futimens): Rename from futimens,
56092         now that glibc-2.6 declares futimens.
56093         * lib/utimens.h: Likewise.
56094
56095 2007-05-19  Bruno Haible  <bruno@clisp.org>
56096
56097         Avoid test failures on mingw.
56098         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
56099         * tests/test-printf-posix.sh: Likewise.
56100         * tests/test-vfprintf-posix.sh: Likewise.
56101         * tests/test-vprintf-posix.sh: Likewise.
56102
56103 2007-05-19  Bruno Haible  <bruno@clisp.org>
56104
56105         Fix *printf result for NaN, Inf, -0.0 on mingw.
56106         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
56107         * lib/vasnprintf.c: Include math.h and isnan.h.
56108         (is_infinite_or_zero): New function.
56109         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
56110         values in the %f, %F, %e, %E, %g, %G directives.
56111         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
56112         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56113         gl_PRINTF_INFINITE and test its result. Invoke
56114         gl_PREREQ_VASNPRINTF_INFINITE.
56115         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56116         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56117         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56118         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56119         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56120         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56121         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56122         * doc/functions/fprintf.texi: Update.
56123         * doc/functions/printf.texi: Update.
56124         * doc/functions/snprintf.texi: Update.
56125         * doc/functions/sprintf.texi: Update.
56126         * doc/functions/vfprintf.texi: Update.
56127         * doc/functions/vprintf.texi: Update.
56128         * doc/functions/vsnprintf.texi: Update.
56129         * doc/functions/vsprintf.texi: Update.
56130
56131 2007-05-19  Bruno Haible  <bruno@clisp.org>
56132
56133         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
56134         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
56135         Instead of multiplying with 10^k, set extra_zeroes to k.
56136         (scale10_round_long_double): Remove function.
56137
56138 2007-05-18  Bruno Haible  <bruno@clisp.org>
56139
56140         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
56141         introduced on 2007-05-06.
56142
56143 2007-05-18  Bruno Haible  <bruno@clisp.org>
56144
56145         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
56146         %g directives.
56147         * tests/test-vasprintf-posix.c (test_function): Likewise.
56148         * tests/test-snprintf-posix.h (test_function): Likewise.
56149         * tests/test-sprintf-posix.h (test_function): Likewise.
56150
56151 2007-05-18  Bruno Haible  <bruno@clisp.org>
56152
56153         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
56154         (strmatch): New function.
56155         (test_function): Test the %f directive on numbers of various exponents.
56156         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
56157         (strmatch): New function.
56158         (test_function): Test the %f directive on numbers of various exponents.
56159         * tests/test-snprintf-posix.h (strmatch): New function.
56160         (test_function): Test the %f directive on numbers of various exponents.
56161         * tests/test-sprintf-posix.h (strmatch): New function.
56162         (test_function): Test the %f directive on numbers of various exponents.
56163         * tests/test-snprintf-posix.c (SIZEOF): New macro.
56164         * tests/test-sprintf-posix.c (SIZEOF): New macro.
56165         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
56166         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
56167
56168 2007-05-18  Bruno Haible  <bruno@clisp.org>
56169
56170         Add support for 'long double' number output.
56171         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
56172         * lib/vasnprintf.c: Include math.h and float+.h.
56173         (mp_limb_t): New type.
56174         (GMP_LIMB_BITS): New macro.
56175         (mp_twolimb_t): New type.
56176         (GMP_TWOLIMB_BITS): New macro.
56177         (mpn_t): New type.
56178         (multiply, divide, convert_to_decimal, decode_long_double,
56179         scale10_round_long_double, scale10_round_decimal_long_double,
56180         floorlog10l): New functions.
56181         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
56182         for the %f, %F, %e, %E, %g, %G directives.
56183         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
56184         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56185         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
56186         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
56187         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56188         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56189         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56190         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56191         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56192         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56193         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56194         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
56195         * modules/snprintf-posix (Depends-on): Likewise.
56196         * modules/sprintf-posix (Depends-on): Likewise.
56197         * modules/vasnprintf-posix (Depends-on): Likewise.
56198         * modules/vasprintf-posix (Depends-on): Likewise.
56199         * modules/vfprintf-posix (Depends-on): Likewise.
56200         * modules/vsnprintf-posix (Depends-on): Likewise.
56201         * modules/vsprintf-posix (Depends-on): Likewise.
56202         * modules/vasnprintf (Files): Add lib/float+.h.
56203         * doc/functions/fprintf.texi: Update.
56204         * doc/functions/printf.texi: Update.
56205         * doc/functions/snprintf.texi: Update.
56206         * doc/functions/sprintf.texi: Update.
56207         * doc/functions/vfprintf.texi: Update.
56208         * doc/functions/vprintf.texi: Update.
56209         * doc/functions/vsnprintf.texi: Update.
56210         * doc/functions/vsprintf.texi: Update.
56211
56212 2007-05-18  Bruno Haible  <bruno@clisp.org>
56213
56214         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
56215
56216 2007-05-18  Bruno Haible  <bruno@clisp.org>
56217
56218         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
56219         for printing 64-bit integers. Needed for mingw.
56220
56221 2007-05-18  Bruno Haible  <bruno@clisp.org>
56222
56223         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56224         gl_FUNC_FREXPL_WORKS.
56225         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
56226
56227 2007-05-18  Bruno Haible  <bruno@clisp.org>
56228
56229         * modules/frexpl-nolibm-tests: New file.
56230
56231         * modules/frexpl-nolibm: New file.
56232         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
56233
56234 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56235
56236         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
56237         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56238         GCC 4.2, which otherwise issues a lot of warnings.
56239         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
56240         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
56241         Likewise.
56242         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
56243         * modules/iconv_open (iconv.h): Likewise.
56244         * modules/locale (locale.h): Likewise.
56245         * modules/netinet_in (netinet/in.h): Likewise.
56246         * modules/sys_select (sys_select.h): Likewise.
56247         * modules/sys_socket (sys/socket.h): Likewise.
56248         * modules/sys_stat (sys/stat.h): Likewise.
56249         * modules/sysexits (sysexits.h): Likewise.
56250         * modules/unistd (unistd.h): Likewise.
56251
56252 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56253
56254         * modules/closein-tests (Makefile.am): Distribute
56255         `test-closein.sh'.
56256
56257 2007-05-17  Bruno Haible  <bruno@clisp.org>
56258
56259         * tests/test-printf-posix.output: Renamed from
56260         tests/test-fprintf-posix.out.
56261         * modules/fprintf-posix-tests: Update.
56262         * modules/printf-posix-tests: Update.
56263         * modules/vfprintf-posix-tests: Update.
56264         * modules/vprintf-posix-tests: Update.
56265         * tests/test-fprintf-posix.sh: Update.
56266         * tests/test-printf-posix.sh: Update.
56267         * tests/test-vfprintf-posix.sh: Update.
56268         * tests/test-vprintf-posix.sh: Update.
56269         Reported by Ralf Wildenhues.
56270
56271 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56272
56273         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56274         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56275         GCC 4.2, which otherwise issues a lot of warnings.
56276         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56277         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56278         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56279         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56280         it should no longer be needed.
56281         * lib/string_.h: Likewise.
56282         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56283         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56284         * modules/inttypes (inttypes.h): Likewise.
56285         * modules/math (math.h): Likewise.
56286         * modules/search (search.h): Likewise.
56287         * modules/signal (signal.h): Likewise.
56288         * modules/stdint (stdint.h): Likewise.
56289         * modules/stdio (stdio.h): Likewise.
56290         * modules/stdlib (stdlib.h): Likewise.
56291         * modules/string (string.h): Likewise.
56292         * modules/sys_time (sys/time.h): Likewise.
56293         * modules/time (time.h): Likewise.
56294         * modules/wchar (wchar.h): Likewise.
56295         * modules/wctype (wtype.h): Likewise.
56296
56297 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56298
56299         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56300
56301 2007-05-13  Bruno Haible  <bruno@clisp.org>
56302
56303         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56304         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56305         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56306         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56307         (gl_PREREQ_STRTOK_R): Don't require it here.
56308
56309 2007-05-13  Bruno Haible  <bruno@clisp.org>
56310
56311         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56312         when used in C++ mode.
56313
56314 2007-05-12  Bruno Haible  <bruno@clisp.org>
56315
56316         * lib/linebuffer.h: Tweak doc.
56317         * lib/linebuffer.c: Likewise.
56318
56319 2007-05-12  James Youngman  <jay@gnu.org>
56320
56321         * lib/linebuffer.c (readlinebuffer_delim): New function,
56322         like readlinebuffer, but use a caller-specified delimiter.
56323         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56324         as the delimiter.
56325         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56326
56327 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56328
56329         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56330         * modules/openat (Files): Remove openat-die.c.
56331         (Depends-on): Add openat-die.
56332         * modules/openat-die: New module.
56333
56334 2007-05-06  Bruno Haible  <bruno@clisp.org>
56335
56336         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56337         Update with info about Cygwin.
56338         * doc/functions/fprintf.texi: Update.
56339         * doc/functions/printf.texi: Update.
56340         * doc/functions/snprintf.texi: Update.
56341         * doc/functions/sprintf.texi: Update.
56342         * doc/functions/vfprintf.texi: Update.
56343         * doc/functions/vprintf.texi: Update.
56344         * doc/functions/vsnprintf.texi: Update.
56345         * doc/functions/vsprintf.texi: Update.
56346         Reported by Eric Blake.
56347
56348 2007-05-06  Bruno Haible  <bruno@clisp.org>
56349
56350         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56351         padding ourselves for the floating-point directives.
56352         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56354         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56355         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56356         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56357         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56358         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56359         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56360         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56361         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56362         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56363         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56364         * tests/test-snprintf-posix.h (test_function): Also check the width
56365         and some flags in the %f directive.
56366         * tests/test-sprintf-posix.h (test_function): Likewise.
56367         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56368         * tests/test-vasprintf-posix.c (test_function): Likewise.
56369         * doc/functions/fprintf.texi: Update.
56370         * doc/functions/printf.texi: Update.
56371         * doc/functions/snprintf.texi: Update.
56372         * doc/functions/sprintf.texi: Update.
56373         * doc/functions/vfprintf.texi: Update.
56374         * doc/functions/vprintf.texi: Update.
56375         * doc/functions/vsnprintf.texi: Update.
56376         * doc/functions/vsprintf.texi: Update.
56377
56378 2007-05-06  Bruno Haible  <bruno@clisp.org>
56379
56380         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56381         pass the ' flag character to sprintf or snprintf.
56382         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56383         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56384         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56385         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56386         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56387         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56388         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56389         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56390         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56391         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56392         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56393         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56394         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56395         flag.
56396         * tests/test-sprintf-posix.h (test_function): Likewise.
56397         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56398         * tests/test-vasprintf-posix.c (test_function): Likewise.
56399         * doc/functions/fprintf.texi: Update.
56400         * doc/functions/printf.texi: Update.
56401         * doc/functions/snprintf.texi: Update.
56402         * doc/functions/sprintf.texi: Update.
56403         * doc/functions/vfprintf.texi: Update.
56404         * doc/functions/vprintf.texi: Update.
56405         * doc/functions/vsnprintf.texi: Update.
56406         * doc/functions/vsprintf.texi: Update.
56407
56408 2007-05-01  Bruno Haible  <bruno@clisp.org>
56409
56410         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
56411
56412 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
56413
56414         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
56415         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
56416
56417 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56418
56419         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
56420         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
56421         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
56422
56423 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
56424
56425         * lib/argp-help.c (struct hol_entry): New member `ord'.
56426         (HOL_ENTRY_PTRCMP): Use ord for comparison
56427         (hol_sort): Initialize ord.
56428
56429 2007-05-01  Bruno Haible  <bruno@clisp.org>
56430
56431         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
56432         Reported by Eric Blake.
56433         * doc/gnulib.texi (Function Substitutes): Update.
56434
56435 2007-05-01  Bruno Haible  <bruno@clisp.org>
56436
56437         * doc/functions.texi: Remove file, now redundant through
56438         doc/functions/*.texi.
56439
56440 2007-05-01  Bruno Haible  <bruno@clisp.org>
56441
56442         * modules/argp (Depends-on): Add sleep.
56443
56444 2007-05-01  Bruno Haible  <bruno@clisp.org>
56445
56446         * modules/sleep-tests: New file.
56447         * tests/test-sleep.c: New file.
56448
56449         * modules/sleep: New file.
56450         * lib/sleep.c: New file.
56451         * m4/sleep.m4: New file.
56452         * lib/unistd_.h (sleep): New declaration.
56453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
56454         HAVE_SLEEP.
56455         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
56456         * doc/functions/sleep.texi: Document the sleep module.
56457
56458 2007-05-01  Bruno Haible  <bruno@clisp.org>
56459
56460         * lib/sigprocmask.h: Remove file.
56461         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
56462         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
56463         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
56464         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
56465         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
56466         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
56467         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
56468         HAVE_SIGSET_T as a shell variable.
56469         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
56470         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
56471         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
56472         (Depends-on): Add signal. Remove verify.
56473         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
56474         (Include): Mention <signal.h> instead of sigprocmask.h.
56475         * NEWS: Mention the change.
56476         * lib/fatal-signal.c: Don't include sigprocmask.h.
56477
56478 2007-05-01  Bruno Haible  <bruno@clisp.org>
56479
56480         * modules/signal: New file.
56481         * lib/signal_.h: New file.
56482         * m4/signal_h.m4: New file.
56483
56484 2007-05-01  Bruno Haible  <bruno@clisp.org>
56485
56486         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56487         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56488         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56489         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56490
56491 2007-05-01  Bruno Haible  <bruno@clisp.org>
56492
56493         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56494         configure time.
56495         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56496         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56497         * modules/sys_stat (Makefile.am): Substitute their values into
56498         sys/stat.h.
56499
56500 2007-05-01  Bruno Haible  <bruno@clisp.org>
56501
56502         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56503         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56504         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56505
56506 2007-05-01  Bruno Haible  <bruno@clisp.org>
56507
56508         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56509         'assert' module here.
56510
56511 2007-05-01  Bruno Haible  <bruno@clisp.org>
56512
56513         * doc/functions/*.texi: New files.
56514         * doc/functions/google-ranking.txt: New file.
56515         * doc/gnulib.texi (Function Substitutes): New chapter.
56516         (ctime, inet_ntoa): Remove sections.
56517         * doc/ctime.texi: Remove file.
56518         * doc/inet_ntoa.texi: Remove file.
56519         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56520         dependencies.
56521         (%.info): New rule, specifying a --reference-limit.
56522
56523 2007-05-01  Bruno Haible  <bruno@clisp.org>
56524
56525         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56526
56527 2007-05-01  Bruno Haible  <bruno@clisp.org>
56528
56529         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56530         the portability of 'mkdir' to mingw systems.
56531
56532 2007-05-01  Bruno Haible  <bruno@clisp.org>
56533
56534         * doc/headers/google-ranking.txt: New file.
56535
56536 2007-04-30  Eric Blake  <ebb9@byu.net>
56537
56538         Prefer fseeko to fseek.
56539         * modules/getpass (Depends-on): Add fseeko.
56540         * lib/getpass.c (getpass): Use fseeko, not fseek.
56541
56542 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56543
56544         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56545         assumes the sorting is stable, while most qsort implementations
56546         are not.  Use argument addresses to ensure they never compare as
56547         equal.
56548
56549         * tests/test-argp-2.sh (usage-indent test): Fix output
56550         (func_compare): Restore diff options
56551         * tests/test-argp.c: Restore #include "progname.h"
56552
56553 2007-04-29  Bruno Haible  <bruno@clisp.org>
56554
56555         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56556         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56557         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56558         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56559         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56560         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56561         (TESTS, check_PROGRAMS): Add test-snprintf.
56562         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56563         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56564         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56565         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56566         assertions that fail on HP-UX, OSF/1, or IRIX.
56567         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56568
56569 2007-04-29  Bruno Haible  <bruno@clisp.org>
56570
56571         * MODULES.html.sh (posix_functions): Remove 'contents'.
56572
56573 2007-04-29  Karl Berry  <karl@gnu.org>
56574
56575         * config/srclist.txt (gendocs_template_min): new entry.
56576
56577 2007-04-29  Bruno Haible  <bruno@clisp.org>
56578
56579         Work around fpurge bug on BSD systems.
56580         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56581         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56582         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56583         fpurge to rpl_fpurge if the system already has this function.
56584         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56585         the case where the system already has this function. Correct invariants
56586         on BSD systems.
56587         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56588         BSD systems.
56589
56590 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56591
56592         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56593         proposed by Sven Verdoolaege.
56594
56595         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56596         options.
56597         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56598         (usage and help tests): Update
56599
56600 2007-04-29  Bruno Haible  <bruno@clisp.org>
56601
56602         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56603         Print more information in case of failure. Disable a test on BeOS.
56604
56605 2007-04-29  Bruno Haible  <bruno@clisp.org>
56606
56607         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56608         This helps debugging on systems on which no gdb is available.
56609
56610 2007-04-29  Bruno Haible  <bruno@clisp.org>
56611
56612         * lib/freading.h: Improve comments.
56613         * lib/fwriting.h: Likewise.
56614         * tests/test-freading.c (main): Don't check freading immediately after
56615         repositioning. Needed for glibc.
56616
56617 2007-04-29  Bruno Haible  <bruno@clisp.org>
56618
56619         * lib/freading.c (freading): Trivial simplification.
56620
56621 2007-04-28  Bruno Haible  <bruno@clisp.org>
56622
56623         * tests/test-fwriting.c (main): Also test the interaction between
56624         fflush and fwriting.
56625         * modules/fwriting-tests (Depends-on): Add fflush.
56626
56627         * tests/test-freading.c (main): Also test the interaction between
56628         fflush and freading.
56629         * modules/freading-tests (Depends-on): Add fflush.
56630
56631 2007-04-28  Bruno Haible  <bruno@clisp.org>
56632
56633         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56634         fseeko and ftello.
56635         Suggested by Eric Blake.
56636
56637 2007-04-28  Jim Meyering  <jim@meyering.net>
56638
56639         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56640         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56641         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56642
56643 2007-04-27  Eric Blake  <ebb9@byu.net>
56644
56645         * doc/headers/assert.texi (assert.h): Document assert module use.
56646
56647 2007-04-27  Bruno Haible  <bruno@clisp.org>
56648
56649         * doc/headers/*.texi: New files.
56650         * doc/gnulib.texi (Header File Substitutes): New chapter.
56651         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56652         dependencies.
56653         (standards.info ,standards.html, standards.dvi): Update dependencies.
56654         (mostlyclean, clean): New targets.
56655
56656 2007-04-27  Bruno Haible  <bruno@clisp.org>
56657
56658         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56659         * modules/sysexits (Files, Makefile.am): Update.
56660
56661         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56662         * modules/sys_socket (Files, Makefile.am): Update.
56663
56664         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56665         * modules/sys_stat (Files, Makefile.am): Update.
56666
56667 2007-04-27  Eric Blake  <ebb9@byu.net>
56668
56669         * lib/freading.h: Improve comments.
56670         * lib/fwriting.h: Likewise.
56671         * lib/fflush.c: Likewise.
56672
56673         Fix closein for mingw.
56674         * modules/closein-tests: Add tests for closein.
56675         * tests/test-closein.c: New file.
56676         * tests/test-closein.sh: Likewise.
56677         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56678         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56679
56680 2007-04-27  Bruno Haible  <bruno@clisp.org>
56681
56682         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56683         version is < 6.
56684         * lib/math_.h [__DECC]: Likewise.
56685         * lib/stdio_.h [__DECC]: Likewise.
56686         * lib/stdlib_.h [__DECC]: Likewise.
56687         * lib/string_.h [__DECC]: Likewise.
56688         * lib/time_.h [__DECC]: Likewise.
56689         * lib/wchar_.h [__DECC]: Likewise.
56690         * lib/wctype_.h [__DECC]: Likewise.
56691
56692 2007-04-27  Bruno Haible  <bruno@clisp.org>
56693
56694         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56695
56696 2007-04-27  Bruno Haible  <bruno@clisp.org>
56697
56698         * lib/fflush.c: Add comments.
56699         * modules/fpurge-tests (Depends-on): Add fflush.
56700         * modules/freadable-tests (Depends-on): Likewise.
56701         * modules/fwritable-tests (Depends-on): Likewise.
56702
56703 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56704
56705         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56706         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56707         Report by Bruno Haible <bruno@clisp.org>.
56708
56709 2007-04-26  Eric Blake  <ebb9@byu.net>
56710
56711         Fix fflush on mingw.
56712         * modules/fflush (Depends-on): Add freading.
56713         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56714         but unread data.
56715
56716 2007-04-26  Eric Blake  <ebb9@byu.net>
56717         and Bruno Haible  <bruno@clisp.org>
56718
56719         Implement freading and fwriting.
56720         * lib/freading.c: New file.
56721         * lib/freading.h: Likewise.
56722         * m4/freading.m4: Likewise.
56723         * modules/freading: Likewise.
56724         * modules/freading-tests: Likewise.
56725         * tests/test-freading.c: Likewise.
56726         * lib/fwriting.c: New file.
56727         * lib/fwriting.h: Likewise.
56728         * m4/fwriting.m4: Likewise.
56729         * modules/fwriting: Likewise.
56730         * modules/fwriting-tests: Likewise.
56731         * tests/test-fwriting.c: Likewise.
56732         * MODULES.html.sh (File stream based Input/Output): Mention them.
56733
56734 2007-04-26  Bruno Haible  <bruno@clisp.org>
56735
56736         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56737         'long' when we assume it.
56738         Suggested by Eric Blake.
56739
56740 2007-04-26  Bruno Haible  <bruno@clisp.org>
56741
56742         Ensure fseeko, ftello are declared on glibc systems.
56743         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56744         * modules/fseeko (configure.ac-early): Likewise.
56745         * modules/ftello (configure.ac-early): Likewise.
56746         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56747         AC_FUNC_FSEEKO for this.
56748         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56749         (gl_CHECK_FSEEKO): Remove macro.
56750
56751 2007-04-26  Bruno Haible  <bruno@clisp.org>
56752
56753         * tests/test-fflush.c (main): Also check the ftell result after
56754         fflush and fseek/fseeko.
56755         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56756         file descriptor position cache in the stream.
56757         * lib/fseeko.c (rpl_fseeko): Likewise.
56758
56759 2007-04-26  Bruno Haible  <bruno@clisp.org>
56760
56761         * modules/fflush-tests (Depends-on): Add fseeko.
56762
56763 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56764             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56765
56766         * lib/argz_.h: ensure error_t definition is obtained in same
56767         mechanism system argz.h would have.
56768         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56769         argz facilities are known bad.  Err on the side of caution if
56770         cross-compiling.
56771
56772 2007-04-25  Eric Blake  <ebb9@byu.net>
56773
56774         * lib/fpurge.c (includes): Use stdlib.h for free.
56775         * tests/test-fflush.c (main): Also test fflush-fseeko.
56776
56777 2007-04-25  Bruno Haible  <bruno@clisp.org>
56778
56779         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56780         * lib/fseeko.c: New file.
56781         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56782         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56783         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56784         gl_FUNC_FSEEKO.
56785         (gl_FUNC_FSEEKO): Invoke it.
56786         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56787         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56788         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56789
56790 2007-04-25  Bruno Haible  <bruno@clisp.org>
56791
56792         * modules/fflush (Depends-on): Add ftello.
56793
56794 2007-04-25  Bruno Haible  <bruno@clisp.org>
56795
56796         * modules/ftello-tests: New file.
56797         * tests/test-ftello.c: New file.
56798
56799         * modules/ftello: New file.
56800         * m4/ftello.m4: New file.
56801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56802         HAVE_FTELLO.
56803         * lib/stdio_.h (ftello): New declaration.
56804         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56805         HAVE_FTELLO.
56806
56807 2007-04-25  Bruno Haible  <bruno@clisp.org>
56808
56809         * modules/fseeko-tests: New file.
56810         * tests/test-fseeko.c: New file.
56811
56812         * modules/fseeko: New file.
56813         * m4/fseeko.m4: New file.
56814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56815         HAVE_FSEEKO.
56816         * lib/stdio_.h (fseeko): New declaration.
56817         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56818         HAVE_FSEEKO.
56819
56820 2007-04-25  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56823
56824 2007-04-25  Bruno Haible  <bruno@clisp.org>
56825
56826         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56827         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56828         * tests/test-unistd.c: Likewise.
56829         * tests/test-fcntl.c: Likewise.
56830
56831 2007-04-23  Eric Blake  <ebb9@byu.net>
56832
56833         * lib/fflush.c: Fix missing include.
56834         Reported by Bruno Haible.
56835
56836 2007-04-23  Bruno Haible  <bruno@clisp.org>
56837
56838         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56839         Reported by Eric Blake.
56840
56841 2007-04-23  Bruno Haible  <bruno@clisp.org>
56842
56843         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56844
56845 2007-04-23  Bruno Haible  <bruno@clisp.org>
56846
56847         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56848
56849 2007-04-23  Bruno Haible  <bruno@clisp.org>
56850
56851         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56852         Needed on HP-UX 11.
56853
56854 2007-04-16  Eric Blake  <ebb9@byu.net>
56855
56856         Make fflush rely on fpurge.
56857         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56858         open coding all variants.
56859         * modules/fflush (Depends-on): Add fpurge and unistd.
56860         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56861         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56862
56863         Fix --with-tests compilation on cygwin.
56864         * modules/argmatch-tests (Makefile.am): List gnulib library first
56865         in LDADD.
56866         * modules/argp-tests (Makefile.am): Likewise.
56867         * modules/array-list-tests (Makefile.am): Likewise.
56868         * modules/array-oset-tests (Makefile.am): Likewise.
56869         * modules/avltree-list-tests (Makefile.am): Likewise.
56870         * modules/avltree-oset-tests (Makefile.am): Likewise.
56871         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56872         * modules/carray-list-tests (Makefile.am): Likewise.
56873         * modules/dirname-tests (Makefile.am): Likewise.
56874         * modules/frexp-tests (Makefile.am): Likewise.
56875         * modules/isnanl-tests (Makefile.am): Likewise.
56876         * modules/linked-list-tests (Makefile.am): Likewise.
56877         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56878         * modules/lock-tests (Makefile.am): Likewise.
56879         * modules/rbtree-list-tests (Makefile.am): Likewise.
56880         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56881         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56882         * modules/tls-tests (Makefile.am): Likewise.
56883         * modules/tsearch-tests (Makefile.am): Likewise.
56884         * modules/xvasprintf-tests (Makefile.am): Likewise.
56885
56886         Fix fpurge for cygwin.
56887         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56888         value.
56889         * modules/fpurge-tests (Depends-on): Clean up trash.
56890
56891 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56892
56893         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56894
56895         * m4/autobuild.m4: Re-indent.
56896
56897 2007-04-13  Bruno Haible  <bruno@clisp.org>
56898
56899         * modules/fpurge-tests: New file.
56900         * tests/test-fpurge.c: New file.
56901
56902         * modules/fpurge: New file.
56903         * lib/fpurge.h: New file.
56904         * lib/fpurge.c: New file.
56905         * m4/fpurge.m4: New file.
56906
56907 2007-04-13  Bruno Haible  <bruno@clisp.org>
56908
56909         * modules/fbufmode-tests: New file.
56910         * tests/test-fbufmode.c: New file.
56911
56912         * modules/fbufmode: New file.
56913         * lib/fbufmode.h: New file.
56914         * lib/fbufmode.c: New file.
56915         * m4/fbufmode.m4: New file.
56916
56917 2007-04-13  Bruno Haible  <bruno@clisp.org>
56918
56919         * modules/fwritable-tests: New file.
56920         * tests/test-fwritable.c: New file.
56921
56922         * modules/fwritable: New file.
56923         * lib/fwritable.h: New file.
56924         * lib/fwritable.c: New file.
56925         * m4/fwritable.m4: New file.
56926
56927 2007-04-13  Bruno Haible  <bruno@clisp.org>
56928
56929         * modules/freadable-tests: New file.
56930         * tests/test-freadable.c: New file.
56931
56932         * modules/freadable: New file.
56933         * lib/freadable.h: New file.
56934         * lib/freadable.c: New file.
56935         * m4/freadable.m4: New file.
56936
56937 2007-04-13  Bruno Haible  <bruno@clisp.org>
56938
56939         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56940         MOSTLYCLEANFILES.
56941
56942 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56943
56944         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56945         gzip bootstrap.conf to avoid dragging in i18n machinery.
56946         (gnulib_tool_option): Use it.
56947
56948 2007-04-13  Bruno Haible  <bruno@clisp.org>
56949
56950         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56951         %F directives.
56952         * tests/test-vasprintf-posix.c (test_function): Likewise.
56953         * tests/test-snprintf-posix.h (test_function): Likewise.
56954         * tests/test-sprintf-posix.h (test_function): Likewise.
56955         * tests/test-fprintf-posix.h (test_function): Likewise.
56956         * tests/test-printf-posix.h (test_function): Likewise.
56957         * tests/test-fprintf-posix.out: Likewise.
56958
56959 2007-04-13  Bruno Haible  <bruno@clisp.org>
56960
56961         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56962         * modules/tls-tests (configure.ac): Likewise.
56963         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56964
56965 2007-04-13  Bruno Haible  <bruno@clisp.org>
56966
56967         * lib/tls.c (glthread_tls_get): Fix return type.
56968         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56969
56970 2007-04-12  Eric Blake  <ebb9@byu.net>
56971
56972         * modules/gettime (Depends-on): Remove gettime.
56973         Reported by Dmitry V. Levin.
56974
56975 2007-04-12  Bruno Haible  <bruno@clisp.org>
56976
56977         * modules/fflush (Include): Mention <stdio.h>.
56978         * modules/strtoimax (Include): Mention <inttypes.h>.
56979         * modules/strtoumax (Include): Likewise.
56980
56981 2007-04-12  Eric Blake  <ebb9@byu.net>
56982
56983         * .cvsignore: New file.
56984         * .gitignore: Likewise.
56985
56986 2007-04-12  Bruno Haible  <bruno@clisp.org>
56987
56988         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56989         not before, since $(LDADD) often contains libgnu.a.
56990         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56991         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56992         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56993         Needed on Cygwin.
56994
56995 2007-04-12  Eric Blake  <ebb9@byu.net>
56996
56997         Work around glibc's failure to flush stdin on fclose.
56998         * lib/closein.c (close_stdin): Flush stdin before closing.
56999
57000         Work around glibc's failure to reset seekable stdin on exit.
57001         * modules/closein: New module.
57002         * lib/closein.c: New file.
57003         * lib/closein.h: Likewise.
57004         * m4/closein.m4: Likewise.
57005         * MODULES.html.sh (File stream based Input/Output): Document it.
57006
57007 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57008
57009         * gnulib-tool: Rename generated 'autobuild' script to
57010         'do-autobuild' in --create-megatestdir output.
57011
57012         * doc/gnulib.texi (Build robot for gnulib): Fix.
57013
57014 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57015
57016         * modules/sysexits (Depends-on): Add absolute-header.
57017
57018 2007-04-12  Eric Blake  <ebb9@byu.net>
57019
57020         No need to preserve errno on success.
57021         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
57022         Reported by Bruno Haible.
57023
57024 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57025
57026         * MODULES.html.sh (Support for maintaining and releasing
57027         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
57028
57029 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57030
57031         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
57032
57033 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57034
57035         * modules/autobuild: New module.
57036
57037         * m4/autobuild.m4: New file.
57038
57039 2007-04-11  Bruno Haible  <bruno@clisp.org>
57040
57041         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
57042         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
57043         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
57044         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
57045         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57046         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57047         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57048         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57049         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57050         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57051         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
57052         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57053         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57054         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
57055         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57056         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57057         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
57058         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57059         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57060         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
57061         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57062         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57063         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
57064         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57065         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57066         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
57067         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57068         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57069         Reported by Eric Blake.
57070
57071 2007-04-11  Bruno Haible  <bruno@clisp.org>
57072
57073         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
57074
57075 2007-04-10  Bruno Haible  <bruno@clisp.org>
57076
57077         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
57078         for NaN and Infinity. Needed on FreeBSD 6.1.
57079         * tests/test-vasnprintf-posix.c (test_function): Undo last change
57080         regarding results for "%010a" of Infinity and NaN.
57081         * tests/test-vasprintf-posix.c (test_function): Likewise.
57082         * tests/test-snprintf-posix.h (test_function): Likewise.
57083         * tests/test-sprintf-posix.h (test_function): Likewise.
57084         * tests/test-fprintf-posix.h (test_function): Likewise.
57085         * tests/test-printf-posix.h (test_function): Likewise.
57086         * tests/test-fprintf-posix.out: Likewise.
57087
57088 2007-04-10  Bruno Haible  <bruno@clisp.org>
57089
57090         * modules/locale-tests: New file.
57091         * tests/test-locale.c: New file.
57092
57093         * modules/locale: New file.
57094         * lib/locale_.h: New file.
57095         * m4/locale_h.m4: New file.
57096
57097 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
57098             Bruno Haible  <bruno@clisp.org>
57099
57100         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
57101         be determined, test for availability of the copysignf, copysign,
57102         copysignl functions.
57103         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
57104         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
57105         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
57106
57107 2007-04-09  Eric Blake  <ebb9@byu.net>
57108
57109         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
57110         * modules/stdio (Makefile.am): Support fflush.
57111         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57112         * modules/fflush: New file.
57113         * lib/fflush.c: Likewise.
57114         * m4/fflush.m4: Likewise.
57115         * modules/fflush-tests: New test.
57116         * tests/test-fflush.c: Likewise.
57117         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
57118
57119 2007-04-06  Bruno Haible  <bruno@clisp.org>
57120
57121         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
57122         (VASNPRINTF): Use signbit for faster determination whether to print a
57123         minus sign.
57124         * modules/vasnprintf (Files): Remove lib/float+.h.
57125         * modules/fprintf-posix (Depends-on): Add signbit.
57126         * modules/snprintf-posix (Depends-on): Likewise.
57127         * modules/sprintf-posix (Depends-on): Likewise.
57128         * modules/vasnprintf-posix (Depends-on): Likewise.
57129         * modules/vasprintf-posix (Depends-on): Likewise.
57130         * modules/vfprintf-posix (Depends-on): Likewise.
57131         * modules/vsnprintf-posix (Depends-on): Likewise.
57132         * modules/vsprintf-posix (Depends-on): Likewise.
57133
57134 2007-04-06  Bruno Haible  <bruno@clisp.org>
57135
57136         * tests/test-frexp.c (main): Test also the sign bit of zero results.
57137         * tests/test-frexpl.c (main): Likewise.
57138         * tests/test-ldexpl.c (main): Likewise.
57139         * modules/frexp-tests (Depends-on): Add signbit.
57140         * modules/frexpl-tests (Depdends-on): Likewise.
57141         * modules/ldexpl-tests (Depdends-on): Likewise.
57142
57143 2007-04-06  Bruno Haible  <bruno@clisp.org>
57144
57145         * modules/signbit-tests: New file.
57146         * tests/test-signbit.c: New file.
57147
57148         * modules/signbit: New file.
57149         * lib/signbitf.c: New file.
57150         * lib/signbitd.c: New file.
57151         * lib/signbitl.c: New file.
57152         * m4/signbit.m4: New file.
57153         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
57154         (signbit): New macro.
57155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
57156         REPLACE_SIGNBIT.
57157         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
57158         REPLACE_FREXPL into math.h.
57159
57160 2007-04-06  Bruno Haible  <bruno@clisp.org>
57161
57162         * modules/isnanf-nolibm-tests: New file.
57163         * tests/test-isnanf.c: New file.
57164
57165         * modules/isnanf-nolibm: New file.
57166         * lib/isnanf.h: New file.
57167         * lib/isnanf.c: New file.
57168         * lib/isnan.c: Consider the USE_FLOAT macro.
57169         * m4/isnanf.m4: New file.
57170
57171 2007-04-06  Bruno Haible  <bruno@clisp.org>
57172
57173         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
57174         (Link): New section.
57175
57176         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
57177
57178 2007-04-06  Bruno Haible  <bruno@clisp.org>
57179
57180         Assume the 'long double' type.
57181         * m4/longdouble.m4: Remove file.
57182         * config/srclist.txt: Don't mention longdouble.m4.
57183         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
57184         * lib/float+.h: Likewise.
57185         * lib/frexp.c: Likewise.
57186         * lib/printf-args.h: Likewise.
57187         * lib/printf-args.c: Likewise.
57188         * lib/printf-frexp.c: Likewise.
57189         * lib/printf-parse.c: Likewise.
57190         * lib/vasnprintf.c: Likewise.
57191         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
57192         * m4/intl.m4: Likewise.
57193         * m4/isnanl.m4: Likewise.
57194         * m4/printf.m4: Likewise.
57195         * m4/printf-frexpl.m4: Likewise.
57196         * m4/vasnprintf.m4: Likewise.
57197         * modules/allocsa (Files): Remove m4/longdouble.m4.
57198         * modules/gettext (Files): Likewise.
57199         * modules/relocatable-prog-wrapper (Files): Likewise.
57200         * modules/vasnprintf (Files): Likewise.
57201         * modules/isnanl (Files): Likewise.
57202         (Include): Simplify.
57203         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
57204         (Include): Simplify.
57205         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
57206         (Include): Simplify.
57207         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
57208         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57209         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
57210         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57211         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57212         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57213         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
57214         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57215         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57216         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57217         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
57218         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57219         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
57220         * tests/test-isnanl.c: Likewise.
57221         * tests/test-snprintf-posix.h: Likewise.
57222         * tests/test-sprintf-posix.h: Likewise.
57223         * tests/test-vasnprintf-posix.c: Likewise.
57224         * tests/test-vasnprintf-posix2.c: Likewise.
57225         * tests/test-vasprintf-posix.c: Likewise.
57226
57227 2007-04-06  Bruno Haible  <bruno@clisp.org>
57228
57229         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
57230         * lib/math_.h [__DECC]: Include the overridden include file through
57231         #include_next, outside the double-inclusion guard.
57232         * lib/stdio_.h [__DECC]: Likewise.
57233         * lib/stdlib_.h [__DECC]: Likewise.
57234         * lib/string_.h [__DECC]: Likewise.
57235         * lib/time_.h [__DECC]: Likewise.
57236         * lib/wchar_.h [__DECC]: Likewise.
57237         * lib/wctype_.h [__DECC]: Likewise.
57238         * lib/inttypes_.h [__DECC]: Likewise.
57239         Reported by Albert Chin <china@thewrittenword.com> in
57240         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
57241
57242 2007-04-04  Eric Blake  <ebb9@byu.net>
57243
57244         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
57245         1.5.x.
57246
57247 2007-04-04  Bruno Haible  <bruno@clisp.org>
57248
57249         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
57250         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
57251
57252 2007-04-04  Bruno Haible  <bruno@clisp.org>
57253
57254         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57255         results for "%010a" of Infinity and NaN.
57256         * tests/test-vasprintf-posix.c (test_function): Likewise.
57257         * tests/test-snprintf-posix.h (test_function): Likewise.
57258         * tests/test-sprintf-posix.h (test_function): Likewise.
57259         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57260         * tests/test-printf-posix.h (test_function): Likewise.
57261         * tests/test-fprintf-posix.out: Update.
57262         Needed for FreeBSD 6.1.
57263
57264 2007-04-04  Bruno Haible  <bruno@clisp.org>
57265
57266         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57267         directly used by the gnulib modules nor by gnulib-tool.
57268
57269 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57270
57271         * DEPENDENCIES: Give overall description of version dependency
57272         desirability.  Use more-typical names for apps.
57273         Add shell, coreutils, diffutils, grep, tar, gzip.
57274
57275 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57276
57277         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57278
57279 2007-04-04  Karl Berry  <karl@gnu.org>
57280
57281         * MODULES.html.sh (func_module): missing '.
57282
57283 2007-04-03  Bruno Haible  <bruno@clisp.org>
57284
57285         * modules/argmatch-tests (Makefile.am): New variable
57286         test_argmatch_LDADD.
57287         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57288         * modules/array-list-tests (Makefile.am): New variable
57289         test_array_list_LDADD.
57290         * modules/array-oset-tests (Makefile.am): New variable
57291         test_array_oset_LDADD.
57292         * modules/avltree-list-tests (Makefile.am): New variable
57293         test_avltree_list_LDADD.
57294         * modules/avltree-oset-tests (Makefile.am): New variable
57295         test_avltree_oset_LDADD.
57296         * modules/avltreehash-list-tests (Makefile.am): New variable
57297         test_avltreehash_list_LDADD.
57298         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57299         test_canonicalize_lgpl_LDADD.
57300         * modules/carray-list-tests (Makefile.am): New variable
57301         test_carray_list_LDADD.
57302         * modules/dirname-tests (Makefile.am): New variable
57303         test_dirname_LDADD.
57304         * modules/linked-list-tests (Makefile.am): New variable
57305         test_linked_list_LDADD.
57306         * modules/linkedhash-list-tests (Makefile.am): New variable
57307         test_linkedhash_list_LDADD.
57308         * modules/rbtree-list-tests (Makefile.am): New variable
57309         test_rbtree_list_LDADD.
57310         * modules/rbtree-oset-tests (Makefile.am): New variable
57311         test_rbtree_oset_LDADD.
57312         * modules/rbtreehash-list-tests (Makefile.am): New variable
57313         test_rbtreehash_list_LDADD.
57314         * modules/xvasprintf-tests (Makefile.am): New variable
57315         test_xvasprintf_LDADD.
57316         Reported by Eric Blake.
57317
57318 2007-04-03  Eric Blake  <ebb9@byu.net>
57319
57320         * DEPENDENCIES: Weaken m4 requirements.
57321
57322 2007-04-03  Bruno Haible  <bruno@clisp.org>
57323
57324         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57325         * modules/isnanl-tests (configure.ac): Likewise.
57326
57327 2007-04-03  Ben Pfaff  <blp@gnu.org>
57328
57329         * modules/iconv_open: Add $(srcdir)/ to source directory
57330         references in Makefile fragments that call gperf, to fix VPATH
57331         builds.
57332
57333 2007-04-03  Bruno Haible  <bruno@clisp.org>
57334
57335         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57336         * lib/ldexpl.c: Undo last change.
57337
57338 2007-04-03  Bruno Haible  <bruno@clisp.org>
57339
57340         * modules/printf-frexpl (Depends-on): Undo last change.
57341         (Files): Add m4/ldexpl.m4.
57342
57343 2007-04-03  Bruno Haible  <bruno@clisp.org>
57344
57345         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57346         * modules/isnanl (Link): New section.
57347
57348         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57349         * modules/frexp (Link): New section.
57350
57351         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57352         * modules/frexpl (Link): New section.
57353
57354         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57355         * modules/ldexpl (Link): New section.
57356
57357 2007-04-03  Bruno Haible  <bruno@clisp.org>
57358
57359         * modules/TEMPLATE-EXTENDED: New file.
57360         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57361
57362 2007-04-03  Bruno Haible  <bruno@clisp.org>
57363
57364         * DEPENDENCIES: New file.
57365         Suggested by Simon Josefsson.
57366
57367 2007-04-03  Bruno Haible  <bruno@clisp.org>
57368
57369         * doc/gnulib.texi: Escape @.
57370
57371 2007-04-03  James Youngman  <jay@gnu.org>
57372         and Paul Eggert  <eggert@cs.ucla.edu>
57373
57374         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57375         birthtime on all systems that have birthtime, not just those which
57376         use st_birthtimensec rather than st_birthtim.  Putting zero in
57377         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57378         that the birth time is not available for files on an NFS mount.
57379
57380 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57381
57382         * modules/memxor: Move back from crypto/, suggested by Bruno.
57383         * modules/crypto/hmac-sha1: Fix memxor dependency.
57384
57385         * modules/crypto/gc: Moved from ../.
57386
57387 2007-04-02  Eric Blake  <ebb9@byu.net>
57388
57389         * lib/ldexpl.c (includes): Avoid libm.
57390
57391         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57392
57393 2007-04-02  Bruno Haible  <bruno@clisp.org>
57394
57395         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57396         on IRIX.
57397
57398 2007-04-02  Bruno Haible  <bruno@clisp.org>
57399
57400         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
57401         x86 or x86_64 platforms running MacOS X.
57402         Reported by Ryan Schmidt <@ryandesign.com>.
57403
57404 2007-04-02  Bruno Haible  <bruno@clisp.org>
57405
57406         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
57407         i386.
57408
57409 2007-04-01  Simon Josefsson  <simon@josefsson.org>
57410
57411         * modules/crypto/arcfour: Moved from ../.
57412         * modules/crypto/arcfour-tests: Moved from ../.
57413         * modules/crypto/arctwo: Moved from ../.
57414         * modules/crypto/arctwo-tests: Moved from ../.
57415         * modules/crypto/des: Moved from ../.
57416         * modules/crypto/des-tests: Moved from ../.
57417         * modules/crypto/gc-arcfour: Moved from ../.
57418         * modules/crypto/gc-arcfour-tests: Moved from ../.
57419         * modules/crypto/gc-arctwo: Moved from ../.
57420         * modules/crypto/gc-arctwo-tests: Moved from ../.
57421         * modules/crypto/gc-des: Moved from ../.
57422         * modules/crypto/gc-des-tests: Moved from ../.
57423         * modules/crypto/gc-hmac-md5: Moved from ../.
57424         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
57425         * modules/crypto/gc-hmac-sha1: Moved from ../.
57426         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
57427         * modules/crypto/gc-md2: Moved from ../.
57428         * modules/crypto/gc-md2-tests: Moved from ../.
57429         * modules/crypto/gc-md4: Moved from ../.
57430         * modules/crypto/gc-md4-tests: Moved from ../.
57431         * modules/crypto/gc-md5: Moved from ../.
57432         * modules/crypto/gc-md5-tests: Moved from ../.
57433         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
57434         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
57435         * modules/crypto/gc-random: Moved from ../.
57436         * modules/crypto/gc-rijndael: Moved from ../.
57437         * modules/crypto/gc-rijndael-tests: Moved from ../.
57438         * modules/crypto/gc-sha1: Moved from ../.
57439         * modules/crypto/gc-sha1-tests: Moved from ../.
57440         * modules/crypto/gc-tests: Moved from ../.
57441         * modules/crypto/hmac-md5: Moved from ../.
57442         * modules/crypto/hmac-md5-tests: Moved from ../.
57443         * modules/crypto/hmac-sha1: Moved from ../.
57444         * modules/crypto/hmac-sha1-tests: Moved from ../.
57445         * modules/crypto/md2: Moved from ../.
57446         * modules/crypto/md2-tests: Moved from ../.
57447         * modules/crypto/md4: Moved from ../.
57448         * modules/crypto/md4-tests: Moved from ../.
57449         * modules/crypto/md5: Moved from ../.
57450         * modules/crypto/md5-tests: Moved from ../.
57451         * modules/crypto/memxor: Moved from ../.
57452         * modules/crypto/rijndael: Moved from ../.
57453         * modules/crypto/rijndael-tests: Moved from ../.
57454         * modules/crypto/sha1: Moved from ../.
57455
57456 2007-03-30  James Youngman  <jay@gnu.org>
57457
57458         * tests/test-stat-time.c (prepare_test): use chmod() rather than
57459         rename() to change the ctime of a file (because ctime is unaffected
57460         by rename on jfs2 on AIX 5.1).
57461         (main): Start by doing cleanup, in case a previous run failed leaving
57462         test files behind.
57463
57464 2007-03-31  Bruno Haible  <bruno@clisp.org>
57465
57466         Support old proprietary implementations of iconv.
57467         * modules/iconv_open: New file.
57468         * lib/iconv_.h: New file.
57469         * m4/iconv_h.m4: New file.
57470         * lib/iconv_open.c: New file.
57471         * lib/iconv_open-aix.gperf: New file.
57472         * lib/iconv_open-hpux.gperf: New file.
57473         * lib/iconv_open-irix.gperf: New file.
57474         * lib/iconv_open-osf.gperf: New file.
57475         * m4/iconv_open.m4: New file.
57476         * modules/linebreak (Depends-on): Add iconv_open.
57477         * modules/striconv (Depends-on): Likewise.
57478         * modules/striconveh (Depends-on): Likewise.
57479         * modules/unicodeio (Depends-on): Likewise.
57480         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57481         (iconv_t)(-1).
57482         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57483         conversion if cd is (iconv_t)(-1).
57484         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57485         is not possible.
57486
57487 2007-03-31  Bruno Haible  <bruno@clisp.org>
57488
57489         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57490         work on Solaris either. Protect also second use of "autodetect_jp".
57491
57492 2007-03-31  Bruno Haible  <bruno@clisp.org>
57493
57494         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57495         the function is not present.
57496
57497 2007-03-31  Bruno Haible  <bruno@clisp.org>
57498
57499         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57500         the function is not present.
57501
57502 2007-03-31  Bruno Haible  <bruno@clisp.org>
57503
57504         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57505         a bug in HP-UX iconv_open().
57506
57507 2007-03-31  Bruno Haible  <bruno@clisp.org>
57508
57509         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57510         (Mathematics <math.h>): New section, add fpieee.
57511         (Input/output <stdio.h>): Add fseterr.
57512         (Mathematics <math.h>): New section, add printf-frexp.
57513         (Container data structures): Add sublist.
57514         (Core language properties): Add fpucw, inline.
57515         (Functions for greatest-width integer types <inttypes.h>): Add
57516         imaxabs, imaxdiv, inttypes.
57517         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57518         isnanl-nolibm, ldexp.
57519         (Mathematics <math.h>): New section, add printf-frexpl.
57520         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57521         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57522         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57523         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57524         (Unicode string functions): Add unistr/u*-mbtoucr.
57525         (Java): Add javacomp-script, javaexec-script.
57526         (C#): Add csharpcomp-script, csharpexec-script.
57527         (Support for building libraries and executables): Add havelib,
57528         relocatable-*.
57529         (Support for maintaining and releasing projects): Renamed from
57530         'Support for maintaining and release projects'. Add announce-gen.
57531
57532 2007-03-31  Bruno Haible  <bruno@clisp.org>
57533
57534         * README: Talk primarily about git.
57535         (git and CVS): Renamed from CVS.
57536         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57537         gnulib is available through git.
57538         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57539
57540 2007-03-30  Bruno Haible  <bruno@clisp.org>
57541
57542         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57543         * lib/poll_.h: Likewise.
57544         * lib/stat_.h: Likewise.
57545         * lib/sys_time_.h: Likewise.
57546         * lib/sysexit_.h: Likewise.
57547         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57548         * lib/stdbool_.h: Likewise.
57549         * lib/byteswap_.h: Add double-inclusion guard.
57550
57551 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57552
57553         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57554
57555 2007-03-30  Karl Berry  <karl@gnu.org>
57556
57557         * config/srclist-update: double space after USA in the license
57558         substitution, since that's how it's usually (?) written.
57559
57560 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57561
57562         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57563         reported by Bruno Haible.
57564
57565 2007-03-29  Bruno Haible  <bruno@clisp.org>
57566
57567         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57568         a bug in AIX iconv().
57569
57570 2007-03-29  Bruno Haible  <bruno@clisp.org>
57571
57572         * modules/ldexpl-tests: New file.
57573         * tests/test-ldexpl.c: New file.
57574
57575 2007-03-29  Bruno Haible  <bruno@clisp.org>
57576
57577         * lib/ldexpl.c: Include fpucw.h.
57578         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57579         multiplication.
57580         * modules/ldexpl (Depends-on): Add fpucw.
57581
57582 2007-03-29  Bruno Haible  <bruno@clisp.org>
57583
57584         * modules/ldexpl: New file.
57585         * m4/ldexpl.m4: New file.
57586         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57587         set.
57588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57589         REPLACE_LDEXPL.
57590         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57591         REPLACE_LDEXPL.
57592         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57593         gl_FUNC_LDEXPL_WORKS.
57594         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57595         * modules/mathl (Files): Remove lib/ldexpl.c.
57596         (Depends-on): Add ldexpl.
57597
57598 2007-03-29  Bruno Haible  <bruno@clisp.org>
57599
57600         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57601
57602 2007-03-29  Bruno Haible  <bruno@clisp.org>
57603
57604         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57605         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57606         and possibly also HP-UX.
57607         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57608         work on AIX, IRIX, HP-UX, OSF/1.
57609         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57610         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57611         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57612         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57613         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57614         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57615
57616 2007-03-29  Bruno Haible  <bruno@clisp.org>
57617
57618         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57619
57620 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57621
57622         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57623         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57624
57625 2007-03-29  Eric Blake  <ebb9@byu.net>
57626
57627         * lib/acl-internal.h: Remove redundant include.
57628         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57629         Cygwin when a file is locked.
57630
57631 2007-03-29  Bruno Haible  <bruno@clisp.org>
57632
57633         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57634         file.
57635         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57636
57637 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57638
57639         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57640         try to remove a parent directory if the child couldn't be removed
57641         (except for the first rmdir, which could fail because the child
57642         doesn't exist).  Problem reported by Jeff Blaine in
57643         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57644
57645 2007-03-28  Bruno Haible  <bruno@clisp.org>
57646
57647         * lib/striconveh.c (utf8conv_carefully): New function.
57648         (mem_cd_iconveh_internal): Invoke it.
57649
57650 2007-03-28  Bruno Haible  <bruno@clisp.org>
57651
57652         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57653         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57654         input.
57655         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57656         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57657         unistr/u8-uctomb.
57658
57659 2007-03-28  Bruno Haible  <bruno@clisp.org>
57660
57661         * modules/unistr/u8-mbtoucr: New file.
57662         * lib/unistr/u8-mbtoucr.c: New file.
57663         * modules/unistr/u16-mbtoucr: New file.
57664         * lib/unistr/u16-mbtoucr.c: New file.
57665         * modules/unistr/u16-mbtoucr: New file.
57666         * lib/unistr/u16-mbtoucr.c: New file.
57667         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57668
57669 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57670             Bruno Haible  <bruno@clisp.org>
57671
57672         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57673         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57674         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57675
57676         * m4/stdio_h.m4: Add stubs for vasprintf too.
57677
57678         * modules/stdio: Support vasprintf in sed command.
57679
57680         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57681         vasprintf.h.  Add stdio module indicator.
57682
57683         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57684         vasprintf.h.
57685
57686         * lib/vasprintf.h: File removed.
57687
57688         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57689         * lib/vasprintf.c: Ditto.
57690         * lib/xvasprintf.c: Ditto.
57691         * tests/test-vasprintf-posix.c: Ditto.
57692         * tests/test-vasprintf.c: Ditto.
57693
57694 2007-03-27  Bruno Haible  <bruno@clisp.org>
57695
57696         Make vasnprintf multithread-safe.
57697         * lib/vasnprintf.c (decimal_point_char): New function.
57698         (VASNPRINTF): Use it.
57699         Suggested by Simon Josefsson.
57700
57701 2007-03-27  Eric Blake  <ebb9@byu.net>
57702
57703         Support sub-second birthtime on cygwin.
57704         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57705         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57706         (get_stat_birthtime): Also work with st_birthtim.
57707
57708 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57709
57710         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57711         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57712         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57713         (get_stat_birthtime_ns): Simplify compile-time tests.
57714         (get_stat_birthtime): Change the API to look like
57715         get_stat_mtime etc., except return a negative tv_nsec on error.
57716         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57717         Don't check for "spare" fields.
57718         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57719         or for struct stat.st_birthtime, as these tests aren't used.
57720         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57721
57722 2007-03-27  Bruno Haible  <bruno@clisp.org>
57723
57724         * lib/stat-time.h: Include <sys/stat.h>.
57725
57726 2007-03-27  James Youngman  <jay@gnu.org>
57727
57728         * lib/stat-time.h (get_stat_birthtime): New function for
57729           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57730         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57731           and its variants.
57732         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57733         * modules/stat-time-test: New file.
57734         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57735
57736 2007-03-26  Bruno Haible  <bruno@clisp.org>
57737
57738         Better support of signalling NaNs.
57739         * lib/atanl.c: Include isnanl.h.
57740         (atanl): Perform test for NaN at the beginning of the function and
57741         through a call to isnanl.
57742         * lib/cosl.c: Include isnanl.h.
57743         (cosl): Perform test for NaN at the beginning of the function and
57744         through a call to isnanl.
57745         * lib/ldexpl.c: Include isnanl.h.
57746         (ldexpl): Perform test for NaN through a call to isnanl.
57747         * lib/logl.c: Include isnanl.h.
57748         (logl): Perform test for NaN at the beginning of the function and
57749         through a call to isnanl.
57750         * lib/sinl.c: Include isnanl.h.
57751         (sinl): Perform test for NaN at the beginning of the function and
57752         through a call to isnanl.
57753         * lib/sqrtl.c: Include isnanl.h.
57754         (sqrtl): Perform test for NaN at the beginning of the function and
57755         through a call to isnanl.
57756         * lib/tanl.c: Include isnanl.h.
57757         (tanl): Perform test for NaN at the beginning of the function and
57758         through a call to isnanl.
57759         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57760         * modules/mathl (Depends-on): Add isnanl.
57761
57762 2007-03-26  Eric Blake  <ebb9@byu.net>
57763
57764         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57765         regression in logic sense of previous patch.
57766
57767 2007-03-26  Bruno Haible  <bruno@clisp.org>
57768
57769         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57770         unportable shell command "if ! ...".
57771         Reported by Ralf Wildenhues.
57772
57773 2007-03-25  Bruno Haible  <bruno@clisp.org>
57774
57775         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57776         <sysexits.h> file, and only add EX_CONFIG.
57777         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57778         absolute file name and whether it is sufficient. Substitute also
57779         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57780         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57781         ABSOLUTE_SYSEXITS_H into sysexits.h.
57782
57783 2007-03-25  Bruno Haible  <bruno@clisp.org>
57784
57785         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57786         hints is NULL.
57787
57788 2007-03-25  Bruno Haible  <bruno@clisp.org>
57789
57790         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57791         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57792
57793 2007-03-25  Bruno Haible  <bruno@clisp.org>
57794
57795         * lib/vasnprintf.c: Include langinfo.h.
57796         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57797         multithread-safe.
57798         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57800         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57801         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57802         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57803         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57804         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57805         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57806         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57807         Reported by Simon Josefsson.
57808
57809 2007-03-25  Bruno Haible  <bruno@clisp.org>
57810
57811         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57812         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57813         * modules/vasnprintf (Depends-on): Add stdint.
57814
57815 2007-03-25  Bruno Haible  <bruno@clisp.org>
57816
57817         * modules/fpieee: New file.
57818         * m4/fpieee.m4: New file.
57819         * modules/isnan-nolibm (Depends-on): Add fpieee.
57820         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57821         * modules/isnanl (Depends-on): Add fpieee.
57822
57823 2007-03-25  Bruno Haible  <bruno@clisp.org>
57824
57825         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57826
57827 2007-03-25  Bruno Haible  <bruno@clisp.org>
57828
57829         Avoid test failures on IRIX 6.5.
57830         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57831         (main): Use it.
57832         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57833         macros.
57834         (main): Use them.
57835
57836 2007-03-25  Bruno Haible  <bruno@clisp.org>
57837
57838         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57839         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57840         exists but doesn't work.
57841         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57842         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57844         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57845         math.h.
57846
57847 2007-03-25  Bruno Haible  <bruno@clisp.org>
57848
57849         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57850         returns inf. Needed on IRIX 6.5.
57851
57852 2007-03-25  Bruno Haible  <bruno@clisp.org>
57853
57854         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57855         (main): Use isnanl instead of x != x idiom.
57856         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57857
57858         * tests/test-frexp.c: Include isnan.h.
57859         (main): Use isnan instead of x != x idiom.
57860         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57861
57862 2007-03-25  Bruno Haible  <bruno@clisp.org>
57863
57864         * tests/test-frexp.c (NaN): New function/macro.
57865         (main): Use it instead of 0.0 / 0.0.
57866         * tests/test-isnan.c (NaN): New function/macro.
57867         (main): Use it instead of 0.0 / 0.0.
57868         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57869         (test_function): Use it instead of 0.0 / 0.0.
57870         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57871         (test_function): Use it instead of 0.0 / 0.0.
57872         * tests/test-snprintf-posix.h (NaN): New function/macro.
57873         (test_function): Use it instead of 0.0 / 0.0.
57874         * tests/test-sprintf-posix.h (NaN): New function/macro.
57875         (test_function): Use it instead of 0.0 / 0.0.
57876         * tests/test-fprintf-posix.h (NaN): New function/macro.
57877         (test_function): Use it instead of 0.0 / 0.0.
57878         * tests/test-printf-posix.h (NaN): New function/macro.
57879         (test_function): Use it instead of 0.0 / 0.0.
57880
57881         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57882
57883 2007-03-25  Bruno Haible  <bruno@clisp.org>
57884
57885         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57886
57887 2007-03-25  Bruno Haible  <bruno@clisp.org>
57888
57889         * lib/regexec.c (merge_state_with_log): Make static.
57890
57891 2007-03-25  Bruno Haible  <bruno@clisp.org>
57892
57893         * lib/trigl.c (kernel_rem_pio2): Make static.
57894
57895 2007-03-25  Bruno Haible  <bruno@clisp.org>
57896
57897         * lib/sincosl.c (sincosl_table): Make static.
57898
57899 2007-03-25  Bruno Haible  <bruno@clisp.org>
57900
57901         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57902         if the compiler does not support C99.
57903
57904 2007-03-25  Bruno Haible  <bruno@clisp.org>
57905
57906         * modules/time (Makefile.am): Ensure all rule action lines start with a
57907         tab.
57908
57909 2007-03-24  Bruno Haible  <bruno@clisp.org>
57910
57911         * modules/tsearch-tests: New file.
57912         * tests/test-tsearch.sh: New file.
57913         * tests/test-tsearch.c: New file, mostly copied from glibc.
57914
57915         * modules/search-tests: New file.
57916         * tests/test-search.c: New file.
57917
57918         * modules/search: New file.
57919         * lib/search_.h: New file, incorporating lib/tsearch.h.
57920         * m4/search_h.m4: New file.
57921         * lib/tsearch.h: Remove file.
57922         * lib/tsearch.c: Include search.h instead of tsearch.h.
57923         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57924         HAVE_TSEARCH.
57925         * modules/tsearch (Files): Remove lib/tsearch.h.
57926         (Depends-on): Add search.
57927         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57928         (Include): Change tsearch.h into search.h.
57929
57930 2007-03-24  Bruno Haible  <bruno@clisp.org>
57931
57932         * modules/fpucw: New file.
57933         * lib/fpucw.h: New file.
57934         * lib/frexp.c: Include fpucw.h.
57935         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57936         (FUNC): Use them.
57937         * lib/printf-frexp.c: Include fpucw.h.
57938         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57939         (FUNC): Use them.
57940         * lib/vasnprintf.c: Include fpucw.h.
57941         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57942         'long double' calculations.
57943         * tests/test-frexpl.c: Include fpucw.h.
57944         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57945         * tests/test-printf-frexpl.c: Include fpucw.h.
57946         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57947         * modules/frexpl (Depends-on): Add fpucw.
57948         * modules/printf-frexpl (Depends-on): Likewise.
57949         * modules/fprintf-posix (Depends-on): Likewise.
57950         * modules/snprintf-posix (Depends-on): Likewise.
57951         * modules/sprintf-posix (Depends-on): Likewise.
57952         * modules/vasnprintf-posix (Depends-on): Likewise.
57953         * modules/vasprintf-posix (Depends-on): Likewise.
57954         * modules/vfprintf-posix (Depends-on): Likewise.
57955         * modules/vsnprintf-posix (Depends-on): Likewise.
57956         * modules/vsprintf-posix (Depends-on): Likewise.
57957         * modules/frexpl-tests (Depends-on): Likewise.
57958         * modules/printf-frexpl-tests (Depends-on): Likewise.
57959
57960 2007-03-24  Bruno Haible  <bruno@clisp.org>
57961
57962         * lib/float+.h: New file.
57963         * lib/isnan.c: Include float+.h.
57964         (SIZE): New macro.
57965         (FUNC): Compare only SIZE bytes of the value.
57966         * lib/vasnprintf.c: Include float+.h.
57967         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57968         SIZEOF_LDBL or SIZEOF_DBL bytes.
57969         * modules/isnan-nolibm (Files): Add lib/float+.h.
57970         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57971         * modules/isnanl (Files): Add lib/float+.h.
57972         * modules/vasnprintf (Files): Add lib/float+.h.
57973
57974 2007-03-24  Bruno Haible  <bruno@clisp.org>
57975
57976         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57977         include isnanl-nolibm.h.
57978
57979 2007-03-24  Bruno Haible  <bruno@clisp.org>
57980
57981         * tests/test-read-file.c (main): Don't produce spurious output for
57982         expected situations. Make the test fail if it encountered unexpected
57983         results.
57984
57985 2007-03-24  Bruno Haible  <bruno@clisp.org>
57986
57987         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57988         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57989
57990 2007-03-24  Bruno Haible  <bruno@clisp.org>
57991
57992         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57993
57994 2007-03-24  Bruno Haible  <bruno@clisp.org>
57995
57996         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57997         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57998
57999         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
58000         * modules/utf8-ucs4: Turn into a symbolic link to module
58001         unistr/u8-mbtouc.
58002
58003         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
58004         utf8-ucs4-unsafe.
58005         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
58006         unistr/u8-mbtouc-unsafe.
58007
58008         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
58009         * modules/utf16-ucs4: Turn into a symbolic link to module
58010         unistr/u16-mbtouc.
58011
58012         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
58013         utf16-ucs4-unsafe.
58014         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
58015         unistr/u16-mbtouc-unsafe.
58016
58017         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
58018         * modules/ucs4-utf8: Turn into a symbolic link to module
58019         unistr/u8-ubtomb.
58020
58021         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
58022         * modules/ucs4-utf16: Turn into a symbolic link to module
58023         unistr/u16-ubtomb.
58024
58025 2007-03-24  Bruno Haible  <bruno@clisp.org>
58026
58027         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
58028         Enable the function only if HAVE_INLINE.
58029         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
58030         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58031         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
58032         Enable the function only if HAVE_INLINE.
58033         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
58034         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58035         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
58036         Enable the function only if HAVE_INLINE.
58037         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
58038         Enable the function only if HAVE_INLINE.
58039         * modules/utf8-ucs4: Update.
58040         * modules/utf8-ucs4-unsafe: Update.
58041         * modules/utf16-ucs4: Update.
58042         * modules/utf16-ucs4-unsafe: Update.
58043         * modules/ucs4-utf8: Update.
58044         * modules/ucs4-utf16: Update.
58045
58046 2007-03-24  Bruno Haible  <bruno@clisp.org>
58047
58048         * lib/utf8-ucs4.h: Remove file.
58049         * lib/utf8-ucs4-unsafe.h: Remove file.
58050         * lib/utf16-ucs4.h: Remove file.
58051         * lib/utf16-ucs4-unsafe.h: Remove file.
58052         * lib/ucs4-utf8.h: Remove file.
58053         * lib/ucs4-utf16.h: Remove file.
58054         * lib/unistr.h: Include their previous contents.
58055         * m4/utf-ucs4.m4: Remove file.
58056         * m4/ucs4-utf.m4: Remove file.
58057         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
58058         (Depends-on): Add unistr/base.
58059         (configure.ac): Remove gl_UTF_UCS4.
58060         (Makefile.am): Update.
58061         (Include): Change to unistr.h.
58062         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
58063         (Depends-on): Add unistr/base.
58064         (configure.ac): Remove gl_UTF_UCS4.
58065         (Makefile.am): Update.
58066         (Include): Change to unistr.h.
58067         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
58068         (Depends-on): Add unistr/base.
58069         (configure.ac): Remove gl_UTF_UCS4.
58070         (Makefile.am): Update.
58071         (Include): Change to unistr.h.
58072         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
58073         (Depends-on): Add unistr/base.
58074         (configure.ac): Remove gl_UTF_UCS4.
58075         (Makefile.am): Update.
58076         (Include): Change to unistr.h.
58077         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
58078         (Depends-on): Add unistr/base.
58079         (configure.ac): Remove gl_UCS4_UTF.
58080         (Makefile.am): Update.
58081         (Include): Change to unistr.h.
58082         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
58083         (Depends-on): Add unistr/base.
58084         (configure.ac): Remove gl_UCS4_UTF.
58085         (Makefile.am): Update.
58086         (Include): Change to unistr.h.
58087         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
58088         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
58089         utf8-ucs4-unsafe.h.
58090         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
58091         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
58092         utf16-ucs4-unsafe.h.
58093         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
58094         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
58095         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
58096         * lib/unistr/u8-strchr.c: Likewise.
58097         * lib/unistr/u8-strrchr.c: Likewise.
58098         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
58099         * lib/unistr/u16-strchr.c: Likewise.
58100         * lib/unistr/u16-strrchr.c: Likewise.
58101         * lib/striconveh.c: Update.
58102         * lib/linebreak.c: Update.
58103
58104 2007-03-24  Bruno Haible  <bruno@clisp.org>
58105
58106         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
58107         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
58108
58109 2007-03-22  Bruno Haible  <bruno@clisp.org>
58110
58111         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
58112
58113 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58114
58115         * MODULES.html.sh (File system functions): New module write-any-file.
58116         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
58117         * m4/write-any-file.m4: New files.
58118
58119 2007-03-23  Eric Blake  <ebb9@byu.net>
58120
58121         * gnulib-tool: Rearrange space-tab sequences, since some editors
58122         like to eat them.
58123
58124 2007-03-23  Eric Blake  <ebb9@byu.net>
58125
58126         * lib/version-etc.c (version_etc_va): Update license wording to
58127         be more concise.  Recommended by Richard Stallman.
58128
58129 2007-03-22  Bruno Haible  <bruno@clisp.org>
58130
58131         * lib/poll.c (MSG_PEEK): New fallback definition.
58132
58133 2007-03-22  Bruno Haible  <bruno@clisp.org>
58134
58135         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
58136         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
58137         (main): Update.
58138         Fixes a compilation error on BeOS.
58139
58140 2007-03-22  Bruno Haible  <bruno@clisp.org>
58141
58142         * modules/frexpl-tests: New file.
58143         * tests/test-frexpl.c: New file.
58144
58145         * modules/frexpl: New file.
58146         * m4/frexpl.m4: New file.
58147         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
58148         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
58149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
58150         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
58151         (Depends-on): Add frexpl. Remove isnanl-nolibm.
58152         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
58153
58154 2007-03-22  Bruno Haible  <bruno@clisp.org>
58155
58156         * lib/frexpl.c: Share code with lib/frexp.c.
58157         * modules/mathl (Files): Add lib/frexp.c.
58158         (Depends-on): Add isnanl-nolibm.
58159
58160 2007-03-22  Bruno Haible  <bruno@clisp.org>
58161
58162         * modules/printf-frexp (Files): Add m4/frexp.m4.
58163         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
58164         only if the found frexp function actually works.
58165
58166 2007-03-22  Bruno Haible  <bruno@clisp.org>
58167
58168         * lib/frexp.c: Remove older implementation that uses divisions.
58169
58170 2007-03-21  Bruno Haible  <bruno@clisp.org>
58171
58172         * modules/frexp-tests: New file.
58173         * tests/test-frexp.c: New file.
58174
58175         * modules/frexp: New file.
58176         * lib/frexp.c: New file.
58177         * m4/frexp.m4: New file.
58178         * lib/math_.h (frexp): New declaration.
58179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
58180         REPLACE_FREXP.
58181         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
58182
58183 2007-03-21  Bruno Haible  <bruno@clisp.org>
58184
58185         * modules/isnanl-tests: New file.
58186         * tests/test-isnanl.c: New file.
58187
58188         * modules/isnanl: New file.
58189         * lib/isnanl.h: New file.
58190         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
58191         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
58192         gl_FUNC_ISNANL_WORKS.
58193         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
58194         New macros.
58195
58196 2007-03-21  Bruno Haible  <bruno@clisp.org>
58197
58198         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
58199         lib/isnanl.h.
58200         (Include): Update.
58201         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
58202         * lib/vasnprintf.c: Update.
58203         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
58204         tests/test-isnanl.h, remove tests/test-isnanl.c.
58205         (Makefile.am): Update.
58206         * tests/test-isnanl-nolibm.c: New file.
58207         * tests/test-isnanl.h: New file.
58208         * tests/test-isnanl.c: Remove file.
58209
58210 2007-03-21  Jim Meyering  <jim@meyering.net>
58211
58212         When trying to open ".", treat ESTALE like EACCES.
58213         * lib/savewd.c (savewd_save): Resort to forking not just upon
58214         failure with EACCES, but also when errno is ESTALE.
58215
58216 2007-03-20  Bruno Haible  <bruno@clisp.org>
58217
58218         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
58219         Needed on AIX 5.1. Reported by Matthew Woehlke.
58220
58221 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58222
58223         Suggestions by Bruno Haible:
58224         * lib/acl-internal.h: Include "gettext.h" rather than rolling
58225         our own.
58226         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
58227         * modules/acl (Depends-on): Add gettext.
58228
58229 2007-03-19  Bruno Haible  <bruno@clisp.org>
58230
58231         * modules/iconvme: Remove file.
58232         * lib/iconvme.h: Remove file.
58233         * lib/iconvme.c: Remove file.
58234         * m4/iconvme.m4: Remove file.
58235
58236 2007-03-19  Bruno Haible  <bruno@clisp.org>
58237
58238         * doc/relocatable-maint.texi: Break long shell script line.
58239         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58240
58241 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58242
58243         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
58244         handle file_has_acl.
58245         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
58246         * lib/acl.c: Move header inclusions and related macro defns into
58247         lib/acl-internal.h.
58248         (S_ISLNK): Remove defn, since that's now done for us.
58249         (file_has_acl): Move to lib/file-has-acl.c.
58250         Call acl_trivial if available.  This is the crucial part of the fix.
58251         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
58252         shared within the library.  Rewrite a bit, partly to make it compatible
58253         with the GNU coding style.
58254         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58255         Remove unnecessary double-quotes.
58256         Don't test for acl_to_text; the build will catch that.
58257         Replace acl_entries if it doesn't exist and it is needed.
58258         Check for -lsec and acl_trivial (as used on Solaris 10).
58259         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58260         lib/file-has-acl.c.
58261         (Depends-on): Add sys_stat, for S_ISLNK.
58262
58263 2007-03-19  Ben Pfaff  <blp@gnu.org>
58264
58265         * doc/gnulib.texi: Fix typos.
58266         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58267
58268 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58269
58270         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58271         If size is zero here, buf must be zero.
58272
58273 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58274
58275         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58276         <bruno@clisp.org>.
58277
58278 2007-03-18  Bruno Haible  <bruno@clisp.org>
58279
58280         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58281         Suggested by Eric Blake.
58282
58283 2007-03-18  Ben Pfaff  <blp@gnu.org>
58284
58285         * doc/relocatable.texi: Recommend using as prefix a directory
58286         that does not exist and will never be created.  Based on
58287         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58288         and others.
58289
58290 2007-03-17  Bruno Haible  <bruno@clisp.org>
58291
58292         * lib/fchownat.c: Include lchown.h.
58293
58294 2007-03-17  Bruno Haible  <bruno@clisp.org>
58295
58296         Fix endless loop when the given allocated size was > INT_MAX.
58297         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58298         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58299         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58300         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58301         * lib/sprintf.c (sprintf): Likewise.
58302
58303 2007-03-17  Bruno Haible  <bruno@clisp.org>
58304
58305         * tests/test-argp-2.sh (func_compare): Output a context diff.
58306
58307 2007-03-17  Bruno Haible  <bruno@clisp.org>
58308
58309         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58310         locale's decimal-point character.
58311
58312 2007-03-17  Bruno Haible  <bruno@clisp.org>
58313
58314         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58315         before comparing it. Needed because on some platforms (e.g. x86) a
58316         'long double' occupies less bytes than sizeof (long double).
58317
58318 2007-03-17  Bruno Haible  <bruno@clisp.org>
58319
58320         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58321         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58322         * tests/test-getaddrinfo.c (simple): Likewise.
58323         * tests/test-read-file.c (main): Likewise.
58324
58325 2007-03-17  Bruno Haible  <bruno@clisp.org>
58326
58327         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58328
58329 2007-03-17  Bruno Haible  <bruno@clisp.org>
58330
58331         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58332         unused variable.
58333
58334 2007-03-17  Bruno Haible  <bruno@clisp.org>
58335
58336         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58337         * tests/test-c-strncasecmp.c: Likewise.
58338
58339 2007-03-17  Bruno Haible  <bruno@clisp.org>
58340
58341         * modules/stdlib (Depends-on): Add unistd.
58342         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58343         Needed for MacOS X 10.3.
58344
58345 2007-03-17  Bruno Haible  <bruno@clisp.org>
58346
58347         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58348
58349 2007-03-17  Bruno Haible  <bruno@clisp.org>
58350
58351         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58352
58353 2007-03-17  Bruno Haible  <bruno@clisp.org>
58354
58355         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58356         to reflect files copied from gnulib (with or without modifications).
58357         Suggested by Jim Meyering.
58358
58359 2007-03-17  Eric Blake  <ebb9@byu.net>
58360
58361         * NEWS: Document stdlib change from 2007-02-18.
58362
58363 2007-03-17  Jim Meyering  <jim@meyering.net>
58364
58365         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58366         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58367         someone uses a name containing shell meta-characters.
58368         Reported by Alfred M. Szmidt.
58369
58370         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58371
58372 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58373
58374         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58375         and copy gettext configuration files only if configure.ac contains
58376         a use of AM_GNU_GETTEXT_VERSION.
58377
58378 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58379
58380         * build-aux/bootstrap (gnulib_name): New variable.
58381         (gnulib_tool_options): Use it.
58382
58383 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58384
58385         * tests/test-des.c: Use new namespace.
58386
58387 2007-03-15  Bruno Haible  <bruno@clisp.org>
58388
58389         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58390         Reported by James Youngman <jay@gnu.org>.
58391
58392 2007-03-15  Bruno Haible  <bruno@clisp.org>
58393
58394         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58395         declared prototype. Needed with cc on OSF/1 5.1.
58396
58397 2007-03-15  Bruno Haible  <bruno@clisp.org>
58398
58399         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
58400         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
58401         (struct gl_list_implementation): Add dispose_fn argument to the
58402         'create_empty', 'create' methods.
58403         (struct gl_list_impl_base): Add field 'dispose_fn'.
58404         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
58405         argument.
58406         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
58407         dispose_fn argument.
58408         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
58409         dispose_fn on the dropped values.
58410         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
58411         dispose_fn argument.
58412         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
58413         dropped values.
58414         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
58415         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58416         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
58417         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58418         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
58419         argument.
58420         (gl_tree_list_free): Call dispose_fn on the dropped values.
58421         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
58422         the dropped values.
58423         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58424         Add dispose_fn argument.
58425         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
58426         Call dispose_fn on the dropped values.
58427         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
58428         Add dispose_fn argument.
58429         (gl_sublist_create): Initialize the 'dispose_fn' field.
58430         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
58431         * tests/test-array_list.c (main): Update.
58432         * tests/test-carray_list.c (main): Update.
58433         * tests/test-avltree_list.c (main): Update.
58434         * tests/test-rbtree_list.c (main): Update.
58435         * tests/test-avltreehash_list.c (main): Update.
58436         * tests/test-rbtreehash_list.c (main): Update.
58437         * tests/test-linked_list.c (main): Update.
58438         * tests/test-linkedhash_list.c (main): Update.
58439         * tests/test-array_oset.c (main): Update.
58440
58441 2007-03-15  Bruno Haible  <bruno@clisp.org>
58442
58443         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
58444         (gl_oset_create_empty): Add dispose_fn argument.
58445         (struct gl_oset_implementation): Add dispose_fn argument to
58446         'create_empty' method.
58447         (struct gl_oset_impl_base): Add dispose_fn field.
58448         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
58449         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
58450         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
58451         values.
58452         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
58453         (gl_tree_oset_free): Call dispose_fn on the dropped values.
58454         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58455         dropped value.
58456         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58457         dropped value.
58458         * tests/test-array_oset.c (main): Update.
58459         * tests/test-avltree_oset.c (main): Update.
58460         * tests/test-rbtree_oset.c (main): Update.
58461         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
58462
58463 2007-03-13  Bruno Haible  <bruno@clisp.org>
58464
58465         * tests/test-stdbool.c (i): Update after last patch.
58466
58467 2007-03-12  Bruno Haible  <bruno@clisp.org>
58468
58469         * lib/quotearg.c: Include <wctype.h> early, before the definition of
58470         the iswprint macro. Needed on Solaris 2.5.1.
58471
58472 2007-03-12  Bruno Haible  <bruno@clisp.org>
58473
58474         * tests/test-printf-frexp.c (main): Declare x as volatile.
58475
58476 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58477
58478         * doc/gnulib.texi (Build robot for gnulib): New section.
58479
58480 2007-03-12  Jim Meyering  <jim@meyering.net>
58481
58482         * build-aux/bootstrap: New file.
58483         * build-aux/bootstrap.conf: New file, from coreutils.
58484
58485 2007-03-11  Bruno Haible  <bruno@clisp.org>
58486
58487         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58488
58489 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58490
58491         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58492         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58493         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58494
58495 2007-03-11  Bruno Haible  <bruno@clisp.org>
58496
58497         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58498         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58499
58500 2007-03-11  Bruno Haible  <bruno@clisp.org>
58501
58502         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58503         formula. Needed for SunPRO C 5.0.
58504
58505 2007-03-11  Bruno Haible  <bruno@clisp.org>
58506
58507         * modules/long-options (Depends-on): Add getopt.
58508
58509 2007-03-11  Bruno Haible  <bruno@clisp.org>
58510
58511         * modules/modechange (Depends-on): Add stdbool.
58512
58513 2007-03-11  Bruno Haible  <bruno@clisp.org>
58514
58515         * modules/i-ring (Depends-on): Add stdbool.
58516
58517 2007-03-11  Bruno Haible  <bruno@clisp.org>
58518
58519         * modules/gc-des (Depends-on): Add stdbool.
58520
58521 2007-03-11  Bruno Haible  <bruno@clisp.org>
58522
58523         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58524
58525 2007-03-11  Bruno Haible  <bruno@clisp.org>
58526
58527         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58528
58529 2007-03-11  Bruno Haible  <bruno@clisp.org>
58530
58531         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58532
58533 2007-03-11  Bruno Haible  <bruno@clisp.org>
58534
58535         * lib/vasnprintf.c (sprintf): Undefine.
58536
58537 2007-03-11  Bruno Haible  <bruno@clisp.org>
58538
58539         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58540         initializers in SunPRO C and Compaq C compilers.
58541
58542 2007-03-11  Bruno Haible  <bruno@clisp.org>
58543
58544         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58545         decrementing code ANSI C compliant.
58546
58547 2007-03-11  Bruno Haible  <bruno@clisp.org>
58548
58549         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58550         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58551
58552 2007-03-11  Bruno Haible  <bruno@clisp.org>
58553
58554         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58555         <stdbool.h> substitute doesn't pass.
58556
58557 2007-03-11  Bruno Haible  <bruno@clisp.org>
58558
58559         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58560
58561 2007-03-11  Bruno Haible  <bruno@clisp.org>
58562
58563         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58564         script, for submission to autobuild.josefsson.org.
58565
58566 2007-03-10  Bruno Haible  <bruno@clisp.org>
58567
58568         * modules/canonicalize-lgpl-tests: New file.
58569         * tests/test-canonicalize-lgpl.sh: New file.
58570         * tests/test-canonicalize-lgpl.c: New file.
58571
58572         * modules/c-strcase-tests: New file.
58573         * tests/test-c-strcase.sh: New file.
58574         * tests/test-c-strcasecmp.c: New file.
58575         * tests/test-c-strncasecmp.c: New file.
58576
58577         * modules/atexit-tests: New file.
58578         * tests/test-atexit.sh: New file.
58579         * tests/test-atexit.c: New file.
58580
58581 2007-03-10  Bruno Haible  <bruno@clisp.org>
58582
58583         * tests/test-binary-io.sh: Use temporary filenames that are not so
58584         likely to clash with those of other tests (in a parallel make).
58585         * tests/test-binary-io.c: Likewise.
58586
58587 2007-03-10  Bruno Haible  <bruno@clisp.org>
58588
58589         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58590         fallback; use #error instead.
58591         Suggested by Simon Josefsson.
58592
58593 2007-03-10  Bruno Haible  <bruno@clisp.org>
58594
58595         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58596         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58597         first and the last.
58598
58599 2007-03-10  Bruno Haible  <bruno@clisp.org>
58600
58601         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58602
58603 2007-03-10  Bruno Haible  <bruno@clisp.org>
58604
58605         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58606         "make distcheck".
58607         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58608         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58609         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58610
58611 2007-03-10  Bruno Haible  <bruno@clisp.org>
58612
58613         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58614         variable.
58615         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58616         variable.
58617
58618 2007-03-09  Eric Blake  <ebb9@byu.net>
58619         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58620
58621         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58622         types are not being provided by gnulib.
58623         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58624         types are supported.
58625
58626 2007-03-10  Bruno Haible  <bruno@clisp.org>
58627
58628         * lib/stdio_.h (__attribute__): New macro.
58629         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58630         vsprintf): Specify __attribute__ __format__ for GCC.
58631         Suggested by Eric Blake.
58632
58633 2007-03-09  Bruno Haible  <bruno@clisp.org>
58634
58635         * modules/printf-posix-tests: New file.
58636         * tests/test-printf-posix.sh: New file.
58637         * tests/test-printf-posix.c: New file.
58638
58639         * modules/printf-posix: New file.
58640         * lib/printf.c: New file.
58641         * m4/printf-posix-rpl.m4: New file.
58642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58643         REPLACE_PRINTF.
58644         * lib/stdio_.h (printf): New declaration.
58645         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58646         ____strfmon____): New macros.
58647         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58648         REPLACE_PRINTF.
58649
58650 2007-03-09  Bruno Haible  <bruno@clisp.org>
58651
58652         * tests/test-vasnprintf-posix2.sh: New file.
58653         * tests/test-vasnprintf-posix2.c: New file.
58654         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58655         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58656         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58657
58658         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58659         a locale dependent decimal point, rather than always '.'.
58660
58661 2007-03-09  Eric Blake  <ebb9@byu.net>
58662
58663         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58664         spite of platforms like Tandem/NSK that define it to -1.
58665
58666 2007-03-08  Bruno Haible  <bruno@clisp.org>
58667
58668         * modules/vprintf-posix-tests: New file.
58669         * tests/test-vprintf-posix.sh: New file.
58670         * tests/test-vprintf-posix.c: New file.
58671         * tests/test-printf-posix.h: New file.
58672
58673         * modules/vprintf-posix: New file.
58674         * lib/vprintf.c: New file.
58675         * m4/vprintf-posix.m4: New file.
58676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58677         REPLACE_VPRINTF.
58678         * lib/stdio_.h (vprintf): New declaration.
58679         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58680         REPLACE_VPRINTF.
58681
58682 2007-03-08  Bruno Haible  <bruno@clisp.org>
58683
58684         * modules/fprintf-posix-tests: New file.
58685         * tests/test-fprintf-posix.sh: New file.
58686         * tests/test-fprintf-posix.c: New file.
58687
58688         * modules/fprintf-posix: New file.
58689         * lib/fprintf.c: New file.
58690         * m4/fprintf-posix.m4: New file.
58691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58692         REPLACE_FPRINTF.
58693         * lib/stdio_.h (fprintf): New declaration.
58694         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58695         REPLACE_FPRINTF.
58696
58697 2007-03-08  Bruno Haible  <bruno@clisp.org>
58698
58699         * modules/vfprintf-posix-tests: New file.
58700         * tests/test-vfprintf-posix.sh: New file.
58701         * tests/test-vfprintf-posix.c: New file.
58702         * tests/test-fprintf-posix.h: New file.
58703         * tests/test-fprintf-posix.out: New file.
58704
58705         * modules/vfprintf-posix: New file.
58706         * lib/vfprintf.c: New file.
58707         * m4/vfprintf-posix.m4: New file.
58708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58709         REPLACE_VFPRINTF.
58710         * lib/stdio_.h (vfprintf): New declaration.
58711         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58712         REPLACE_VFPRINTF.
58713
58714 2007-03-08  Bruno Haible  <bruno@clisp.org>
58715
58716         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58717
58718 2007-03-08  Bruno Haible  <bruno@clisp.org>
58719
58720         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58721         instead of 'expr' invocations.
58722         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58723         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58724         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58725         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58726         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58727         Suggested by Paul Eggert.
58728
58729 2007-03-08  Bruno Haible  <bruno@clisp.org>
58730
58731         * modules/fseterr-tests: New file.
58732         * tests/test-fseterr.c: New file.
58733
58734         * modules/fseterr: New file.
58735         * lib/fseterr.h: New file.
58736         * lib/fseterr.c: New file.
58737
58738 2007-03-08  Bruno Haible  <bruno@clisp.org>
58739
58740         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58741         * lib/getopt_.h: Likewise.
58742         * lib/mbswidth.h: Likewise.
58743         * lib/setenv.h: Likewise.
58744         * lib/vasnprintf.h: Likewise.
58745         * lib/vasprintf.h: Likewise.
58746         * lib/verror.h: Likewise.
58747         * lib/xsetenv.h: Likewise.
58748         * lib/xvasprintf.h: Likewise.
58749
58750 2007-03-08  Jim Meyering  <jim@meyering.net>
58751
58752         * users.txt: Add parted.
58753
58754         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58755
58756 2007-03-07  Bruno Haible  <bruno@clisp.org>
58757
58758         * m4/printf.m4: Make the shell script snippets copy&pastable.
58759
58760 2007-03-02  Bruno Haible  <bruno@clisp.org>
58761
58762         * lib/netinet_in_.h: New file.
58763         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58764         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58765         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58766         (Depends-on): Add absolute-header.
58767         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58768         into netinet/in.h.
58769
58770 2007-03-03  Bruno Haible  <bruno@clisp.org>
58771
58772         * lib/sys_select_.h: New file.
58773         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58774         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58775         * modules/sys_select (Files): Add lib/sys_select_.h.
58776         (Depends-on): Add absolute-header.
58777         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58778         into sys/select.h.
58779
58780 2007-03-02  Bruno Haible  <bruno@clisp.org>
58781
58782         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58783         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58784         values.
58785         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58786         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58787         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58788         * modules/sys_socket (Depends-on): Add absolute-header.
58789         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58790         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58791         (Include): Remove requirement of inclusion of <sys/types.h>.
58792
58793 2007-03-02  Bruno Haible  <bruno@clisp.org>
58794
58795         * lib/byteswap_.h (bswap_32): Fix formula.
58796
58797 2007-03-06  Bruno Haible  <bruno@clisp.org>
58798
58799         * modules/sprintf-posix-tests: New file.
58800         * tests/test-sprintf-posix.c: New file.
58801
58802         * modules/sprintf-posix: New file.
58803         * lib/sprintf.c: New file.
58804         * m4/sprintf-posix.m4: New file.
58805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58806         REPLACE_SPRINTF.
58807         * lib/stdio_.h (sprintf): New declaration.
58808         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58809         REPLACE_SPRINTF.
58810
58811 2007-03-06  Bruno Haible  <bruno@clisp.org>
58812
58813         * modules/vsprintf-posix-tests: New file.
58814         * tests/test-vsprintf-posix.c: New file.
58815         * tests/test-sprintf-posix.h: New file.
58816
58817         * modules/vsprintf-posix: New file.
58818         * lib/vsprintf.c: New file.
58819         * m4/vsprintf-posix.m4: New file.
58820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58821         REPLACE_VSPRINTF.
58822         * lib/stdio_.h (vsprintf): New declaration.
58823         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58824         REPLACE_VSPRINTF.
58825
58826 2007-03-06  Bruno Haible  <bruno@clisp.org>
58827
58828         * modules/vsnprintf (Depend-on): Remove minmax.
58829
58830 2007-03-06  Bruno Haible  <bruno@clisp.org>
58831
58832         * modules/snprintf-posix-tests: New file.
58833         * tests/test-snprintf-posix.c: New file.
58834
58835         * modules/snprintf-posix: New file.
58836         * m4/snprintf-posix.m4: New file.
58837         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58838         gl_FUNC_SNPRINTF.
58839         (gl_FUNC_SNPRINTF): Invoke it.
58840         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58841         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58842         is set.
58843         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58844
58845 2007-03-06  Bruno Haible  <bruno@clisp.org>
58846
58847         * modules/vsnprintf-posix-tests: New file.
58848         * tests/test-vsnprintf-posix.c: New file.
58849         * tests/test-snprintf-posix.h: New file.
58850
58851         * modules/vsnprintf-posix: New file.
58852         * m4/vsnprintf-posix.m4: New file.
58853         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58854         gl_FUNC_VSNPRINTF.
58855         (gl_FUNC_VSNPRINTF): Invoke it.
58856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58857         * lib/stdio_.h (vsnprintf): Define as a replacement if
58858         REPLACE_VSNPRINTF is set.
58859         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58860
58861 2007-03-06  Bruno Haible  <bruno@clisp.org>
58862
58863         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58864         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58865
58866 2007-03-06  Bruno Haible  <bruno@clisp.org>
58867
58868         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58869         (asinl): Declare also if HAVE_DECL_ASINL is set.
58870         (atanl): Declare also if HAVE_DECL_ATANL is set.
58871         (ceill): Declare also if HAVE_DECL_CEILL is set.
58872         (cosl): Declare also if HAVE_DECL_COSL is set.
58873         (expl): Declare also if HAVE_DECL_EXPL is set.
58874         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58875         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58876         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58877         (logl): Declare also if HAVE_DECL_LOGL is set.
58878         (sinl): Declare also if HAVE_DECL_SINL is set.
58879         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58880         (tanl): Declare also if HAVE_DECL_TANL is set.
58881         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58883         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58884         declaration of frexpl, ldexpl.
58885         * modules/printf-frexpl (Depends-on): Add math.
58886         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58887
58888 2007-03-05  Bruno Haible  <bruno@clisp.org>
58889
58890         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58891         frexpl and ldexpl are declared.
58892         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58893
58894 2007-03-05  Bruno Haible  <bruno@clisp.org>
58895
58896         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58897         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58898
58899 2007-03-05  Bruno Haible  <bruno@clisp.org>
58900
58901         * lib/stdio_.h: Include <stddef.h>.
58902
58903 2007-03-05  Bruno Haible  <bruno@clisp.org>
58904
58905         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58906
58907 2007-03-05  Bruno Haible  <bruno@clisp.org>
58908
58909         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58910         NetBSD 4, from Ralf Wildenhues.
58911
58912 2007-03-04  Bruno Haible  <bruno@clisp.org>
58913
58914         * lib/vasprintf.h: Update #if logic for the case when the functions
58915         exist but are overridden.
58916
58917 2007-03-04  Bruno Haible  <bruno@clisp.org>
58918
58919         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58920         implementations: glibc-2.4 and MacOS X 10.3.
58921         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58922         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58923         * tests/test-vasprintf-posix.c (test_function): Likewise.
58924
58925 2007-03-04  Bruno Haible  <bruno@clisp.org>
58926
58927         * modules/vasprintf-posix-tests: New file.
58928         * tests/test-vasprintf-posix.c: New file.
58929
58930         * modules/vasprintf-posix: New file.
58931         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58932         defined.
58933         * m4/vasprintf-posix.m4: New file.
58934         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58935         gl_FUNC_VASPRINTF.
58936         (gl_FUNC_VASPRINTF): Invoke it.
58937         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58938         here.
58939         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58940
58941 2007-03-04  Bruno Haible  <bruno@clisp.org>
58942
58943         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58944         REPLACE_GETTIMEOFDAY.
58945         * modules/sys_time (Makefile.am): Likewise.
58946         * m4/sys_time_h.m4: Likewise.
58947         * m4/gettimeofday.m4: Likewise.
58948
58949 2007-03-04  Bruno Haible  <bruno@clisp.org>
58950
58951         * modules/vasnprintf-posix-tests: New file.
58952         * tests/test-vasnprintf-posix.c: New file.
58953
58954         * modules/vasnprintf-posix: New file.
58955         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58956         printf-frexpl.h.
58957         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58958         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58959         REPLACE_VASNPRINTF is defined.
58960         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58961         gl_FUNC_VASNPRINTF.
58962         (gl_FUNC_VASNPRINTF): Invoke it.
58963         * m4/vasnprintf-posix.m4: New file.
58964         * m4/printf.m4: New file.
58965
58966 2007-03-04  Bruno Haible  <bruno@clisp.org>
58967
58968         Compile progreloc.c only if --enable-relocatable is specified.
58969         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58970         if --enable-relocatable was specified.
58971         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58972         lib_SOURCES.
58973
58974 2007-03-04  Jim Meyering  <jim@meyering.net>
58975
58976         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58977         Use it consistently, rather than enumerating errno constants.
58978
58979 2007-03-04  Bruno Haible  <bruno@clisp.org>
58980
58981         * modules/xvasprintf-tests: New file.
58982         * tests/test-xvasprintf.c: New file.
58983
58984         * modules/vasprintf-tests: New file.
58985         * tests/test-vasprintf.c: New file.
58986
58987         * modules/vasnprintf-tests: New file.
58988         * tests/test-vasnprintf.c: New file.
58989
58990         * modules/vsnprintf-tests: New file.
58991         * tests/test-vsnprintf.c: New file.
58992
58993         * modules/snprintf-tests: New file.
58994         * tests/test-snprintf.c: New file.
58995
58996 2007-03-04  Bruno Haible  <bruno@clisp.org>
58997
58998         Compile relocatable.c only if --enable-relocatable is specified.
58999         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
59000         gl_RELOCATABLE_LIBRARY.
59001         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
59002         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
59003         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
59004         gl_RELOCATABLE_LIBRARY.
59005         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
59006         (Makefile.am): Remove lib_SOURCES.
59007         * modules/relocatable-lib-lgpl (configure.ac): Invoke
59008         gl_RELOCATABLE_LIBRARY.
59009         (Makefile.am): Remove lib_SOURCES.
59010         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
59011         always.
59012         * modules/relocatable-prog-wrapper (configure.ac): Invoke
59013         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
59014
59015 2007-03-04  Bruno Haible  <bruno@clisp.org>
59016
59017         * modules/argmatch-tests: New file.
59018         * tests/test-argmatch.c: New file.
59019
59020         * tests/test-allocsa.c (main): Halve the number of loop runs.
59021
59022         * modules/alloca-opt-tests: New file.
59023         * tests/test-alloca-opt.c: New file.
59024
59025 2007-03-04  Jim Meyering  <jim@meyering.net>
59026
59027         Work around difference between Linux ACLs and Solaris 10 ZFS.
59028         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
59029         for EINVAL.
59030
59031 2007-03-03  Bruno Haible  <bruno@clisp.org>
59032
59033         * modules/relocatable-prog (Depends-on): Add back progreloc's
59034         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
59035
59036 2007-03-03  Bruno Haible  <bruno@clisp.org>
59037
59038         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
59039         * modules/relocatable-lib: New file.
59040
59041 2007-03-03  Bruno Haible  <bruno@clisp.org>
59042
59043         * modules/relocatable-prog: Renamed from modules/relocatable.
59044         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
59045
59046 2007-03-03  Bruno Haible  <bruno@clisp.org>
59047
59048         * modules/relocatable-script (Files): Add doc/relocatable.texi,
59049         m4/relocatable-lib.m4.
59050         (Depends-on): Remove 'relocatable'.
59051         (configure.ac): Add gl_RELOCATABLE_NOP.
59052
59053 2007-03-03  Bruno Haible  <bruno@clisp.org>
59054
59055         * modules/relocatable-prog-wrapper: New file.
59056         * modules/relocatable (Depends-on): Add it. Remove all other
59057         dependencies except progname.
59058         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
59059
59060         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
59061         (gl_FUNC_STRERROR): Nop.
59062         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
59063
59064         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
59065         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
59066
59067         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
59068         (gl_FUNC_READLINK): Update.
59069
59070         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
59071
59072 2007-03-03  Bruno Haible  <bruno@clisp.org>
59073
59074         * lib/xreadlink.c: Include <unistd.h> unconditionally.
59075         * modules/xreadlink (Depends-on): Add unistd.
59076         * modules/xreadlink-with-size (Depends-on): Likewise.
59077
59078 2007-03-03  Bruno Haible  <bruno@clisp.org>
59079
59080         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
59081         extracted from gt_FUNC_SETENV.
59082         (gt_FUNC_SETENV): Remove macro.
59083         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
59084         remove gt_FUNC_SETENV.
59085
59086 2007-03-03  Bruno Haible  <bruno@clisp.org>
59087
59088         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
59089         ENABLE_RELOCATABLE here.
59090         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
59091
59092 2007-03-03  Bruno Haible  <bruno@clisp.org>
59093
59094         * modules/rbtreehash-list-tests (Depends-on): Add progname.
59095         * tests/test-rbtreehash_list.c: Include progname.h.
59096         (main): Call set_program_name.
59097
59098         * modules/rbtree-oset-tests (Depends-on): Add progname.
59099         * tests/test-rbtree_oset.c: Include progname.h.
59100         (main): Call set_program_name.
59101
59102         * modules/rbtree-list-tests (Depends-on): Add progname.
59103         * tests/test-rbtree_list.c: Include progname.h.
59104         (main): Call set_program_name.
59105
59106         * modules/linked-list-tests (Depends-on): Add progname.
59107         * tests/test-linked_list.c: Include progname.h.
59108         (main): Call set_program_name.
59109
59110 2007-03-03  Bruno Haible  <bruno@clisp.org>
59111
59112         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
59113         All uses of __restrict changed to _Restrict_.
59114         * lib/glob_.h (__restrict): Remove macro.
59115
59116 2007-03-02  Bruno Haible  <bruno@clisp.org>
59117
59118         * modules/gettext (configure.ac): Require gettext infrastructure
59119         from version 0.16.1.
59120
59121 2007-03-02  Bruno Haible  <bruno@clisp.org>
59122
59123         * modules/linkedhash-list-tests (Depends-on): Add progname.
59124         * tests/test-linkedhash_list.c: Include progname.h.
59125         (main): Call set_program_name.
59126
59127         * modules/carray-list-tests (Depends-on): Add progname.
59128         * tests/test-carray_list.c: Include progname.h.
59129         (main): Call set_program_name.
59130
59131         * modules/avltreehash-list-tests (Depends-on): Add progname.
59132         * tests/test-avltreehash_list.c: Include progname.h.
59133         (main): Call set_program_name.
59134
59135         * modules/avltree-oset-tests (Depends-on): Add progname.
59136         * tests/test-avltree_oset.c: Include progname.h.
59137         (main): Call set_program_name.
59138
59139         * modules/avltree-list-tests (Depends-on): Add progname.
59140         * tests/test-avltree_list.c: Include progname.h.
59141         (main): Call set_program_name.
59142
59143         * modules/array-oset-tests (Depends-on): Add progname.
59144         * tests/test-array_oset.c: Include progname.h.
59145         (main): Call set_program_name.
59146
59147         * modules/array-list-tests (Depends-on): Add progname.
59148         * tests/test-array_list.c: Include progname.h.
59149         (main): Call set_program_name.
59150
59151         * modules/argp-tests (Depends-on): Add progname.
59152         * tests/test-argp.c: Include argp.h first. Include progname.h.
59153         (main): Call set_program_name.
59154
59155 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
59156
59157         * doc/gnulib-tool.texi (Initial import): Reword description of
59158         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
59159         limited effect even if defined after the first system include.
59160
59161 2007-03-01  Bruno Haible  <bruno@clisp.org>
59162
59163         * build-aux/config.libpath: Update to libtool-1.5.22.
59164         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59165
59166 2007-03-01  Bruno Haible  <bruno@clisp.org>
59167
59168         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
59169         foo_CFLAGS.
59170         Reported by Ralf Wildenhues.
59171
59172 2007-03-01  Bruno Haible  <bruno@clisp.org>
59173
59174         * build-aux/install-reloc: Remove object files left over by some
59175         compilers.
59176         Reported by Ralf Wildenhues.
59177
59178 2007-03-01  Bruno Haible  <bruno@clisp.org>
59179
59180         * build-aux/install-reloc: Break long lines.
59181
59182 2007-03-01  Bruno Haible  <bruno@clisp.org>
59183
59184         * doc/relocatable.texi: Document that it may not work on OpenBSD.
59185         Reported by Ralf Wildenhues.
59186
59187 2007-03-01  Bruno Haible  <bruno@clisp.org>
59188
59189         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
59190         include ordering constraints.
59191
59192 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59193
59194         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
59195         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
59196         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
59197         as another example.
59198         * lib/time_.h: Fix misspelling.
59199         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59200         Require gl_HEADER_TIME_H_DEFAULTS.
59201         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
59202         * m4/time_r.m4 (gl_TIME_R): Likewise.
59203         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
59204
59205 2007-03-01  Bruno Haible  <bruno@clisp.org>
59206
59207         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
59208         * m4/utimens.m4 (gl_UTIMENS): Likewise.
59209
59210 2007-03-01  Jim Meyering  <jim@meyering.net>
59211
59212         * modules/xreadlink (Maintainer): Add my name.
59213         * modules/xreadlink-with-size (Depends-on): Alphabetize.
59214
59215 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
59216             Bruno Haible  <bruno@clisp.org>
59217
59218         * build-aux/install-reloc: Compile also c-ctype.c.
59219         * build-aux/relocatable.sh.in: New file.
59220         * doc/relocatable.texi: New file.
59221         * doc/relocatable-maint.texi: New file.
59222         * doc/gnulib.texi: Include relocatable-maint.texi.
59223         * lib/progreloc.c: Include unistd.h unconditionally.
59224         * lib/relocwrapper.c: Include unistd.h unconditionally.
59225         Include c-ctype.h.
59226         (add_dotbin): Use c_tolower.
59227         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
59228         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
59229         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
59230         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
59231         to m4/relocatable-lib.m4.
59232         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
59233         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
59234         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
59235         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
59236         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
59237         * modules/relocatable: New file.
59238         * modules/relocatable-lib: New file.
59239         * modules/relocatable-script: New file.
59240
59241 2007-02-28  Bruno Haible  <bruno@clisp.org>
59242
59243         Import --enable-relocatable infrastructure.
59244         * build-aux/config.libpath: New file, from GNU gettext.
59245         * build-aux/install-reloc: New file, from GNU gettext.
59246         * build-aux/reloc-ldflags: New file, from GNU gettext.
59247         * lib/relocatable.h: New file, from GNU gettext.
59248         * lib/relocatable.c: New file, from GNU gettext.
59249         * lib/relocwrapper.c: New file, from GNU gettext.
59250         * m4/relocatable.m4: New file, from GNU gettext.
59251
59252 2007-02-28  Bruno Haible  <bruno@clisp.org>
59253
59254         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59255
59256         * modules/xreadlink: New file, from GNU gettext with modifications.
59257         * lib/xreadlink.c: New file, from GNU gettext.
59258         * lib/xreadlink.h: Add comments.
59259         (xreadlink): New declaration.
59260
59261         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59262         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59263         lib/xreadlink-with-size.c.
59264         (configure.ac): Remove gl_XREADLINK invocation.
59265         (Makefile.am): Augment lib_SOURCES.
59266         * m4/xreadlink.m4: Remove file.
59267         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59268         (xreadlink_with_size): Renamed from xreadink.
59269         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59270         * modules/canonicalize (Depends-on): Replace xreadlink with
59271         xreadlink-with-size.
59272         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59273
59274 2007-02-25  Jim Meyering  <jim@meyering.net>
59275
59276         * build-aux/announce-gen: When complaining about excess arguments,
59277         list them.
59278
59279 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59280
59281         * README: Document signed integer overflow situation more
59282         accurately.
59283
59284 2007-02-25  Bruno Haible  <bruno@clisp.org>
59285
59286         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59287         'a' or 'A' conversion.
59288
59289 2007-02-25  Bruno Haible  <bruno@clisp.org>
59290
59291         * modules/filename: Renamed from modules/pathname.
59292         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59293         lib/concatpath.c with lib/concat-filename.c.
59294         (Makefile.am): Update.
59295         (Include): Replace pathname.h with filename.h.
59296         * lib/filename.h: Renamed from lib/pathname.h.
59297         (concatenated_filename): Renamed from concatenated_pathname.
59298         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59299         (concatenated_filename): Renamed from concatenated_pathname.
59300         * lib/findprog.c: Include filename.h instead of pathname.h.
59301         (find_in_path): Update.
59302         * lib/javacomp.c: Include filename.h instead of pathname.h.
59303         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59304         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59305         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59306         is_oldgcj_14_13_usable, is_javac_usable): Update.
59307         * lib/javaexec.c: Include filename.h instead of pathname.h.
59308         (execute_java_class): Update.
59309         * modules/findprog: Update.
59310         * modules/javacomp: Update.
59311         * modules/javaexec: Update.
59312         * MODULES.html.sh (File system functions): Add 'filename', remove
59313         'pathname'.
59314
59315 2007-02-25  Bruno Haible  <bruno@clisp.org>
59316
59317         * modules/printf-frexpl-tests: New file.
59318         * tests/test-printf-frexpl.c: New file.
59319
59320         * modules/printf-frexpl: New file.
59321         * lib/printf-frexpl.h: New file.
59322         * lib/printf-frexpl.c: New file.
59323         * m4/printf-frexpl.m4: New file.
59324
59325 2007-02-25  Bruno Haible  <bruno@clisp.org>
59326
59327         * modules/printf-frexp-tests: New file.
59328         * tests/test-printf-frexp.c: New file.
59329
59330         * modules/printf-frexp: New file.
59331         * lib/printf-frexp.h: New file.
59332         * lib/printf-frexp.c: New file.
59333         * m4/printf-frexp.m4: New file.
59334
59335 2007-02-25  Bruno Haible  <bruno@clisp.org>
59336
59337         Assume automake >= 1.10 for the tests.
59338         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59339         * modules/arctwo-tests: Likewise.
59340         * modules/argp-tests: Likewise.
59341         * modules/avltree-list-tests: Likewise.
59342         * modules/avltree-oset-tests: Likewise.
59343         * modules/avltreehash-list-tests: Likewise.
59344         * modules/carray-list-tests: Likewise.
59345         * modules/crc-tests: Likewise.
59346         * modules/des-tests: Likewise.
59347         * modules/gc-arcfour-tests: Likewise.
59348         * modules/gc-arctwo-tests: Likewise.
59349         * modules/gc-des-tests: Likewise.
59350         * modules/gc-hmac-md5-tests: Likewise.
59351         * modules/gc-hmac-sha1-tests: Likewise.
59352         * modules/gc-md2-tests: Likewise.
59353         * modules/gc-md4-tests: Likewise.
59354         * modules/gc-md5-tests: Likewise.
59355         * modules/gc-pbkdf2-sha1-tests: Likewise.
59356         * modules/gc-rijndael-tests: Likewise.
59357         * modules/gc-sha1-tests: Likewise.
59358         * modules/gc-tests: Likewise.
59359         * modules/getaddrinfo-tests: Likewise.
59360         * modules/hmac-md5-tests: Likewise.
59361         * modules/hmac-sha1-tests: Likewise.
59362         * modules/linked-list-tests: Likewise.
59363         * modules/linkedhash-list-tests: Likewise.
59364         * modules/lock-tests: Likewise.
59365         * modules/md2-tests: Likewise.
59366         * modules/md4-tests: Likewise.
59367         * modules/md5-tests: Likewise.
59368         * modules/rbtree-list-tests: Likewise.
59369         * modules/rbtree-oset-tests: Likewise.
59370         * modules/rbtreehash-list-tests: Likewise.
59371         * modules/read-file-tests: Likewise.
59372         * modules/rijndael-tests: Likewise.
59373         * modules/stdint-tests: Likewise.
59374         * modules/tls-tests: Likewise.
59375
59376 2007-02-24  Bruno Haible  <bruno@clisp.org>
59377
59378         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59379         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59380         function; instead check whether isnan with a double argument links.
59381         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59382         function; instead check whether isnan with a 'long double' argument
59383         links.
59384         Reported by Eric Blake <ebb9@byu.net>.
59385
59386 2007-02-24  Bruno Haible  <bruno@clisp.org>
59387
59388         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59389         defined.
59390         * lib/isnanl.c: Remove all code. Just include isnan.c.
59391         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59392
59393 2007-02-25  Jim Meyering  <jim@meyering.net>
59394
59395         Avoid conflicting types for 'unsetenv' on FreeBSD.
59396         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
59397         conflicting with FreeBSD's (5.0 and 6.1) function declaration
59398         in stdlib.h.
59399
59400 2007-02-24  Bruno Haible  <bruno@clisp.org>
59401
59402         * modules/isnanl-nolibm-tests: New file.
59403         * tests/test-isnanl.c: New file.
59404
59405         * modules/isnanl-nolibm: New file.
59406         * lib/isnanl.h: New file.
59407         * lib/isnanl.c: New file.
59408         * m4/isnanl.m4: New file.
59409
59410 2007-02-24  Bruno Haible  <bruno@clisp.org>
59411
59412         * modules/isnan-nolibm-tests: New file.
59413         * tests/test-isnan.c: New file.
59414
59415         * modules/isnan-nolibm: New file.
59416         * lib/isnan.h: New file.
59417         * lib/isnan.c: New file.
59418         * m4/isnan.m4: New file.
59419
59420 2007-02-24  Bruno Haible  <bruno@clisp.org>
59421
59422         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
59423         assume that an exponent fits in 20 bits.
59424
59425 2007-02-24  Jim Meyering  <jim@meyering.net>
59426
59427         * m4/regex.m4: Update the description of the configure-time option,
59428         --without-included-regex, to state accurately what the defaults are,
59429         and perhaps to give people an idea why using this option is risky.
59430
59431 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59432
59433         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
59434         loops on small arguments.  This attempts to avoid the problem
59435         Bruno Haible reported for AIX 4.3.2 in
59436         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
59437
59438 2007-02-23  Bruno Haible  <bruno@clisp.org>
59439
59440         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
59441         Needed for help2man.
59442
59443 2007-02-23  Karl Berry  <karl@gnu.org>
59444
59445         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
59446         exists, foo.h should be cvs-ignored, not committed.
59447
59448 2007-02-23  Eric Blake  <ebb9@byu.net>
59449
59450         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
59451         * lib/stat-time.h (includes): Likewise.
59452         * lib/utimecmp.c (includes): Likewise.
59453         * lib/utimens.h (includes): Likewise.
59454         * lib/getdate.y (includes): Also include "timespec.h" for use
59455         internal to the module.
59456         * modules/utimens (Depends-on): Revert yesterday's patch.
59457         * modules/nanosleep (Depends-on): Add missing dependency.
59458
59459 2007-02-22  Bruno Haible  <bruno@clisp.org>
59460
59461         * lib/glob.c: Don't include getlogin_r.h.
59462
59463 2007-02-22  Jim Meyering  <jim@meyering.net>
59464
59465         * modules/utimens (Depends-on): Add timespec, required for
59466         utimens.h's inclusion of timespec.h.
59467
59468 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
59469
59470         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
59471         long unreadable paths in GNU/Linux.  Problem reported by Andreas
59472         Schwab in
59473         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
59474         I'll try to think of a better way to fix the Solaris problem.
59475
59476         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
59477         like glibc; on Solaris 10, it fails with errno == EINVAL.
59478         POSIX says the behavior is unspecified if the first argument is NULL,
59479         so play it safe and never pass NULL to the system getcwd.
59480
59481 2007-02-21  Jim Meyering  <jim@meyering.net>
59482
59483         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59484         of gettimeofday.  It would conflict with the one now always
59485         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59486         an IRIX 6.5 build failure.
59487
59488 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59489
59490         Minor fixups to port to Solaris 10 with Sun C 5.8.
59491         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59492         * modules/getcwd (Depends-on): Add dirfd.
59493         * lib/putenv.c (putenv): #undef it.
59494         (rpl_putenv): New decl.
59495         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59496
59497 2007-02-20  Bruno Haible  <bruno@clisp.org>
59498
59499         * modules/stdio-tests: New file.
59500         * tests/test-stdio.c: New file.
59501
59502         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59503         (Depends-on): Add stdio.
59504         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59505         (Include): Use <stdio.h> instead of vsnprintf.h.
59506         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59507         HAVE_DECL_VSNPRINTF.
59508         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59509
59510         * modules/snprintf (Files): Remove lib/snprintf.h.
59511         (Depends-on): Add stdio.
59512         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59513         (Include): Use <stdio.h> instead of snprintf.h.
59514         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59515         HAVE_DECL_SNPRINTF.
59516         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59517         * lib/getaddrinfo.c: Likewise.
59518
59519         * modules/stdio: New file.
59520         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59521         * lib/snprintf.h: Remove file.
59522         * lib/vsnprintf.h: Remove file.
59523         * lib/.cppi-disable: Remove snprintf.h.
59524         * m4/stdio_h.m4: New file.
59525         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59526
59527 2007-02-20  Jim Meyering  <jim@meyering.net>
59528
59529         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59530         used by e.g., mingw.  From Bruno Haible.
59531
59532 2007-02-19  Bruno Haible  <bruno@clisp.org>
59533
59534         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59535         warnings.
59536         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59537
59538 2007-02-19  Bruno Haible  <bruno@clisp.org>
59539
59540         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59541         from mingw users.
59542
59543 2007-02-19  Bruno Haible  <bruno@clisp.org>
59544
59545         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59546         warnings.
59547         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59548
59549 2007-02-19  Jim Meyering  <jim@meyering.net>
59550
59551         Don't use FD after a successful "fdopendir (fd)".
59552         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59553         Reset it by calling dirfd on the just-obtained DIR*.
59554
59555         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59556         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59557
59558 2007-02-18  Bruno Haible  <bruno@clisp.org>
59559
59560         * lib/readlink.c: Include <unistd.h>.
59561         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59562         HAVE_READLINK.
59563         * modules/readlink (Depends-on): Add unistd.
59564         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59565         (Include): Add <unistd.h>.
59566
59567         * lib/getlogin_r.h: Remove file.
59568         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59569         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59570         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59571         HAVE_DECL_GETLOGIN_R.
59572         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59573         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59574         (Include): Use <unistd.h> instead of getlogin_r.h.
59575
59576         * lib/getcwd.h: Remove file.
59577         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59578         * lib/xgetcwd.c: Likewise.
59579         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59580         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59581         * modules/getcwd (Files): Remove lib/getcwd.h.
59582         (Depends-on): Add unistd.
59583         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59584         (Include): Use <unistd.h> instad of getcwd.h.
59585
59586         * lib/ftruncate.c: Include <unistd.h> first.
59587         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59588         Set HAVE_FTRUNCATE.
59589         * modules/ftruncate (Depends-on): Add unistd.
59590         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59591
59592         * lib/fchdir.c: Include <unistd.h> first.
59593         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59594         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59595         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59596         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59597         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59598
59599         * lib/dup2.c: Include <unistd.h> first.
59600         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59601         HAVE_DUP2.
59602         * modules/dup2 (Depends-on): Add unistd.
59603         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59604
59605         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59606         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59607         REPLACE_CHOWN. Don't define chown as a macro here.
59608         * modules/chown (Depends-on): Add unistd.
59609         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59610
59611         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59612         Add definition for GL_LINK_WARNING.
59613         (chown, dup2): New declarations.
59614         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59615         link warning.
59616         (ftruncate): New declaration.
59617         (getcwd): New declaration, taken from old getcwd.h.
59618         (getlogin_r): New declaration, taken from old getlogin_r.h.
59619         (readlink): New declaration.
59620         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59621         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59622         (gl_PREREQ_UNISTD): Remove macro.
59623         (gl_UNISTD_MODULE_INDICATOR): New macro.
59624         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59625         many new variables. Don't set UNISTD_H.
59626         * modules/unistd (Description): Change.
59627         (Depends-on): Add link-warning.
59628         (configure.ac): Update.
59629         (Makefile.am): Create unistd.h always. Substitute many new variables
59630         into it.
59631
59632 2007-02-18  Bruno Haible  <bruno@clisp.org>
59633
59634         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59635         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59636         HAVE_GETSUBOPT.
59637         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59638         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59639         * lib/getsubopt.h: Remove file.
59640         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59641         (Depends-on): Add stdlib.
59642         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59643         (Includes): Use <stdlib.h> instead of getsubopt.h.
59644         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59645         Set HAVE_GETSUBOPT.
59646         * lib/getsubopt.c: Don't include getsubopt.h.
59647
59648 2007-02-18  Bruno Haible  <bruno@clisp.org>
59649
59650         * modules/fchdir (Depends-on): Add dup2.
59651
59652 2007-02-18  Bruno Haible  <bruno@clisp.org>
59653
59654         * lib/stdlib_.h: Handle glibc's special invocation convention
59655         specially.
59656
59657 2007-02-18  Bruno Haible  <bruno@clisp.org>
59658
59659         * modules/stdlib-tests: New file.
59660         * tests/test-stdlib.c: New file.
59661
59662         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59663         (Depends-on): Add stdlib.
59664         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59665         (Includes): Use <stdlib.h> instead of mkstemp.h.
59666         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59667         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59668         * lib/mkstemp.c: Don't include mkstemp.h.
59669         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59670         * lib/stdlib--.h: Don't include mkstemp.h.
59671
59672         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59673         (Depends-on): Add stdlib.
59674         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59675         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59676         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59677         HAVE_MKDTEMP.
59678         * lib/mkdtemp.c: Don't include mkdtemp.h.
59679         * lib/clean-temp.c: Don't include mkdtemp.h.
59680
59681         * modules/exit (Files): Remove lib/exit.h.
59682         (Depends-on): Add stdlib.
59683         (Makefile.am): Remove lib_SOURCES.
59684         (Include): Use <stdlib.h> instead of exit.h.
59685         * lib/argmatch.c: Don't include exit.h.
59686         * lib/execute.c: Likewise.
59687         * lib/pagealign_alloc.c: Likewise.
59688         * lib/pipe.c: Likewise.
59689         * lib/wait-process.c: Likewise.
59690         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59691         * lib/exitfail.c: Likewise.
59692         * lib/savewd.c: Likewise.
59693         * lib/xsetenv.c: Likewise.
59694
59695         * modules/stdlib: New file.
59696         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59697         and extra comments about mkstemp().
59698         * lib/exit.h: Remove file.
59699         * lib/mkdtemp.h: Remove file.
59700         * lib/mkstemp.h: Remove file.
59701         * m4/stdlib_h.m4: New file.
59702         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59703
59704 2007-02-18  Bruno Haible  <bruno@clisp.org>
59705
59706         * modules/math-tests: New file.
59707         * tests/test-math.c: New file.
59708
59709         * modules/math: New file.
59710         * modules/mathl (Files): Remove lib/mathl.h.
59711         (Depends-on): Add math.
59712         (Makefile.am): Don't mention mathl.h.
59713         (Include): Use <math.h> instead of mathl.h.
59714         * lib/math_.h: New file.
59715         * lib/mathl.h: Remove file.
59716         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59717         mathl.h.
59718         * lib/asinl.c: Likewise.
59719         * lib/atanl.c: Likewise.
59720         * lib/ceill.c: Likewise.
59721         * lib/cosl.c: Likewise.
59722         * lib/expl.c: Likewise.
59723         * lib/floorl.c: Likewise.
59724         * lib/frexpl.c: Likewise.
59725         * lib/ldexpl.c: Likewise.
59726         * lib/logl.c: Likewise.
59727         * lib/sincosl.c: Likewise.
59728         * lib/sinl.c: Likewise.
59729         * lib/sqrtl.c: Likewise.
59730         * lib/tanl.c: Likewise.
59731         * lib/trigl.c: Likewise.
59732         * m4/math_h.m4: New file.
59733         * MODULES.html.sh (Mathematics): Add math.
59734
59735 2007-02-17  Bruno Haible  <bruno@clisp.org>
59736
59737         * modules/wctype-tests: New file.
59738         * tests/test-wctype.c: New file.
59739
59740         * modules/wchar-tests: New file.
59741         * tests/test-wchar.c: New file.
59742
59743         * modules/unistd-tests: New file.
59744         * tests/test-unistd.c: New file.
59745
59746         * modules/time-tests: New file.
59747         * tests/test-time.c: New file.
59748
59749         * modules/sysexits-tests: New file.
59750         * tests/test-sysexits.c: New file.
59751
59752         * modules/sys_time-tests: New file.
59753         * tests/test-sys_time.c: New file.
59754
59755         * modules/sys_stat-tests: New file.
59756         * tests/test-sys_stat.c: New file.
59757
59758         * modules/sys_socket-tests: New file.
59759         * tests/test-sys_socket.c: New file.
59760
59761         * modules/sys_select-tests: New file.
59762         * tests/test-sys_select.c: New file.
59763
59764         * modules/string-tests: New file.
59765         * tests/test-string.c: New file.
59766
59767         * modules/stdbool-tests: New file.
59768         * tests/test-stdbool.c: New file.
59769
59770         * modules/netinet_in-tests: New file.
59771         * tests/test-netinet_in.c: New file.
59772
59773         * modules/inttypes-tests: New file.
59774         * tests/test-inttypes.c: New file.
59775
59776         * modules/fcntl-tests: New file.
59777         * tests/test-fcntl.c: New file.
59778
59779         * modules/byteswap-tests: New file.
59780         * tests/test-byteswap.c: New file.
59781
59782         * modules/arpa_inet-tests: New file.
59783         * tests/test-arpa_inet.c: New file.
59784
59785 2007-02-17  Bruno Haible  <bruno@clisp.org>
59786
59787         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59788         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59789         if the corresponding module is not enabled. Emit link warnings if
59790         the function is used nevertheless.
59791         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59792         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59793         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59794         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59795         * modules/inttypes (Depends-on): Add link-warning.
59796         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59797         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59798         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59799         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59800         * modules/imaxdiv (configure.ac): Likewise.
59801         * modules/strtoimax (configure.ac): Likewise.
59802         * modules/strtoumax (configure.ac): Likewise.
59803
59804 2007-02-17  Bruno Haible  <bruno@clisp.org>
59805
59806         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59807         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59808         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59809         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59810
59811 2007-02-17  Bruno Haible  <bruno@clisp.org>
59812
59813         * modules/link-warning: New file.
59814         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59815         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59816         * modules/string (Depends-on): Add link-warning.
59817         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59818         string.h.
59819         * MODULES.html.sh (Support for building libraries and executables): Add
59820         link-warning.
59821
59822 2007-02-17  Bruno Haible  <bruno@clisp.org>
59823
59824         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59825         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59826         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59827         long lines.
59828
59829 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59830             Bruno Haible  <bruno@clisp.org>
59831
59832         * modules/tmpfile: New file.
59833         * lib/tmpfile.c: New file.
59834         * m4/tmpfile.m4: New file.
59835         * MODULES.html.sh (func_all_modules): New section "Input/output".
59836
59837 2007-02-15  Bruno Haible  <bruno@clisp.org>
59838
59839         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59840         (supports_delete_on_close): New function.
59841         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59842
59843 2007-02-14  Bruno Haible  <bruno@clisp.org>
59844
59845         * modules/mbspcasecmp-tests: New file.
59846         * tests/test-mbspcasecmp.sh: New file.
59847         * tests/test-mbspcasecmp.c: New file.
59848
59849         New module mbspcasecmp.
59850         * modules/mbspcasecmp: New file.
59851         * lib/mbspcasecmp.c: New file.
59852         * lib/string_.h (strncasecmp): Change warning message.
59853         (mbspcasecmp): New declaration.
59854         * m4/mbspcasecmp.m4: New file.
59855         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59856         GNULIB_MBSPCASECMP.
59857         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59858         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59859
59860 2007-02-14  Bruno Haible  <bruno@clisp.org>
59861
59862         * modules/mbsncasecmp-tests: New file.
59863         * tests/test-mbsncasecmp.sh: New file.
59864         * tests/test-mbsncasecmp.c: New file.
59865
59866         New module mbsncasecmp.
59867         * modules/mbsncasecmp: New file.
59868         * lib/mbsncasecmp.c: New file.
59869         * lib/string_.h (mbsncasecmp): New declaration.
59870         * m4/mbsncasecmp.m4: New file.
59871         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59872         GNULIB_MBSNCASECMP.
59873         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59874         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59875
59876 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59877
59878         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59879         Verify that it doesn't overlap with our flags.
59880         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59881         do not have the desired effect in multibyte locales; instead, use
59882         mbscasecmp.
59883         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59884         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59885         we don't require GNU fnmatch ourselves (if our users require it, they
59886         should do so explicitly).
59887
59888         Fix regex code so it doesn't rely on strcasecmp.
59889         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59890         Otherwise, include gnulib's langinfo.h.
59891         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59892         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59893         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59894         * modules/regex (FILES): Remove m4/codeset.m4.
59895         (Depends-on): Add localcharset.  Remove strcase.
59896
59897 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59898
59899         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59900         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59901
59902 2007-02-13  Bruno Haible  <bruno@clisp.org>
59903
59904         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59905         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59906
59907 2007-02-12  Bruno Haible  <bruno@clisp.org>
59908
59909         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59910         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59911         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59912         time warning rather than a link error.
59913
59914 2007-02-12  Bruno Haible  <bruno@clisp.org>
59915
59916         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59917         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59918         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59919
59920 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59921
59922         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59923         args, not 2.
59924
59925 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59926
59927         New module 'time', so that apps can include <time.h> as per
59928         POSIX and GNU instead of separate include files like time_r.h
59929         and timegm.h.  This implementation tries out a simpler approach
59930         for replacing decls in standard include files (as compared to
59931         the string module), somewhat as an experiment.
59932
59933         * config/srclist.txt: Comment out mktime.c for now.
59934         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59935         since it doesn't apply any more.  Use generic wording instead.
59936         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59937         'time'.
59938         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59939         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59940         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59941         Don't include <sys/types.h>; no longer needed since we assume C89.
59942         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59943         * lib/strftime.c: Likewise.
59944         * lib/time_r.c: Likewise.
59945         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59946         * lib/nanosleep.c: Include <time.h> first, to check interface.
59947         * lib/strptime.c: Likewise.
59948         * lib/time_r.c: Likewise.
59949         * lib/timegm.c: Likewise.
59950         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59951         needed.
59952         * lib/timegm.c: Don't include timegm.h; no longer needed.
59953         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59954         time.h now handles any problems in that area.
59955         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59956         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59957         that time.h defines struct timespec.
59958         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59959         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59960         handles that.
59961         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59962         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59963         needed.  Set REPLACE_LOCALTIME.
59964         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59965         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59966         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59967         nanosleep; time_h.m4 now does that.  Don't require
59968         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59969         module handles this now.
59970         * modules/getdate (Depends-on): Remove timespec.  Add time.
59971         * modules/nanosleep (Depends-on): Likewise.
59972         * modules/stat-time (Depends-on): Likewise.
59973         * modules/nanosleep (Include): Include time.h, not timespec.h.
59974         * modules/strptime (Files): Remove lib/strptime.h.
59975         (Depends-on): Add extensions, time.
59976         (Include): Include time.h, not strptime.h.
59977         * modules/time_r (Files): Remove lib/time_r.h.
59978         (Depends-on): Add time.
59979         (Include): Include time.h, not time_r.h.
59980         * modules/timegm: Likewise.
59981         * modules/timespec (Description): Now does timespec-related decls
59982         of our own, instead of struct timespec itself.
59983         (Depends-on): Add time; remove extensions.
59984         (Maintainer): Add self.
59985         * modules/utimecmp (Depends-on): Add time; remove timespec.
59986         * modules/utimens (Depends-on): Likewise.
59987         * modules/xnanosleep (Depends-on): Likewise.
59988
59989 2007-02-11  Bruno Haible  <bruno@clisp.org>
59990
59991         * lib/c-strstr.c: Include allocsa.h.
59992         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59993         * lib/c-strcasestr.c: Include allocsa.h.
59994         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59995         * lib/strcasestr.c: Include allocsa.h.
59996         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59997         * lib/mbsstr.c: Include allocsa.h.
59998         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59999         allocsa/freesa instead of malloc/free.
60000         * lib/mbscasestr.c: Include allocsa.h.
60001         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60002         allocsa/freesa instead of malloc/free.
60003         * modules/c-strstr (Depends-on): Add allocsa.
60004         * modules/c-strcasestr (Depends-on): Likewise.
60005         * modules/strcasestr (Depends-on): Likewise.
60006         * modules/mbsstr (Depends-on): Likewise.
60007         * modules/mbscasestr (Depends-on): Likewise.
60008
60009 2007-02-11  Bruno Haible  <bruno@clisp.org>
60010
60011         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
60012
60013         * modules/mbsspn-tests: New file.
60014         * tests/test-mbsspn.sh: New file.
60015         * tests/test-mbsspn.c: New file.
60016
60017 2007-02-11  Bruno Haible  <bruno@clisp.org>
60018
60019         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
60020
60021         * modules/mbspbrk-tests: New file.
60022         * tests/test-mbspbrk.sh: New file.
60023         * tests/test-mbspbrk.c: New file.
60024
60025 2007-02-11  Bruno Haible  <bruno@clisp.org>
60026
60027         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
60028         unneeded cast.
60029
60030         * modules/mbscspn-tests: New file.
60031         * tests/test-mbscspn.sh: New file.
60032         * tests/test-mbscspn.c: New file.
60033
60034 2007-02-11  Bruno Haible  <bruno@clisp.org>
60035
60036         * modules/mbscasecmp-tests: New file.
60037         * tests/test-mbscasecmp.sh: New file.
60038         * tests/test-mbscasecmp.c: New file.
60039
60040 2007-02-11  Bruno Haible  <bruno@clisp.org>
60041
60042         Ensure O(n) worst-case complexity of mbscasestr.
60043         * lib/mbscasestr.c: Include stdbool.h.
60044         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60045         functions.
60046         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
60047         the bookkeeping indicates that it's worth it.
60048         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
60049
60050         * modules/mbscasestr-tests: New file.
60051         * tests/test-mbscasestr1.c: New file.
60052         * tests/test-mbscasestr2.sh: New file.
60053         * tests/test-mbscasestr2.c: New file.
60054         * tests/test-mbscasestr3.sh: New file.
60055         * tests/test-mbscasestr3.c: New file.
60056         * tests/test-mbscasestr4.sh: New file.
60057         * tests/test-mbscasestr4.c: New file.
60058         * m4/locale-tr.m4: New file.
60059
60060 2007-02-11  Bruno Haible  <bruno@clisp.org>
60061
60062         Ensure O(n) worst-case complexity of mbsstr.
60063         * lib/mbsstr.c: Include stdbool.h.
60064         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60065         functions.
60066         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
60067         bookkeeping indicates that it's worth it.
60068         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
60069
60070         * modules/mbsstr-tests: New file.
60071         * tests/test-mbsstr1.c: New file.
60072         * tests/test-mbsstr2.sh: New file.
60073         * tests/test-mbsstr2.c: New file.
60074         * tests/test-mbsstr3.sh: New file.
60075         * tests/test-mbsstr3.c: New file.
60076         * m4/locale-fr.m4: New file.
60077
60078 2007-02-11  Bruno Haible  <bruno@clisp.org>
60079
60080         * lib/mbsrchr.c (mbsrchr): Fix bug.
60081
60082         * modules/mbsrchr-tests: New file.
60083         * tests/test-mbsrchr.sh: New file.
60084         * tests/test-mbsrchr.c: New file.
60085
60086 2007-02-11  Bruno Haible  <bruno@clisp.org>
60087
60088         * lib/mbschr.c (mbschr): Fix bug.
60089
60090         * modules/mbschr-tests: New file.
60091         * tests/test-mbschr.sh: New file.
60092         * tests/test-mbschr.c: New file.
60093         * m4/locale-zh.m4: New file.
60094
60095 2007-02-11  Bruno Haible  <bruno@clisp.org>
60096
60097         Support for copying multibyte string iterators.
60098         * lib/mbiter.h: Include <string.h>.
60099         (mbiter_multi_copy): New function.
60100         (mbi_copy): New macro.
60101         * lib/mbuiter.h: Include <string.h>.
60102         (mbuiter_multi_copy): New function.
60103         (mbui_copy): New macro.
60104
60105 2007-02-11  Bruno Haible  <bruno@clisp.org>
60106
60107         New module mbslen.
60108         * modules/mbslen: New file.
60109         * lib/mbslen.c: New file.
60110         * lib/string_.h (mbslen): New declaration.
60111         * m4/mbslen.m4: New file.
60112         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60113         GNULIB_MBSLEN.
60114         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
60115         * MODULES.html.sh (Internationalization functions): Add mbslen.
60116
60117 2007-02-11  Bruno Haible  <bruno@clisp.org>
60118
60119         Ensure O(n) worst-case complexity of strcasestr substitute.
60120         * lib/strcasestr.c: Include stdbool.h.
60121         (knuth_morris_pratt): New function.
60122         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60123         bookkeeping indicates that it's worth it.
60124         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
60125
60126         * modules/strcasestr-tests: New file.
60127         * tests/test-strcasestr.c: New file.
60128
60129 2007-02-11  Bruno Haible  <bruno@clisp.org>
60130
60131         Ensure O(n) worst-case complexity of c_strcasestr.
60132         * lib/c-strcasestr.c: Include stdbool.h, string.h.
60133         (knuth_morris_pratt): New function.
60134         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
60135         the bookkeeping indicates that it's worth it.
60136         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
60137
60138         * modules/c-strcasestr-tests: New file.
60139         * tests/test-c-strcasestr.c: New file.
60140
60141 2007-02-11  Bruno Haible  <bruno@clisp.org>
60142
60143         Ensure O(n) worst-case complexity of c_strstr.
60144         * lib/c-strstr.c: Include stdbool.h, string.h.
60145         (knuth_morris_pratt): New function.
60146         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60147         bookkeeping indicates that it's worth it.
60148         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
60149
60150         * lib/c-strstr.c: Complete rewrite for maintainability.
60151
60152         * modules/c-strstr-tests: New file.
60153         * tests/test-c-strstr.c: New file.
60154
60155 2007-02-11  Bruno Haible  <bruno@clisp.org>
60156
60157         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
60158         5.2.1 and earlier, whereby \055 was treated just like the range
60159         delimiter '-'.
60160         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60161
60162 2007-02-08  Bruno Haible  <bruno@clisp.org>
60163
60164         * modules/regex (Depends-on): Add stdbool.
60165         Reported by Dalibor Topic <robilad@kaffe.org>.
60166
60167 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60168
60169         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
60170         Prefer returning from main to exiting from it.
60171         Remove unnecessary parens after sizeof.
60172
60173 2007-02-05  Bruno Haible  <bruno@clisp.org>
60174
60175         New module mbssep.
60176         * modules/mbssep: New file.
60177         * lib/mbssep.c: New file.
60178         * lib/string_.h (strsep): Add a conditional link warning.
60179         (mbssep): New declaration.
60180         * m4/mbssep.m4: New file.
60181         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60182         GNULIB_MBSSEP.
60183         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
60184         * MODULES.html.sh (Internationalization functions): Add mbssep.
60185
60186 2007-02-05  Bruno Haible  <bruno@clisp.org>
60187
60188         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
60189         Optimize search in case of 1 delimiter.
60190
60191 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60192
60193         * lib/acl.h: Include sys/types.h before sys/acl.h.
60194
60195 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60196
60197         Merge upstream fix for glibc bugzilla #3957:
60198
60199         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
60200
60201         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
60202         bit for RE_HAT_LISTS_NOT_NEWLINE.
60203         (build_charclass_op): Remove bogus comment.
60204
60205 2007-02-05  Simon Josefsson  <simon@josefsson.org>
60206
60207         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
60208
60209 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60210
60211         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
60212         * lib/memmem.c [!defined _LIBC]: Include config.h.
60213
60214 2007-02-04  Bruno Haible  <bruno@clisp.org>
60215
60216         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
60217         warning message.
60218
60219 2007-02-04  Bruno Haible  <bruno@clisp.org>
60220
60221         New module mbstok_r.
60222         * modules/mbstok_r: New file.
60223         * lib/mbstok_r.c: New file.
60224         * lib/string_.h (strtok_r): Change argument names to match the
60225         comments. Add a conditional link warning.
60226         (mbstok_r): New declaration.
60227         * m4/mbstok_r.m4: New file.
60228         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60229         GNULIB_MBSTOK_R.
60230         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
60231         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
60232
60233 2007-02-04  Bruno Haible  <bruno@clisp.org>
60234
60235         New module mbsspn.
60236         * modules/mbsspn: New file.
60237         * lib/mbsspn.c: New file.
60238         * lib/string_.h (strspn): Add a conditional link warning.
60239         (mbsspn): New declaration.
60240         * m4/mbsspn.m4: New file.
60241         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60242         GNULIB_MBSSPN.
60243         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
60244         * MODULES.html.sh (Internationalization functions): Add mbsspn.
60245
60246 2007-02-04  Bruno Haible  <bruno@clisp.org>
60247
60248         New module mbspbrk.
60249         * modules/mbspbrk: New file.
60250         * lib/mbspbrk.c: New file.
60251         * lib/string_.h (strpbrk): Add a conditional link warning.
60252         (mbspbrk): New declaration.
60253         * m4/mbspbrk.m4: New file.
60254         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60255         GNULIB_MBSPBRK.
60256         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60257         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60258
60259 2007-02-04  Bruno Haible  <bruno@clisp.org>
60260
60261         New module mbscspn.
60262         * modules/mbscspn: New file.
60263         * lib/mbscspn.c: New file.
60264         * lib/string_.h (strcspn): Add a conditional link warning.
60265         (mbscspn): New declaration.
60266         * m4/mbscspn.m4: New file.
60267         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60268         GNULIB_MBSCSPN.
60269         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60270         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60271
60272 2007-02-04  Bruno Haible  <bruno@clisp.org>
60273
60274         New module mbscasestr, reduced goal of strcasestr.
60275         * modules/mbscasestr: New file.
60276         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60277         (mbscasestr): Renamed from strcasestr.
60278         * lib/strcasestr.c: Don't include mbuiter.h.
60279         (strcasestr): Remove support for multibyte locales.
60280         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60281         Change the conditional link warning.
60282         (mbscasestr): New declaration.
60283         * m4/mbscasestr.m4: New file.
60284         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60285         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60286         REPLACE_STRCASESTR.
60287         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60288         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60289         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60290         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60291         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60292         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60293         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60294         (Depends-on): Remove mbuiter.
60295         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60296
60297 2007-02-04  Bruno Haible  <bruno@clisp.org>
60298
60299         Simplify handling of strncasecmp.
60300         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60301         the conditional link warning.
60302         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60303         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60304         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60305         * modules/strcase (configure.ac): Don't invoke
60306         gl_STRING_MODULE_INDICATOR.
60307         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60308
60309 2007-02-04  Bruno Haible  <bruno@clisp.org>
60310
60311         New module mbscasecmp, reduced goal of strcasecmp.
60312         * modules/mbscasecmp: New file.
60313         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60314         (mbscasecmp): Renamed from strcasecmp.
60315         * lib/strcasecmp.c: Don't include mbuiter.h.
60316         (strcasecmp): Remove support for multibyte locales.
60317         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60318         Change the conditional link warning.
60319         (mbscasecmp): New declaration.
60320         * m4/mbscasecmp.m4: New file.
60321         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60322         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60323         REPLACE_STRCASECMP.
60324         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60325         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60326         GNULIB_MBSCASECMP.
60327         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60328         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60329         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60330         (Depends-on): Remove mbuiter.
60331         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60332
60333 2007-02-04  Bruno Haible  <bruno@clisp.org>
60334
60335         New module mbsstr. Remove module strstr.
60336         * modules/mbsstr: New file.
60337         * modules/strstr: Remove file.
60338         * lib/mbsstr.c: Renamed from lib/strstr.c.
60339         (mbsstr): Renamed from strstr.
60340         * lib/string_.h (strstr): Remove declaration. Change the conditional
60341         link warning.
60342         (mbsstr): New declaration.
60343         * m4/mbsstr.m4: New file.
60344         * m4/strstr.m4: Remove file.
60345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60346         REPLACE_STRSTR.
60347         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60348         Don't initialize GNULIB_STRSTR.
60349         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60350         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60351         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60352         (Support for systems lacking ANSI C 89): Remove strstr.
60353
60354 2007-02-04  Bruno Haible  <bruno@clisp.org>
60355
60356         New module mbsrchr.
60357         * modules/mbsrchr: New file.
60358         * lib/mbsrchr.c: New file.
60359         * lib/string_.h (strrchr): Add a conditional link warning.
60360         (mbsrchr): New declaration.
60361         * m4/mbsrchr.m4: New file.
60362         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60363         GNULIB_MBSRCHR.
60364         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60365         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60366
60367 2007-02-04  Bruno Haible  <bruno@clisp.org>
60368
60369         New module mbschr.
60370         * modules/mbschr: New file.
60371         * lib/mbschr.c: New file.
60372         * lib/string_.h (strchr): Add a conditional link warning.
60373         (mbschr): New declaration.
60374         * m4/mbschr.m4: New file.
60375         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60376         GNULIB_MBSCHR.
60377         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60378         * MODULES.html.sh (Internationalization functions): Add mbschr.
60379
60380 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60381
60382         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60383
60384         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60385
60386 2007-02-04  Bruno Haible  <bruno@clisp.org>
60387
60388         New module description section 'configure.ac-early'.
60389         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60390         (func_get_autoconf_early_snippet): New function.
60391         (func_import, func_create_testdir): Use it. Remove special cases for
60392         modules 'extensions' and 'lock'.
60393         * modules/extensions (configure.ac-early): Require
60394         gl_USE_SYSTEM_EXTENSIONS.
60395         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60396
60397 2007-02-04  Bruno Haible  <bruno@clisp.org>
60398
60399         Make use of gcj-4.3's -fsource and -ftarget option.
60400         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
60401         and if so try the options -fsource and -ftarget.
60402         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
60403         source_version, ftarget_option, target_version arguments.
60404         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
60405         (is_envjavac_oldgcj_14_14_usable): Renamed from
60406         is_envjavac_gcj_14_14_usable.
60407         (is_envjavac_oldgcj_14_13_usable): Renamed from
60408         is_envjavac_gcj_14_13_usable.
60409         (is_gcj_present): Update.
60410         (is_gcj_43, is_gcj43_usable): New functions.
60411         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
60412         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
60413         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
60414         try the options -fsource and -ftarget.
60415
60416 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60417
60418         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
60419         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
60420         larger value.
60421
60422 2007-02-03  Jim Meyering  <jim@meyering.net>
60423
60424         Give tools a better chance to allocate space for very large buffers.
60425         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
60426
60427         Make pwd and readlink work also when run with an unreadable parent dir
60428         on systems with openat support.
60429         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
60430         provided getcwd function, even when we have openat support.
60431         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
60432
60433 2007-02-02  Bruno Haible  <bruno@clisp.org>
60434
60435         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60436         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
60437         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
60438         portability problems if one of these functions is only used on specific
60439         platforms.
60440         Reported by Paul Eggert.
60441
60442 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
60443
60444         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
60445         is causing more trouble than it's curing.
60446         * lib/regex_internal.h (__mempcpy): Remove.
60447         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
60448         (and make the code a tad smaller to boot).
60449         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
60450
60451 2007-02-02  Jim Meyering  <jim@meyering.net>
60452
60453         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
60454         section, not in the Makefile.am: one.
60455
60456 2007-02-02  Eric Blake  <ebb9@byu.net>
60457
60458         * lib/strchrnul.c: Always include config.h first.
60459
60460         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
60461         gnulib strstr is not necessary here.
60462
60463 2007-02-02  Simon Josefsson  <simon@josefsson.org>
60464
60465         * m4/socklen.m4: Fix typo.
60466
60467 2007-02-02  Eric Blake  <ebb9@byu.net>
60468
60469         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
60470         * modules/netinet_in (Makefile.am): Likewise.
60471
60472 2007-02-01  Bruno Haible  <bruno@clisp.org>
60473
60474         * lib/string_.h (GL_LINK_WARNING): New macro.
60475         (strcasecmp, strstr, strcasestr): If provided by the system,
60476         conditionally define as a macro that leads to a warning instead of to
60477         an error.
60478         (strncasecmp): Conditionally define as a macro that leads to a warning.
60479
60480 2007-02-01  Karl Berry  <karl@gnu.org>
60481
60482         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60483
60484 2007-02-01  Bruno Haible  <bruno@clisp.org>
60485
60486         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60487         renamings.
60488
60489 2007-02-01  Eric Blake  <ebb9@byu.net>
60490
60491         * modules/regex (Depends-on): Revert dependence on mempcpy.
60492         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60493         module's definition of mempcpy.
60494         Reported by Paul Eggert.
60495
60496 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60497
60498         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60499         the symbol XYZ before redefining it.  This fixes a problem with
60500         programs that don't use XYZ, when compiled on systems that define
60501         XYZ to something else.
60502
60503 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60504
60505         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60506         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60507         writeable to group or other and (2) is intended to have a special
60508         mode bit that is set or cleared.  In such a case, the directory
60509         should be neither group- nor other-writeable until the special
60510         mode bits are right.
60511
60512 2007-01-31  Eric Blake  <ebb9@byu.net>
60513
60514         * modules/mountlist (Depends-on): Add strstr.
60515
60516         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60517         bug.
60518         * modules/string (Makefile.am): Remove redundant replacement.
60519         * modules/regex (Depends-on): Add mempcpy.
60520
60521 2007-01-31  Bruno Haible  <bruno@clisp.org>
60522
60523         New module description field 'Link'.
60524         * gnulib-tool (func_usage): Document --extract-link-directive.
60525         (sed_extract_prog): Recognize 'Link' directive.
60526         (func_get_link_directive): New function.
60527         (func_import): Show summary of link directives.
60528         Handle --extract-link-directive option.
60529         * modules/acl (Link): New section.
60530         * modules/clock-time (Link): New section.
60531         * modules/euidaccess (Link): New section.
60532         * modules/gettext (Link): New section.
60533         * modules/iconv (Link): New section.
60534         * modules/lock (Link): New section.
60535         * modules/nanosleep (Link): New section.
60536         * modules/readline (Link): New section.
60537
60538 2007-01-27  Bruno Haible  <bruno@clisp.org>
60539
60540         Enforce the use of gnulib modules for unportable <string.h> functions.
60541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60542         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60543         (gl_HEADER_STRING_H_BODY): Require it.
60544         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60545         the symbol XYZ to one that gives a link error.
60546         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60547         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60548         * modules/mempcpy (configure.ac): Likewise.
60549         * modules/memrchr (configure.ac): Likewise.
60550         * modules/stpcpy (configure.ac): Likewise.
60551         * modules/stpncpy (configure.ac): Likewise.
60552         * modules/strcase (configure.ac): Likewise.
60553         * modules/strcasestr (configure.ac): Likewise.
60554         * modules/strchrnul (configure.ac): Likewise.
60555         * modules/strdup (configure.ac): Likewise.
60556         * modules/strndup (configure.ac): Likewise.
60557         * modules/strnlen (configure.ac): Likewise.
60558         * modules/strpbrk (configure.ac): Likewise.
60559         * modules/strsep (configure.ac): Likewise.
60560         * modules/strstr (configure.ac): Likewise.
60561         * modules/strtok_r (configure.ac): Likewise.
60562
60563 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60564
60565         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60566
60567 2007-01-30  Jim Meyering  <jim@meyering.net>
60568
60569         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60570
60571 2007-01-29  Bruno Haible  <bruno@clisp.org>
60572
60573         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60574         * lib/execute.c: Likewise.
60575         * lib/pipe.c: Likewise.
60576         * lib/printf-args.h: Likewise.
60577         * lib/printf-args.c: Likewise.
60578         * lib/printf-parse.c: Likewise.
60579         * lib/vasnprintf.c: Likewise.
60580
60581 2007-01-29  Eric Blake  <ebb9@byu.net>
60582
60583         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60584         declaration.
60585
60586 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60587
60588         * lib/strptime.h (strptime): Use 'restrict' for args where
60589         POSIX requires this.
60590         * lib/strptime.c (strptime): Likewise.
60591         Change license notice from LGPL to GPL, since gnulib-tool will
60592         change this as needed.
60593         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60594         defined.
60595         Include "strptime.h" first, to check interface.
60596         Do not #undef _LIBC and _NL_CURRENT.
60597         Do not include <stdlib.h>; no longer needed.
60598         Include "time_r.h" and declare ptime_locale_status
60599         only if _LIBC is not defined.
60600         (__P): Remove unused macro.
60601         (match_string): Bring back glibc version, but use it only if _LIBC
60602         is defined.
60603         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60604         Remove unnecessary assertion and abort() call.
60605         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60606         * m4/strptime.m4: Fix serial number comment.
60607         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60608         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60609         (Depends-on): Add time_r.
60610
60611 2007-01-29  Bruno Haible  <bruno@clisp.org>
60612
60613         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60614         strptime.
60615         * modules/strptime (Depends-on): Add stdbool.
60616         * lib/strptime.h: Include <time.h> always. Add comments.
60617
60618 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60619
60620         * modules/strptime: New file.
60621         * lib/strptime.h: New file.
60622         * lib/strptime.c: New file.
60623         * m4/strptime.m4: New file.
60624
60625 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60626
60627         * MODULES.html.sh: New module mpsort.
60628         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60629
60630         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60631         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60632         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60633         All uses changed.
60634         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60635         All uses changed.
60636         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60637         to _Restrict_.
60638         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60639         the parameter matches the prototype.
60640
60641 2007-01-28  Jim Meyering  <jim@meyering.net>
60642
60643         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60644         sys/time.h here, reverting that part of the previous patch:
60645         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60646
60647 2007-01-28  Bruno Haible  <bruno@clisp.org>
60648
60649         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60650         value of $(SYS_TIME_H).
60651         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60652         remove it conditionally, too. [added by Jim Meyering]
60653         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60654         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60655         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60656         GETTIMEOFDAY_REPLACEMENT to 1.
60657
60658 2007-01-28  Bruno Haible  <bruno@clisp.org>
60659
60660         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60661         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60662         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60663         Set UNISTD_H instead of UNISTD_H2.
60664         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60665
60666 2007-01-28  Bruno Haible  <bruno@clisp.org>
60667
60668         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60669         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60670
60671 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60672
60673         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60674         (func_create_testdir): Ensure C locale for `grep' and `tr'
60675         character ranges.
60676         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60677         ACLOCAL_AMFLAGS parsing state machine.
60678
60679 2007-01-27  Bruno Haible  <bruno@clisp.org>
60680
60681         * modules/unistr/base: Update.
60682
60683 2007-01-27  Bruno Haible  <bruno@clisp.org>
60684
60685         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60686         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60687         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60688         modules/unistr/u32-mbtouc.
60689         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60690         * lib/unistr.h: Update.
60691         * lib/linebreak.c: Update.
60692         * modules/unistr/u32-mbtouc: Renamed from
60693         modules/unistr/u32-mbtouc-safe.
60694         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60695         * lib/unistr.h: Update.
60696         * lib/unistr/u32-to-u8.c: Update.
60697         * lib/unistr/u32-to-u16.c: Update.
60698
60699 2007-01-27  Bruno Haible  <bruno@clisp.org>
60700
60701         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60702         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60703         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60704         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60705         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60706         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60707         modules/unistr/u16-mbtouc.
60708         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60709         * lib/unistr.h: Update.
60710         * lib/linebreak.c: Update.
60711         * modules/linebreak: Update.
60712         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60713         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60714         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60715         * modules/unistr/u16-mbtouc: Renamed from
60716         modules/unistr/u16-mbtouc-safe.
60717         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60718         * lib/unistr.h: Update.
60719         * lib/unistr/u16-to-u8.c: Update.
60720         * modules/unistr/u16-to-u8: Update.
60721         * lib/unistr/u16-to-u32.c: Update.
60722         * modules/unistr/u16-to-u32: Update.
60723
60724 2007-01-27  Bruno Haible  <bruno@clisp.org>
60725
60726         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60727         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60728         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60729         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60730         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60731         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60732         modules/unistr/u8-mbtouc.
60733         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60734         * lib/unistr.h: Update.
60735         * lib/striconveh.c: Update.
60736         * modules/striconveh: Update.
60737         * lib/linebreak.c: Update.
60738         * modules/linebreak: Update.
60739         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60740         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60741         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60742         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60743         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60744         * lib/unistr.h: Update.
60745         * lib/striconveh.c: Update.
60746         * modules/striconveh: Update.
60747         * lib/unistr/u8-to-u16.c: Update.
60748         * modules/unistr/u8-to-u16: Update.
60749         * lib/unistr/u8-to-u32.c: Update.
60750         * modules/unistr/u8-to-u32: Update.
60751
60752 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60753
60754         Sync from Libtool.
60755         * lib/argz.c: Do not include strings.h nor memory.h, include
60756         string.h unconditionally.  Patch by Simon Josefsson.
60757
60758 2007-01-27  Bruno Haible  <bruno@clisp.org>
60759
60760         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60761         from gl_HEADER_STRING_H_BODY.
60762         (gl_HEADER_STRING_H_BODY): Require it.
60763         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60764         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60765         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60766         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60767         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60768         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60769         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60770         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60771         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60772         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60773         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60774         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60775         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60776         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60777         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60778
60779 2007-01-27  Bruno Haible  <bruno@clisp.org>
60780
60781         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60782         check_PROGRAMS into noinst_PROGRAMS.
60783         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60784         check_PROGRAMS in this case.
60785         (func_import): Set for_test to false.
60786         (func_create_testdir): Set for_test to true.
60787
60788 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60789             Bruno Haible  <bruno@clisp.org>
60790
60791         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60792         (Depends-on): Add string.
60793         (Includes): Use <string.h> instead of strcasestr.h.
60794         * modules/string (Makefile.am): Also substitute the value of
60795         REPLACE_STRCASESTR.
60796         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60797         assume strcasestr is declared in <string.h> not <strings.h>. Also
60798         set REPLACE_STRCASESTR.
60799         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60800         REPLACE_STRCASESTR.
60801         * lib/strcasestr.h: Remove file.
60802         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60803         * lib/string_.h (strcasestr): New declaration.
60804
60805 2007-01-27  Bruno Haible  <bruno@clisp.org>
60806
60807         * lib/string_.h: Use 'extern'.
60808
60809 2007-01-27  Jim Meyering  <jim@meyering.net>
60810
60811         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60812         of set-but-not-used local, "q".
60813
60814         * lib/mempcpy.c: Include <config.h> before <string.h>.
60815         This fixes a compilation error on HP-UX, due to the system's
60816         "restrict"-using mempcpy prototype.
60817
60818 2007-01-26  Bruno Haible  <bruno@clisp.org>
60819
60820         Small optimization.
60821         * lib/javacomp.c: Include c-strstr.h.
60822          (is_envjavac_gcj): Use c_strstr instead of strstr.
60823         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60824
60825 2007-01-26  Bruno Haible  <bruno@clisp.org>
60826
60827         * MODULES.html.sh (Unicode string functions): Add the new modules.
60828
60829         * modules/uniconv/u32-strconv-to-locale: New file.
60830         * lib/uniconv/u32-strconv-to-locale.c: New file.
60831
60832         * modules/uniconv/u16-strconv-to-locale: New file.
60833         * lib/uniconv/u16-strconv-to-locale.c: New file.
60834
60835         * modules/uniconv/u8-strconv-to-locale: New file.
60836         * lib/uniconv/u8-strconv-to-locale.c: New file.
60837
60838         * modules/uniconv/u32-strconv-from-locale: New file.
60839         * lib/uniconv/u32-strconv-from-locale.c: New file.
60840
60841         * modules/uniconv/u16-strconv-from-locale: New file.
60842         * lib/uniconv/u16-strconv-from-locale.c: New file.
60843
60844         * modules/uniconv/u8-strconv-from-locale: New file.
60845         * lib/uniconv/u8-strconv-from-locale.c: New file.
60846
60847         * modules/uniconv/u32-strconv-to-enc: New file.
60848         * lib/uniconv/u32-strconv-to-enc.c: New file.
60849         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60850         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60851
60852         * modules/uniconv/u16-strconv-to-enc: New file.
60853         * lib/uniconv/u16-strconv-to-enc.c: New file.
60854         * lib/uniconv/u-strconv-to-enc.h: New file.
60855         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60856         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60857
60858         * modules/uniconv/u8-strconv-to-enc: New file.
60859         * lib/uniconv/u8-strconv-to-enc.c: New file.
60860         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60861         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60862
60863         * modules/uniconv/u32-strconv-from-enc: New file.
60864         * lib/uniconv/u32-strconv-from-enc.c: New file.
60865         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60866         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60867
60868         * modules/uniconv/u16-strconv-from-enc: New file.
60869         * lib/uniconv/u16-strconv-from-enc.c: New file.
60870         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60871         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60872
60873         * modules/uniconv/u8-strconv-from-enc: New file.
60874         * lib/uniconv/u8-strconv-from-enc.c: New file.
60875         * lib/uniconv/u-strconv-from-enc.h: New file.
60876         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60877         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60878
60879         * modules/uniconv/u32-conv-from-enc: New file.
60880         * lib/uniconv/u32-conv-from-enc.c: New file.
60881         * modules/uniconv/u32-conv-from-enc-tests: New file.
60882         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60883
60884         * modules/uniconv/u16-conv-from-enc: New file.
60885         * lib/uniconv/u16-conv-from-enc.c: New file.
60886         * lib/uniconv/u-conv-from-enc.h: New file.
60887         * modules/uniconv/u16-conv-from-enc-tests: New file.
60888         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60889
60890         * modules/uniconv/u8-conv-from-enc: New file.
60891         * lib/uniconv/u8-conv-from-enc.c: New file.
60892         * modules/uniconv/u8-conv-from-enc-tests: New file.
60893         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60894
60895         * modules/uniconv/base: New file.
60896         * lib/uniconv.h: New file.
60897
60898 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60899
60900         * doc/gnulib-tool.texi (Initial import): Update to match current
60901         behavior with strdup module.
60902         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60903         * lib/memmem.h: Remove; all uses removed.  This is now done
60904         by <string.h>.
60905         * lib/mempcpy.h: Likewise.
60906         * lib/memrchr.h: Likewise.
60907         * lib/stpcpy.h: Likewise.
60908         * lib/stpncpy.h: Likewise.
60909         * lib/strcase.h: Likewise.
60910         * lib/strchrnul.h: Likewise.
60911         * lib/strdup.h: Likewise.
60912         * lib/strndup.h: Likewise.
60913         * lib/strnlen.h: Likewise.
60914         * lib/strpbrk.h: Likewise.
60915         * lib/strsep.h: Likewise.
60916         * lib/strstr.h: Likewise.
60917         * lib/strtok_r.h: Likewise.
60918         * lib/string_.h: New file.
60919         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60920         Rely on <string.h> instead.
60921         * lib/canon-host.c: Likewise.
60922         * lib/chdir-long.c: Likewise.
60923         * lib/concatpath.c: Likewise.
60924         * lib/exclude.c: Likewise.
60925         * lib/fchdir.c: Likewise.
60926         * lib/getaddrinfo.c: Likewise.
60927         * lib/getcwd.c: Likewise.
60928         * lib/getsubopt.c: Likewise.
60929         * lib/glob.c: Likewise.
60930         * lib/hard-locale.c: Likewise.
60931         * lib/iconvme.c: Likewise.
60932         * lib/javacomp.c: Likewise.
60933         * lib/mempcpy.c: Likewise.
60934         * lib/memrchr.c: Likewise.
60935         * lib/regex_internal.h: Likewise.
60936         * lib/stpncpy.c: Likewise.
60937         * lib/strcasecmp.c: Likewise.
60938         * lib/strchrnul.c: Likewise.
60939         * lib/strdup.c: Likewise.
60940         * lib/striconv.c: Likewise.
60941         * lib/striconveh.c: Likewise.
60942         * lib/striconveha.c: Likewise.
60943         * lib/strncasecmp.c: Likewise.
60944         * lib/strndup.c: Likewise.
60945         * lib/strnlen.c: Likewise.
60946         * lib/strsep.c: Likewise.
60947         * lib/strstr.c: Likewise.
60948         * lib/strtok_r.c: Likewise.
60949         * lib/userspec.c: Likewise.
60950         * lib/w32spawn.h: Likewise.
60951         * lib/xstrndup.c: Likewise.
60952         * lib/mountlist.c (strstr): Remove decl.
60953         * m4/string_h.m4: New file.
60954         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60955         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60956         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60957         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60958         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60959         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60960         Set REPLACE_STRCASECMP if necessary.
60961         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60962         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60963         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60964         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60965         HAVE_DECL_STRDUP if necessary.
60966         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60967         since gl_FUNC_STRNDUP does that now.
60968         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60969         Check for decl here...
60970         (gl_PREREQ_STRNLEN): ... not here.
60971         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60972         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60973         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60974         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60975         necessary.
60976         * modules/string: New file.
60977         * modules/memmem (Files): Remove special-purpose include file.
60978         (Depends-on): Add string.
60979         (Include): Include <string.h>, not the removed file.
60980         * modules/mempcpy: Likewise.
60981         * modules/memrchr: Likewise.
60982         * modules/stpcpy: Likewise.
60983         * modules/stpncpy: Likewise.
60984         * modules/strcase: Likewise.
60985         * modules/strchrnul: Likewise.
60986         * modules/strdup: Likewise.
60987         * modules/strndup: Likewise.
60988         * modules/strnlen: Likewise.
60989         * modules/strpbrk: Likewise.
60990         * modules/strsep: Likewise.
60991         * modules/strstr: Likewise.
60992         * modules/strtok_r: Likewise.
60993         * tests/test-dirname.c: Don't include "strdup.h", since
60994         <string.h> now suffices.
60995         * tests/test-memmem.c: Don't include "memmem.h", since
60996         <string.h> now suffices.
60997
60998 2007-01-25  Bruno Haible  <bruno@clisp.org>
60999
61000         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
61001         *resultp is 0.
61002
61003         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
61004         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
61005         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
61006         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
61007
61008         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
61009         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
61010         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
61011         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
61012         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
61013         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
61014
61015 2007-01-24  Bruno Haible  <bruno@clisp.org>
61016
61017         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
61018         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
61019         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
61020         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
61021         gl_FUNC_FTS_CORE.
61022         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
61023         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
61024         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61025         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
61026         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
61027         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
61028         gl_FUNC_FCHOWNAT.
61029         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
61030         gl_FUNC_STRFTIME.
61031         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
61032         Reported by Ralf Wildenhues.
61033
61034 2007-01-24  Bruno Haible  <bruno@clisp.org>
61035
61036         Drop AC_REQUIRE calls that are redundant with the module dependencies.
61037         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
61038         gl_GETADDRINFO.
61039         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
61040         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
61041         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
61042
61043 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
61044
61045         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
61046         Don't use 'exit'; just return from 'main'.
61047         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
61048
61049         * lib/fnmatch_.h: Readjust white space and comments to match
61050         glibc, to avoid spurious diffs.
61051
61052 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61053
61054         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
61055         2004-12-01 change by Jakub Jelinek, since this code won't compile
61056         if !LIBC.  Problem reported by Bob Proulx.
61057
61058 2007-01-23  Bruno Haible  <bruno@clisp.org>
61059
61060         * lib/striconveh.c: Include c-strcaseeq.h.
61061         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
61062         * modules/striconveh (Depends-on): Add c-strcaseeq.
61063
61064 2007-01-23  Bruno Haible  <bruno@clisp.org>
61065
61066         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
61067
61068         * modules/c-strcaseeq: New file.
61069         * lib/c-strcaseeq.h: New file.
61070
61071         * modules/streq: New file.
61072         * lib/streq.h: New file.
61073
61074 2007-01-23  Bruno Haible  <bruno@clisp.org>
61075
61076         * modules/striconveha-tests: New file.
61077         * tests/test-striconveha.c: New file.
61078
61079         * lib/striconveha.h: Include <stdbool.h>.
61080         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
61081         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
61082         (mem_iconveha_notranslit): Renamed from mem_iconveha.
61083         (mem_iconveha): New function.
61084         (str_iconveha_notranslit): Renamed from str_iconveha.
61085         (str_iconveha): New function.
61086         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
61087         c-strcase.
61088
61089 2007-01-23  Bruno Haible  <bruno@clisp.org>
61090
61091         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
61092         encodings without forgiving before trying any encoding with handler.
61093         (str_iconveha): Try all encodings without forgiving before trying any
61094         encoding with handler.
61095
61096 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61097
61098         Import the following changes from libc.
61099
61100         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61101
61102         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
61103
61104         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61105
61106         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
61107         normal_bracket label.
61108
61109         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
61110
61111         [BZ #361]
61112         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
61113         to normal_bracket after fetching the next character.
61114
61115 2007-01-22  Bruno Haible  <bruno@clisp.org>
61116
61117         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
61118         argument.
61119         * lib/striconveh.c (iconv_carefully_1): New function.
61120         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
61121         argument.
61122         (str_cd_iconveh): Update.
61123         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
61124         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
61125         * tests/test-striconveh.c (MAGIC): New macro.
61126         (new_offsets): New function.
61127         (main): Test call with and without offsets.
61128
61129 2007-01-22  Bruno Haible  <bruno@clisp.org>
61130
61131         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
61132         * modules/sys_select (Makefile.am): Likewise.
61133         * modules/sys_socket (Makefile.am): Likewise.
61134         * modules/sys_time (Makefile.am): Likewise.
61135
61136 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61137
61138         * modules/gettimeofday (License): Change from GPL to LGPL, since
61139         gettimeofday is a library function.
61140
61141 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61142
61143         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
61144
61145 2007-01-21  Bruno Haible  <bruno@clisp.org>
61146
61147         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
61148
61149 2007-01-21  Bruno Haible  <bruno@clisp.org>
61150
61151         * modules/striconveha: New file.
61152         * lib/striconveha.h: New file.
61153         * lib/striconveha.c: New file.
61154         * MODULES.html.sh (Internationalization functions): Add striconveha.
61155         * lib/striconv.c (str_iconv): Optimize the case of an empty input
61156         string.
61157         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
61158
61159 2007-01-21  Bruno Haible  <bruno@clisp.org>
61160
61161         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
61162         * lib/striconveh.c (str_iconveh): Likewise.
61163
61164 2007-01-21  Bruno Haible  <bruno@clisp.org>
61165
61166         * lib/striconveh.h (mem_iconveh): New declaration.
61167         * lib/striconveh.c (mem_iconveh): New function.
61168         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
61169
61170 2007-01-21  Bruno Haible  <bruno@clisp.org>
61171
61172         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
61173
61174         * lib/striconveh.h (mem_cd_iconveh): Change specification.
61175         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
61176         original result buffer.
61177         (str_cd_iconveh): Update.
61178         * tests/test-striconveh.c (main): Update.
61179
61180         * lib/striconv.h (mem_cd_iconv): Change specification.
61181         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
61182         result buffer.
61183         (str_cd_iconv): Update.
61184         * tests/test-striconv.c (main): Update.
61185
61186 2007-01-21  Bruno Haible  <bruno@clisp.org>
61187
61188         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
61189
61190 2007-01-20  Jim Meyering  <jim@meyering.net>
61191
61192         * lib/userspec.c (parse_with_separator): If a user or group string
61193         starts with "+", skip the corresponding name-to-ID look-up, since
61194         such a look-up must fail: user and group names may not include "+".
61195
61196 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61197
61198         * lib/poll.c: Include sys/time.h and time.h unconditionally,
61199         since we now assume the sys_time module.
61200         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
61201         check for sys/time.h; no longer needed.
61202         * modules/poll (Depends-on): Depend on sys_time.
61203
61204 2007-01-18  Bruno Haible  <bruno@clisp.org>
61205
61206         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
61207         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61208
61209         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
61210         gettimeofday.
61211
61212         * tests/test-gettimeofday.c: Include <time.h>.
61213         (dummy): Remove variable.
61214
61215         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
61216         gl_HEADER_SYS_TIME_H.
61217         (gl_HEADER_SYS_TIME_H): New macro.
61218
61219         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
61220         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61221         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
61222         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
61223         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61224         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
61225         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
61226         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61227         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
61228         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
61229         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61230
61231         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
61232         last change; it caused a compilation error when cross-compiling to
61233         Cygwin.
61234
61235 2007-01-18  Jim Meyering  <jim@meyering.net>
61236
61237         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
61238         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
61239         than the race-prone "test -d sys || mkdir sys".
61240         (configure.ac): Use AC_PROG_MKDIR_P.
61241         * modules/sys_select: Likewise.
61242         * modules/sys_socket: Likewise.
61243         * modules/sys_time: Likewise.
61244
61245 2007-01-18  Eric Blake  <ebb9@byu.net>
61246
61247         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
61248         replace gettimeofday.
61249         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
61250         name, to avoid infinite recursion.
61251
61252 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61253
61254         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61255         module sys_time.
61256         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61257         assume timespec.h defines struct timeval.
61258         * lib/settime.c: Likewise.
61259         * lib/utimens.c: Likewise.
61260         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61261         since we now assume the gettimeofday module.
61262         * lib/tempname.c (__gen_tempname): Likewise.
61263         * lib/gettimeofday.h: Remove.
61264         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61265         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61266         Include <time.h>, for 'time()'.
61267         (localtime_buffer_addr): Also use this workaround if
61268         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61269         to simplify the uses.  All uses changed.
61270         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61271         that #undef is inside {}, and 'const' follows type name consistently.
61272         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61273         (gettimeofday): Do not use the maximum possible value for
61274         tv->tv_usec, since that might break usages other than ls.c.
61275         Instead, we'll leave ls.c alone.  This undoes today's patch
61276         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61277         we've never observed the problem but might as well keep the
61278         canary.
61279         * lib/nanosleep.c: Include timespec.h first, for interface check.
61280         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61281         now assume the sys_time module.
61282         * lib/tempname.c: Likewise.
61283         * lib/timespec.h: Likewise.
61284         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61285         needed.
61286         * lib/strftime.c: Likewise.
61287         * lib/timespec.h: Likewise.
61288         * lib/posixtm.c: Include posixtm.h first, for interface check.
61289         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61290         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61291         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61292         * lib/sys_time_.h: New file.
61293         * lib/timespec.h (struct timespec): Use long int, not long.
61294         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61295         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61296         Remove obsolescent call to AC_HEADER_TIME.
61297         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61298         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61299         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61300         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61301         Likewise.
61302         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61303         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61304         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61305         into the sys_time module.  Check for gettimeofday just once.
61306         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61307         for gettimeofday signature to just check the signature.  Merely
61308         compile it, since linking doesn't test signature.  Improve test for
61309         whether gettimeofday.o is actually needed.
61310         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61311         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61312         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61313         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61314         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61315         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61316         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61317         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61318         than worrying about sys/time.h.
61319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61320         Don't bother worrying about TIME_WITH_SYS_TIME.
61321         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61322         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61323         * m4/sys_time_h.m4: New file.
61324         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61325         Don't include sys/time.h.  Return from main rather than exiting.
61326         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61327         all uses changed.
61328         * modules/gethrxtime (Depends-on): Add sys_time.
61329         * modules/gettime (Depends-on): Likewise.
61330         * modules/gettimeofday (Depends-on): Likewise.
61331         * modules/nanosleep (Depends-on): Likewise.
61332         * modules/settime (Depends-on): Likewise.
61333         * modules/tempname (Depends-on): Likewise.
61334         * modules/utimens (Depends-on): Likewise.
61335         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61336         (Include): Change back to <sys/time.h>.
61337         (Maintainer): Add self.
61338         * modules/sys_time: New file.
61339         * modules/tempname (Depends-on): Add gettimeofday.
61340         * tests/test-gettimeofday.c: Include <sys/time.h>
61341         rather than gettimeofday.h.
61342
61343 2007-01-17  Bruno Haible  <bruno@clisp.org>
61344
61345         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61346         the license default to GPL.
61347         (func_create_testdir): Don't complain if a module is LGPL and its
61348         tests module depends on GPLed modules.
61349
61350 2007-01-17  Bruno Haible  <bruno@clisp.org>
61351
61352         * lib/gettimeofday.c (gettimeofday): Add code for the case
61353         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61354         maximum possible value for tv->tv_usec, rather than the minimum one.
61355
61356 2005-10-08  Martin Lambers  <marlam@marlam.de>
61357 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61358 2007-01-16  Bruno Haible  <bruno@clisp.org>
61359
61360         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61361         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61362         gl_FUNC_GETTIMEOFDAY.
61363         (Include): Add gettimeofday.h.
61364         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61365         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61366         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61367         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61368         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61369         * lib/gettimeofday.h: New file.
61370         * lib/gettimeofday.c: Include <sys/timeb.h>.
61371         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61372         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61373         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61374         fall back on time().
61375
61376         * tests/test-gettimeofday.c: New file.
61377         * modules/gettimeofday-tests: New file.
61378
61379 2007-01-16  Eric Blake  <ebb9@byu.net>
61380
61381         * modules/fnmatch (Depends-on): Depend on wchar.
61382         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61383         * m4/fnmatch.m4: Likewise.
61384         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61385         * m4/mbchar.m4: Likewise.
61386         * modules/mbswidth (Depends-on): Depend on wchar.
61387         * lib/mbswidth.c: Assume <wchar.h>.
61388         * m4/mbswidth.m4: Likewise.
61389         * modules/quotearg (Depends-on): Depend on wchar.
61390         * lib/quotearg.c: Assume <wchar.h>.
61391         * m4/quotearg.m4: Likewise.
61392         * modules/regex (Depends-on): Depend on wchar.
61393         * lib/regex_internal.h: Assume <wchar.h>.
61394         * m4/regex.m4: Likewise.
61395         * modules/stdint (Depends-on): Depend on wchar.
61396         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
61397         * m4/stdint.m4: Likewise.
61398         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
61399         * modules/strftime (Depends-on): Depend on wchar.
61400         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
61401         * modules/strtol (Depends-on): Depend on wchar.
61402         * lib/strtol.c: Assume <wchar.h>.
61403         * modules/wcwidth (Depends-on): Depend on wchar.
61404         * lib/wcwidth.h: Assume <wchar.h>.
61405         * m4/wcwidth.m4: Likewise.
61406
61407 2007-01-16  Bruno Haible  <bruno@clisp.org>
61408
61409         * modules/csharpexec-script: New, created from...
61410         * modules/csharpexec: ... this.
61411
61412 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61413
61414         * modules/javaexec-script: New, created from...
61415         * modules/javaexec: ... this.
61416
61417 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61418
61419         * modules/poll (Dependencies): Add sys_select.
61420
61421 2007-01-15  Jim Meyering  <jim@meyering.net>
61422
61423         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
61424         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
61425         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
61426         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
61427
61428 2007-01-15  Bruno Haible  <bruno@clisp.org>
61429
61430         * modules/striconveh: New file.
61431         * lib/striconveh.h: New file.
61432         * lib/striconveh.c: New file.
61433         * MODULES.html.sh (Internationalization functions): Add striconveh.
61434
61435         * modules/striconveh-tests: New file.
61436         * tests/test-striconveh.c: New file.
61437
61438 2007-01-15  Bruno Haible  <bruno@clisp.org>
61439
61440         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
61441         not from GNU libiconv or GNU libc.
61442
61443 2007-01-15  Bruno Haible  <bruno@clisp.org>
61444
61445         * doc/gnulib-intro.texi (Copyright): Explain the different license
61446         terms for module descriptions, autoconf macros, tests, documentation.
61447
61448 2007-01-14  Bruno Haible  <bruno@clisp.org>
61449
61450         * modules/striconv-tests: New file.
61451         * tests/test-striconv.c: New file.
61452
61453 2007-01-14  Bruno Haible  <bruno@clisp.org>
61454
61455         * modules/iconv-tests: New file.
61456         * tests/test-iconv.c: New file.
61457
61458 2007-01-14  Bruno Haible  <bruno@clisp.org>
61459
61460         * gnulib-tool (func_get_license): For test modules, use the license of
61461         the main module.
61462
61463 2007-01-14  Bruno Haible  <bruno@clisp.org>
61464
61465         * modules/iconv (Include): Clarify that <iconv.h> can only be included
61466         if iconv is found to exist.
61467
61468 2007-01-14  Bruno Haible  <bruno@clisp.org>
61469
61470         * modules/c-ctype-tests: New file.
61471         * tests/test-c-ctype.c: New file.
61472
61473 2007-01-14  Bruno Haible  <bruno@clisp.org>
61474
61475         * modules/binary-io-tests: New file.
61476         * tests/test-binary-io.sh: New file.
61477         * tests/test-binary-io.c: New file.
61478
61479 2007-01-14  Bruno Haible  <bruno@clisp.org>
61480
61481         * modules/array-oset-tests: New file.
61482         * tests/test-array_oset.c: New file.
61483
61484 2007-01-14  Bruno Haible  <bruno@clisp.org>
61485
61486         * modules/array-list-tests: New file.
61487         * tests/test-array_list.c: New file.
61488
61489 2007-01-14  Bruno Haible  <bruno@clisp.org>
61490
61491         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61492         and make.
61493         Reported by Simon Josefsson in
61494         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61495
61496 2007-01-14  Bruno Haible  <bruno@clisp.org>
61497
61498         * modules/allocsa-tests: New file.
61499         * tests/test-allocsa.c: New file.
61500
61501 2007-01-14  Bruno Haible  <bruno@clisp.org>
61502
61503         * modules/fchdir (Depends-on): Add absolute-header.
61504         * modules/unistd (Depends-on): Likewise.
61505
61506 2006-12-30  Bruno Haible  <bruno@clisp.org>
61507
61508         * modules/fchdir: New file.
61509         * modules/unistd (Files): Add lib/unistd_.h.
61510         (Makefile.am): Generate unistd.h from unistd_.h.
61511         * lib/fchdir.c: New file.
61512         * lib/dirent_.h: New file.
61513         * lib/unistd_.h: New file.
61514         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61515         * m4/fchdir.m4: New file.
61516         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61517         (gl_HEADER_UNISTD): Invoke it.
61518         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61519         function.
61520         * lib/backupfile.c (opendir, closedir): Undefine.
61521         * lib/chown.c (open, close): Undefine.
61522         * lib/clean-temp.c (open, close): Undefine.
61523         * lib/copy-file.c (open, close): Undefine.
61524         * lib/execute.c (open, close): Undefine.
61525         * lib/fsusage.c (open, close): Undefine.
61526         * lib/gc-gnulib.c (open, close): Undefine.
61527         * lib/getcwd.c (opendir, closedir): Undefine.
61528         * lib/glob.c (opendir, closedir): Undefine.
61529         * lib/javacomp.c (open, close): Undefine.
61530         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61531         * lib/openat-proc.c (open, close): Undefine.
61532         * lib/pagealign_alloc.c (open, close): Undefine.
61533         * lib/pipe.c (open, close): Undefine.
61534         * lib/progreloc.c (open, close): Undefine.
61535         * lib/savedir.c (opendir, closedir): Undefine.
61536         * lib/utime.c (open, close): Undefine.
61537         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61538
61539 2007-01-10  Bruno Haible  <bruno@clisp.org>
61540
61541         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61542
61543 2007-01-12  Eric Blake  <ebb9@byu.net>
61544
61545         Provide a robust <wchar.h>.  Further simplifications are now
61546         possible in other modules, but not included here.
61547         * modules/wchar: New module.
61548         * m4/wchar.m4: New file.
61549         * lib/wchar_.h: Likewise.
61550         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61551         of the new module.
61552         * MODULES.html.sh (Extended multibyte and wide character utilities):
61553         New section.
61554
61555 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61556
61557         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61558         to a reasonable default for memory allocation.
61559         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61560         file system that reports garbage st_size values for symlinks.
61561         Problem reported by Liyang Hu.
61562
61563 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61564
61565         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61566         Emacs .#* auto-save files).
61567
61568 2007-01-11  Bruno Haible  <bruno@clisp.org>
61569
61570         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61571         directory.
61572
61573 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61574
61575         Use @...@ consistently in lib/wctype_.h.
61576         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61577         on it being set to 1 or 0.
61578         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61579         go back to AC_SUBSTing it.
61580         * modules/wctype (Makefile.am): Undo previous change.
61581
61582 2007-01-10  Eric Blake  <ebb9@byu.net>
61583
61584         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61585         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61586         * modules/wctype (Makefile.am): Likewise.
61587         Reported by Chris McGuire.
61588
61589 2007-01-10  Jim Meyering  <jim@meyering.net>
61590
61591         fts.c: a small readability/maintainability improvement
61592         * lib/fts.c (fts_read): Make this code slightly more readable and
61593         maintainable by hoisting the "sp->fts_cur = p" assignments to
61594         immediately follow the statements that set P.  Derived from
61595         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61596
61597 2007-01-10  Eric Blake  <ebb9@byu.net>
61598
61599         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61600         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61601         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61602         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61603         Reported by Chris McGuire.
61604
61605 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61606
61607         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61608         in sed script.
61609
61610 2007-01-09  Bruno Haible  <bruno@clisp.org>
61611
61612         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61613         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61614         variables.
61615         (func_module): Use them.
61616
61617 2007-01-09  Bruno Haible  <bruno@clisp.org>
61618
61619         * modules/unistr/base: New file.
61620         * lib/unistr.h: New file.
61621
61622         * modules/unistr/u8-to-u16: New file.
61623         * lib/unistr/u8-to-u16.c: New file.
61624
61625         * modules/unistr/u8-to-u32: New file.
61626         * lib/unistr/u8-to-u32.c: New file.
61627
61628         * modules/unistr/u16-to-u8: New file.
61629         * lib/unistr/u16-to-u8.c: New file.
61630
61631         * modules/unistr/u16-to-u32: New file.
61632         * lib/unistr/u16-to-u32.c: New file.
61633
61634         * modules/unistr/u32-to-u8: New file.
61635         * lib/unistr/u32-to-u8.c: New file.
61636
61637         * modules/unistr/u32-to-u16: New file.
61638         * lib/unistr/u32-to-u16.c: New file.
61639
61640         * modules/unistr/u8-check: New file.
61641         * modules/unistr/u16-check: New file.
61642         * modules/unistr/u32-check: New file.
61643         * lib/unistr/u8-check.c: New file.
61644         * lib/unistr/u16-check.c: New file.
61645         * lib/unistr/u32-check.c: New file.
61646
61647         * modules/unistr/u8-chr: New file.
61648         * modules/unistr/u16-chr: New file.
61649         * modules/unistr/u32-chr: New file.
61650         * lib/unistr/u8-chr.c: New file.
61651         * lib/unistr/u16-chr.c: New file.
61652         * lib/unistr/u32-chr.c: New file.
61653
61654         * modules/unistr/u8-cmp: New file.
61655         * modules/unistr/u16-cmp: New file.
61656         * modules/unistr/u32-cmp: New file.
61657         * lib/unistr/u8-cmp.c: New file.
61658         * lib/unistr/u16-cmp.c: New file.
61659         * lib/unistr/u32-cmp.c: New file.
61660
61661         * modules/unistr/u8-cpy: New file.
61662         * modules/unistr/u16-cpy: New file.
61663         * modules/unistr/u32-cpy: New file.
61664         * lib/unistr/u8-cpy.c: New file.
61665         * lib/unistr/u16-cpy.c: New file.
61666         * lib/unistr/u32-cpy.c: New file.
61667         * lib/unistr/u-cpy.h: New file.
61668
61669         * modules/unistr/u8-cpy-alloc: New file.
61670         * modules/unistr/u16-cpy-alloc: New file.
61671         * modules/unistr/u32-cpy-alloc: New file.
61672         * lib/unistr/u8-cpy-alloc.c: New file.
61673         * lib/unistr/u16-cpy-alloc.c: New file.
61674         * lib/unistr/u32-cpy-alloc.c: New file.
61675         * lib/unistr/u-cpy-alloc.h: New file.
61676
61677         * modules/unistr/u8-endswith: New file.
61678         * modules/unistr/u16-endswith: New file.
61679         * modules/unistr/u32-endswith: New file.
61680         * lib/unistr/u8-endswith.c: New file.
61681         * lib/unistr/u16-endswith.c: New file.
61682         * lib/unistr/u32-endswith.c: New file.
61683         * lib/unistr/u-endswith.h: New file.
61684
61685         * modules/unistr/u8-mblen: New file.
61686         * modules/unistr/u16-mblen: New file.
61687         * modules/unistr/u32-mblen: New file.
61688         * lib/unistr/u8-mblen.c: New file.
61689         * lib/unistr/u16-mblen.c: New file.
61690         * lib/unistr/u32-mblen.c: New file.
61691
61692         * modules/unistr/u8-mbtouc: New file.
61693         * modules/unistr/u16-mbtouc: New file.
61694         * modules/unistr/u32-mbtouc: New file.
61695         * lib/unistr/u8-mbtouc.c: New file.
61696         * lib/unistr/u16-mbtouc.c: New file.
61697         * lib/unistr/u32-mbtouc.c: New file.
61698
61699         * modules/unistr/u8-mbtouc-safe: New file.
61700         * modules/unistr/u16-mbtouc-safe: New file.
61701         * modules/unistr/u32-mbtouc-safe: New file.
61702         * lib/unistr/u8-mbtouc-safe.c: New file.
61703         * lib/unistr/u16-mbtouc-safe.c: New file.
61704         * lib/unistr/u32-mbtouc-safe.c: New file.
61705
61706         * modules/unistr/u8-move: New file.
61707         * modules/unistr/u16-move: New file.
61708         * modules/unistr/u32-move: New file.
61709         * lib/unistr/u8-move.c: New file.
61710         * lib/unistr/u16-move.c: New file.
61711         * lib/unistr/u32-move.c: New file.
61712         * lib/unistr/u-move.h: New file.
61713
61714         * modules/unistr/u8-next: New file.
61715         * modules/unistr/u16-next: New file.
61716         * modules/unistr/u32-next: New file.
61717         * lib/unistr/u8-next.c: New file.
61718         * lib/unistr/u16-next.c: New file.
61719         * lib/unistr/u32-next.c: New file.
61720
61721         * modules/unistr/u8-prev: New file.
61722         * modules/unistr/u16-prev: New file.
61723         * modules/unistr/u32-prev: New file.
61724         * lib/unistr/u8-prev.c: New file.
61725         * lib/unistr/u16-prev.c: New file.
61726         * lib/unistr/u32-prev.c: New file.
61727
61728         * modules/unistr/u8-set: New file.
61729         * modules/unistr/u16-set: New file.
61730         * modules/unistr/u32-set: New file.
61731         * lib/unistr/u8-set.c: New file.
61732         * lib/unistr/u16-set.c: New file.
61733         * lib/unistr/u32-set.c: New file.
61734         * lib/unistr/u-set.h: New file.
61735
61736         * modules/unistr/u8-startswith: New file.
61737         * modules/unistr/u16-startswith: New file.
61738         * modules/unistr/u32-startswith: New file.
61739         * lib/unistr/u8-startswith.c: New file.
61740         * lib/unistr/u16-startswith.c: New file.
61741         * lib/unistr/u32-startswith.c: New file.
61742         * lib/unistr/u-startswith.h: New file.
61743
61744         * modules/unistr/u8-stpcpy: New file.
61745         * modules/unistr/u16-stpcpy: New file.
61746         * modules/unistr/u32-stpcpy: New file.
61747         * lib/unistr/u8-stpcpy.c: New file.
61748         * lib/unistr/u16-stpcpy.c: New file.
61749         * lib/unistr/u32-stpcpy.c: New file.
61750         * lib/unistr/u-stpcpy.h: New file.
61751
61752         * modules/unistr/u8-stpncpy: New file.
61753         * modules/unistr/u16-stpncpy: New file.
61754         * modules/unistr/u32-stpncpy: New file.
61755         * lib/unistr/u8-stpncpy.c: New file.
61756         * lib/unistr/u16-stpncpy.c: New file.
61757         * lib/unistr/u32-stpncpy.c: New file.
61758         * lib/unistr/u-stpncpy.h: New file.
61759
61760         * modules/unistr/u8-strcat: New file.
61761         * modules/unistr/u16-strcat: New file.
61762         * modules/unistr/u32-strcat: New file.
61763         * lib/unistr/u8-strcat.c: New file.
61764         * lib/unistr/u16-strcat.c: New file.
61765         * lib/unistr/u32-strcat.c: New file.
61766         * lib/unistr/u-strcat.h: New file.
61767
61768         * modules/unistr/u8-strchr: New file.
61769         * modules/unistr/u16-strchr: New file.
61770         * modules/unistr/u32-strchr: New file.
61771         * lib/unistr/u8-strchr.c: New file.
61772         * lib/unistr/u16-strchr.c: New file.
61773         * lib/unistr/u32-strchr.c: New file.
61774
61775         * modules/unistr/u8-strcmp: New file.
61776         * modules/unistr/u16-strcmp: New file.
61777         * modules/unistr/u32-strcmp: New file.
61778         * lib/unistr/u8-strcmp.c: New file.
61779         * lib/unistr/u16-strcmp.c: New file.
61780         * lib/unistr/u32-strcmp.c: New file.
61781
61782         * modules/unistr/u8-strcpy: New file.
61783         * modules/unistr/u16-strcpy: New file.
61784         * modules/unistr/u32-strcpy: New file.
61785         * lib/unistr/u8-strcpy.c: New file.
61786         * lib/unistr/u16-strcpy.c: New file.
61787         * lib/unistr/u32-strcpy.c: New file.
61788         * lib/unistr/u-strcpy.h: New file.
61789
61790         * modules/unistr/u8-strcspn: New file.
61791         * modules/unistr/u16-strcspn: New file.
61792         * modules/unistr/u32-strcspn: New file.
61793         * lib/unistr/u8-strcspn.c: New file.
61794         * lib/unistr/u16-strcspn.c: New file.
61795         * lib/unistr/u32-strcspn.c: New file.
61796         * lib/unistr/u-strcspn.h: New file.
61797
61798         * modules/unistr/u8-strdup: New file.
61799         * modules/unistr/u16-strdup: New file.
61800         * modules/unistr/u32-strdup: New file.
61801         * lib/unistr/u8-strdup.c: New file.
61802         * lib/unistr/u16-strdup.c: New file.
61803         * lib/unistr/u32-strdup.c: New file.
61804         * lib/unistr/u-strdup.h: New file.
61805
61806         * modules/unistr/u8-strlen: New file.
61807         * modules/unistr/u16-strlen: New file.
61808         * modules/unistr/u32-strlen: New file.
61809         * lib/unistr/u8-strlen.c: New file.
61810         * lib/unistr/u16-strlen.c: New file.
61811         * lib/unistr/u32-strlen.c: New file.
61812         * lib/unistr/u-strlen.h: New file.
61813
61814         * modules/unistr/u8-strmblen: New file.
61815         * modules/unistr/u16-strmblen: New file.
61816         * modules/unistr/u32-strmblen: New file.
61817         * lib/unistr/u8-strmblen.c: New file.
61818         * lib/unistr/u16-strmblen.c: New file.
61819         * lib/unistr/u32-strmblen.c: New file.
61820
61821         * modules/unistr/u8-strmbtouc: New file.
61822         * modules/unistr/u16-strmbtouc: New file.
61823         * modules/unistr/u32-strmbtouc: New file.
61824         * lib/unistr/u8-strmbtouc.c: New file.
61825         * lib/unistr/u16-strmbtouc.c: New file.
61826         * lib/unistr/u32-strmbtouc.c: New file.
61827
61828         * modules/unistr/u8-strncat: New file.
61829         * modules/unistr/u16-strncat: New file.
61830         * modules/unistr/u32-strncat: New file.
61831         * lib/unistr/u8-strncat.c: New file.
61832         * lib/unistr/u16-strncat.c: New file.
61833         * lib/unistr/u32-strncat.c: New file.
61834         * lib/unistr/u-strncat.h: New file.
61835
61836         * modules/unistr/u8-strncmp: New file.
61837         * modules/unistr/u16-strncmp: New file.
61838         * modules/unistr/u32-strncmp: New file.
61839         * lib/unistr/u8-strncmp.c: New file.
61840         * lib/unistr/u16-strncmp.c: New file.
61841         * lib/unistr/u32-strncmp.c: New file.
61842
61843         * modules/unistr/u8-strncpy: New file.
61844         * modules/unistr/u16-strncpy: New file.
61845         * modules/unistr/u32-strncpy: New file.
61846         * lib/unistr/u8-strncpy.c: New file.
61847         * lib/unistr/u16-strncpy.c: New file.
61848         * lib/unistr/u32-strncpy.c: New file.
61849         * lib/unistr/u-strncpy.h: New file.
61850
61851         * modules/unistr/u8-strnlen: New file.
61852         * modules/unistr/u16-strnlen: New file.
61853         * modules/unistr/u32-strnlen: New file.
61854         * lib/unistr/u8-strnlen.c: New file.
61855         * lib/unistr/u16-strnlen.c: New file.
61856         * lib/unistr/u32-strnlen.c: New file.
61857         * lib/unistr/u-strnlen.h: New file.
61858
61859         * modules/unistr/u8-strpbrk: New file.
61860         * modules/unistr/u16-strpbrk: New file.
61861         * modules/unistr/u32-strpbrk: New file.
61862         * lib/unistr/u8-strpbrk.c: New file.
61863         * lib/unistr/u16-strpbrk.c: New file.
61864         * lib/unistr/u32-strpbrk.c: New file.
61865         * lib/unistr/u-strpbrk.h: New file.
61866
61867         * modules/unistr/u8-strrchr: New file.
61868         * modules/unistr/u16-strrchr: New file.
61869         * modules/unistr/u32-strrchr: New file.
61870         * lib/unistr/u8-strrchr.c: New file.
61871         * lib/unistr/u16-strrchr.c: New file.
61872         * lib/unistr/u32-strrchr.c: New file.
61873
61874         * modules/unistr/u8-strspn: New file.
61875         * modules/unistr/u16-strspn: New file.
61876         * modules/unistr/u32-strspn: New file.
61877         * lib/unistr/u8-strspn.c: New file.
61878         * lib/unistr/u16-strspn.c: New file.
61879         * lib/unistr/u32-strspn.c: New file.
61880         * lib/unistr/u-strspn.h: New file.
61881
61882         * modules/unistr/u8-strstr: New file.
61883         * modules/unistr/u16-strstr: New file.
61884         * modules/unistr/u32-strstr: New file.
61885         * lib/unistr/u8-strstr.c: New file.
61886         * lib/unistr/u16-strstr.c: New file.
61887         * lib/unistr/u32-strstr.c: New file.
61888         * lib/unistr/u-strstr.h: New file.
61889
61890         * modules/unistr/u8-strtok: New file.
61891         * modules/unistr/u16-strtok: New file.
61892         * modules/unistr/u32-strtok: New file.
61893         * lib/unistr/u8-strtok.c: New file.
61894         * lib/unistr/u16-strtok.c: New file.
61895         * lib/unistr/u32-strtok.c: New file.
61896         * lib/unistr/u-strtok.h: New file.
61897
61898         * modules/unistr/u8-uctomb: New file.
61899         * modules/unistr/u16-uctomb: New file.
61900         * modules/unistr/u32-uctomb: New file.
61901         * lib/unistr/u8-uctomb.c: New file.
61902         * lib/unistr/u16-uctomb.c: New file.
61903         * lib/unistr/u32-uctomb.c: New file.
61904
61905         * MODULES.html.sh (Unicode string functions): Add the new modules.
61906
61907 2007-01-08  Bruno Haible  <bruno@clisp.org>
61908
61909         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61910         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61911         subdirectories.
61912
61913 2007-01-08  Karl Berry  <karl@gnu.org>
61914
61915         * doc/error.texi: mention that main() fns must set program_name
61916         when progname is used.
61917
61918 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61919
61920         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61921         WCTYPE_H is empty, for the benefit of builds from non-distclean
61922         directories.  Problem reported by Eric Blake in
61923         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61924
61925 2007-01-08  Bruno Haible  <bruno@clisp.org>
61926
61927         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61928         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61929         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61930         PROVIDE_CANONICALIZE_FILENAME_MODE.
61931         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61932
61933 2007-01-08  Bruno Haible  <bruno@clisp.org>
61934
61935         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61936         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61937         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61938         * lib/fts.c: Likewise.
61939         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61940
61941 2006-12-25  Bruno Haible  <bruno@clisp.org>
61942
61943         * modules/utf8-ucs4-safe: New file.
61944         * lib/utf8-ucs4-safe.h: New file.
61945         * lib/unistr/utf8-ucs4-safe.c: New file.
61946
61947         * modules/utf16-ucs4-safe: New file.
61948         * lib/utf16-ucs4-safe.h: New file.
61949         * lib/unistr/utf16-ucs4-safe.c: New file.
61950
61951         * MODULES.html.sh (Unicode string functions): Add the new modules.
61952
61953 2007-01-08  Bruno Haible  <bruno@clisp.org>
61954
61955         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61956         (Depends-on): Add unitypes.
61957         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61958         (u8_mbtouc_aux): Move out to separate file.
61959         (u8_mbtouc): Use ucs4_t, uint8_t types.
61960         * lib/unistr/utf8-ucs4.c: New file.
61961
61962         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61963         (Depends-on): Add unitypes.
61964         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61965         (u16_mbtouc_aux): Move out to separate file.
61966         (u16_mbtouc): Use ucs4_t, uint16_t types.
61967         * lib/unistr/utf16-ucs4.c: New file.
61968
61969         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61970         (Depends-on): Add unitypes.
61971         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61972         (u8_uctomb_aux): Move out to separate file.
61973         (u8_uctomb): Use ucs4_t, uint8_t types.
61974         * lib/unistr/ucs4-utf8.c: New file.
61975
61976         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61977         (Depends-on): Add unitypes.
61978         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61979         (u16_uctomb_aux): Move out to separate file.
61980         (u16_uctomb): Use ucs4_t, uint16_t types.
61981         * lib/unistr/ucs4-utf16.c: New file.
61982
61983 2006-12-25  Bruno Haible  <bruno@clisp.org>
61984
61985         * modules/unitypes: New file.
61986         * lib/unitypes.h: New file.
61987         * MODULES.html.sh (func_all_modules): New section "Unicode string
61988         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61989         this section. Add unitypes.
61990
61991 2007-01-08  Bruno Haible  <bruno@clisp.org>
61992
61993         Avoid variable names that conflict with those from libtool.
61994         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61995         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61996         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61997         library_names_spec to acl_library_names_spec, hardcode_* to
61998         acl_hardcode_*.
61999         Reported by Ralf Wildenhues.
62000
62001 2007-01-08  Bruno Haible  <bruno@clisp.org>
62002
62003         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
62004         definition.
62005         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
62006         definition.
62007         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
62008         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
62009         definition.
62010         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
62011         definition.
62012         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
62013         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
62014         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
62015         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
62016         definition.
62017         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
62018         definition.
62019         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
62020         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
62021         GC_USE_<algorithm>.
62022         * lib/gc-libgcrypt.c: Likewise.
62023         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
62024         * modules/gc-arctwo (configure.ac): Likewise.
62025         * modules/gc-des (configure.ac): Likewise.
62026         * modules/gc-hmac-md5 (configure.ac): Likewise.
62027         * modules/gc-hmac-sha1 (configure.ac): Likewise.
62028         * modules/gc-md2 (configure.ac): Likewise.
62029         * modules/gc-md4 (configure.ac): Likewise.
62030         * modules/gc-md5 (configure.ac): Likewise.
62031         * modules/gc-random (configure.ac): Likewise.
62032         * modules/gc-rijndael (configure.ac): Likewise.
62033         * modules/gc-sha1 (configure.ac): Likewise.
62034
62035 2007-01-08  Bruno Haible  <bruno@clisp.org>
62036
62037         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
62038         macro definition.
62039         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
62040         definition.
62041         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
62042         definition.
62043         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
62044         * modules/fcntl-safer (configure.ac): Likewise.
62045         * modules/fopen-safer (configure.ac): Likewise.
62046         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
62047         GNULIB_FWRITEERROR macro definition.
62048
62049 2007-01-08  Bruno Haible  <bruno@clisp.org>
62050
62051         * m4/gnulib-common.m4: New file.
62052         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
62053         (func_get_filelist): Add m4/gnulib-common.m4.
62054
62055 2007-01-08  Bruno Haible  <bruno@clisp.org>
62056
62057         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
62058         command.
62059
62060 2007-01-08  Jim Meyering  <jim@meyering.net>
62061
62062         Use a more robust test for a "can't happen" condition.
62063         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
62064         narrowed the st_size value.  Presuming the "can't happen" condition
62065         is true, that narrowing could conceivably convert an invalid st_size
62066         value into a valid one.  Instead, use a change based on Matthew
62067         Woehlke's original patch.
62068
62069         Slight readability improvement: use an assert-like macro
62070         in place of literal "abort ()" uses.
62071         * lib/fts.c (fts_assert): Define.
62072         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
62073         Use this macro instead of a bare 'abort'.
62074
62075 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
62076
62077         Don't worry about using IRIX 5.3's wctype.h broken definitions;
62078         simply work around them.
62079         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
62080         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
62081         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
62082         declaring.
62083         Don't bother to define as macros, since the standard doesn't require it.
62084         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
62085         longer worry about IRIX 5.3.
62086         (HAVE_WCTYPE_CTMP_BUG): Remove.
62087
62088 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62089
62090         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
62091         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
62092         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62093         Problems reported by Georg Schwarz for IRIX 5.3.
62094
62095         * gnulib-tool (autoconf_minversion): Take the maximum version number
62096         found, not the minimum.  Problem reported by James Youngman.
62097
62098 2007-01-03  Karl Berry  <karl@gnu.org>
62099
62100         * doc/error.texi: new file, explaining interaction with progname.
62101         * doc/gnulib.texi: include it.  Update copyright.
62102
62103 2007-01-03  Simon Josefsson  <simon@josefsson.org>
62104
62105         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
62106         AC_CANONICAL_HOST, to improve autobuild outputs.
62107
62108 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
62109             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62110
62111         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
62112         sockets, server sockets, and other file descriptors.  Count errors
62113         to compute the return value.  Reorder the code a bit to be easier
62114         to follow.  Don't set event bits that were not requested (except
62115         POLLERR and POLLHUP).
62116
62117 2007-01-01  Bruno Haible  <bruno@clisp.org>
62118
62119         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
62120
62121 2007-01-03  Jim Meyering  <jim@meyering.net>
62122
62123         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
62124
62125 2007-01-02  Bruno Haible  <bruno@clisp.org>
62126
62127         * modules/settime (Include): Require timespec.h.
62128         * modules/nanosleep (Include): Likewise.
62129
62130 2007-01-01  Bruno Haible  <bruno@clisp.org>
62131
62132         * gnulib-tool (func_emit_copyright_notice): Bump year.
62133         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
62134
62135 2007-01-01  Bruno Haible  <bruno@clisp.org>
62136
62137         Improve support for OpenBSD.
62138         * build-aux/config.rpath (libname_spec): Export.
62139         (library_names_spec): New variable. Export.
62140         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
62141         library_names_spec from the config.rpath output. Locate shared library
62142         through the name pattern in library_names_spec.
62143
62144 2007-01-01  Eric Blake  <ebb9@byu.net>
62145
62146         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
62147
62148 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
62149
62150         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
62151         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
62152         assume the C locale, and avoid an "eval" that could cause trouble.
62153         Problem with SORT reported by Bob Proulx.
62154
62155         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
62156         Define.  Trivial patch from Henning Nielsen Lund, originally
62157         sent to bug-grep@gnu.org today.
62158
62159 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62160
62161         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
62162         struct stat.  Problem reported by Henning Nielsen Lund.
62163         * lib/acl.c: Include acl.h first, to check interface.  Don't
62164         bother to include sys/types.h and sys/stat.h again.
62165
62166 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62167
62168         Import the following change from libc; problem reported by
62169         Sven Verdoolaege.
62170
62171         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
62172
62173         [BZ #1373]
62174         * lib/argp.h: Remove __NTH for __argp_usage inline function.
62175
62176 2006-12-28  Jim Meyering  <jim@meyering.net>
62177
62178         * build-aux/announce-gen: Do not assume that the package
62179         builds any of tar.gz, tar.bz2, and .xdelta files.
62180         Suggestion from Simon Josefsson.
62181
62182 2006-12-28  Simon Josefsson  <simon@josefsson.org>
62183
62184         * modules/announce-gen: New file.
62185
62186 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62187
62188         * lib/mbchar.h: Just include <wctype.h>; the wctype module
62189         handles its gotchas now.
62190         * lib/mbswidth.c: Likewise.
62191         * lib/wcwidth.h: Likewise.
62192         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
62193         and iswcntrl; the wctype module does this stuff now.
62194         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62195         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62196         * modules/mbchar (Depends-on): Add wctype.
62197         * modules/mbswidth (Depends-on): Likewise.
62198         * modules/wcwidth (Depends-on): Likewise.
62199
62200 2006-12-27  Eric Blake  <ebb9@byu.net>
62201
62202         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
62203         module uses more than what <wctype.h> is required to provide.
62204
62205 2006-12-26  Eric Blake  <ebb9@byu.net>
62206
62207         * gnulib-tool (sed_extract_prog): Avoid space-tab.
62208
62209 2006-12-26  Eric Blake  <ebb9@byu.net>
62210
62211         * modules/absolute-header: New module.
62212         * modules/fcntl (Depends-on): Depend on it.
62213         * modules/inttypes (Depends-on): Likewise.
62214         * modules/stdint (Depends-on): Likewise.
62215         * modules/sys_stat (Depends-on): Likewise.
62216         * modules/wctype (Depends-on): Likewise.
62217         * MODULES.html.sh (Support for building libraries and
62218         executables): Document it.
62219
62220 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62221
62222         * gnulib-tool (SED): Remove, undoing previous change.
62223         The problem was that it broke coreutils on Solaris, because
62224         "sed --posix" leaked into a makefile.
62225         (sed): New alias, if 'alias' and GNU sed.
62226
62227 2006-12-24  Jim Meyering  <jim@meyering.net>
62228
62229         Work around an fchownat bug in glibc-2.4:
62230         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
62231         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
62232         in spite of the -P option.
62233         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
62234         New macros.
62235         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
62236         * modules/openat (Files): Add lib/fchownat.c.
62237         * lib/openat.c (fchownat): Don't define here.  Move to...
62238         * lib/fchownat.c: ...this new file.
62239
62240 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62241
62242         Fix bug reported by Bruno Haible in
62243         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
62244         where quotearg.c didn't compile on Mac OS X 10.2 because it
62245         lacks <wchar.h> and wint_t.
62246         * lib/wctype_.h (__wctype_wint_t): New type.
62247         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
62248         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
62249         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
62250         Arg is now of type __wctype_wint_t, not wint_t.
62251         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
62252         substitute HAVE_WINT_T.
62253         * modules/wctype (Files): Add m4/wint_t.m4.
62254         (wctype.h): Substitute HAVE_WINT_T.
62255
62256 2006-12-23  Bruno Haible  <bruno@clisp.org>
62257
62258         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62259
62260 2006-12-23  Bruno Haible  <bruno@clisp.org>
62261
62262         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62263         S_ISLNK.
62264         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62265         mingw.
62266
62267 2006-12-22  Bruno Haible  <bruno@clisp.org>
62268
62269         * lib/copy-file.c: Include acl.h.
62270         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62271         Close the file descriptors only after being done with copy_acl.
62272         * modules/copy-file (Depends-on): Add acl.
62273
62274 2006-12-22  Bruno Haible  <bruno@clisp.org>
62275
62276         * gnulib-tool (SED): New variable.
62277         Use $SED instead of sed everywhere.
62278
62279 2006-12-22  Bruno Haible  <bruno@clisp.org>
62280
62281         * modules/no-c++: New file.
62282         * m4/no-c++.m4: New file.
62283         * MODULES.html.sh (Support for building libraries and executables):
62284         Add no-c++.
62285
62286 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62287
62288         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62289         Include <limits.h>, and use its INT_MAX to rewrite the
62290         j loop so that it does not overflow 'int'.  Problem reported by
62291         Ralf Wildenhues in
62292         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62293         Play it safe by shifting left by 1 rather than multiplying by 2,
62294         as GCC is less likely to optimize this away when the value
62295         is signed (when it assumes overflow leads to undefined behavior).
62296         Also, don't assume time_t uses two's complement.
62297
62298 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62299
62300         * MODULES.html.sh: New module wctype.
62301         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62302         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62303         <wctype.h>, since the new wctype module should fix this.
62304         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62305         the wctype module should arrange for it.
62306         * lib/regex_internal.h: Likewise.
62307         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62308         since the wctype module should handle this now.
62309         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62310         * modules/fnmatch (Depends-on): Add wctype.
62311         * modules/quotearg (Depends-on): Likewise.
62312         * modules/regex (Depends-on): Likewise.
62313
62314 2006-12-19  Bruno Haible  <bruno@clisp.org>
62315
62316         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62317         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62318
62319 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62320
62321         * modules/savewd (Depends-on): Fix dependency on fcntl.
62322
62323 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62324
62325         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62326         conforms to C99, rather than relying on the user's environment
62327         setting of STDINT_H.
62328
62329 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62330         and Eric Blake  <ebb9@byu.net>
62331
62332         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62333         This is more consistent with the other defines here.
62334         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62335         Port to z/OS.  Problem reported by Paul Gilmartin.
62336         Change local vars to use gl_ prefix rather than ac_.
62337         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62338         with other defines.
62339         * modules/double-slash-root: New module.
62340         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62341         (Depends-on): Add double-slash-root.
62342         * MODULES.html.sh (File system functions): Mention new module.
62343
62344 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62345
62346         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62347         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62348         This is for the benefit of gzip, which doesn't do i18n.
62349
62350 2006-12-12  Jim Meyering  <jim@meyering.net>
62351
62352         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62353         Reported by Andreas Schwab <schwab@suse.de>.
62354
62355 2006-12-12  Bruno Haible  <bruno@clisp.org>
62356
62357         Merge these changes.
62358         2006-09-05  Bruno Haible  <bruno@clisp.org>
62359         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62360         iconv_alloc succeeded.
62361         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62362         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62363         test for " && dest " at the end - dest is always != NULL there. Call
62364         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62365         with 2xNULL arguments, also to flush the state storage. Handle the
62366         IRIX iconv behaviour. Realloc the final result, to throw away unused
62367         memory.
62368
62369 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62370
62371         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62372         and fchmodat unconditionally, since glibc 2.4 has them.
62373         Problem reported by Arkadiusz Miskiewicz.
62374
62375 2006-12-10  Bruno Haible  <bruno@clisp.org>
62376
62377         * gnulib-tool (func_import): Show the include files only for those
62378         modules that are copied and specified.
62379         Reported by Karl Berry.
62380
62381 2006-12-08  Jim Meyering  <jim@meyering.net>
62382
62383         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62384         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62385
62386         * build-aux/announce-gen: Add two new options, both optional:
62387         --bootstrap-tools=TOOL_LIST
62388               a comma-separated list of tools, e.g.,
62389               autoconf,automake,bison,gnulib
62390         --gnulib-snapshot-date=DATE
62391               if gnulib is in the bootstrap tool list,
62392               then report this as the snapshot date.
62393               If not specified, use the current date/time.
62394               If you specify a date here, be sure it's UTC.
62395
62396 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62397
62398         * tests/test-argp-2.sh: Fix test to match actual output.
62399         (func_compare): Fix sed script to be portable.
62400
62401 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
62402
62403         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
62404         workaround for this case.  It is not autoconfigured now; offhand
62405         it's hard to see how to autoconfigure it.
62406
62407 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62408
62409         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
62410         a directory that is about to be chowned.  Such a directory's
62411         initial file permissions should permit the owner only and this
62412         should not be changed until after the chown, since the group and
62413         other bits would be incorrect if they granted permission before
62414         the chown.
62415
62416         Fix porting problem for iswctype reported by Georg Schwarz in:
62417         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
62418         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
62419         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
62420         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
62421         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62422
62423 2006-12-03  Jim Meyering  <jim@meyering.net>
62424
62425         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
62426         p->fts_statp may not yet be defined.
62427         (fts_read): Instead, set it in the caller, once p->fts_statp is
62428         sure to be defined, and corresponds to a top-level directory.
62429         This bug made du -x fail.  Here's the coreutils test case:
62430         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
62431         Reported by Mike Frysinger.
62432
62433 2006-12-01  Jim Meyering  <jim@meyering.net>
62434
62435         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
62436         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
62437         Reported by Simon Josefsson.
62438
62439 2006-11-30  Jim Meyering  <jim@meyering.net>
62440
62441         * m4/warning.m4: Use the all-permissive copyright notice
62442         recommended by RMS (rather than LGPL).
62443         * m4/vararrays.m4: Likewise.
62444         * m4/flexmember.m4: Likewise.
62445
62446 2006-11-29  Bruno Haible  <bruno@clisp.org>
62447
62448         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62449         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
62450         using +=.
62451         Reported by Simon Josefsson <simon@josefsson.org>.
62452
62453 2006-11-28  James Youngman <jay@gnu.org>
62454
62455         * README: Advise users that they might find the bug-gnulib@gnu.org
62456         and autotools-announce@gnu.org mailing lists useful.
62457
62458 2006-11-28  Bruno Haible  <bruno@clisp.org>
62459
62460         * m4/ptrdiff_max.m4: Remove file.
62461
62462 2006-11-21  Bruno Haible  <bruno@clisp.org>
62463
62464         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
62465         _AC_COMPUTE_INT.
62466         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62467         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
62468         _AC_COMPUTE_INT.
62469         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62470         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
62471         _AC_COMPUTE_INT.
62472         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62473
62474 2006-11-28  Jim Meyering  <jim@meyering.net>
62475
62476         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
62477         warning from "gcc -Wshadow" about shadowing the builtin.
62478
62479 2006-11-27  Bruno Haible  <bruno@clisp.org>
62480
62481         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62482         _AC_COMPUTE_INT.
62483         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62484
62485 2006-11-27  Bruno Haible  <bruno@clisp.org>
62486             Paul Eggert  <eggert@cs.ucla.edu>
62487
62488         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62489
62490 2006-11-26  Bruno Haible  <bruno@clisp.org>
62491
62492         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62493         noinst_LTLIBRARIES.
62494
62495 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62496             Bruno Haible  <bruno@clisp.org>
62497
62498         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62499         if compiling with "gcc -ansi".
62500
62501 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62502
62503         Fix some incompatibilities with gcc -ansi -pedantic.
62504         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62505         if compiling pedantically with GCC, unless it's C99 or later.
62506         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62507         it mishandles gcc -ansi -pedantic as well.
62508         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62509         if gcc -pedantic.
62510         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62511         initializers for struct if -pedantic, unless it's C99 or later.
62512
62513 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62514
62515         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62516         Don't close an fd more than once. Identical atimes indicate
62517         success, not failure.
62518
62519 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62520
62521         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62522
62523 2006-11-23  Jim Meyering  <jim@meyering.net>
62524
62525         * build-aux/announce-gen: New file.  From coreutils.
62526
62527 2006-11-22  Jim Meyering  <jim@meyering.net>
62528
62529         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62530         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62531         (fts_read): Use a temporary to narrow the overused st_size member
62532         before using it in a switch statement.  Reported by Matthew Woehlke.
62533
62534         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62535         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62536
62537 2006-11-20  Bruno Haible  <bruno@clisp.org>
62538
62539         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62540         changequote instead of pairs of brackets.
62541         Reported by Andreas Schwab <schwab@suse.de>.
62542
62543 2006-11-21  Jim Meyering  <jim@meyering.net>
62544
62545         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62546         so as to remain compatible with older compilers.
62547         Patch from Michael Deutschmann.
62548
62549 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62550
62551         * MODULES.html.sh (File system functions): Add openat.
62552
62553         * lib/openat.h (rpl_fstatat): New macro, if
62554         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62555         (fstatat): Define to rpl_fstatat under the same conditions,
62556         unless COMPILING_FSTATAT.
62557         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62558         seems to have the bug.
62559         * lib/fstatat.c: New file.
62560         * modules/openat (Files): Add it.
62561
62562 2006-11-20  Bruno Haible  <bruno@clisp.org>
62563
62564         * Makefile: New file.
62565
62566 2006-11-20  Jim Meyering  <jim@meyering.net>
62567
62568         The beginnings of syntax-related checks for gnulib.
62569         * lib/Makefile: New file.
62570         * lib/t-idcache: New script.  Ensure that the two halves of
62571         idcache.c stay in sync.
62572
62573         * lib/idcache.c: Adjust comments in user- and group- portions to
62574         be more accurate, and to be consistent with one another.
62575
62576 2006-11-20  Jim Meyering  <jim@meyering.net>
62577
62578         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62579         continue using the flexible array member (thus, this module performs
62580         half as many malloc calls), with the addition that...
62581         (getgroup, getuser): Consistently record a non-match via an empty
62582         "name" string, and map an empty string match to a NULL return value.
62583         * modules/idcache (Depends-on): Re-add flexmember.
62584
62585         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62586         (getuidbyname, getgroup, getgidbyname): Likewise.
62587
62588         Use cleaner syntax: NULL rather than 0.
62589         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62590
62591 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62592
62593         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62594         It mishandled the case where the group was missing.
62595         Problem reported by Greg Schafer.
62596         * modules/idcache: Likewise.
62597
62598 2006-11-18  Jim Meyering  <jim@meyering.net>
62599
62600         * check-module (%exempt_header): Add exception for some
62601         conditionally-included headers.
62602
62603         * modules/i-ring (Depends-on): Add verify.
62604         (License): Change to LGPL.
62605
62606 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62607
62608         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62609         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62610         and inttostr.h.  Use snprintf rather than uinttostr, so that
62611         LGPLed code doesn't depend on GPLed.
62612
62613 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62614
62615         * modules/inline (License): Change from GPL to LGPL.
62616
62617 2006-11-17  Jim Meyering  <jim@meyering.net>
62618
62619         * modules/d-type (License): Switch to LGPL.
62620
62621 2006-11-15  Bruno Haible  <bruno@clisp.org>
62622
62623         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62624
62625 2006-11-15  Eric Blake  <ebb9@byu.net>
62626
62627         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62628         the module dependency.
62629
62630 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62631             Bruno Haible  <bruno@clisp.org>
62632
62633         * gnulib-tool (func_create_testdir): Add license consistency check.
62634
62635 2006-11-15  Eric Blake  <ebb9@byu.net>
62636
62637         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62638         random "(cached)" in configure output.
62639
62640 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62641
62642         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62643         test for conforming inttypes.h is both announced and cached.
62644
62645         * MODULES.html.sh (seen_modules, seen_files): New variables.
62646         (func_module): Rewrite to use a few less gnulib-tool and sed
62647         invocations.  Avoid a couple of quadratic algorithms for ...
62648         (missed_modules, missed_files): ... these, with ...
62649         (func_append, func_tmpdir): ... these new functions, from
62650         gnulib-tool.  Analogously, install traps for cleanup.
62651
62652         * tests/test-gc.c (main): Remove unused variables.
62653         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62654
62655 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62656
62657         * modules/inttostr (License): Change to LGPL.
62658
62659 2006-11-14  Eric Blake  <ebb9@byu.net>
62660
62661         * modules/tempname (License): Change to LGPL.
62662
62663 2006-11-14  Eric Blake  <ebb9@byu.net>
62664
62665         * doc/functions.texi (Function Portability): *printf functions on
62666         Cygwin now understand all POSIX size specifiers.
62667
62668 2006-11-14  Bruno Haible  <bruno@clisp.org>
62669
62670         * modules/c-ctype (License): Change to LGPL.
62671
62672 2006-11-12  Bruno Haible  <bruno@clisp.org>
62673
62674         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62675         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62676         for GNOME libraries, for which the include files are installed in
62677         subdirectories of $prefix/include.
62678
62679 2006-11-12  Bruno Haible  <bruno@clisp.org>
62680
62681         * m4/lib-link.m4: Require at least autoconf-2.54.
62682         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62683         name to underscores for the --with option.
62684
62685 2006-11-13  Bruno Haible  <bruno@clisp.org>
62686
62687         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62688         the tests directory.
62689         Reported by Ralf Wildenhues.
62690
62691 2006-11-13  Bruno Haible  <bruno@clisp.org>
62692
62693         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62694         (func_emit_initmacro_end): Undo the override here.
62695         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62696         Works around the famous automake error in coreutils.
62697
62698 2006-11-13  Eric Blake  <ebb9@byu.net>
62699
62700         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62701         element, not its node.
62702
62703 2006-11-12  Bruno Haible  <bruno@clisp.org>
62704
62705         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62706         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62707
62708 2006-11-12  Bruno Haible  <bruno@clisp.org>
62709
62710         * gnulib-tool: New option --local-symlink.
62711         (func_usage): Document it.
62712         (lsymbolic): New variable.
62713         (func_import, func_create_testdir): If --symlink was not specified,
62714         test whether --local-symlink was specified and the file comes from
62715         the local_gnulib_dir.
62716
62717 2006-11-12  Bruno Haible  <bruno@clisp.org>
62718
62719         * gnulib-tool (func_ln): New function.
62720         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62721
62722 2006-11-12  Bruno Haible  <bruno@clisp.org>
62723
62724         Finish support for source files in subdirectories.
62725         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62726         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62727         AUTOMAKE_OPTIONS.
62728         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62729
62730 2006-11-12  Bruno Haible  <bruno@clisp.org>
62731
62732         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62733         EXTRA_lib_SOURCES augmentation.
62734         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62735
62736 2006-11-12  Jim Meyering  <jim@meyering.net>
62737
62738         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62739         file descriptors.  This also averts a failure on systems with
62740         native openat support when a traversed directory lacks "x" access.
62741         * lib/fts_.h: Include "i-ring.h"
62742         (struct FTS) [fts_fd_ring]: New member.
62743         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62744         (FCHDIR): Add parentheses.
62745         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62746         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62747         When descending, rather than simply closing the previous
62748         fts_cwd_fd value, push that file descriptor onto the ring.
62749         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62750         (fts_open): Initialize the new fd_ring member.
62751         (fts_close): Clear the ring.
62752         (fts_safe_changedir): When possible, use our new fd_ring to skip
62753         the diropen and fstat and dev/ino comparison that would normally
62754         accompany a virtual `chdir ("..")'.
62755
62756         * modules/fts (Depends-on): Add i-ring.
62757         * modules/i-ring: New module.
62758         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62759         * m4/i-ring.m4: New file.
62760
62761 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62762
62763         * gnulib-tool (func_create_testdir): Fix replacement of
62764         `build-aux' in configure.ac.  Run autotools in gltests
62765         subdirectory.
62766         (func_create_testdir, func_create_megatestdir, test): There is
62767         no need for '--force' in most autotool invocations in a new
62768         tree.  Actually fail the whole test if any of the tools, or the
62769         configure or make stages fail.
62770
62771         Sync from Automake.
62772         * build-aux/gnupload: Revert last change.  Add pointer to upload
62773         instructions of the GNU Maintenance Instructions.
62774         Suggestion by Karl Berry.
62775
62776 2006-11-10  Jim Meyering  <jim@meyering.net>
62777
62778         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62779
62780 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62781
62782         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62783         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62784         (bind_textdomain_codeset) [! ENABLE_NLS]:
62785         Evaluate all the arguments.  That way, callers get compatible behavior
62786         if the arguments have side effects.  Also, it avoids some GCC
62787         diagnostics in some cases; Joel E. Denny reported problems when Bison
62788         was configured with --enable-gcc-warnigs.
62789
62790 2006-11-10  Jim Meyering  <jim@meyering.net>
62791
62792         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62793         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62794         account.
62795
62796 2006-11-10  Jim Meyering  <jim@meyering.net>
62797
62798         * modules/inline: New file/module.
62799         * modules/xalloc (Files): Remove m4/inline.m4.
62800         (Depends-on): Add inline, instead.
62801         * modules/oset: Likewise.
62802         * modules/list: Likewise.
62803
62804 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62805
62806         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62807         Problem reported by Matthew Woehlke.
62808
62809 2006-11-09  Bruno Haible  <bruno@clisp.org>
62810
62811         * lib/tempname.c (gen_tempname): Remove variant that invokes
62812         __gen_tempname.
62813         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62814         __gen_tempname.
62815
62816 2006-11-08  Bruno Haible  <bruno@clisp.org>
62817
62818         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62819         to 'yes' instead of 'cross-compiling'.
62820
62821 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62822
62823         * lib/quotearg.h (quotearg_free): New decl.
62824         * lib/quotearg.c (quotearg_free): New function.
62825         (slot0, nslots, slotvec0, slotvec):
62826         Now file-scope so that quotearg_free can get at them.
62827
62828 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62829
62830         Sync from Automake.
62831         * build-aux/gnupload: Add missing 'gnu' to example URL.
62832         Report by Karl Berry.
62833
62834 2006-11-08  Bruno Haible  <bruno@clisp.org>
62835
62836         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62837         Suggested by Paul Eggert.
62838
62839 2006-11-08  Jim Meyering  <jim@meyering.net>
62840
62841         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62842         It's already included if !_LIBC.
62843         (fts_safe_changedir): Add a comment.
62844
62845 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62846
62847         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62848         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62849         Matthew Woehlke.
62850
62851         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62852         definitions up, to avoid colliding with change below.
62853         (static_inline) [HAVE_INLINE]: New macro.
62854         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62855         Provide extern decls when !HAVE_INLINE.  Do not define unless
62856         static_inline is defined, either by us or by xmalloc.c.  Use
62857         static_inline rather than static inline.
62858         (XCALLOC): Optimize sizeof(T) = 1 case.
62859         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62860
62861 2006-11-07  Bruno Haible  <bruno@clisp.org>
62862
62863         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62864         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62865         AC_C_INLINE.
62866         * modules/xalloc (Files): Add m4/inline.m4.
62867
62868 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62869
62870         * README: Fix typo.
62871         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62872         (Miscellanous Notes): ...from this.
62873
62874 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62875
62876         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62877         Mention that offsetof should be used instead of sizeof.
62878         From Bruno Haible.
62879
62880 2006-11-07  Bruno Haible  <bruno@clisp.org>
62881
62882         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62883
62884 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62885
62886         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62887         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62888         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62889         (gl_tree_add_before, gl_tree_add_after):
62890         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62891         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62892         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62893         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62894         (gl_linked_add_after, gl_linked_add_at): Likewise.
62895         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62896         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62897         (gl_tree_add_before, gl_tree_add_after): Likewise.
62898         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62899         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62900         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62901
62902 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62903
62904         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62905
62906 2006-11-06  Bruno Haible  <bruno@clisp.org>
62907
62908         * m4/inline.m4: New file.
62909         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62910         * modules/list (Files): Add m4/inline.m4.
62911         * modules/oset (Files): Likewise.
62912
62913 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62914
62915         * lib/idcache.c: Include <stddef.h>, for offsetof.
62916         (struct userid.name): Change from char * to a flexible array member.
62917         All uses changed.
62918         * modules/idcache (Depends-on): Add flexmember.
62919
62920         * MODULES.html.sh (Core language properties): New module flexmember.
62921         * modules/flexmember, m4/flexmember.m4: New files.
62922
62923         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62924         inline functions that are identical with the old xnmalloc_inline,
62925         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62926         that we can avoid some unnecessary integer multiplications and
62927         divisions in the common case where the element size is known at
62928         compile time.
62929         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62930         needed.
62931         (xnboundedmalloc): Remove.
62932         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62933         arguments, for consistency with rest of this header.
62934         (xcharalloc): Rewrite using XNMALLOC.
62935         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62936         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62937         versions have been moved to lib/xalloc.h and renamed to be the
62938         non-*_inline versions.
62939         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62940         and xnrealloc functions, since those functions are now inline and
62941         now call us.
62942         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62943         renaming described above.
62944         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62945         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62946         captures the dependency in AC_C_INLINE.
62947
62948         New module canonicalize-lgpl, proposed by Charles Wilson in
62949         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62950         with a few small changes afterwards.
62951         * MODULES.html.sh (File system functions): New module
62952         canonicalize-lgpl.
62953         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62954         and canonicalize_file_name.
62955         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62956         * modules/canonicalize-lgpl: New files.
62957
62958 2006-11-05  Bruno Haible  <bruno@clisp.org>
62959
62960         * gnulib-tool (func_import, func_create_testdir): Create directories
62961         also for files in subdirectories of lib/.
62962
62963 2006-11-05  Bruno Haible  <bruno@clisp.org>
62964
62965         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62966         ANSI C compliant.
62967
62968 2006-11-03  Bruno Haible  <bruno@clisp.org>
62969
62970         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62971         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62972         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62973         (xnboundedmalloc): New inline function.
62974         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62975         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62976         xmalloc.
62977         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62978         xmalloc.
62979         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62980         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62981         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62982         xmalloc.
62983         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62984         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62985         xmalloc.
62986         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62987         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62988         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62989         xmalloc.
62990         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62991         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62992         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62993         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62994         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62995         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62996         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62997
62998 2006-11-03  Bruno Haible  <bruno@clisp.org>
62999
63000         * lib/c-ctype.h [C++]: Define functions without name mangling.
63001         * lib/fwriteerror.h [C++]: Likewise.
63002         * lib/gcd.h [C++]: Likewise.
63003         * lib/linebreak.h [C++]: Likewise.
63004
63005 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63006
63007         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
63008         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
63009         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
63010         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63011         Check for functions and headers just once.
63012         Check for declaration of canonicalize_file_name.
63013         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
63014
63015 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63016
63017         * gnulib-tool (func_import): Fix typo in actioncmd.
63018
63019 2006-11-02  Bruno Haible  <bruno@clisp.org>
63020
63021         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
63022         newline sequence in the Makefile.am snippet as a space, like "make"
63023         does.
63024         Reported by Roger Persson <perrog@gmail.com>.
63025
63026 2006-11-01  Bruno Haible  <bruno@clisp.org>
63027
63028         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
63029         already declared in <string.h>.
63030         * lib/strcase.h (strncasecmp): Don't declare it if yes.
63031
63032 2006-11-01  Bruno Haible  <bruno@clisp.org>
63033
63034         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
63035         * lib/strcase.h: Include <string.h>.
63036         (strcasecmp): Define to rpl_strcasecmp here.
63037
63038 2006-11-01  Bruno Haible  <bruno@clisp.org>
63039
63040         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
63041
63042 2006-11-01  Eric Blake  <ebb9@byu.net>
63043
63044         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
63045
63046         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
63047
63048 2006-10-29  Bruno Haible  <bruno@clisp.org>
63049
63050         Make it compile in C++ mode.
63051         * lib/full-write.c (full_rw): Add a cast.
63052
63053 2006-11-01  Bruno Haible  <bruno@clisp.org>
63054
63055         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
63056         be POSIX compliant.
63057         Reported by Roger Persson <perrog@gmail.com>.
63058
63059 2006-11-01  Eric Blake  <ebb9@byu.net>
63060
63061         * lib/getopt_.h: Fix comments.
63062
63063 2006-10-31  Eric Blake  <ebb9@byu.net>
63064
63065         * modules/tmpdir (Depends-on): Add sys_stat.
63066         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
63067         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
63068         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
63069         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
63070         tempname.
63071
63072 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
63073
63074         Avoid some C++ diagnostics reported by Bruno Haible.
63075         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
63076         xmalloc.
63077         (quotearg_alloc): Use xcharalloc rather than xmalloc.
63078         (struct slotvec): Move to top level.
63079         (quotearg_n_options): Rewrite to avoid xmalloc.
63080         * lib/xalloc.h (xcharalloc): New function.
63081         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
63082         [defined __cplusplus]: Add function template that provides result
63083         type propagation.  This part of the change is from Bruno Haible.
63084
63085 2006-10-29  Bruno Haible  <bruno@clisp.org>
63086
63087         Make it compile in C++ mode.
63088         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
63089         * lib/strnlen1.c (strnlen1): Cast memchr result.
63090         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
63091         * lib/clean-temp.c (string_equals, string_hash): Add casts.
63092         (create_temp_dir): Rename local variable 'template'.
63093         (compile_csharp_using_sscli): Add cast.
63094         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
63095         * lib/findprog.c (find_in_path): Likewise.
63096         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
63097         * lib/wait-process.c (register_slave_subprocess): Likewise.
63098
63099 2006-10-22  Bruno Haible  <bruno@clisp.org>
63100
63101         * modules/tsearch: New file.
63102         * lib/tsearch.h: New file.
63103         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
63104         * m4/tsearch.m4: New file.
63105         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
63106
63107 2006-10-29  Eric Blake  <ebb9@byu.net>
63108
63109         * lib/arcfour.c: Assume config.h.
63110         * lib/arctwo.c: Likewise.
63111         * lib/base64.c: Likewise.
63112         * lib/check-version.c: Likewise.
63113         * lib/crc.c: Likewise.
63114         * lib/des.c: Likewise.
63115         * lib/gc-gnulib.c: Likewise.
63116         * lib/gc-libgcrypt.c: Likewise.
63117         * lib/gc-pbkdf2-sha1.c: Likewise.
63118         * lib/getaddrinfo.c: Likewise.
63119         * lib/getdelim.c: Likewise.
63120         * lib/getline.c: Likewise.
63121         * lib/hmac-md5.c: Likewise.
63122         * lib/hmac-sha1.c: Likewise.
63123         * lib/iconvme.c: Likewise.
63124         * lib/md2.c: Likewise.
63125         * lib/md4.c: Likewise.
63126         * lib/memxor.c: Likewise.
63127         * lib/read-file.c: Likewise.
63128         * lib/readline.c: Likewise.
63129         * lib/rijndael-alg-fst.c: Likewise.
63130         * lib/rijndael-api-fst.c: Likewise.
63131         * lib/xgetdomainname.c: Likewise.
63132
63133 2006-10-28  Eric Blake  <ebb9@byu.net>
63134
63135         * lib/xstrndup.c: Assume config.h.
63136
63137 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63138
63139         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
63140         stat-macros.h is now for our own macros, whereas stat_h is for
63141         macros in the <sys/stat.h> name space.
63142         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
63143         (STAT_MACROS_H): Remove.
63144         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
63145         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
63146         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
63147         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
63148         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
63149         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
63150         Move these macros to ...
63151         * lib/stat_.h: here.  Don't include stat-macros.h.
63152         * lib/canonicalize.c: Don't include stat-macros.h.
63153         * lib/chown.c: Likewise.
63154         * lib/euidaccess.c: Likewise.
63155         * lib/file-type.c: Likewise.
63156         * lib/filemode.c: Likewise.
63157         * lib/glob.c: Likewise.
63158         * lib/isapipe.c: Likewise.
63159         * lib/lchown.c: Likewise.
63160         * lib/lstat.c: Likewise.
63161         * lib/mkdir-p.c: Likewise.
63162         * lib/rmdir.c: Likewise.
63163         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
63164         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
63165         unless mkdir isn't declared, to speed up 'configure'.
63166         Always create sys/stat.h, since it's unlikely any real sys/stat.h
63167         would define all the S_* symbols.
63168         * modules/canonicalize (Depends-on):
63169         Depend on sys_stat, not stat-macros.
63170         * modules/chown: Likewise.
63171         * modules/euidaccess: Likewise.
63172         * modules/filemode: Likewise.
63173         * modules/file-type: Likewise.
63174         * modules/glob: Likewise.
63175         * modules/isapipe: Likewise.
63176         * modules/lchown: Likewise.
63177         * modules/lstat: Likewise.
63178         * modules/mkancesdirs: Likewise.
63179         * modules/rmdir: Likewise.
63180         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
63181         * modules/modechange: Likewise.
63182         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
63183         (configure.ac): Remove gl_STAT_MACROS.
63184         * modules/sys_stat (Depends-on): Remove stat-macros.
63185
63186 2006-10-27  Bruno Haible  <bruno@clisp.org>
63187
63188         * m4/signed.m4: Remove file.
63189         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
63190         invocation.
63191         * modules/vasnprintf (Files): Remove m4/signed.m4.
63192
63193 2006-10-27  Bruno Haible  <bruno@clisp.org>
63194
63195         Update to GNU gettext 0.16.
63196         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
63197         m4/inttypes-h.m4, m4/signed.m4.
63198         * m4/gettext.m4: Update to GNU gettext 0.16.
63199         * m4/intl.m4: New file, from GNU gettext.
63200         * m4/intldir.m4: New file, from GNU gettext.
63201         * config/srclist.txt: Update
63202
63203 2006-10-27  Eric Blake  <ebb9@byu.net>
63204
63205         * MODULES.html.sh: Document tempname.
63206         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
63207         dependencies.
63208         (Files): Move lib/tempname.c...
63209         * modules/tempname: ...to this new module.
63210         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
63211         (gl_PREREQ_TEMPNAME): Move...
63212         * m4/tempname.m4: ...to this new file.
63213         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
63214         * modules/sys_stat (Depends-on): Add stat-macros.
63215         * lib/stat_.h (includes): Pick up stat macros.
63216         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
63217         if stat macros are broken.
63218         * lib/tempname.c (includes): No need to include "stat-macros.h".
63219         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
63220         (direxists, __path_search) [!_LIBC]: Don't compile these in
63221         gnulib; the tmpdir module covers that.
63222         * lib/tempname.h: New file.
63223
63224 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63225
63226         * COPYING: Explain how gnulib-tool converts licence headers.
63227         Almost all wording by Eric Blake.
63228
63229 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
63230
63231         * lib/mbchar.h (is_basic_table): Make read-only.
63232         * lib/mbchar.c (is_basic_table): Likewise.
63233         Reported by John Darrington.
63234
63235 2006-10-25  Bruno Haible  <bruno@clisp.org>
63236
63237         * lib/progname.h (set_program_name): Undefine before defining.
63238
63239 2006-10-25  Bruno Haible  <bruno@clisp.org>
63240
63241         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
63242         false for non-gcc C++ compilers.
63243         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63244
63245 2006-10-24  Bruno Haible  <bruno@clisp.org>
63246
63247         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
63248         iconv implementations like Irix iconv.
63249
63250 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63251
63252         * modules/vararrays: New file.
63253         * m4/vararrays.m4: New file, taken from diffutils.
63254         * MODULES.html.sh: New module vararrays.
63255
63256 2006-10-24  Karl Berry  <karl@gnu.org>
63257
63258         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63259         Don't call GNU Unix.
63260
63261 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63262
63263         * users.txt: Add Libtool.
63264
63265         Sync from Libtool:
63266
63267         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63268
63269         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63270         to gnulib's policy of including config.h unconditionally.
63271
63272 2006-10-24  Bruno Haible  <bruno@clisp.org>
63273
63274         * modules/wcwidth (Files): Add m4/wint_t.m4.
63275         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63276         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63277
63278 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63279
63280         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63281         to pacify GCC with some -W flags enabled.  Problem reported by
63282         Bruno Haible.
63283
63284 2006-10-24  Jim Meyering  <jim@meyering.net>
63285
63286         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63287         Reported by Karl Berry.
63288
63289 2006-10-23  Bruno Haible  <bruno@clisp.org>
63290
63291         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63292
63293 2006-10-24  Bruno Haible  <bruno@clisp.org>
63294
63295         * lib/gl_list.h: Use C comment style, not C++ comment style.
63296
63297 2006-10-23  Eric Blake  <ebb9@byu.net>
63298
63299         * lib/getaddrinfo.c (includes): Add missing include.
63300
63301 2006-10-23  Bruno Haible  <bruno@clisp.org>
63302             Paul Eggert  <eggert@cs.ucla.edu>
63303
63304         Ability to rename obstack_free.
63305         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63306         obstack_free.
63307         (obstack_free): Invoke the __obstack_free macro.
63308         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63309
63310 2006-10-23  Bruno Haible  <bruno@clisp.org>
63311             Paul Eggert  <eggert@cs.ucla.edu>
63312
63313         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63314         __argc, __argv from the declaration. (They are defined as macros on
63315         mingw.)
63316
63317 2006-10-22  Bruno Haible  <bruno@clisp.org>
63318
63319         * doc/gnulib-intro.texi: New file.
63320         * doc/gnulib.texi: Include it.
63321
63322 2006-10-21  Bruno Haible  <bruno@clisp.org>
63323
63324         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63325         "Introduction", "Miscellanous Notes", "Particular Modules".
63326
63327 2006-10-21  Bruno Haible  <bruno@clisp.org>
63328
63329         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63330         Change mostlyclean-local rule to avoid sh syntax error from bash
63331         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63332
63333 2006-10-23  Jim Meyering  <jim@meyering.net>
63334
63335         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63336         in place of snprintf.
63337
63338         * modules/inttostr (Files): Add lib/uinttostr.c.
63339         * lib/uinttostr.c (inttostr): New file/function.
63340         * lib/inttostr.h (uinttostr): Declare.
63341         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63342         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63343         Add uinttostr.
63344         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63345
63346 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63347
63348         * lib/canonicalize.c (ELOOP): Define if not already defined.
63349         Problem reported by Bruno Haible in
63350         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63351
63352 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63353
63354         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63355         Problem reported by Perry Smith and Ville Laurikari.
63356
63357         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63358         uses.
63359
63360 2006-10-19  Bruno Haible  <bruno@clisp.org>
63361
63362         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63363         for mingw.
63364
63365 2006-10-19  Bruno Haible  <bruno@clisp.org>
63366
63367         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63368         Needed for mingw.
63369
63370 2006-10-19  Bruno Haible  <bruno@clisp.org>
63371
63372         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63373
63374 2006-10-19  Bruno Haible  <bruno@clisp.org>
63375
63376         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63377         it.
63378
63379 2006-10-19  Bruno Haible  <bruno@clisp.org>
63380
63381         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63382         invocation.
63383
63384 2006-10-19  Bruno Haible  <bruno@clisp.org>
63385
63386         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63387         mountlist by default.
63388
63389 2006-10-16  Bruno Haible  <bruno@clisp.org>
63390
63391         * lib/c-strstr.c: Include c-strstr.h.
63392
63393 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63394
63395         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63396         in a slash.
63397
63398 2006-10-18  Bruno Haible  <bruno@clisp.org>
63399
63400         * lib/lock.h [C++]: Wrap definitions in extern "C".
63401
63402 2006-10-18  Bruno Haible  <bruno@clisp.org>
63403
63404         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
63405         gl_LIBOBJS list.
63406
63407 2006-10-18  Bruno Haible  <bruno@clisp.org>
63408
63409         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
63410
63411 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
63412
63413         * lib/xstrtol.h: Include gettext.h.
63414         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
63415         Problem reported by Eric Blake.
63416         * modules/xstrtol (Depends-on): Add gettext-h.
63417
63418 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
63419
63420         * lib/strftime.c (advance): New macro.
63421         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
63422         incomplete type, so you can't add 0 to it.  Problem and patch
63423         reported by Eelco Dolstra for dietlibc.
63424
63425 2006-10-18  Jim Meyering  <jim@meyering.net>
63426
63427         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
63428         type for a local, and rename it: s/up/user_proc/.
63429
63430 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63431
63432         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
63433         READ_UTMP_USER_PROCESS.
63434         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
63435
63436 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63437
63438         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
63439         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
63440
63441 2006-10-17  Eric Blake  <ebb9@byu.net>
63442
63443         * lib/sigprocmask.c (sigprocmask): Fix typo.
63444
63445         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
63446
63447         * modules/clean-temp (Makefile.am): Don't add to make output...
63448         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
63449         config.h.
63450
63451 2006-10-17  Bruno Haible  <bruno@clisp.org>
63452
63453         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
63454         differently if DEFAULT_TEXT_DOMAIN is set.
63455
63456 2006-10-16  Bruno Haible  <bruno@clisp.org>
63457
63458         * lib/clean-temp.c: Include fwriteerror.h.
63459
63460 2006-10-16  Bruno Haible  <bruno@clisp.org>
63461
63462         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
63463
63464 2006-10-16  Bruno Haible  <bruno@clisp.org>
63465
63466         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
63467         * lib/sigprocmask.h: Include <sys/types.h>.
63468         (sigset_t): Use the system's definition if present.
63469
63470 2006-10-17  Eric Blake  <ebb9@byu.net>
63471
63472         * lib/xvasprintf.c (includes): Assume config.h.
63473         * lib/xasprintf.c (includes): Likewise.
63474
63475 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63476
63477         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
63478         at least as wide as intmax_t.
63479
63480 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63481
63482         (Imported from Automake.)
63483         * build-aux/gnupload: Update to version 1.1 of directive file.
63484
63485 2006-10-16  Eric Blake  <ebb9@byu.net>
63486
63487         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63488         match Automake 1.10a.
63489
63490 2006-10-14  Bruno Haible  <bruno@clisp.org>
63491
63492         * modules/sigprocmask: New file.
63493         * lib/sigprocmask.h: New file.
63494         * lib/sigprocmask.c: New file.
63495         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63496         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63497         request sigprocmask.o.
63498         (gl_PREREQ_SIGPROCMASK): New macro.
63499         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63500         (Depends-on): Add sigprocmask.
63501         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63502         gt_SIGNALBLOCKING. Test for 'raise' only once.
63503         * lib/fatal-signal.c: Include sigprocmask.h.
63504         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63505         unblock_fatal_signals): Define always.
63506         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63507         sigprocmask.
63508
63509 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63510
63511         Sync from Automake.
63512         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63513         which incorrectly sets the mode of an existing destination
63514         directory.  In some cases the unpatched install-sh could do the
63515         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63516         system.  We hope this is rare in practice, but it's clearly worth
63517         fixing.  Problem reported by Alex Unleashed in
63518         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63519         Also, don't bother to check for -m bugs unless we're using -m;
63520         suggested by Stepan Kasal.
63521
63522 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63523
63524         Sync from Automake.
63525         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63526         `-c' flag, so they appear at the same position as in %FASTDEP%
63527         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63528         which ignores unknown options only after the first non-option.
63529         Bug report against M4 by Nelson H. F. Beebe.
63530
63531 2006-10-13  Jim Meyering  <jim@meyering.net>
63532
63533         Fix a bug in yesterday's change.
63534         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63535         p->fts_statp->st_dev would be used uninitialized.
63536         Ensures that we always call fts_stat on the very first entry.
63537         Miklos Szeredi reported that find -xdev stopped working.
63538
63539 2006-10-12  Bruno Haible  <bruno@clisp.org>
63540
63541         * gnulib-tool (func_get_automake_snippet): Append an automatically
63542         computed EXTRA_DIST augmentation.
63543         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63544         * modules/alloca-opt (Makefile.am): Likewise.
63545         * modules/allocsa (Makefile.am): Likewise.
63546         * modules/arcfour (Makefile.am): Likewise.
63547         * modules/arctwo (Makefile.am): Likewise.
63548         * modules/argmatch (Makefile.am): Likewise.
63549         * modules/argz (Makefile.am): Likewise.
63550         * modules/atexit (Makefile.am): Likewise.
63551         * modules/backupfile (Makefile.am): Likewise.
63552         * modules/byteswap (Makefile.am): Likewise.
63553         * modules/c-strtod (Makefile.am): Likewise.
63554         * modules/c-strtold (Makefile.am): Likewise.
63555         * modules/calloc (Makefile.am): Likewise.
63556         * modules/canon-host (Makefile.am): Likewise.
63557         * modules/canonicalize (Makefile.am): Likewise.
63558         * modules/chdir-long (Makefile.am): Likewise.
63559         * modules/chdir-safer (Makefile.am): Likewise.
63560         * modules/check-version (Makefile.am): Likewise.
63561         * modules/chown (Makefile.am): Likewise.
63562         * modules/cloexec (Makefile.am): Likewise.
63563         * modules/close-stream (Makefile.am): Likewise.
63564         * modules/closeout (Makefile.am): Likewise.
63565         * modules/crc (Makefile.am): Likewise.
63566         * modules/csharpexec (Makefile.am): Likewise.
63567         * modules/cycle-check (Makefile.am): Likewise.
63568         * modules/des (Makefile.am): Likewise.
63569         * modules/dev-ino (Makefile.am): Likewise.
63570         * modules/dirfd (Makefile.am): Likewise.
63571         * modules/dirname (Makefile.am): Likewise.
63572         * modules/dup2 (Makefile.am): Likewise.
63573         * modules/eealloc (Makefile.am): Likewise.
63574         * modules/error (Makefile.am): Likewise.
63575         * modules/euidaccess (Makefile.am): Likewise.
63576         * modules/exclude (Makefile.am): Likewise.
63577         * modules/exitfail (Makefile.am): Likewise.
63578         * modules/fcntl-safer (Makefile.am): Likewise.
63579         * modules/fcntl (Makefile.am): Likewise.
63580         * modules/file-type (Makefile.am): Likewise.
63581         * modules/fileblocks (Makefile.am): Likewise.
63582         * modules/filemode (Makefile.am): Likewise.
63583         * modules/filenamecat (Makefile.am): Likewise.
63584         * modules/fnmatch (Makefile.am): Likewise.
63585         * modules/fopen-safer (Makefile.am): Likewise.
63586         * modules/fpending (Makefile.am): Likewise.
63587         * modules/fprintftime (Makefile.am): Likewise.
63588         * modules/free (Makefile.am): Likewise.
63589         * modules/fsusage (Makefile.am): Likewise.
63590         * modules/ftruncate (Makefile.am): Likewise.
63591         * modules/fts (Makefile.am): Likewise.
63592         * modules/gc-arcfour (Makefile.am): Likewise.
63593         * modules/gc-des (Makefile.am): Likewise.
63594         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63595         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63596         * modules/gc-md4 (Makefile.am): Likewise.
63597         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63598         * modules/gc-sha1 (Makefile.am): Likewise.
63599         * modules/gc (Makefile.am): Likewise.
63600         * modules/getaddrinfo (Makefile.am): Likewise.
63601         * modules/getcwd (Makefile.am): Likewise.
63602         * modules/getdelim (Makefile.am): Likewise.
63603         * modules/getdomainname (Makefile.am): Likewise.
63604         * modules/getgroups (Makefile.am): Likewise.
63605         * modules/gethostname (Makefile.am): Likewise.
63606         * modules/gethrxtime (Makefile.am): Likewise.
63607         * modules/getline (Makefile.am): Likewise.
63608         * modules/getloadavg (Makefile.am): Likewise.
63609         * modules/getlogin_r (Makefile.am): Likewise.
63610         * modules/getndelim2 (Makefile.am): Likewise.
63611         * modules/getopt (Makefile.am): Likewise.
63612         * modules/getpagesize (Makefile.am): Likewise.
63613         * modules/getpass-gnu (Makefile.am): Likewise.
63614         * modules/getpass (Makefile.am): Likewise.
63615         * modules/getsubopt (Makefile.am): Likewise.
63616         * modules/gettime (Makefile.am): Likewise.
63617         * modules/gettimeofday (Makefile.am): Likewise.
63618         * modules/getugroups (Makefile.am): Likewise.
63619         * modules/getusershell (Makefile.am): Likewise.
63620         * modules/glob (Makefile.am): Likewise.
63621         * modules/group-member (Makefile.am): Likewise.
63622         * modules/hard-locale (Makefile.am): Likewise.
63623         * modules/hash (Makefile.am): Likewise.
63624         * modules/hmac-md5 (Makefile.am): Likewise.
63625         * modules/hmac-sha1 (Makefile.am): Likewise.
63626         * modules/human (Makefile.am): Likewise.
63627         * modules/idcache (Makefile.am): Likewise.
63628         * modules/imaxabs (Makefile.am): Likewise.
63629         * modules/imaxdiv (Makefile.am): Likewise.
63630         * modules/inet_ntop (Makefile.am): Likewise.
63631         * modules/inet_pton (Makefile.am): Likewise.
63632         * modules/intprops (Makefile.am): Likewise.
63633         * modules/inttostr (Makefile.am): Likewise.
63634         * modules/inttypes (Makefile.am): Likewise.
63635         * modules/isapipe (Makefile.am): Likewise.
63636         * modules/javaversion (Makefile.am): Likewise.
63637         * modules/lchmod (Makefile.am): Likewise.
63638         * modules/lchown (Makefile.am): Likewise.
63639         * modules/localcharset (Makefile.am): Likewise.
63640         * modules/long-options (Makefile.am): Likewise.
63641         * modules/lstat (Makefile.am): Likewise.
63642         * modules/malloc (Makefile.am): Likewise.
63643         * modules/mathl (Makefile.am): Likewise.
63644         * modules/mbchar (Makefile.am): Likewise.
63645         * modules/md2 (Makefile.am): Likewise.
63646         * modules/md4 (Makefile.am): Likewise.
63647         * modules/md5 (Makefile.am): Likewise.
63648         * modules/memcasecmp (Makefile.am): Likewise.
63649         * modules/memchr (Makefile.am): Likewise.
63650         * modules/memcmp (Makefile.am): Likewise.
63651         * modules/memcoll (Makefile.am): Likewise.
63652         * modules/memcpy (Makefile.am): Likewise.
63653         * modules/memmem (Makefile.am): Likewise.
63654         * modules/memmove (Makefile.am): Likewise.
63655         * modules/mempcpy (Makefile.am): Likewise.
63656         * modules/memrchr (Makefile.am): Likewise.
63657         * modules/memset (Makefile.am): Likewise.
63658         * modules/memxor (Makefile.am): Likewise.
63659         * modules/mkancesdirs (Makefile.am): Likewise.
63660         * modules/mkdir-p (Makefile.am): Likewise.
63661         * modules/mkdir (Makefile.am): Likewise.
63662         * modules/mkdtemp (Makefile.am): Likewise.
63663         * modules/mkstemp (Makefile.am): Likewise.
63664         * modules/mktime (Makefile.am): Likewise.
63665         * modules/modechange (Makefile.am): Likewise.
63666         * modules/mountlist (Makefile.am): Likewise.
63667         * modules/nanosleep (Makefile.am): Likewise.
63668         * modules/obstack (Makefile.am): Likewise.
63669         * modules/openat (Makefile.am): Likewise.
63670         * modules/pagealign_alloc (Makefile.am): Likewise.
63671         * modules/pathmax (Makefile.am): Likewise.
63672         * modules/physmem (Makefile.am): Likewise.
63673         * modules/poll (Makefile.am): Likewise.
63674         * modules/posixtm (Makefile.am): Likewise.
63675         * modules/posixver (Makefile.am): Likewise.
63676         * modules/putenv (Makefile.am): Likewise.
63677         * modules/quote (Makefile.am): Likewise.
63678         * modules/quotearg (Makefile.am): Likewise.
63679         * modules/raise (Makefile.am): Likewise.
63680         * modules/read-file (Makefile.am): Likewise.
63681         * modules/readline (Makefile.am): Likewise.
63682         * modules/readlink (Makefile.am): Likewise.
63683         * modules/readtokens (Makefile.am): Likewise.
63684         * modules/readutmp (Makefile.am): Likewise.
63685         * modules/realloc (Makefile.am): Likewise.
63686         * modules/regex (Makefile.am): Likewise.
63687         * modules/rename-dest-slash (Makefile.am): Likewise.
63688         * modules/rename (Makefile.am): Likewise.
63689         * modules/rijndael (Makefile.am): Likewise.
63690         * modules/rmdir (Makefile.am): Likewise.
63691         * modules/rpmatch (Makefile.am): Likewise.
63692         * modules/safe-read (Makefile.am): Likewise.
63693         * modules/safe-write (Makefile.am): Likewise.
63694         * modules/same-inode (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/stat-macros (Makefile.am): Likewise.
63704         * modules/stat-time (Makefile.am): Likewise.
63705         * modules/stdbool (Makefile.am): Likewise.
63706         * modules/stdint (Makefile.am): Likewise.
63707         * modules/stdlib-safer (Makefile.am): Likewise.
63708         * modules/stpcpy (Makefile.am): Likewise.
63709         * modules/stpncpy (Makefile.am): Likewise.
63710         * modules/strcase (Makefile.am): Likewise.
63711         * modules/strcasestr (Makefile.am): Likewise.
63712         * modules/strchrnul (Makefile.am): Likewise.
63713         * modules/strcspn (Makefile.am): Likewise.
63714         * modules/strdup (Makefile.am): Likewise.
63715         * modules/strerror (Makefile.am): Likewise.
63716         * modules/strftime (Makefile.am): Likewise.
63717         * modules/strndup (Makefile.am): Likewise.
63718         * modules/strnlen (Makefile.am): Likewise.
63719         * modules/strpbrk (Makefile.am): Likewise.
63720         * modules/strsep (Makefile.am): Likewise.
63721         * modules/strstr (Makefile.am): Likewise.
63722         * modules/strtod (Makefile.am): Likewise.
63723         * modules/strtoimax (Makefile.am): Likewise.
63724         * modules/strtok_r (Makefile.am): Likewise.
63725         * modules/strtol (Makefile.am): Likewise.
63726         * modules/strtoll (Makefile.am): Likewise.
63727         * modules/strtoul (Makefile.am): Likewise.
63728         * modules/strtoull (Makefile.am): Likewise.
63729         * modules/strtoumax (Makefile.am): Likewise.
63730         * modules/strverscmp (Makefile.am): Likewise.
63731         * modules/sys_socket (Makefile.am): Likewise.
63732         * modules/sys_stat (Makefile.am): Likewise.
63733         * modules/sysexits (Makefile.am): Likewise.
63734         * modules/time_r (Makefile.am): Likewise.
63735         * modules/timegm (Makefile.am): Likewise.
63736         * modules/timespec (Makefile.am): Likewise.
63737         * modules/tmpfile-safer (Makefile.am): Likewise.
63738         * modules/trim (Makefile.am): Likewise.
63739         * modules/unistd-safer (Makefile.am): Likewise.
63740         * modules/unlinkdir (Makefile.am): Likewise.
63741         * modules/unlocked-io (Makefile.am): Likewise.
63742         * modules/userspec (Makefile.am): Likewise.
63743         * modules/utime (Makefile.am): Likewise.
63744         * modules/utimecmp (Makefile.am): Likewise.
63745         * modules/utimens (Makefile.am): Likewise.
63746         * modules/vasnprintf (Makefile.am): Likewise.
63747         * modules/vasprintf (Makefile.am): Likewise.
63748         * modules/vsnprintf (Makefile.am): Likewise.
63749         * modules/xalloc (Makefile.am): Likewise.
63750         * modules/xgetcwd (Makefile.am): Likewise.
63751         * modules/xnanosleep (Makefile.am): Likewise.
63752         * modules/xreadlink (Makefile.am): Likewise.
63753         * modules/xstrtod (Makefile.am): Likewise.
63754         * modules/xstrtol (Makefile.am): Likewise.
63755         * modules/xstrtold (Makefile.am): Likewise.
63756         * modules/yesno (Makefile.am): Likewise.
63757         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63758
63759 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63760
63761         * modules/error (Makefile.am): Distribute files through
63762         EXTRA_DIST, not lib_SOURCES.
63763
63764 2006-10-12  Eric Blake  <ebb9@byu.net>
63765
63766         * modules/error (Makefile.am): Distribute files in /lib.
63767         * modules/obstack (Makefile.am): Likewise.
63768
63769 2006-10-12  Bruno Haible  <bruno@clisp.org>
63770
63771         * modules/acl (Makefile.am): Distribute all files in lib/ through
63772         EXTRA_DIST.
63773         * modules/arcfour (Makefile.am): Likewise.
63774         * modules/arctwo (Makefile.am): Likewise.
63775         * modules/argmatch (Makefile.am): Likewise.
63776         * modules/argz (Makefile.am): Likewise.
63777         * modules/atexit (Makefile.am): Likewise.
63778         * modules/backupfile (Makefile.am): Likewise.
63779         * modules/c-strtod (Makefile.am): Likewise.
63780         * modules/c-strtold (Makefile.am): Likewise.
63781         * modules/calloc (Makefile.am): Likewise.
63782         * modules/canon-host (Makefile.am): Likewise.
63783         * modules/canonicalize (Makefile.am): Likewise.
63784         * modules/chdir-long (Makefile.am): Likewise.
63785         * modules/chdir-safer (Makefile.am): Likewise.
63786         * modules/check-version (Makefile.am): Likewise.
63787         * modules/chown (Makefile.am): Likewise.
63788         * modules/cloexec (Makefile.am): Likewise.
63789         * modules/close-stream (Makefile.am): Likewise.
63790         * modules/closeout (Makefile.am): Likewise.
63791         * modules/crc (Makefile.am): Likewise.
63792         * modules/cycle-check (Makefile.am): Likewise.
63793         * modules/des (Makefile.am): Likewise.
63794         * modules/dirfd (Makefile.am): Likewise.
63795         * modules/dirname (Makefile.am): Likewise.
63796         * modules/dup2 (Makefile.am): Likewise.
63797         * modules/euidaccess (Makefile.am): Likewise.
63798         * modules/exclude (Makefile.am): Likewise.
63799         * modules/exitfail (Makefile.am): Likewise.
63800         * modules/fcntl-safer (Makefile.am): Likewise.
63801         * modules/file-type (Makefile.am): Likewise.
63802         * modules/fileblocks (Makefile.am): Likewise.
63803         * modules/filemode (Makefile.am): Likewise.
63804         * modules/filenamecat (Makefile.am): Likewise.
63805         * modules/fnmatch (Makefile.am): Likewise.
63806         * modules/fopen-safer (Makefile.am): Likewise.
63807         * modules/fpending (Makefile.am): Likewise.
63808         * modules/fprintftime (Makefile.am): Likewise.
63809         * modules/free (Makefile.am): Likewise.
63810         * modules/fsusage (Makefile.am): Likewise.
63811         * modules/ftruncate (Makefile.am): Likewise.
63812         * modules/fts (Makefile.am): Likewise.
63813         * modules/gc (Makefile.am): Likewise.
63814         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63815         * modules/getaddrinfo (Makefile.am): Likewise.
63816         * modules/getcwd (Makefile.am): Likewise.
63817         * modules/getdelim (Makefile.am): Likewise.
63818         * modules/getdomainname (Makefile.am): Likewise.
63819         * modules/getgroups (Makefile.am): Likewise.
63820         * modules/gethostname (Makefile.am): Likewise.
63821         * modules/gethrxtime (Makefile.am): Likewise.
63822         * modules/getline (Makefile.am): Likewise.
63823         * modules/getloadavg (Makefile.am): Likewise.
63824         * modules/getlogin_r (Makefile.am): Likewise.
63825         * modules/getopt (Makefile.am): Likewise.
63826         * modules/getpass (Makefile.am): Likewise.
63827         * modules/getpass-gnu (Makefile.am): Likewise.
63828         * modules/getsubopt (Makefile.am): Likewise.
63829         * modules/gettime (Makefile.am): Likewise.
63830         * modules/gettimeofday (Makefile.am): Likewise.
63831         * modules/getugroups (Makefile.am): Likewise.
63832         * modules/getusershell (Makefile.am): Likewise.
63833         * modules/glob (Makefile.am): Likewise.
63834         * modules/group-member (Makefile.am): Likewise.
63835         * modules/hard-locale (Makefile.am): Likewise.
63836         * modules/hash (Makefile.am): Likewise.
63837         * modules/hmac-md5 (Makefile.am): Likewise.
63838         * modules/hmac-sha1 (Makefile.am): Likewise.
63839         * modules/human (Makefile.am): Likewise.
63840         * modules/idcache (Makefile.am): Likewise.
63841         * modules/imaxabs (Makefile.am): Likewise.
63842         * modules/imaxdiv (Makefile.am): Likewise.
63843         * modules/inet_ntop (Makefile.am): Likewise.
63844         * modules/inet_pton (Makefile.am): Likewise.
63845         * modules/inttostr (Makefile.am): Likewise.
63846         * modules/isapipe (Makefile.am): Likewise.
63847         * modules/lchown (Makefile.am): Likewise.
63848         * modules/long-options (Makefile.am): Likewise.
63849         * modules/lstat (Makefile.am): Likewise.
63850         * modules/malloc (Makefile.am): Likewise.
63851         * modules/mathl (Makefile.am): Likewise.
63852         * modules/mbchar (Makefile.am): Likewise.
63853         * modules/md2 (Makefile.am): Likewise.
63854         * modules/md4 (Makefile.am): Likewise.
63855         * modules/md5 (Makefile.am): Likewise.
63856         * modules/memcasecmp (Makefile.am): Likewise.
63857         * modules/memchr (Makefile.am): Likewise.
63858         * modules/memcmp (Makefile.am): Likewise.
63859         * modules/memcoll (Makefile.am): Likewise.
63860         * modules/memcpy (Makefile.am): Likewise.
63861         * modules/memmem (Makefile.am): Likewise.
63862         * modules/memmove (Makefile.am): Likewise.
63863         * modules/mempcpy (Makefile.am): Likewise.
63864         * modules/memrchr (Makefile.am): Likewise.
63865         * modules/memset (Makefile.am): Likewise.
63866         * modules/memxor (Makefile.am): Likewise.
63867         * modules/mkancesdirs (Makefile.am): Likewise.
63868         * modules/mkdir (Makefile.am): Likewise.
63869         * modules/mkdir-p (Makefile.am): Likewise.
63870         * modules/mkdtemp (Makefile.am): Likewise.
63871         * modules/mkstemp (Makefile.am): Likewise.
63872         * modules/mktime (Makefile.am): Likewise.
63873         * modules/modechange (Makefile.am): Likewise.
63874         * modules/mountlist (Makefile.am): Likewise.
63875         * modules/nanosleep (Makefile.am): Likewise.
63876         * modules/openat (Makefile.am): Likewise.
63877         * modules/pagealign_alloc (Makefile.am): Likewise.
63878         * modules/physmem (Makefile.am): Likewise.
63879         * modules/poll (Makefile.am): Likewise.
63880         * modules/posixtm (Makefile.am): Likewise.
63881         * modules/posixver (Makefile.am): Likewise.
63882         * modules/putenv (Makefile.am): Likewise.
63883         * modules/quote (Makefile.am): Likewise.
63884         * modules/quotearg (Makefile.am): Likewise.
63885         * modules/raise (Makefile.am): Likewise.
63886         * modules/read-file (Makefile.am): Likewise.
63887         * modules/readline (Makefile.am): Likewise.
63888         * modules/readlink (Makefile.am): Likewise.
63889         * modules/readtokens (Makefile.am): Likewise.
63890         * modules/readutmp (Makefile.am): Likewise.
63891         * modules/realloc (Makefile.am): Likewise.
63892         * modules/regex (Makefile.am): Likewise.
63893         * modules/rename (Makefile.am): Likewise.
63894         * modules/rename-dest-slash (Makefile.am): Likewise.
63895         * modules/rijndael (Makefile.am): Likewise.
63896         * modules/rmdir (Makefile.am): Likewise.
63897         * modules/rpmatch (Makefile.am): Likewise.
63898         * modules/safe-read (Makefile.am): Likewise.
63899         * modules/safe-write (Makefile.am): Likewise.
63900         * modules/same (Makefile.am): Likewise.
63901         * modules/save-cwd (Makefile.am): Likewise.
63902         * modules/savedir (Makefile.am): Likewise.
63903         * modules/setenv (Makefile.am): Likewise.
63904         * modules/settime (Makefile.am): Likewise.
63905         * modules/sha1 (Makefile.am): Likewise.
63906         * modules/sig2str (Makefile.am): Likewise.
63907         * modules/snprintf (Makefile.am): Likewise.
63908         * modules/stdlib-safer (Makefile.am): Likewise.
63909         * modules/stpcpy (Makefile.am): Likewise.
63910         * modules/stpncpy (Makefile.am): Likewise.
63911         * modules/strcase (Makefile.am): Likewise.
63912         * modules/strcasestr (Makefile.am): Likewise.
63913         * modules/strchrnul (Makefile.am): Likewise.
63914         * modules/strcspn (Makefile.am): Likewise.
63915         * modules/strdup (Makefile.am): Likewise.
63916         * modules/strerror (Makefile.am): Likewise.
63917         * modules/strftime (Makefile.am): Likewise.
63918         * modules/strndup (Makefile.am): Likewise.
63919         * modules/strnlen (Makefile.am): Likewise.
63920         * modules/strpbrk (Makefile.am): Likewise.
63921         * modules/strsep (Makefile.am): Likewise.
63922         * modules/strstr (Makefile.am): Likewise.
63923         * modules/strtod (Makefile.am): Likewise.
63924         * modules/strtoimax (Makefile.am): Likewise.
63925         * modules/strtok_r (Makefile.am): Likewise.
63926         * modules/strtol (Makefile.am): Likewise.
63927         * modules/strtoll (Makefile.am): Likewise.
63928         * modules/strtoul (Makefile.am): Likewise.
63929         * modules/strtoull (Makefile.am): Likewise.
63930         * modules/strtoumax (Makefile.am): Likewise.
63931         * modules/strverscmp (Makefile.am): Likewise.
63932         * modules/time_r (Makefile.am): Likewise.
63933         * modules/timegm (Makefile.am): Likewise.
63934         * modules/tmpfile-safer (Makefile.am): Likewise.
63935         * modules/unistd-safer (Makefile.am): Likewise.
63936         * modules/unlinkdir (Makefile.am): Likewise.
63937         * modules/userspec (Makefile.am): Likewise.
63938         * modules/utime (Makefile.am): Likewise.
63939         * modules/utimecmp (Makefile.am): Likewise.
63940         * modules/utimens (Makefile.am): Likewise.
63941         * modules/vasnprintf (Makefile.am): Likewise.
63942         * modules/vasprintf (Makefile.am): Likewise.
63943         * modules/vsnprintf (Makefile.am): Likewise.
63944         * modules/xalloc (Makefile.am): Likewise.
63945         * modules/xgetcwd (Makefile.am): Likewise.
63946         * modules/xnanosleep (Makefile.am): Likewise.
63947         * modules/xreadlink (Makefile.am): Likewise.
63948         * modules/xstrtod (Makefile.am): Likewise.
63949         * modules/xstrtol (Makefile.am): Likewise.
63950         * modules/xstrtold (Makefile.am): Likewise.
63951         * modules/yesno (Makefile.am): Likewise.
63952
63953 2006-10-12  Jim Meyering  <jim@meyering.net>
63954
63955         * m4/getloadavg.m4: Revert the change below.
63956
63957         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63958         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63959         fail with a symlink, which is what coreutils' ./bootstrap now
63960         creates by default.
63961
63962 2006-10-12  Bruno Haible  <bruno@clisp.org>
63963
63964         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63965         mingw.
63966         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63967         MSVC and mingw explicitly.
63968
63969 2006-10-11  Simon Josefsson  <jas@extundo.com>
63970             Bruno Haible  <bruno@clisp.org>
63971
63972         Add support for multiple gnulib-tool invocations in the scope of a
63973         single configure.ac file.
63974         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63975         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63976         with the same contents as the _LIBADD variable.
63977         (func_emit_initmacro_start, func_emit_initmacro_end,
63978         func_emit_initmacro_done): New functions.
63979         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63980         gl_LIBOBJS and gl_LTLIBOBJS.
63981
63982 2006-10-11  Bruno Haible  <bruno@clisp.org>
63983
63984         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63985         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63986         autoreconf. Instead, invoke autopoint explicitly but move back the
63987         *.m4 files from gnulib.
63988
63989 2006-10-11  Bruno Haible  <bruno@clisp.org>
63990
63991         * gnulib-tool (func_usage): Make module names after --create-testdir
63992         optional.
63993         (func_create_testdir): If no module was specified, use nearly all
63994         modules.
63995
63996 2006-10-12  Jim Meyering  <jim@meyering.net>
63997
63998         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63999         Avoid spurious inode-mismatch problems on non-POSIX file systems.
64000         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
64001         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
64002         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
64003         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
64004         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
64005         (fts_set_stat_required): New function.
64006         (fts_open): Defer the calls to fts_stat, if possible or requested.
64007         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
64008         into fts_stat itself.
64009         (fts_read): Perform any required (deferred) fts_stat call.
64010         (fts_build): Likewise, for the directory we're about to open and read.
64011         In the readdir loop, carefully decide whether each entry will require
64012         an eventual call to fts_stat, using dirent.d_type info if available.
64013         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
64014         a command line argument into this function.  Update all callers.
64015         Map a return value of FTS_DOT to FTS_D for a command line argument.
64016         * modules/fts (Depends-on): Add d-type.  Alphabetize.
64017         Thanks to Miklos Szeredi for his tenacity and for the initial
64018         bug report about "find" failing on a FUSE-based file system.
64019
64020         * lib/fts.c (fts_open): Use consistent indentation.
64021
64022 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64023
64024         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
64025         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
64026         reported by Jim Meyering.  All uses of cache variables renamed
64027         to match Autoconf's.
64028         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
64029         the other one.
64030
64031         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64032         Fix misspelling in diagnostic.
64033
64034 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64035
64036         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
64037         defined.  Problem reported by Matthew Woehlke.
64038
64039         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
64040         Add support for Tandem NonStop R series.
64041         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
64042         Use new macro.
64043
64044         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
64045         (has_trailing_slash): Omit size arg; all callers changed.
64046         Omit 'inline', since it doesn't help performance and we'd
64047         need to configure it.
64048         Don't count //, ///, etc. as having a trailing slash.
64049         As a side effect, this removes a C99ism reported by Matthew Woehlke.
64050         (rpl_rename_dest_slash): On failure, use rename's errno rather
64051         than (in some cases) an incorrect or junk errno.
64052         Simplify code by removing need to compute length; this does
64053         cause it to make two passes instead of one over the file name,
64054         but it's worth it.
64055
64056         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
64057         change, since Autoconf's version may no longer be appropriate now
64058         that we are using CVS Autoconf's version.  Add support for Tandem.
64059
64060 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64061             Bruno Haible  <bruno@clisp.org>
64062
64063         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
64064         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
64065         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
64066         gl_AC_TYPE_LONG_LONG.
64067
64068         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
64069         instead of HAVE_LONG_LONG.
64070         * lib/printf-args.c (printf_fetchargs): Likewise.
64071         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64072         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64073         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
64074         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
64075         gl_AC_TYPE_LONG_LONG.
64076
64077 2006-10-11  Bruno Haible  <bruno@clisp.org>
64078
64079         * m4/longlong.m4: Add comments.
64080         * m4/ulonglong.m4: Likewise.
64081
64082 2006-10-10  Bruno Haible  <bruno@clisp.org>
64083
64084         Make it possible to #define stpcpy, strdup to aliases.
64085         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
64086         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
64087
64088 2006-10-10  Bruno Haible  <bruno@clisp.org>
64089
64090         Make it possible to #define gcd to an alias.
64091         * lib/gcd.c: Include config.h.
64092
64093 2006-10-10  Bruno Haible  <bruno@clisp.org>
64094
64095         Make it possible to #define c_isascii to an alias.
64096         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
64097         defined. Undefine the macros before defining them, to avoid gcc
64098         warnings.
64099         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
64100         define NO_C_CTYPE_MACROS early.
64101
64102 2006-10-10  Bruno Haible  <bruno@clisp.org>
64103
64104         Make it possible to #define set_program_name to an alias.
64105         * lib/progname.c: Don't undefine set_program_name; instead, undefine
64106         ENABLE_RELOCATABLE early.
64107
64108 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64109
64110         Port to Tandem NSK OSS, which has 64-bit signed int but at most
64111         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
64112         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
64113         More generally, don't assume that 64-bit signed int is available
64114         if unsigned int is, and vice versa.
64115         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
64116         unsigned symbols, not on their signed counterparts.
64117         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
64118         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
64119         (UINT64_C, UINTMAX_C):
64120         Likewise.
64121         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
64122         unsigned counterparts.
64123         (Have_long_long, Unsigned): New macros.
64124         (Int): Renamed from INT.
64125         (strtoimax): Use the new macros.
64126         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
64127         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
64128         * modules/inttypes (inttypes.h): Substitute
64129         HAVE_UNSIGNED_LONG_LONG_INT.
64130         * modules/stdint (stdint.h): Likewise.
64131         (Files): Add m4/ulonglong.m4.
64132
64133 2006-10-10  Bruno Haible  <bruno@clisp.org>
64134
64135         Fix a gcc -Wshadow warning.
64136         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
64137         to 'bucket'.
64138         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
64139         gl_linked_indexof_from_to): Likewise.
64140         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
64141         Likewise.
64142         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
64143         Likewise.
64144         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
64145         Reported by Eric Blake.
64146
64147 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
64148
64149         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
64150         for NetBSD.  Problem reported by Bruno Haible.
64151
64152 2006-10-09  Jim Meyering  <jim@meyering.net>
64153
64154         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
64155         Patch from Bruno Haible.
64156
64157 2006-10-09  Jim Meyering  <jim@meyering.net>
64158
64159         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
64160         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
64161         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
64162
64163 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64164
64165         Don't include <config.h> twice; this doesn't work in some cases,
64166         e.g., when config.h has "#define intmax_t long long int" and
64167         we include <config.h>, <inttypes.h>, <config.h> in that order.
64168         Problem reported by Matthew Woehlke in:
64169         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
64170         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
64171         * lib/fts-cycle.c: Don't include config.h.
64172         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
64173         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
64174         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
64175         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
64176         inttypes.h.
64177         * lib/xstrtoumax.c: Likewise.
64178         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
64179         __strtol and the like, so that this module is more like its siblings.
64180         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
64181         Remove; no longer needed now that we assume gnulib inttypes.h.
64182
64183 2006-10-08  Bruno Haible  <bruno@clisp.org>
64184
64185         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
64186         option.
64187
64188 2006-10-07  Jim Meyering  <jim@meyering.net>
64189
64190         * modules/inttypes (inttypes.h): Revert what seems to have been
64191         an inadvertent part of today's change: use "|", not "/" in the
64192         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
64193
64194 2006-10-07  Bruno Haible  <bruno@clisp.org>
64195
64196         * modules/sublist: New file.
64197
64198 2006-10-07  Bruno Haible  <bruno@clisp.org>
64199
64200         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
64201         * modules/argz (argz.h): Likewise.
64202         * modules/arpa_inet (arpa/inet.h): Likewise.
64203         * modules/byteswap (byteswap.h): Likewise.
64204         * modules/configmake (configmake.h): Likewise.
64205         * modules/fcntl (fcntl.h): Likewise.
64206         * modules/fnmatch (fnmatch.h): Likewise.
64207         * modules/getopt (getopt.h): Likewise.
64208         * modules/glob (glob.h): Likewise.
64209         * modules/inttypes (inttypes.h): Likewise.
64210         * modules/netinet_in (netinet/in.h): Likewise.
64211         * modules/poll (poll.h): Likewise.
64212         * modules/stdbool (stdbool.h): Likewise.
64213         * modules/stdint (stdint.h): Likewise.
64214         * modules/sys_select (sys/select.h): Likewise.
64215         * modules/sys_socket (sys/socket.h): Likewise.
64216         * modules/sys_stat (sys/stat.h): Likewise.
64217         * modules/sysexits (sysexits.h): Likewise.
64218         * modules/unistd (unistd.h): Likewise.
64219         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64220         Add a "DO NOT EDIT" comment to the generated file.
64221         (func_import): Likewise for gnulib-comp.m4.
64222
64223 2006-10-07  Bruno Haible  <bruno@clisp.org>
64224
64225         * lib/gl_sublist.h: New file.
64226         * lib/gl_sublist.c: New file.
64227
64228 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64229
64230         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
64231         name (relative to the original working directory) and the file
64232         name component (relative to the temporary working directory).  All
64233         callers changed.
64234         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
64235         * lib/mkdir-p.c (make_dir_parents): Likewise.
64236         * lib/mkdir-p.h (make_dir_parents): Likewise.
64237
64238 2006-10-06  Eric Blake  <ebb9@byu.net>
64239
64240         Define several macros for use by the clean-temp module.
64241         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
64242         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
64243         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
64244
64245         * lib/clean-temp.h (close_stream_temp): New declaration.
64246         * lib/clean-temp.c (includes): Pull in headers according to what
64247         other modules are in use.
64248         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
64249
64250 2006-10-06  Bruno Haible  <bruno@clisp.org>
64251
64252         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64253         instead of fopen, fwriteerror.
64254
64255 2006-10-06  Bruno Haible  <bruno@clisp.org>
64256
64257         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64258         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64259         int.
64260         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64261         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64262         Return an error indicator.
64263         Suggested by Eric Blake.
64264
64265 2006-10-06  Bruno Haible  <bruno@clisp.org>
64266
64267         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64268         Reported by Eric Blake.
64269
64270 2006-10-06  Bruno Haible  <bruno@clisp.org>
64271
64272         * modules/closeout (Description): Mention stderr too.
64273
64274 2006-10-06  Bruno Haible  <bruno@clisp.org>
64275         and Paul Eggert  <eggert@cs.ucla.edu>
64276
64277         * lib/closeout.c (close_stdout): Also close stderr.
64278         * lib/closeout.h: Update comment.
64279
64280 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64281
64282         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64283         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64284         * lib/dirchownmod.c: Include lchown.h.
64285         * lib/lchown.c: Don't include files that lchown.h now includes.
64286         Don't declare chown, since lchown.h now does that.
64287         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64288         (lchown): Define to rpl_chown if lchown is declared but
64289         does not exist.  Declare using a prototype if lchown is not
64290         declared.  Add a copyright notice.
64291         * lib/mkstemp.h: Include <unistd.h>.
64292         * lib/openat.c: Include lchown.h.
64293
64294         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64295         we now test for that separately.
64296         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64297         rather than O_NOFOLLOW, when testing whether it's possible to
64298         avoid a race condition reliably.
64299         * lib/savewd.c (savewd_chdir): Likewise.
64300
64301         Remove macros that are no longer needed now that stdint.h is
64302         reliable.
64303         * lib/fsusage.c (UINTMAX_MAX): Remove.
64304         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64305         * lib/utimecmp.c (SIZE_MAX): Remove.
64306
64307         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64308
64309         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64310         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64311         O_NOATIME works.
64312
64313 2006-10-05  Bruno Haible  <bruno@clisp.org>
64314
64315         * lib/gl_list.h (gl_sortedlist_search_from_to,
64316         gl_sortedlist_indexof_from_to): New declarations.
64317         (gl_list_implementation): New fields sortedlist_search_from_to,
64318         sortedlist_indexof_from_to.
64319         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64320         inline functions.
64321         * lib/gl_list.c (gl_sortedlist_search_from_to,
64322         gl_sortedlist_indexof_from_to): New functions.
64323         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64324         function.
64325         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64326         (gl_array_sortedlist_search_from_to): New function.
64327         (gl_array_list_implementation): Update.
64328         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64329         function.
64330         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64331         (gl_carray_sortedlist_search_from_to): New function.
64332         (gl_carray_list_implementation): Update.
64333         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64334         gl_linked_sortedlist_indexof_from_to): New functions.
64335         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64336         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64337         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64338         gl_tree_sortedlist_indexof_from_to): New functions.
64339         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64340         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64341         Update.
64342         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64343         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64344         Update.
64345
64346 2006-10-05  Bruno Haible  <bruno@clisp.org>
64347
64348         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64349         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64350         (struct gl_list_implementation): Add fields search_from_to,
64351         indexof_from_to. Remove fields search, indexof.
64352         (gl_list_search): Use the search_from_to method.
64353         (gl_list_search_from, gl_list_search_from_to): New functions.
64354         (gl_list_indexof): Use the indexof_from_to method.
64355         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64356         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64357         (gl_list_search_from, gl_list_search_from_to): New functions.
64358         (gl_list_indexof): Use the indexof_from_to method.
64359         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64360         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64361         gl_array_indexof. Add start_index, end_index arguments.
64362         (gl_array_search_from_to): Renamed from gl_array_search. Add
64363         start_index, end_index arguments.
64364         (gl_array_remove, gl_array_list_implementation): Update.
64365         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64366         gl_carray_indexof. Add start_index, end_index arguments.
64367         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64368         start_index, end_index arguments.
64369         (gl_carray_remove, gl_carray_list_implementation): Update.
64370         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64371         gl_linked_search. Add start_index, end_index arguments.
64372         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64373         start_index, end_index arguments.
64374         (gl_linked_remove): Update.
64375         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64376         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64377         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64378         field to 'size_t'.
64379         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64380         gl_tree_search. Add start_index, end_index arguments.
64381         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64382         start_index, end_index arguments.
64383         (gl_tree_remove): Update.
64384         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64385         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64386         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64387         function.
64388         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64389         gl_tree_search. Add start_index, end_index arguments.
64390         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64391         start_index, end_index arguments.
64392         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64393         Update.
64394         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64395
64396 2006-10-05  Bruno Haible  <bruno@clisp.org>
64397
64398         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
64399
64400         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
64401         fwriteerror_temp): New declarations.
64402         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
64403         (descriptors): New variable.
64404         (cleanup): First, close the descriptors.
64405         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
64406         fclose_temp, fwriteerror_temp): New functions.
64407
64408 2006-10-04  Jim Meyering  <jim@meyering.net>
64409
64410         * lib/fts.c (fts_open): Tiny comment change.
64411
64412 2006-10-04  Bruno Haible  <bruno@clisp.org>
64413
64414         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
64415         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
64416         gl_LOCK_BODY.
64417         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
64418         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
64419         gl_LOCK_EARLY_BODY.
64420         (gl_LOCK): Require gl_LOCK_BODY.
64421
64422 2006-10-04  Bruno Haible  <bruno@clisp.org>
64423
64424         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
64425         (gl_oset_search_atleast): New declaration.
64426         (struct gl_oset_implementation): Add field 'search_atleast'.
64427         (gl_oset_search_atleast): New inline function.
64428         * lib/gl_oset.c (gl_oset_search_atleast): New function.
64429         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
64430         (gl_array_oset_implementation): Update.
64431         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
64432         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
64433         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
64434
64435 2006-10-04  Bruno Haible  <bruno@clisp.org>
64436
64437         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
64438
64439 2006-10-03  Bruno Haible  <bruno@clisp.org>
64440
64441         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
64442         from gl_avltreehash_list_implementation.
64443
64444 2006-10-03  Bruno Haible  <bruno@clisp.org>
64445
64446         * lib/gl_oset.c (gl_oset_add): Fix return type.
64447
64448 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
64449
64450         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
64451
64452 2006-10-02  Eric Blake  <ebb9@byu.net>
64453
64454         * modules/strnlen (Depends-on): Add extensions.
64455
64456 2006-10-02  Eric Blake  <ebb9@byu.net>
64457
64458         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
64459         definition in 2.60+.
64460
64461 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64462
64463         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
64464         checks.
64465
64466 2006-10-02  Bruno Haible  <bruno@clisp.org>
64467
64468         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
64469         to the AUTOMAKE_OPTIONS.
64470         Reported by Jim Meyering.
64471
64472 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64473
64474         Work around bug in Solaris 10 /proc file system:
64475         /proc/self/fd/NNN/.. isn't the parent directory of
64476         the directory whose file descriptor is NNN.  This needs to
64477         be worked around at run time, not compile time, since a
64478         program might be built on Solaris 8, where things work, and
64479         run on Solaris 10.
64480         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64481         to use the following interface instead:
64482         (OPENAT_BUFFER_SIZE): New macro.
64483         (openat_proc_name): New function.
64484         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64485         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64486         Likewise.
64487         * lib/openat-proc.c: New file.
64488         * modules/openat (Files): Add lib/openat-proc.c.
64489         (Depends-on): Add same-inode, stdbool.
64490         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64491
64492 2006-09-29  Bruno Haible  <bruno@clisp.org>
64493
64494         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64495         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64496         argument. Set stdout_closed before testing for ferror, not after.
64497         (fwriteerror, fwriteerror_no_ebadf): New functions.
64498
64499 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64500
64501         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64502
64503 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64504
64505         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64506         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64507
64508 2006-09-28  Jim Meyering  <jim@meyering.net>
64509
64510         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64511         Include <unistd.h>.
64512
64513 2006-09-28  Bruno Haible  <bruno@clisp.org>
64514
64515         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64516         * modules/linkedhash-list (Depends-on): Likewise.
64517         * modules/rbtreehash-list (Depends-on): Likewise.
64518
64519 2006-09-28  Bruno Haible  <bruno@clisp.org>
64520
64521         * lib/strndup.h: Simplify the redefinition of strndup.
64522         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64523         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64524
64525 2006-09-28  Bruno Haible  <bruno@clisp.org>
64526
64527         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64528         * lib/gl_linkedhash_list.c: Likewise.
64529         * lib/gl_rbtreehash_list.c: Likewise.
64530
64531 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64532
64533         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64534         getaddrinfo.
64535
64536         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64537         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64538         it causes <stdio_ext.h> to cause a compile-time error.
64539         Problem reported by Nelson H. F. Beebe.
64540         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64541         of HAVE_DECL___PENDING.
64542
64543         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64544         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64545         declaration.
64546
64547 2006-09-27  Jim Meyering  <jim@meyering.net>
64548
64549         This file could end up with a definition for a function
64550         named __strndup, rather than rpl_strndup on a system with
64551         incomplete weak_alias support.
64552         * lib/strndup.c (strndup): Rename from __strndup.
64553         Remove #defines that used to map __strndup to strndup.
64554         Don't use K&R prototypes.
64555         Remove LIBC-related code, since this file is not sync'd with glibc.
64556         * lib/strndup.h: Revamp, accordingly.
64557         * m4/strndup.m4: Modernize.
64558
64559 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64560
64561         * modules/savewd (Depends-on): Add 'raise'.
64562         * lib/savewd.c: Include <signal.h>, for 'raise'.
64563
64564 2006-09-26  Jim Meyering  <jim@meyering.net>
64565
64566         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64567         when we detect Darwin 8.7.0's acl_get_file bug.
64568         Rearrange to perform the new (below) run-test while $LIBS
64569         contains any acl-related library.  Set USE_ACL at the end.
64570         (gl_ACL_GET_FILE): New function.
64571
64572 2006-09-26  Eric Blake  <ebb9@byu.net>
64573
64574         * lib/verror.c: Include <config.h> unconditionally.
64575
64576 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64577
64578         * modules/clock-time (Maintainer): Add self.
64579         * modules/getlogin_r (Depends-on): Add extensions.
64580
64581 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64582
64583         * modules/clock-time: New module.
64584         * modules/nanosleep (Depends-on): Add clock-time.
64585         * modules/gethrxtime (Depends-on): Likewise.
64586         * modules/gettime (Depends-on): Likewise.
64587         * modules/settime (Depends-on): Likewise.
64588
64589         * modules/fts-lgpl: Depend on openat.
64590         * modules/mkancesdirs: Depend on savewd.
64591         * modules/mkdir-p: Likewise.
64592
64593 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64594
64595         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64596
64597         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64598         `gl_have_arbitrary_file_name_length_limit' to
64599         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64600         actually works between configure runs.
64601
64602 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64603             Bruno Haible  <bruno@clisp.org>
64604
64605         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64606
64607 2006-09-25  Jim Meyering  <jim@meyering.net>
64608
64609         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64610         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64611
64612 2006-09-25  Eric Blake  <ebb9@byu.net>
64613
64614         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64615         exec's in 2006-09-18 patch when shuffling fds.
64616
64617 2006-09-25  Bruno Haible  <bruno@clisp.org>
64618
64619         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64620         Reported by Jim Meyering.
64621
64622 2006-09-24  Jim Meyering  <jim@meyering.net>
64623
64624         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64625         compare a pointer against a literal "0".  That caused failures with
64626         at least HP-UX's hpcc.
64627
64628 2006-09-22  Simon Josefsson  <jas@extundo.com>
64629
64630         * modules/gc-sha1:
64631         * modules/gc-md4:
64632         * modules/gc-hmac-sha1:
64633         * modules/gc-hmac-md5:
64634         * modules/gc-des:
64635         * modules/gc-arcfour: Distribute more files.
64636
64637 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64638
64639         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64640         (gl_linked_iterator_from_to): Initialize struct completely.
64641         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64642         (gl_tree_iterator_from_to): Likewise
64643         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64644         * lib/gl_array_list.c [lint] (gl_array_iterator)
64645         (gl_array_iterator_from_to): Likewise.
64646         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64647         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64648         (gl_carray_iterator_from_to): Likewise.
64649
64650         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64651         * lib/md4.c (md4_process_block): Remove unused variable.
64652         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64653         parentheses for clarity.
64654
64655 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64656
64657         * modules/bison-i18n (Depends-on): Add gettext.
64658
64659 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64660
64661         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64662         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64663         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64664         also add missing comma that caused broken test.
64665         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64666         stdlib.h, for `abort'.
64667         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64668         variables.
64669         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64670         include unistd.h if present, for `rmdir'.
64671         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64672         variables.
64673         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64674         in the process include standard headers for prototypes.
64675         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64676         gets declared on GNU/Linux.
64677         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64678         unistd.h, for `rmdir'.
64679         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64680
64681         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64682         always true.
64683         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64684
64685         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64686
64687 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64688
64689         * gnulib-tool (func_version): Create output all at once.  This
64690         may help avoid triggering unnecessary SIGPIPEs, and at any
64691         rate it doesn't hurt.
64692
64693 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64694             Bruno Haible  <bruno@clisp.org>
64695
64696         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64697         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64698         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64699
64700         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64701         (gl_FUNC_VASPRINTF): Invoke it.
64702
64703 2006-09-22  Bruno Haible  <bruno@clisp.org>
64704
64705         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64706         getloadavg.c as first argument.
64707
64708 2006-09-22  Bruno Haible  <bruno@clisp.org>
64709
64710         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64711         at the beginning of the gl_INIT macro.
64712         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64713         gl_GETLOADAVG.
64714
64715 2006-09-22  Bruno Haible  <bruno@clisp.org>
64716
64717         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64718         module.
64719         Suggested by Ralf Wildenhues.
64720
64721 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64722
64723         Import this patch from libc:
64724
64725         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64726
64727         * lib/regex_internal.c (re_string_reconstruct): Handle
64728         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64729         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64730         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64731         re_string_context_at.
64732
64733         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64734         now requires it.
64735         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64736         gl_REGEX now does it for us.
64737         (gl_REGEX): Add test taken from
64738         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64739
64740         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64741         Check that large offsets work.  Modernize Autoconf usages.
64742         Prefer "yes" to mean a good thing rather than a bad.
64743         Don't put "#define mkstemp" in config.h, as this might interfere
64744         with standard system headers that "#define mkstemp mkstemp64".
64745
64746         * modules/mkstemp (Depends-on): Add extensions, so that
64747         mkstemp is visible on some platforms.
64748         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64749         (Include): Change to "mkstemp.h" from <stdlib.h>.
64750         (Files): Add mkstemp.h.
64751
64752         * lib/mkstemp.h: New file, since some standard headers
64753         #define mkstemp.
64754         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64755         Include "mkstemp.h".
64756         Make the _LIBC code resemble glibc original more,
64757         e.g., use K&R style.
64758         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64759         (mkstemp): Remove, since mkstemp.h does this for us.
64760         * lib/stdlib--.h: Include mkstemp.h.
64761
64762         Import this patch from libc:
64763
64764         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64765
64766         * lib/tempname.c (__gen_tempname): Change attempts_min
64767         into a macro.  Use preprocessor to decide how to initialize
64768         attempts [Coverity CID 67].
64769
64770 2006-09-20  Bruno Haible  <bruno@clisp.org>
64771
64772         * lib/mkdtemp.c: Import from libc.
64773         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64774                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64775                 attempts_min into a macro.  Use preprocessor to decide how to
64776                 initialize attempts [Coverity CID 67].
64777         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64778                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64779                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64780
64781 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64782
64783         * gnulib-tool (func_exit): New function, to allow to pass the
64784         exit status portably through the trap.  Use everywhere.
64785         (--help, --version): Signal a write error.
64786         (trap): catch SIGPIPE, for write errors.
64787         Exit at the end of the trap, with the correct exit status.
64788
64789 2006-09-19  Karl Berry  <karl@gnu.org>
64790
64791         * doc/gnulib.texi: note about the license texinfo files.
64792
64793 2006-09-19  Eric Blake  <ebb9@byu.net>
64794
64795         * gnulib-tool: Avoid space-tab.
64796
64797 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64798
64799         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64800         that prevented coreutils 6.1 from building.  Problem reported
64801         by Petter Reinholdtsen.
64802
64803 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64804
64805         * gnulib-tool (avoidlist): Fix typo that broke options like
64806         --avoid=lock that are used by coreutils bootstrap.
64807
64808 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64809
64810         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64811         more systematically.
64812
64813 2006-09-18  Jim Meyering  <jim@meyering.net>
64814
64815         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64816
64817 2006-09-18  Bruno Haible  <bruno@clisp.org>
64818
64819         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64820
64821 2006-09-18  Bruno Haible  <bruno@clisp.org>
64822
64823         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64824         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64825         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64826         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64827         * m4/gettext.m4: Require autoconf >= 2.52.
64828         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64829         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64830         of gl_cv_header_inttypes_h.
64831
64832 2006-09-18  Bruno Haible  <bruno@clisp.org>
64833
64834         * lib/javaversion.c: Include configmake.h.
64835
64836 2006-09-18  Bruno Haible  <bruno@clisp.org>
64837
64838         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64839         avoid that the while loops be executed in a subshell.
64840
64841 2006-09-18  Bruno Haible  <bruno@clisp.org>
64842
64843         * MODULES.html.sh (func_module): Break long lines.
64844         Suggested by Bruce Korb <bkorb@gnu.org>.
64845
64846 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64847
64848         Speed up by a factor of 1.12.
64849         * gnulib-tool (nl): New variable.
64850         (func_import): Rewrite include directive extraction to only read each
64851         directive once.
64852
64853 2006-09-17  Bruno Haible  <bruno@clisp.org>
64854
64855         * modules/javaversion (Makefile.am): Remove DEFS setting.
64856         (Depends-on): Add configmake, for PKGDATADIR definition.
64857
64858 2006-09-17  Bruno Haible  <bruno@clisp.org>
64859
64860         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64861
64862 2006-09-17  Bruno Haible  <bruno@clisp.org>
64863
64864         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64865         (func_modules_transitive_closure, func_modules_add_dummy,
64866         func_modules_to_filelist, func_import, func_create_testdir,
64867         func_create_megatestdir, ...): Use it wherever possible.
64868         Suggested by Ralf Wildenhues.
64869
64870 2006-09-16  Karl Berry  <karl@gnu.org>
64871
64872         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64873         to avoid sectioning errors.
64874         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64875         [ifinfo]: blank line after @center-ed titles.
64876         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64877         Spell FSF address consistently with others.
64878         (These changes approved by rms.)
64879
64880 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64881
64882         Speed up by a factor of 1.61.
64883         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64884         already checked module names again.
64885
64886 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64887
64888         Speed up by a factor of 1.13.
64889         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64890         for new_files, and the input to func_add_or_update.
64891
64892 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64893
64894         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64895         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64896
64897 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64898
64899         * modules/mkancesdirs (Depends-on): Add fcntl.
64900         * modules/savewd: New file.
64901         * MODULES.html.sh (File system functions): Add savewd.
64902
64903         * modules/configmake (Makefile.am): Add support for the
64904         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64905
64906 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64907
64908         * m4/savewd.m4: New file.
64909
64910 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64911
64912         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64913         (dirchownmod): New arg FD.  All callers changed.
64914         Use FD rather than opening the directory ourself, as opening is
64915         now the caller's responsibility.
64916         * lib/dirchownmod.h: Likewise.
64917         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64918         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64919         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64920         (test_dir): Remove.
64921         (mkancesdirs): Return length of prefix of FILE that has already
64922         been made, or -2 if there is a child doing the work.  Redo
64923         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64924         ".", and treat ".." specially since it might stray back into
64925         already-created areas.  Use a subprocess if necessary.  New arg
64926         WD; all users changed.  MAKE_DIR function should now return 1
64927         if it creates a directory that is not readable.  Return -2 if
64928         a child process is spun off.
64929         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64930         Adjust signature to match code.
64931         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64932         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64933         all users changed.
64934         * lib/savewd.c, lib/savewd.h: New files.
64935
64936 2006-09-15  Jim Meyering  <jim@meyering.net>
64937
64938         * modules/rename-dest-slash: New module.
64939         * MODULES.html.sh (posix_compat): Add it here.
64940
64941         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64942
64943 2006-09-15  Jim Meyering  <jim@meyering.net>
64944
64945         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64946         file.
64947
64948         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64949
64950 2006-09-15  Jim Meyering  <jim@meyering.net>
64951
64952         * lib/rename-dest-slash.c (has_trailing_slash): Use
64953         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64954         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64955         test before testing whether SRC is a directory.
64956         Suggestions from Bruno Haible.
64957
64958         Avoid a warning about an unused variable.
64959         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64960         into the #ifdef block where it's used.
64961
64962         * lib/rename-dest-slash.c: New file.
64963
64964 2006-09-14  Bruno Haible  <bruno@clisp.org>
64965
64966         * lib/allocsa.c: Include <config.h> unconditionally.
64967         * lib/asnprintf.c: Likewise.
64968         * lib/asprintf.c: Likewise.
64969         * lib/c-strcasecmp.c: Likewise.
64970         * lib/c-strcasestr.c: Likewise.
64971         * lib/c-strncasecmp.c: Likewise.
64972         * lib/c-strstr.c: Likewise.
64973         * lib/classpath.c: Likewise.
64974         * lib/clean-temp.c: Likewise.
64975         * lib/concatpath.c: Likewise.
64976         * lib/copy-file.c: Likewise.
64977         * lib/csharpcomp.c: Likewise.
64978         * lib/csharpexec.c: Likewise.
64979         * lib/execute.c: Likewise.
64980         * lib/fatal-signal.c: Likewise.
64981         * lib/findprog.c: Likewise.
64982         * lib/fwriteerror.c: Likewise.
64983         * lib/gl_array_list.c: Likewise.
64984         * lib/gl_array_oset.c: Likewise.
64985         * lib/gl_avltree_list.c: Likewise.
64986         * lib/gl_avltree_oset.c: Likewise.
64987         * lib/gl_avltreehash_list.c: Likewise.
64988         * lib/gl_carray_list.c: Likewise.
64989         * lib/gl_linked_list.c: Likewise.
64990         * lib/gl_linkedhash_list.c: Likewise.
64991         * lib/gl_list.c: Likewise.
64992         * lib/gl_oset.c: Likewise.
64993         * lib/gl_rbtree_list.c: Likewise.
64994         * lib/gl_rbtree_oset.c: Likewise.
64995         * lib/gl_rbtreehash_list.c: Likewise.
64996         * lib/imaxabs.c: Likewise.
64997         * lib/imaxdiv.c: Likewise.
64998         * lib/javacomp.c: Likewise.
64999         * lib/javaexec.c: Likewise.
65000         * lib/javaversion.c: Likewise.
65001         * lib/linebreak.c: Likewise.
65002         * lib/localcharset.c: Likewise.
65003         * lib/lock.c: Likewise.
65004         * lib/mbchar.c: Likewise.
65005         * lib/mbswidth.c: Likewise.
65006         * lib/mkdtemp.c: Likewise.
65007         * lib/pipe.c: Likewise.
65008         * lib/printf-args.c: Likewise.
65009         * lib/printf-parse.c: Likewise.
65010         * lib/progname.c: Likewise.
65011         * lib/progreloc.c: Likewise.
65012         * lib/readlink.c: Likewise.
65013         * lib/sh-quote.c: Likewise.
65014         * lib/stpcpy.c: Likewise.
65015         * lib/stpncpy.c: Likewise.
65016         * lib/strcasecmp.c: Likewise.
65017         * lib/strcasestr.c: Likewise.
65018         * lib/strcspn.c: Likewise.
65019         * lib/striconv.c: Likewise.
65020         * lib/strncasecmp.c: Likewise.
65021         * lib/strnlen1.c: Likewise.
65022         * lib/strstr.c: Likewise.
65023         * lib/strtok_r.c: Likewise.
65024         * lib/tls.c: Likewise.
65025         * lib/tmpdir.c: Likewise.
65026         * lib/unicodeio.c: Likewise.
65027         * lib/unsetenv.c: Likewise.
65028         * lib/vasnprintf.c: Likewise.
65029         * lib/vasprintf.c: Likewise.
65030         * lib/wait-process.c: Likewise.
65031         * lib/xallocsa.c: Likewise.
65032         * lib/xsetenv.c: Likewise.
65033         * lib/xstriconv.c: Likewise.
65034
65035 2006-09-13  Simon Josefsson  <jas@extundo.com>
65036
65037         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
65038         that internally, suggested by Ralf Wildenhues
65039         <Ralf.Wildenhues@gmx.de>.
65040
65041 2006-09-13  Simon Josefsson  <jas@extundo.com>
65042
65043         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
65044         @LIBOBJS@.
65045         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65046
65047 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65048
65049         * lib/_fpending.c: Include <config.h> unconditionally, since we no
65050         longer worry about uses that don't define HAVE_CONFIG_H.
65051         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
65052         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
65053         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
65054         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
65055         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
65056         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
65057         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
65058         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
65059         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
65060         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
65061         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
65062         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
65063         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
65064         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
65065         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
65066         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
65067         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
65068         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
65069         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
65070         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
65071         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
65072         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
65073         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
65074         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
65075         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
65076         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
65077         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
65078         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
65079         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
65080         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
65081         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
65082         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
65083         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
65084         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
65085         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
65086         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
65087         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
65088         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
65089         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
65090         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
65091         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
65092         Likewise.
65093
65094 2006-09-13  Eric Blake  <ebb9@byu.net>
65095
65096         * lib/getopt.c: Fix typo in last commit.
65097
65098 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65099
65100         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
65101         dgettext.
65102
65103 2006-09-12  Jim Meyering  <jim@meyering.net>
65104
65105         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
65106         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
65107         Reported by Nelson H. F. Beebe.
65108
65109 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65110
65111         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
65112         program_invocation_name and program_invocation_short_name are
65113         initialized.
65114         * lib/argp-namefrob.h: Move declarations of program_invocation_name
65115         and program_invocation_short_name to argp.h, so they are visible
65116         to user programs.
65117         * lib/argp.h: Likewise
65118
65119 2006-09-10  Bruno Haible  <bruno@clisp.org>
65120
65121         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65122         m4/inttypes_h.m4, m4/uintmax_t.m4.
65123
65124 2006-09-10  Bruno Haible  <bruno@clisp.org>
65125
65126         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
65127         gl_AC_TYPE_UINTMAX_T.
65128
65129 2006-09-10  Bruno Haible  <bruno@clisp.org>
65130
65131         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
65132
65133 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65134
65135         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
65136         convention.  Text proposed by Bruno Haible.
65137         (struct argp_option): Document the use of N_() wrappers.
65138
65139         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
65140         '\v', and translate the two parts separately, instead of feeding
65141         the whole string to gettext.  This allows to exclude
65142         '\v' from the strings visible to the translator by writing doc
65143         strings as N_("..") "\v" N_("..").
65144
65145 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
65146
65147         * config/srclist.txt: Undo latest change; the bug was fixed.
65148
65149 2006-09-09  Bruno Haible  <bruno@clisp.org>
65150
65151         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
65152         assignments if building a library without libtool.
65153         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
65154         in func_emit_lib_Makefile_am.
65155         (func_import): When building a static library libfoo.a, arrange to
65156         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
65157         (func_create_testdir): Likewise.
65158         * modules/gc (configure.ac, Makefile.am): If building statically,
65159         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
65160         * modules/iconvme (configure.ac, Makefile.am): Likewise.
65161         * modules/striconv (configure.ac, Makefile.am): Likewise.
65162         Based on a suggestion by Ralf Wildenhues.
65163
65164 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65165
65166         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65167         Check for unistd.h too, since Autoconf doesn't assume POSIX.
65168         Also:
65169
65170         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65171         Add year_2050_test to catch glibc bug 2821
65172         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65173
65174         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65175         Prefer #ifdef to #if.
65176
65177         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
65178         Return from 'main' instead of calling 'exit'.
65179
65180 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65181
65182         * lib/mktime.c (guess_time_tm): Fix bug where mktime
65183         returned the maximum time_t value rather than (time_t) -1.
65184         Problem originally reported by William Bardwell
65185         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65186
65187         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65188         Moved to here ...
65189         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65190         ... from here.
65191
65192 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65193
65194         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
65195         2821 is fixed.
65196
65197 2006-09-08  Jim Meyering  <jim@meyering.net>
65198
65199         Don't make generated files read-only.  That would bother too many
65200         people.  However, do retain the ability to work when targets are
65201         read-only: remove the destination and temporary files before writing
65202         them (when generated via sed or echo), or by using the -f option for
65203         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
65204         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65205         * modules/byteswap, modules/configmake, modules/fcntl:
65206         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65207         * modules/localcharset, modules/netinet_in, modules/poll:
65208         * modules/stdbool, modules/stdint, modules/sys_select:
65209         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65210
65211 2006-09-08  Jim Meyering  <jim@meyering.net>
65212
65213         Avoid new build failure on FreeBSD 6.0.
65214         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
65215         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
65216         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
65217
65218 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65219
65220         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
65221
65222 2006-09-07  Jim Meyering  <jim@meyering.net>
65223
65224         Fix global typo in last change: use chmod u-w, not chmod u-x.
65225         Spotted by Paul Eggert and Bruce Korb.
65226         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65227         * modules/byteswap, modules/configmake, modules/fcntl:
65228         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65229         * modules/localcharset, modules/netinet_in, modules/poll:
65230         * modules/stdbool, modules/stdint, modules/sys_select:
65231         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65232
65233 2006-09-06  Jim Meyering  <jim@meyering.net>
65234
65235         Make generated files be read-only.
65236         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
65237         Ensure that each generated file is now read-only.
65238         * modules/argz: Likewise.
65239         * modules/arpa_inet: Likewise.
65240         * modules/byteswap: Likewise.
65241         * modules/configmake: Likewise.
65242         * modules/fcntl: Likewise.
65243         * modules/fnmatch: Likewise.
65244         * modules/getopt: Likewise.
65245         * modules/glob: Likewise.
65246         * modules/inttypes: Likewise.
65247         * modules/netinet_in: Likewise.
65248         * modules/poll: Likewise.
65249         * modules/stdbool: Likewise.
65250         * modules/stdint: Likewise.
65251         * modules/sys_select: Likewise.
65252         * modules/sys_socket: Likewise.
65253         * modules/sys_stat: Likewise.
65254         * modules/sysexits: Likewise.
65255         * modules/localcharset: Same as above, but continue using temporary
65256         file named "t-$@" (why different?) rather than the "$@-t" used
65257         everywhere else.
65258
65259         * modules/sysexits (Makefile.am): Replace literal occurrences
65260         of "sysexit.h" more readable, and more consistent, "$@".
65261
65262 2006-09-06  Bruno Haible  <bruno@clisp.org>
65263
65264         * modules/striconv: New file.
65265         * modules/xstriconv: New file.
65266         * MODULES.html.sh (Internationalization functions): Add striconv,
65267         xstriconv.
65268
65269 2006-09-06  Bruno Haible  <bruno@clisp.org>
65270
65271         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65272         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65273         not using libtool correctly.
65274
65275 2006-09-06  Bruno Haible  <bruno@clisp.org>
65276
65277         * lib/striconv.h: New file.
65278         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65279         iconvstring.c.
65280         * lib/xstriconv.h: New file.
65281         * lib/xstriconv.c: New file.
65282
65283 2006-09-06  Bruno Haible  <bruno@clisp.org>
65284
65285         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65286         lib_..._LDFLAGS.
65287
65288 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65289
65290         * lib/argz_.h: Sync from Libtool.
65291
65292         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65293                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65294
65295         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65296
65297 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65298
65299         * modules/trim: New file.
65300
65301 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65302
65303         * lib/trim.h: New file.
65304         * lib/trim.c: New file.
65305
65306 2006-09-05  Bruno Haible  <bruno@clisp.org>
65307
65308         * MODULES.html.sh (String handling): Add trim.
65309
65310 2006-09-04  Karl Berry  <karl@gnu.org>
65311
65312         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65313         until next release.
65314
65315 2006-09-03  Bruno Haible  <bruno@clisp.org>
65316
65317         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65318         correctly.
65319
65320 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65321
65322         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65323         not gl_GETLOADAVG.  Omit unneeded semicolons.
65324         Problems reported by Ralf Wildenhues in
65325         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65326         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65327         at the end, which is the usual gnulib style.
65328
65329         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65330         of doing all the work ourselves.
65331         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65332         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65333
65334 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65335
65336         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65337         Problem reported by Ralf Wildenhues in
65338         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65339
65340         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65341         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65342
65343 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65344
65345         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65346         yesterday's patch by changing test -n to test -z.
65347
65348 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65349
65350         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65351         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65352         the former is now obsolescent.
65353
65354         * modules/chdir-long (Depends-on): Add fcntl.
65355
65356 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65357
65358         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65359         obsolescent, and programs should use gnulib instead.
65360         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65361         but with prefixes changed.
65362
65363 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65364
65365         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65366         or stdbool.h, because they might not exist while configuring.
65367
65368         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65369         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65370         does that for us.
65371         (O_DIRECTORY): Remove.
65372
65373 2006-08-31  Eric Blake  <ebb9@byu.net>
65374
65375         * gnulib-tool: Don't let emacs change spaces to TAB.
65376
65377 2006-08-31  Bruno Haible  <bruno@clisp.org>
65378
65379         * gnulib-tool: When calling func_import more than once, do it in a
65380         subshell.
65381         Reported by Eric Blake <ebb9@byu.net>.
65382
65383 2006-08-31  Bruno Haible  <bruno@clisp.org>
65384
65385         * gnulib-tool (nl): Remove variable.
65386         (sed_transform_lib_file): Use more robust test for config-h module.
65387         (func_import): Fix typo in 2006-08-25 patch.
65388
65389 2006-08-31  Bruno Haible  <bruno@clisp.org>
65390
65391         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65392         specified, augment Makefile.am variables instead of assigning them.
65393
65394 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65395
65396         Work around a bug in both the Linux and SunOS 64-bit kernels:
65397         nanosleep mishandles sleeps for longer than 2**31 seconds.
65398         Problem reported by Frank v Waveren in
65399         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65400         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
65401         Check for nanosleep bug.
65402         (LIB_NANOSLEEP): Append clock_gettime library if needed.
65403
65404 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65405
65406         Work around a bug in both the Linux and SunOS 64-bit kernels:
65407         nanosleep mishandles sleeps for longer than 2**31 seconds.
65408         Problem reported by Frank v Waveren in
65409         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65410         * lib/nanosleep.c (BILLION): New constant.
65411         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
65412         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
65413         implementation.
65414
65415 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65416
65417         * modules/nanosleep (Depends-on): Add gettime.
65418
65419 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65420         and Simon Josefsson  <jas@extundo.com>
65421         and Oskar Liljeblad  <oskar@osk.mine.nu>
65422
65423         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
65424         * gnulib-tool (func_import): New license type 'unmodifiable license
65425         text'.
65426         * modules/fdl: Use it.  Longer description.
65427         * module/gpl, module/lgpl: New files.
65428
65429 2006-08-30  Jim Meyering  <jim@meyering.net>
65430
65431         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
65432         shadowing the parameter.
65433
65434 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65435
65436         Sync from Libtool:
65437
65438         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65439
65440         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
65441         sharing with gnulib.  Report by Eric Blake.
65442
65443 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65444
65445         * modules/isapipe: New file.
65446         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
65447
65448 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65449
65450         * modules/configmake (Makefile.am): Add a comment, and omit
65451         the CONFIGMAKE_ prefix from generated macro names.  Suggested
65452         by Bruno Haible.
65453
65454 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65455
65456         * m4/isapipe.m4: New file.
65457
65458 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65459
65460         * lib/isapipe.c, lib/isapipe.h: New files.
65461
65462 2006-08-29  Jim Meyering  <jim@meyering.net>
65463
65464         * modules/configmake (Makefile.am): Make configmake.h depend on
65465         Makefile.  Otherwise, a stale configmake.h could hang around.
65466
65467 2006-08-29  Eric Blake  <ebb9@byu.net>
65468
65469         * lib/error.c (error_at_line, print_errno_message): Match libc, after
65470         resolution of upstream bug 3044.
65471
65472 2006-08-29  Bruno Haible  <bruno@clisp.org>
65473
65474         * modules/localcharset (Depends-on): Add configmake.
65475         (Makefile.am): Remove setting of LIBDIR through DEFS.
65476
65477 2006-08-29  Bruno Haible  <bruno@clisp.org>
65478
65479         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65480         defined.
65481
65482 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65483
65484         * modules/fcntl: New file.
65485         * modules/chdir-safer (Depends-on): Add fcntl.
65486         * modules/fts: Likewise.
65487         * modules/mkdir-p: Likewise.
65488
65489         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65490         This undoes the most recent change, since we're now addressing the
65491         problem in a different way.
65492
65493         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65494         into output, since the output might be called Makefile.am even
65495         if $makefile_name is something different.
65496         (func_import): Use $makefile_am rather than
65497         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65498         empty.
65499
65500         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65501
65502 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65503
65504         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65505         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65506         recent change to stdint.m4, since we're now addressing the problem in a
65507         different way.
65508
65509 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65510
65511         * m4/fcntl_h.m4: New file.
65512
65513 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65514
65515         * lib/fcntl_.h: New file.
65516         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65517         the fcntl module.
65518         * lib/dirchownmod.c: Likewise.
65519         * lib/fts.c: Likewise.
65520
65521         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65522         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65523         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65524         just before including <inttypes.h>, to avoid circular inclusion.
65525
65526 2006-08-28  Jim Meyering  <jim@meyering.net>
65527
65528         * doc/visibility.texi: Actually read and correct the grammar of the
65529         sentence affected by yesterday's change.
65530
65531 2006-08-28  Eric Blake  <ebb9@byu.net>
65532
65533         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65534         needs wrapper.
65535
65536 2006-08-28  Eric Blake  <ebb9@byu.net>
65537
65538         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65539
65540 2006-08-28  Eric Blake  <ebb9@byu.net>
65541
65542         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65543
65544 2006-08-28  Bruno Haible  <bruno@clisp.org>
65545
65546         * modules/c-strstr: New file, from GNU gettext.
65547         * MODULES.html.sh (String handling): Add c-strstr.
65548
65549 2006-08-28  Bruno Haible  <bruno@clisp.org>
65550
65551         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65552         macros.
65553         Reported by Eric Blake.
65554
65555 2006-08-28  Bruno Haible  <bruno@clisp.org>
65556
65557         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65558         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65559         * lib/vasprintf.c: Include errno.h, limits.h.
65560         (EOVERFLOW): New fallback definition.
65561         (vasprintf): Test here whether the string length is > INT_MAX.
65562         * lib/vsnprintf.c: Include errno.h, limits.h.
65563         (EOVERFLOW): New fallback definition.
65564         (vsnprintf): Fix bug when generated string was too long for the buffer.
65565         Test here whether the string length is > INT_MAX.
65566
65567 2006-08-28  Bruno Haible  <bruno@clisp.org>
65568
65569         * lib/inttypes_.h (SCNX*): Remove definitions.
65570         Reported by Eric Blake.
65571
65572 2006-08-28  Bruno Haible  <bruno@clisp.org>
65573
65574         * lib/c-strstr.h: New file, from GNU gettext.
65575         * lib/c-strstr.c: New file, from GNU gettext.
65576
65577 2006-08-28  Bruno Haible  <bruno@clisp.org>
65578
65579         * gnulib-tool: Reorder some statements.
65580
65581 2006-08-28  Bruno Haible  <bruno@clisp.org>
65582
65583         * gnulib-tool: New option --makefile-name.
65584         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65585         $makefile_name.
65586         (func_import): Write $makefile_name to the cache file, and read it from
65587         there unless explicitly specified. Use $makefile_name as file name
65588         instead of Makefile.am. Adjust the recommendations accordingly.
65589
65590 2006-08-28  Bruno Haible  <bruno@clisp.org>
65591
65592         * gnulib-tool (func_verify_module): Check against misapplying patch.
65593
65594 2006-08-28  Bruno Haible  <bruno@clisp.org>
65595
65596         * gnulib-tool (func_relativize, func_relconcat): New functions.
65597         Give an error if --local-dir is given with --update.
65598         Remove trailing slashes from $local_gnulib_dir.
65599         (func_import): Store the relativized $local_gnulib_dir in
65600         gnulib-cache.m4, and read it from there if not specified explicitly.
65601
65602 2006-08-28  Bruno Haible  <bruno@clisp.org>
65603
65604         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65605         is the current directory. Respect also $local_gnulib_dir.
65606
65607 2006-08-28  Bruno Haible  <bruno@clisp.org>
65608             Simon Josefsson  <jas@extundo.com>
65609
65610         BeOS portability.
65611         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65612
65613 2006-08-27  Jim Meyering  <jim@meyering.net>
65614
65615         * doc/visibility.texi: Remove duplicate word: "pointer".
65616
65617 2006-08-26  Bruno Haible  <bruno@clisp.org>
65618
65619         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65620         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65621         (Makefile.am): Create inttypes.h from inttypes_.h.
65622         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65623
65624         * modules/imaxabs: New file.
65625
65626         * modules/imaxdiv: New file.
65627
65628 2006-08-26  Bruno Haible  <bruno@clisp.org>
65629
65630         * m4/inttypes.m4: New file.
65631         * m4/_inttypes_h.m4: Remove file.
65632         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65633         PRI_MACROS_BROKEN.
65634         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65635
65636         * m4/imaxabs.m4: New file.
65637
65638         * m4/imaxdiv.m4: New file.
65639
65640 2006-08-26  Bruno Haible  <bruno@clisp.org>
65641
65642         * lib/inttypes_.h: New file.
65643         * lib/inttypes.h: Remove file.
65644         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65645
65646         * lib/imaxabs.c: New file.
65647
65648         * lib/imaxdiv.c: New file.
65649
65650 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65651
65652         New config-h module, so that "make" output needn't be cluttered
65653         by -DHAVE_CONFIG_H.
65654         * MODULES.html.sh (Support for building libraries and executables):
65655         Add config-h.
65656         * modules/config-h: New file.
65657         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65658         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65659         the config-h module is used.
65660
65661         New configmake module, so that "make" output needn't be cluttered
65662         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65663         * MODULES.html.sh (Support for building libraries and executables):
65664         Add configmake.
65665         * modules/configmake: New file.
65666
65667 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65668
65669         * m4/config-h.m4: New file.
65670
65671 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65672
65673         * config/srclist.txt: Add elisp-comp.
65674
65675 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65676
65677         * MODULES.html.sh (Support for building libraries and executables):
65678         Add elisp-comp.
65679         * build-aux/elisp-comp: New file.
65680         * modules/elisp-comp: New file.
65681
65682 2006-08-24  Bruno Haible  <bruno@clisp.org>
65683
65684         * gnulib-tool (func_create_testdir): Use non-default values of
65685         sourcebase and m4base.
65686
65687 2006-08-24  Bruno Haible  <bruno@clisp.org>
65688
65689         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65690         HTML structure.
65691
65692 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65693
65694         * modules/openat (Depends-on): Add lchown.
65695
65696 2006-08-23  Bruno Haible  <bruno@clisp.org>
65697
65698         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65699         of gl_LOCK_EARLY instead of gl_LOCK.
65700
65701 2006-08-23  Bruno Haible  <bruno@clisp.org>
65702
65703         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65704         on OSF/1 to no.
65705         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65706
65707 2006-08-23  Bruno Haible  <bruno@clisp.org>
65708
65709         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65710         as unusable.
65711
65712         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65713         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65714         (gl_LOCK): New macro.
65715
65716 2006-08-22  Simon Josefsson  <jas@extundo.com>
65717
65718         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65719         to md5 module.
65720
65721 2006-08-22  Simon Josefsson  <jas@extundo.com>
65722
65723         * MODULES.html.sh: Add "Support for maintaining and release
65724         projects".
65725
65726         * build-aux/gnupload: New file, from coreutils.
65727
65728 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65729
65730         Avoid the need for AC_LIBSOURCES in m4 macros.
65731         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65732         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65733         * modules/check-version (EXTRA_DIST): Add check-version.h.
65734         * modules/crc (EXTRA_DIST): Add crc.h.
65735         * modules/des (EXTRA_DIST): Add des.h.
65736         * modules/gc (EXTRA_DIST): Add gc.h.
65737         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65738         * modules/getline (EXTRA_DIST): Add getline.h.
65739         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65740         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65741         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65742         * modules/md2 (EXTRA_DIST): Add md2.h.
65743         * modules/md4 (EXTRA_DIST): Add md4.h.
65744         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65745         * modules/read-file (EXTRA_DIST): Add read-file.h.
65746         * modules/readline (EXTRA_DIST): Add readline.h.
65747         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65748         rijndael-api-fst.h.
65749
65750 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65751
65752         * m4/rijndael.m4 (gl_ARCFOUR):
65753         * m4/arctwo.m4 (gl_ARCTWO):
65754         * m4/check-version.m4 (gl_CHECK_VERSION):
65755         * m4/crc.m4 (gl_CRC):
65756         * m4/des.m4 (gl_DES):
65757         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65758         * m4/gc.m4 (gl_GC):
65759         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65760         * m4/getline.m4 (gl_FUNC_GETLINE):
65761         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65762         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65763         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65764         * m4/md2.m4 (gl_MD2):
65765         * m4/md4.m4 (gl_MD4):
65766         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65767         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65768         * m4/readline.m4 (gl_FUNC_READLINE):
65769         * m4/rijndael.m4 (gl_RIJNDAEL):
65770         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65771         to get the necessary .h files and whatnot.
65772
65773 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65774
65775         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65776         gnulib rather than the other way around.
65777         * config/srclistvars.sh (COREUTILS): Remove.
65778
65779 2006-08-22  Jim Meyering  <jim@meyering.net>
65780
65781         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65782
65783         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65784
65785 2006-08-22  Eric Blake  <ebb9@byu.net>
65786
65787         * modules/regexprops-generic: New file.
65788         * MODULES.html.sh (Support for building documentation): List it.
65789
65790 2006-08-22  Eric Blake  <ebb9@byu.net>
65791
65792         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65793         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65794         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65795         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65796
65797 2006-08-22  Bruno Haible  <bruno@clisp.org>
65798
65799         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65800         and lib_LTLIBRARIES like the other lib_* variables.
65801
65802 2006-08-22  Bruno Haible  <bruno@clisp.org>
65803
65804         * build-aux/x-to-1.in: New file, from GNU gettext.
65805
65806 2006-08-22  Bruno Haible  <bruno@clisp.org>
65807
65808         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65809         <utmpx.h> exists.
65810
65811 2006-08-22  Bruno Haible  <bruno@clisp.org>
65812
65813         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65814         <utmpx.h> exists.
65815
65816 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65817
65818         BeOS portability.
65819         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65820         exist.
65821         Problem reported by Bruno Haible.
65822
65823 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65824
65825         Avoid the need for AC_LIBSOURCES in m4 macros.
65826         * modules/acl (EXTRA_DIST): Add acl.h.
65827         * modules/argmatch (Files): Add m4/argmatch.m4.
65828         (configure.ac): Add gl_ARGMATCH.
65829         (EXTRA_DIST): Renamed from lib_SOURCES, for
65830         consistency with the other modules.  Remove argmatch.c.
65831         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65832         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65833         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65834         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65835         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65836         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65837         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65838         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65839         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65840         * modules/closeout (EXTRA_DIST): Add closeout.h.
65841         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65842         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65843         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65844         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65845         dirname.h; remove basename.c and stripslash.c.
65846         * modules/exclude (EXTRA_DIST): Add exclude.h.
65847         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65848         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65849         * modules/file-type (EXTRA_DIST): Add file-type.h.
65850         * modules/filemode (EXTRA_DIST): Add filemode.h.
65851         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65852         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65853         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65854         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65855         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65856         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65857         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65858         * modules/getdate (EXTRA_DIST): Add getdate.c.
65859         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65860         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65861         * modules/getpass (EXTRA_DIST): Add getpass.h.
65862         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65863         * modules/group-member (EXTRA_DIST): Add group-member.h.
65864         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65865         * modules/hash (EXTRA_DIST): Add hash.h.
65866         * modules/human (EXTRA_DIST): Add human.h.
65867         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65868         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65869         * modules/lchown (EXTRA_DIST): Add lchown.h.
65870         * modules/long-options (EXTRA_DIST): Add long-options.h.
65871         * modules/lstat (EXTRA_DIST): Add lstat.h.
65872         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65873         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65874         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65875         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65876         * modules/memxor (EXTRA_DIST): Add memxor.h.
65877         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65878         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65879         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65880         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65881         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65882         * modules/physmem (EXTRA_DIST): Add physmem.h.
65883         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65884         * modules/posixver (EXTRA_DIST): Add posixver.h.
65885         * modules/quote (EXTRA_DIST): Add quote.h.
65886         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65887         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65888         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65889         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65890         regex_internal.h regexec.c.
65891         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65892         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65893         * modules/same (EXTRA_DIST): Add same.h.
65894         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65895         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65896         * modules/savedir (EXTRA_DIST): Add savedir.h.
65897         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65898         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65899         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65900         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65901         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65902         * modules/strdup (EXTRA_DIST): Add strdup.h.
65903         * modules/strftime (EXTRA_DIST): Add strftime.h.
65904         * modules/strndup (EXTRA_DIST): Add strndup.h.
65905         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65906         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65907         * modules/time_r (EXTRA_DIST): Add time_r.h.
65908         * modules/timespec (EXTRA_DIST): Add timespec.h.
65909         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65910         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65911         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65912         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65913         * modules/userspec (EXTRA_DIST): Add userspec.h.
65914         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65915         * modules/utimens (EXTRA_DIST): Add utimens.h.
65916         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65917         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65918         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65919         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65920         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65921         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65922         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65923         * modules/yesno (EXTRA_DIST): Add yesno.h.
65924
65925 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65926
65927         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65928
65929         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65930         * m4/dev-ino.m4, same-inode.m4: Remove.
65931
65932         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65933         * m4/acl.m4 (AC_FUNC_ACL):
65934         * m4/backupfile.m4 (gl_BACKUPFILE):
65935         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65936         * m4/canon-host.m4 (gl_CANON_HOST):
65937         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65938         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65939         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65940         * m4/cloexec.m4 (gl_CLOEXEC):
65941         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65942         * m4/closeout.m4 (gl_CLOSEOUT):
65943         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65944         * m4/dirname.m4 (gl_DIRNAME):
65945         * m4/exclude.m4 (gl_EXCLUDE):
65946         * m4/exitfail.m4 (gl_EXITFAIL):
65947         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65948         * m4/file-type.m4 (gl_FILE_TYPE):
65949         * m4/filemode.m4 (gl_FILEMODE):
65950         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65951         * m4/fpending.m4 (gl_FUNC_FPENDING):
65952         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65953         * m4/fts.m4 (gl_FUNC_FTS):
65954         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65955         * m4/getdate.m4 (gl_GETDATE):
65956         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65957         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65958         * m4/getpass.m4 (gl_FUNC_GETPASS):
65959         * m4/gettime.m4 (gl_GETTIME):
65960         * m4/getugroups.m4 (gl_GETUGROUPS):
65961         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65962         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65963         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65964         * m4/hash.m4 (gl_HASH):
65965         * m4/idcache.m4 (gl_IDCACHE):
65966         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65967         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65968         * m4/long-options.m4 (gl_LONG_OPTIONS):
65969         * m4/lstat.m4 (gl_FUNC_LSTAT):
65970         * m4/md5.m4 (gl_MD5):
65971         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65972         * m4/memcoll.m4 (gl_MEMCOLL):
65973         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65974         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65975         * m4/memxor.m4 (gl_MEMXOR):
65976         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65977         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65978         * m4/modechange.m4 (gl_MODECHANGE):
65979         * m4/mountlist.m4 (gl_MOUNTLIST):
65980         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65981         * m4/openat.m4 (gl_FUNC_OPENAT):
65982         * m4/pathmax.m4 (gl_PATHMAX):
65983         * m4/physmem.m4 (gl_PHYSMEM):
65984         * m4/posixtm.m4 (gl_POSIXTM):
65985         * m4/posixver.m4 (gl_POSIXVER):
65986         * m4/quote.m4 (gl_QUOTE):
65987         * m4/quotearg.m4 (gl_QUOTEARG):
65988         * m4/readtokens.m4 (gl_READTOKENS):
65989         * m4/readutmp.m4 (gl_READUTMP):
65990         * m4/regex.m4 (gl_REGEX):
65991         * m4/safe-read.m4 (gl_SAFE_READ):
65992         * m4/safe-write.m4 (gl_SAFE_WRITE):
65993         * m4/same.m4 (gl_SAME):
65994         * m4/save-cwd.m4 (gl_SAVE_CWD):
65995         * m4/savedir.m4 (gl_SAVEDIR):
65996         * m4/settime.m4 (gl_SETTIME):
65997         * m4/sha1.m4 (gl_SHA1):
65998         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65999         * m4/stat-macros.m4 (gl_STAT_MACROS):
66000         * m4/stat-time.m4 (gl_STAT_TIME):
66001         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
66002         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
66003         * m4/strdup.m4 (gl_FUNC_STRDUP):
66004         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
66005         * m4/strndup.m4 (gl_FUNC_STRNDUP):
66006         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
66007         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
66008         * m4/time_r.m4 (gl_TIME_R):
66009         * m4/timespec.m4 (gl_TIMESPEC):
66010         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
66011         * m4/unlinkdir.m4 (gl_UNLINKDIR):
66012         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
66013         * m4/userspec.m4 (gl_USERSPEC):
66014         * m4/utimecmp.m4 (gl_UTIMECMP):
66015         * m4/utimens.m4 (gl_UTIMENS):
66016         * m4/xalloc.m4 (gl_XALLOC):
66017         * m4/xgetcwd.m4 (gl_XGETCWD):
66018         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
66019         * m4/xreadlink.m4 (gl_XREADLINK):
66020         * m4/xstrtod.m4 (gl_XSTRTOD):
66021         * m4/yesno.m4 (gl_YESNO):
66022         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66023         to get the necessary .h files and whatnot.
66024
66025 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
66026             Bruno Haible  <bruno@clisp.org>
66027
66028         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
66029         /bin/sh understanding of '!' conditional negation.
66030
66031 2006-08-21  Jim Meyering  <jim@meyering.net>
66032
66033         * modules/openat (Depends-on): Really alphabetize.
66034
66035         * modules/acl (Depends-on): Add error and quote.
66036
66037         * check-module (find_included_lib_files): Add at-func.c to the
66038         ok-to-include-more-than-once white list.
66039
66040         * modules/openat (Depends-on): Add lstat.  Alphabetize.
66041
66042 2006-08-21  Bruno Haible  <bruno@clisp.org>
66043
66044         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66045         Emit a pkgdata_DATA variable only if some snippets add contents to it.
66046         Reported by Martin Lambers <marlam@marlam.de>.
66047
66048 2006-08-21  Bruno Haible  <bruno@clisp.org>
66049
66050         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
66051         specify an installation location, don't emit a noinst_LIBRARIES or
66052         noinst_LTLIBRARIES assignment.
66053
66054 2006-08-21  Bruno Haible  <bruno@clisp.org>
66055
66056         BeOS portability.
66057         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
66058         BeOS has mbrtowc() but no <wctype.h>.
66059
66060 2006-08-21  Bruno Haible  <bruno@clisp.org>
66061
66062         BeOS portability.
66063         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
66064         exist.
66065
66066 2006-08-21  Bruno Haible  <bruno@clisp.org>
66067
66068         BeOS portability.
66069         * lib/mbchar.h: Include <wctype.h> only if it exists.
66070
66071 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66072
66073         Remove files that are no longer needed by their respective modules.
66074         * m4/obstack.m4: Remove.
66075         * m4/strerror_r.m4: Remove.
66076         * m4/uint32_t.m4: Remove.
66077         * m4/uintptr_t.m4: Remove.
66078         * m4/ullong_max.m4: Remove.
66079         * m4/xstrtoimax.m4: Remove.
66080         * m4/xstrtoumax.m4: Remove.
66081
66082         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
66083         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
66084         dependencies now capture this.
66085
66086         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
66087         Do not use AC_LIBSOURCES, since gnulib modules now do this.
66088         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
66089         * m4/human.m4 (gl_HUMAN): Likewise.
66090         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
66091         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
66092
66093         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
66094
66095         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
66096         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
66097         stdint.
66098         * m4/human.m4 (gl_HUMAN): Likewise.
66099         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
66100         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
66101         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66102         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66103         * m4/xstrtol (gl_XSTRTOL): Likewise.
66104
66105         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
66106         AC_TYPE_LONG_LONG_INT.
66107         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66108         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
66109         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
66110         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66111
66112         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
66113         on stdbool.
66114
66115         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
66116         (gl_PREREQ_XSTRTOUL): Remove.
66117
66118         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
66119
66120         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
66121         mode.
66122
66123 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66124
66125         Add and change modules to make it easier for coreutils to use
66126         gnulib-tool.
66127         * modules/backupfile (Files): Remove m4/d-ino.m4.
66128         (Depends-on): Add d-ino.
66129         * modules/cycle-check (Depends-on): Add stdint.
66130         (lib_SOURCES): Add cycle-check.h.
66131         * modules/d-ino: New module.
66132         * modules/d-type: New module.
66133         * modules/error (Files): Remove m4/strerror_r.m4.
66134         * modules/filemode (Files): Add m4/st_dm_mode.m4.
66135         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66136         m4/inttypes_h.m4, m4/uintmax_t.m4.
66137         (Depends-on): Add stdint.
66138         (lib_SOURCES): Add fsusage.h.
66139         * modules/getcwd (Files): Remove d-ino.m4.
66140         (Depends-on): Add d-ino.
66141         * modules/getndelim2 (Depends-on): Add stdint.
66142         * modules/glob (Files): Remove m4/d-type.m4.
66143         (Depends-on): Add d-type.
66144         * modules/host-os: New module.
66145         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
66146         m4/inttypes_h.m4, m4/uintmax_t.m4.
66147         * Depends-on: Add stdint.
66148         (lib_SOURCES): Add human.h.
66149         * modules/inttostr (Files): Remove m4/intmax_t.m4,
66150         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
66151         m4/uintmax_t.m4, m4/ulonglong.m4.
66152         (Depends-on): Add stdint.
66153         (EXTRA_DIST): Add inttostr.h.
66154         * modules/lchmod: New module.
66155         * modules/link-follow: New module.
66156         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
66157         (Depends-on): Add lchmod.
66158         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
66159         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
66160         (Depends-on): Add stdint.
66161         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
66162         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
66163         (Depends-on): Add stdint.
66164         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
66165         * modules/perl: New module.
66166         * modules/regex (Depends-on): Add stdint.
66167         * modules/rmdir-errno: New module.
66168         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66169         m4/intmax_t.m4.
66170         (Depends-on): Add stdint.
66171         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66172         m4/uintmax_t.m4.
66173         (Depends-on): Add stdint.
66174         * modules/unlink-busy: New module.
66175         * modules/utimecmp (Depends-on): Add stdint.
66176         * modules/uptime: New module.
66177         * modules/winsz-ioctl: New module.
66178         * modules/winsz-termios: New module.
66179         * modules/xnanosleep (Depends-on): Add nanosleep.
66180         * modules/ullong_max: Remove.
66181         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
66182         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
66183         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
66184         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
66185         (Depends-on): Add inttypes.
66186         (lib_SOURCES): Add xstrtol.h.
66187         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
66188         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
66189         * MODULES.html.sh: Move 'assert' into the assert section.
66190         Move 'dummy' into the linking section.
66191         Remove ullong_max.
66192         Add section for compatibility checks for POSIX:2001 functions,
66193         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
66194         winsz-ioctl, and winsz-termios into it.
66195         Add lchmod.
66196         Add top-level Misc section and put host-os, perl, and uptime
66197         into it.
66198
66199 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66200
66201         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
66202         now assume the stdint module.  Do not include inttypes.h.
66203         * lib/fsusage.h: Likewise.
66204         * lib/getndelim2.c: Likewise.
66205         * lib/human.h: Likewise.
66206         * lib/inttostr.h: Likewise.
66207         * lib/obstack.c: Likewise.
66208         * lib/regex_internal.h: Likewise.
66209         * lib/tempname.c: Likewise.
66210         * lib/utimecmp.c: Likewise.
66211         * lib/xstrtol.h: Likewise.
66212
66213         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
66214
66215         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
66216         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
66217         * lib/xtime.h: Likewise.
66218
66219 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66220
66221         * modules/openat (Files): Add lib/fchmodat.c.
66222         Fixes problem reported by Jay Youngman.
66223
66224 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66225
66226         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
66227         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
66228
66229 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
66230             Bruno Haible  <bruno@clisp.org>
66231
66232         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
66233         and is a script that invokes bison. Tighten the code. Add comments.
66234
66235 2006-08-18  Jim Meyering  <jim@meyering.net>
66236
66237         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
66238         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
66239         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
66240         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
66241
66242 2006-08-18  Bruno Haible  <bruno@clisp.org>
66243
66244         * modules/bison-i18n: New file.
66245         * MODULES.html.sh (Internationalization functions): Add it.
66246
66247 2006-08-18  Bruno Haible  <bruno@clisp.org>
66248
66249         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
66250         sys/statvfs.h. When getmntinfo was found, check its declaration and
66251         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
66252
66253 2006-08-18  Bruno Haible  <bruno@clisp.org>
66254
66255         * m4/bison-i18n.m4: New file, from bison.
66256
66257 2006-08-18  Bruno Haible  <bruno@clisp.org>
66258
66259         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66260         (ME_DUMMY): Treat "kernfs" as a dummy.
66261         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66262
66263 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66264
66265         Update from coreutils.
66266
66267         2006-08-15  Jim Meyering  <jim@meyering.net>
66268
66269         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66270
66271         2006-01-17  Jim Meyering  <jim@meyering.net>
66272
66273         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66274
66275         2006-01-11  Jim Meyering  <jim@meyering.net>
66276
66277         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66278         Check for the lchmod function.
66279
66280 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66281
66282         Update from coreutils.
66283
66284         * lib/__fpending.h: Add copyright notice.
66285         * lib/fprintftime.h: Likewise.
66286         * lib/savedir.c: Use (C) in copyright notice.
66287         * lib/savedir.h: Likewise.
66288
66289         2006-08-15  Jim Meyering  <jim@meyering.net>
66290
66291         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66292         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66293         in support of the EXPECTED_ERRNO macro.
66294         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66295         definitions.  Instead, define the appropriate symbols and include
66296         "at-func.c".
66297         * lib/mkdirat.c (mkdirat): Likewise.
66298         * lib/fchmodat.c (fchmodat): Likewise.
66299         (ENOSYS): Remove definition.
66300         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66301         it.  Don't include "unistd--.h" -- it wasn't ever used.
66302
66303         2006-01-17  Jim Meyering  <jim@meyering.net>
66304
66305         Rewrite fts.c not to change the current working directory,
66306         by using openat, fstatat, fdopendir, etc..
66307
66308         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66309         (HAVE_OPENAT_SUPPORT): Define.
66310         [_LIBC] (fchdir): Don't undef or define; no longer used.
66311         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66312         Now, this `function' always succeeds, and consumes its file descriptor
66313         parameter -- so callers must not close such FDs.  Update callers.
66314         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66315         (diropen): Add parameter, SP.  Adjust all callers.
66316         Implement using diropen_fd, rather than open.
66317         (fts_open): Initialize new member, fts_cwd_fd.
66318         Remove fts_rft-setting code.
66319         (fts_close): Close fts_cwd_fd, if necessary.
66320         (__opendir2): Define in terms of opendir or opendirat,
66321         depending on whether the FST_NOCHDIR flag is set.
66322         (fts_build): Since fts_safe_changedir consumes its FD, and since
66323         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66324         and close the dup'd file descriptor upon failure.
66325         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66326         (fts_safe_changedir): Tweak semantics to reflect that this function
66327         now calls cwd_advance_fd and hence consumes its FD argument.
66328         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66329         [struct FTS] (fts_rft): Remove now-unused member.
66330         [struct FTS] (fts_cycle.state): Improve comment.
66331
66332         * lib/openat.c (openat_needs_fchdir): New function.
66333         * lib/openat.h (openat_needs_fchdir): Declare it.
66334
66335 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66336
66337         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66338         Problem and fix reported by Pádraig Brady in
66339         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66340
66341 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66342
66343         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66344
66345 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66346
66347         * lib/memcoll.c (memcoll): Optimize for the common case where the
66348         arguments are bytewise equal.
66349
66350 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66351
66352         * doc/regexprops-generic.texi: Add a copyright notice.
66353
66354 2006-08-15  Bruno Haible  <bruno@clisp.org>
66355
66356         * modules/tmpdir (License): Change to LGPL.
66357
66358 2006-08-15  Bruno Haible  <bruno@clisp.org>
66359
66360         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66361         module.
66362
66363 2006-08-14  Simon Josefsson  <jas@extundo.com>
66364
66365         * config/srclist.txt: Add gnupload.
66366
66367 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66368
66369         Change copyright notice from LGPL 2 to GPL 2, since that's the
66370         standard form used in the gnulib repository.
66371         * tests/test-lock.c: Likewise.
66372         * tests/test-stdint.c: Likewise.
66373         * tests/test-tls.c: Likewise.
66374
66375         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66376         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66377         Add copyright notice.
66378
66379         * check-module: Add copyright notice.  Output a copyright
66380         notice if "--version" is specified.
66381         * modules/COPYING: New file.
66382         * tests/test-getaddrinfo.c: Add copyright notice.
66383         * tests/test-verify.c: Likewise.
66384
66385 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66386
66387         Change copyright notice from LGPL 2 to GPL 2, since that's the
66388         standard form used in the gnulib repository.
66389         * lib/lock.c: LGPL -> GPL.
66390         * lib/lock.h: Likewise.
66391         * lib/strnlen1.c: Likewise.
66392         * lib/strnlen1.h: Likewise.
66393         * lib/tls.c: Likewise.
66394         * lib/tls.h: Likewise.
66395         * lib/tmpdir.c: Likewise.
66396
66397         * lib/TODO: Remove; this belongs only in coreutils.
66398
66399 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66400
66401         Add copyright notices to long-enough files that lack them, since
66402         otherwise the files aren't clearly free.  Use the same notice that
66403         getdate.texi already uses.
66404         * doc/alloca-opt.texi: Add copyright notice.
66405         * doc/alloca.texi: Likewise.
66406         * doc/ctime.texi: Likewise.
66407         * doc/functions.texi: Likewise.
66408         * doc/gcd.texi: Likewise.
66409         * doc/gnulib-tool.texi: Likewise.
66410         * doc/inet_ntoa.texi: Likewise.
66411         * doc/visibility.texi: Likewise.
66412
66413         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
66414         * doc/quote.texi: Add copyright notice.
66415
66416         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
66417         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
66418         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
66419         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
66420         is now obsolete, and give a pointer to the Sun list.
66421         Add copyright notice.
66422
66423 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66424
66425         * config/srclistvars.sh: Add copyright notice.
66426
66427 2006-08-14  Eric Blake  <ebb9@byu.net>
66428
66429         Import the following change from libc:
66430
66431         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
66432
66433         Upstream bug 2997.
66434         * lib/misc/error.c: Add space between program name and message if file
66435         name is missing.
66436
66437 2006-08-12  Karl Berry  <karl@gnu.org>
66438
66439         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
66440         remove, these originate in gnulib now.
66441
66442 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66443
66444         * doc/Makefile (standards.info standards.html standards.dvi):
66445         Also depend on make-stds.texi.
66446
66447 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66448
66449         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
66450         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
66451
66452         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
66453         in wchar_t.  Problem reported by Eric Blake.
66454
66455         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
66456         LEN is smaller than SIZE.  Suggested by Bruno Haible.
66457         Also, help the compiler to keep LEN in a register.
66458
66459 2006-08-11  Eric Blake  <ebb9@byu.net>
66460
66461         * users.txt: Sort.  Add tar.
66462
66463 2006-08-11  Bruno Haible  <bruno@clisp.org>
66464
66465         * users.txt: New file.
66466
66467 2006-08-11  Bruno Haible  <bruno@clisp.org>
66468
66469         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
66470         before <wchar.h>. Needed for OSF/1 and BSD/OS.
66471
66472 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66473
66474         * modules/snprintf (Depends-on): Remove minmax.
66475         (Maintainer): Add self and Bruno.
66476
66477 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66478
66479         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66480         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66481         (EOVERFLOW): Define if the system does not.
66482         Do not include "minmax.h"; it wasn't used.
66483         (snprintf): Don't assume size_t promotes to an unsigned type.
66484         Fix bug when generated string was too long for the buffer: the
66485         buffer's contents are supposed to be the initial prefix of the
66486         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66487         exceeds INT_MAX; do the check ourselves.
66488
66489         Import the following changes from libc:
66490
66491         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66492
66493         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66494         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66495         set wc to the byte which couldn't be converted.
66496         (re_string_reconstruct): Don't clear valid_raw_len before calling
66497         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66498         tip_context using re_string_context_at.
66499
66500         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66501
66502         * lib/posix/regex.h: g++ still cannot handled [restrict].
66503
66504         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66505
66506         * lib/posix/regex.h: Remove special handling for VMS.
66507
66508 2006-08-10  Jim Meyering  <jim@meyering.net>
66509
66510         * modules/same-inode: New module.
66511         * modules/dev-ino: New module.
66512         * modules/cycle-check: Depend on these modules, rather than simply
66513         including their .h files.
66514         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66515         required via m4/cycle-check.m4.
66516         * modules/same: Depend on new same-inode module, rather than
66517         including same-inode.h.
66518         * modules/chdir-safer: New file.
66519
66520         * modules/chown (Depends-on): Add stat-macros.
66521
66522 2006-08-10  Jim Meyering  <jim@meyering.net>
66523
66524         * m4/cycle-check.m4: New file.
66525         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66526         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66527
66528 2006-08-10  Eric Blake  <ebb9@byu.net>
66529
66530         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66531         in from original proposal.
66532
66533 2006-08-10  Eric Blake  <ebb9@byu.net>
66534         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66535
66536         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66537         namespace.
66538
66539 2006-08-10  Bruno Haible  <bruno@clisp.org>
66540
66541         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66542         as well.
66543
66544 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66545
66546         Sync from coreutils.
66547
66548         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66549
66550         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66551         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66552
66553 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66554
66555         * modules/restrict: Remove; no longer needed now that we assume
66556         Autoconf 2.59 or later.
66557         * MODULES.html.sh: Remove 'restrict'.
66558         * modules/argp (Depends-on): Remove 'restrict'.
66559         * modules/base64 (Depends-on): Likewise.
66560         * modules/gc (Depends-on): Likewise.
66561         * modules/getaddrinfo (Depends-on): Likewise.
66562         * modules/glob (Depends-on): Likewise.
66563         * modules/inet_ntop (Depends-on): Likewise.
66564         * modules/inet_pton (Depends-on): Likewise.
66565         * modules/memxor (Depends-on): Likewise.
66566         * modules/regex (Depends-on): Likewise.
66567         * modules/strtok_r (Depends-on): Likewise.
66568         * modules/time_r (Depends-on): Likewise.
66569
66570 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66571
66572         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66573         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66574         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66575         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66576         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66577         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66578         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66579         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66580
66581         Merge from coreutils.
66582         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66583         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66584         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66585         * m4/time_r.m4 (gl_TIME_R): Likewise.
66586
66587 2006-08-09  Karl Berry  <karl@gnu.org>
66588
66589         * config/srclist.txt: no more gettext-tools, per Bruno.
66590
66591 2006-08-08  Eric Blake  <ebb9@byu.net>
66592
66593         * modules/verror: New module.
66594         * MODULES.html.sh: Document it.
66595
66596 2006-08-08  Eric Blake  <ebb9@byu.net>
66597
66598         * lib/verror.h, lib/verror.c: New files.
66599
66600 2006-08-08  Eric Blake  <ebb9@byu.net>
66601
66602         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66603         verror_at_line output complies with GNU Coding Standards even when
66604         file is NULL.
66605
66606 2006-08-07  Bruno Haible  <bruno@clisp.org>
66607
66608         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66609         versions of AIX.
66610         Reported by Ralf Wildenhues.
66611
66612 2006-08-07  Bruno Haible  <bruno@clisp.org>
66613
66614         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66615         in an AC_DEFUN. Needed so that the autoconf snippets can use
66616         AC_REQUIRE.
66617
66618 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66619
66620         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66621         Initialize pkgdata_DATA.
66622         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66623         overriding it.
66624
66625 2006-08-06  Eric Blake  <ebb9@byu.net>
66626
66627         * lib/error.h: Fold in some upstream changes from glibc.
66628         * lib/error.c: Likewise.
66629
66630 2006-08-04  Bruno Haible  <bruno@clisp.org>
66631
66632         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66633         Make the mostlyclean-local rule depend on mostlyclean-generic.
66634         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66635
66636 2006-07-31  Bruno Haible  <bruno@clisp.org>
66637
66638         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66639         <stdlib.h>, <string.h>.
66640
66641 2006-07-30  Bruno Haible  <bruno@clisp.org>
66642
66643         * modules/readlink (License): Change to LGPL.
66644
66645 2006-07-30  Bruno Haible  <bruno@clisp.org>
66646
66647         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66648         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66649         set PKGDATADIR to point to it.
66650
66651 2006-07-30  Bruno Haible  <bruno@clisp.org>
66652
66653         * modules/csharpexec (configure.ac): Comment out macro invocation.
66654         * modules/javaexec (configure.ac): Likewise.
66655         * modules/javacomp-script (configure.ac): Likewise.
66656
66657         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66658
66659 2006-07-30  Bruno Haible  <bruno@clisp.org>
66660
66661         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66662         linked-list.
66663
66664 2006-07-30  Bruno Haible  <bruno@clisp.org>
66665
66666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66667
66668 2006-07-30  Bruno Haible  <bruno@clisp.org>
66669
66670         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66671         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66672         get removed.
66673
66674 2006-07-29  Bruno Haible  <bruno@clisp.org>
66675
66676         Make it possible for gnulib-tool to work with locally modified or
66677         augmented gnulib repositories.
66678         * gnulib-tool (func_usage): Document --local-dir option.
66679         (local_gnulib_dir): New variable.
66680         Handle --local-dir option.
66681         (func_lookup_file): New function.
66682         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66683         (func_get_description, func_get_filelist, func_get_description,
66684         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66685         func_get_automake_snippet, func_get_include_directive,
66686         func_get_license, func_get_maintainer): Use func_lookup_file.
66687         (func_import, func_create_testdir): Use func_lookup_file.
66688
66689 2006-07-29  Bruno Haible  <bruno@clisp.org>
66690
66691         * modules/setenv (Depends-on): Add unistd.
66692
66693 2006-07-29  Bruno Haible  <bruno@clisp.org>
66694
66695         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66696
66697 2006-07-29  Bruno Haible  <bruno@clisp.org>
66698
66699         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66700
66701 2006-07-29  Bruno Haible  <bruno@clisp.org>
66702
66703         * gnulib-tool (import, update): If there is no Makefile.am, look at
66704         aclocal.m4, instead of bailing out.
66705
66706 2006-07-29  Bruno Haible  <bruno@clisp.org>
66707
66708         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66709         Categorize the options by when they are useful.
66710
66711 2006-07-29  Bruno Haible  <bruno@clisp.org>
66712
66713         * gnulib-tool (func_usage): Document option --no-libtool.
66714         Handle option --no-libtool.
66715         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66716         for changed semantics of $libtool variable.
66717         (func_import): Likewise. If libtool is not used, show this through
66718         an option --no-libtool.
66719         (func_create_testdir): Update.
66720
66721 2006-07-29  Bruno Haible  <bruno@clisp.org>
66722
66723         * gnulib-tool (func_import): Extend error message about missing
66724         --doc-base.
66725
66726 2006-07-29  Bruno Haible  <bruno@clisp.org>
66727
66728         * gnulib-tool (func_import): Don't create the $docbase directory if
66729         there is no file to store there.
66730
66731 2006-07-29  Bruno Haible  <bruno@clisp.org>
66732
66733         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66734         relevant, look for configure.ac there, not in the current directory.
66735         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66736
66737 2006-07-29  Bruno Haible  <bruno@clisp.org>
66738
66739         * gnulib-tool (SORT): New variable.
66740         (func_usage): Undocument --assume-autoconf option.
66741         Remove --assume-autoconf option handling.
66742         (autoconf_minversion): Determine from the contents of configure.ac.
66743         (func_import): Remove autoconf_minversion handling.
66744         Suggested by Eric Blake.
66745
66746 2006-07-29  Bruno Haible  <bruno@clisp.org>
66747
66748         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66749
66750 2006-07-29  Bruno Haible  <bruno@clisp.org>
66751
66752         * config/srclist.txt (*setenv.[ch]): Remove rules.
66753
66754 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66755
66756         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66757
66758 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66759
66760         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66761         arpa/inet.h.
66762
66763 2006-07-28  Simon Josefsson  <jas@extundo.com>
66764
66765         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66766         * modules/inet_pton (Depends-on): Likewise.
66767
66768 2006-07-28  Simon Josefsson  <jas@extundo.com>
66769
66770         * m4/netinet_in_h.m4: New file.
66771
66772 2006-07-28  Simon Josefsson  <jas@extundo.com>
66773
66774         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66775         #include's.
66776
66777 2006-07-28  Simon Josefsson  <jas@extundo.com>
66778
66779         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66780         #include's.
66781
66782 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66783
66784         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66785         setgid on directories only if they set these bits.
66786         * lib/modechange.h: Remove obsolete comment about masks.
66787
66788 2006-07-28  Eric Blake  <ebb9@byu.net>
66789
66790         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66791         macro expansion.
66792
66793 2006-07-28  Bruno Haible  <bruno@clisp.org>
66794
66795         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66796
66797 2006-07-28  Bruno Haible  <bruno@clisp.org>
66798
66799         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66800
66801 2006-07-28  Bruno Haible  <bruno@clisp.org>
66802
66803         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66804         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66805         Define fallbacks.
66806         Avoids link error on FreeBSD 4.x.
66807         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66808
66809         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66810         encoding.
66811         * lib/mbswidth.c (iswcntrl): Likewise.
66812
66813 2006-07-27  Bruno Haible  <bruno@clisp.org>
66814
66815         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66816         test.
66817
66818 2006-07-27  Bruno Haible  <bruno@clisp.org>
66819
66820         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66821         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66822         defined.
66823
66824 2006-07-26  Eric Blake  <ebb9@byu.net>
66825
66826         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66827
66828 2006-07-26  Eric Blake  <ebb9@byu.net>
66829
66830         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66831         like mingw that lack mkstemp.
66832         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66833         avoid compilation warning on mingw.
66834
66835 2006-07-26  Bruno Haible  <bruno@clisp.org>
66836
66837         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66838         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66839         INT_FAST*_MIN, INTPTR_MIN.
66840
66841 2006-07-25  Bruno Haible  <bruno@clisp.org>
66842
66843         * modules/version-etc (Depends-on): Add stdarg.
66844
66845 2006-07-25  Bruno Haible  <bruno@clisp.org>
66846
66847         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66848         complex commands.
66849
66850 2006-07-25  Bruno Haible  <bruno@clisp.org>
66851
66852         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66853         defined in <stdarg.h> or config.h.
66854
66855 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66856
66857         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66858         (gl_STDIO_SAFER): Remove.
66859
66860 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66861
66862         * MODULES.html.sh (File stream based Input/Output):
66863         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66864         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66865         * modules/fopen-safer, modules/tmpfile-safer: New files.
66866         * modules/stdio-safer: Remove.
66867
66868 2006-07-24  Bruno Haible  <bruno@clisp.org>
66869
66870         * modules/tmpdir: New file.
66871         * MODULES.html.sh (File system functions): Add it.
66872
66873 2006-07-24  Bruno Haible  <bruno@clisp.org>
66874
66875         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66876         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66877
66878 2006-07-24  Bruno Haible  <bruno@clisp.org>
66879
66880         * modules/clean-temp: New file.
66881
66882 2006-07-24  Bruno Haible  <bruno@clisp.org>
66883
66884         * m4/tmpdir.m4: New file, from GNU gettext.
66885
66886 2006-07-24  Bruno Haible  <bruno@clisp.org>
66887
66888         * lib/tmpdir.h: New file, from GNU gettext.
66889         * lib/tmpdir.c: New file, from GNU gettext.
66890
66891 2006-07-24  Bruno Haible  <bruno@clisp.org>
66892
66893         * lib/clean-temp.h: New file, from GNU gettext.
66894         * lib/clean-temp.c: New file, from GNU gettext.
66895
66896 2006-07-23  Eric Blake  <ebb9@byu.net>
66897
66898         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66899         (Depends-on): Add binary-io.
66900
66901 2006-07-23  Eric Blake  <ebb9@byu.net>
66902
66903         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66904
66905 2006-07-23  Eric Blake  <ebb9@byu.net>
66906
66907         * lib/tmpfile-safer.c: New file.
66908         * lib/stdio-safer.h (fopen_safer): Add prototype.
66909         * lib/stdio--.h (tmpfile): Make safer.
66910
66911 2006-07-23  Bruno Haible  <bruno@clisp.org>
66912
66913         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66914         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66915         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66916         gl_linked_remove_at): Use it.
66917
66918 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66919         and Simon Josefsson <jas@extundo.com>
66920
66921         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66922
66923         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66924
66925 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66926
66927         * modules/close-stream: New file.
66928         * modules/closeout (Description): Make it clear that it exits
66929         with a diagnostic on error.
66930         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66931         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66932
66933 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66934
66935         * m4/close-stream.m4: New file.
66936
66937 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66938
66939         * lib/close-stream.c, lib/close-stream.h: New files.
66940
66941 2006-07-22  Bruno Haible  <bruno@clisp.org>
66942
66943         Merge from GNU gettext 0.15.
66944
66945         2006-05-01  Bruno Haible  <bruno@clisp.org>
66946
66947                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66948
66949         2006-07-22  Bruno Haible  <bruno@clisp.org>
66950
66951                 * modules/javaversion: New file.
66952                 * MODULES.html.sh (Java): Add javaversion.
66953
66954         2006-03-12  Bruno Haible  <bruno@clisp.org>
66955
66956                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66957
66958         2005-12-04  Bruno Haible  <bruno@clisp.org>
66959
66960                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66961                 (untested).
66962
66963         2006-06-21  Bruno Haible  <bruno@clisp.org>
66964
66965                 Avoid warnings from recent versions of mcs.
66966                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66967                 -o, -L, -r any more. Use options documented since mcs-1.0
66968                 instead. Similarly for -g.
66969
66970         2005-12-04  Bruno Haible  <bruno@clisp.org>
66971
66972                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66973                 .resources, not .resource.
66974
66975         2005-07-09  Bruno Haible  <bruno@clisp.org>
66976
66977                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66978                 add a .dll suffix.
66979                 Reported by Mark Junker <mjscod@gmx.de>.
66980
66981         2006-07-22  Bruno Haible  <bruno@clisp.org>
66982
66983                 * modules/gettext: Upgrade to gettext-0.15.
66984                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66985                 m4/visibility.m4.
66986                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66987
66988 2006-07-22  Bruno Haible  <bruno@clisp.org>
66989
66990         Merge from GNU gettext 0.15.
66991
66992         2006-03-25  Bruno Haible  <bruno@clisp.org>
66993
66994                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66995
66996         2006-07-21  Bruno Haible  <bruno@clisp.org>
66997
66998                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66999                 "1.1".
67000
67001         2006-05-09  Bruno Haible  <bruno@clisp.org>
67002
67003                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
67004                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
67005                 for the conftestver execution.
67006
67007         2006-05-01  Bruno Haible  <bruno@clisp.org>
67008
67009                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
67010                 optional target-version argument. Verify that the compiler
67011                 groks source of the specified source-version, or add -source
67012                 option as necessary. Verify that the compiler produces
67013                 bytecode in the specified target-version, or add -target and
67014                 -source options as necessary. Make the result of the test
67015                 available as variable CONF_JAVAC. Also log error output in
67016                 config.log.
67017
67018         2006-03-11  Bruno Haible  <bruno@clisp.org>
67019
67020                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
67021
67022         2006-05-09  Bruno Haible  <bruno@clisp.org>
67023
67024                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
67025                 CLASSPATH_SEPARATOR to a semicolon.
67026
67027         2006-03-12  Bruno Haible  <bruno@clisp.org>
67028
67029                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
67030                 available as variable CONF_JAVA, for subsequent autoconf
67031                 tests. Also log error output in config.log.
67032
67033         2006-07-19  Bruno Haible  <bruno@clisp.org>
67034
67035                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
67036                 that getline works on glibc2 systems. Needed to avoid trouble
67037                 in relocatable.c.
67038                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
67039
67040         2005-12-04  Bruno Haible  <bruno@clisp.org>
67041
67042                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
67043                 launcher (untested).
67044
67045         2005-12-04  Bruno Haible  <bruno@clisp.org>
67046
67047                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
67048
67049         2006-07-22  Bruno Haible  <bruno@clisp.org>
67050
67051                 * gettext.m4: Update from GNU gettext-0.15.
67052                 * nls.m4: Likewise.
67053                 * po.m4: Likewise.
67054                 * inttypes-pri.m4: Likewise.
67055                 * inttypes-h.m4: Renamed from inttypes.m4.
67056                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
67057
67058 2006-07-22  Bruno Haible  <bruno@clisp.org>
67059
67060         Merge from GNU gettext 0.15.
67061
67062         2005-07-05  Bruno Haible  <bruno@clisp.org>
67063
67064                 * printf-args.c (printf_fetchargs): Work around broken
67065                 definition of wint_t on mingw.
67066
67067         2005-02-12  Bruno Haible  <bruno@clisp.org>
67068
67069                 * xallocsa.h: Add extern "C" for C++.
67070
67071         2006-05-17  Bruno Haible  <bruno@clisp.org>
67072
67073                 Cygwin portability.
67074                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
67075
67076         2006-04-30  Bruno Haible  <bruno@clisp.org>
67077
67078                 * progreloc.c: Include <mach-o/dyld.h> if available.
67079                 (find_executable): Use _NSGetExecutablePath when possible.
67080
67081         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67082
67083                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
67084                 function.
67085
67086         2005-12-29  Bruno Haible  <bruno@clisp.org>
67087
67088                 * progreloc.c (set_program_name_and_installdir): Fix
67089                 compilation error.
67090
67091         2005-12-04  Bruno Haible  <bruno@clisp.org>
67092
67093                 Cygwin portability.
67094                 * progreloc.c: Include <windows.h> also on Cygwin.
67095                 (find_executable): Add support for Cygwin.
67096                 (set_program_name_and_installdir): Handle also platforms with
67097                 nonempty EXEEXT.
67098
67099         2006-07-11  Bruno Haible  <bruno@clisp.org>
67100
67101                 * javacomp.c: Fix a comment.
67102                 Reported by Jim Meyering.
67103
67104         2006-04-30  Bruno Haible  <bruno@clisp.org>
67105
67106                 * javacomp.h (compile_java_class): Add source_version,
67107                 target_version arguments.
67108                 * javacomp.c: Rewritten to choose only a compiler that
67109                 respects the specified source_version and target_version.
67110
67111         2006-06-27  Bruno Haible  <bruno@clisp.org>
67112
67113                 Assume correct S_ISDIR macro.
67114                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
67115
67116         2006-07-22  Bruno Haible  <bruno@clisp.org>
67117
67118                 * javaversion.h: New file, from GNU gettext.
67119                 * javaversion.c: New file, from GNU gettext.
67120                 * javaversion.java: New file, from GNU gettext.
67121                 * javaversion.class: New file, from GNU gettext.
67122
67123         2006-05-17  Bruno Haible  <bruno@clisp.org>
67124
67125                 Cygwin portability.
67126                 * javaexec.c (execute_java_class): Test for jview program
67127                 also on Cygwin.
67128
67129         2006-04-09  Bruno Haible  <bruno@clisp.org>
67130
67131                 * fatal-signal.c: Don't include string.h.
67132                 (at_fatal_signal): Use a copying loop instead of memcpy.
67133
67134         2005-12-04  Bruno Haible  <bruno@clisp.org>
67135
67136                 * csharpexec.c: Add support for 'clix' launcher (untested).
67137                 (execute_csharp_using_sscli): New function.
67138                 (execute_csharp_program): Call it.
67139
67140         2006-06-21  Bruno Haible  <bruno@clisp.org>
67141
67142                 Avoid warnings from recent versions of mcs.
67143                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
67144                 -o, -L, -r any more. Use options documented since mcs-1.0
67145                 instead. Similarly for -g.
67146
67147         2005-07-09  Bruno Haible  <bruno@clisp.org>
67148
67149                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
67150                 add a .dll suffix.
67151                 Reported by Mark Junker <mjscod@gmx.de>.
67152
67153         2006-06-17  Bruno Haible  <bruno@clisp.org>
67154
67155                 * config.charset: Update for NetBSD 3.0.
67156
67157         2006-05-17  Bruno Haible  <bruno@clisp.org>
67158
67159                 Cygwin portability.
67160                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
67161
67162         2006-05-16  Bruno Haible  <bruno@clisp.org>
67163
67164                 * localcharset.c [CYGWIN]: Include <windows.h>.
67165                 (get_charset_aliases): For Cygwin, return the same CPxxx
67166                 aliases list as under WIN32.
67167                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
67168                 the environment variables. Fall back to GetACP().
67169
67170         2006-04-05  Bruno Haible  <bruno@clisp.org>
67171
67172                 * config.charset: Update Juan Manuel Guerrero's address.
67173
67174         2005-02-12  Bruno Haible  <bruno@clisp.org>
67175
67176                 * allocsa.h: Add extern "C" for C++.
67177
67178         2005-02-10  Bruno Haible  <bruno@clisp.org>
67179
67180                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
67181                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
67182
67183         2006-07-22  Bruno Haible  <bruno@clisp.org>
67184
67185                 * gettext.h: Update to GNU gettext-0.15.
67186
67187 2006-07-22  Bruno Haible  <bruno@clisp.org>
67188
67189         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
67190         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
67191         lib-prefix.m4, longdouble.m4, ssize_t.m4.
67192
67193 2006-07-21  Eric Blake  <ebb9@byu.net>
67194
67195         * modules/stdlib-safer: New file.
67196         * MODULES.html.sh (File stream based Input/Output): Add
67197         stdlib-safer.
67198
67199 2006-07-21  Eric Blake  <ebb9@byu.net>
67200
67201         * lib/stdlib-safer.h: New file from coreutils, required by
67202         stdlib--.h.
67203
67204 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
67205
67206         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
67207
67208 2006-07-20  Bruno Haible  <bruno@clisp.org>
67209
67210         * gnulib-tool: Recognize new option --assume-autoconf.
67211         (autoconf_minversion): New variable.
67212         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
67213
67214 2006-07-20  Bruno Haible  <bruno@clisp.org>
67215
67216         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
67217
67218 2006-07-19  Derek R. Price  <derek@ximbiot.com>
67219
67220         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
67221         Reindent and repaginate.
67222
67223 2006-07-19  Derek Price  <derek@ximbiot.com>
67224
67225         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
67226         Correct grammar.
67227
67228 2006-07-17  Bruno Haible  <bruno@clisp.org>
67229
67230         * modules/list: New file.
67231         * modules/array-list: New file.
67232         * modules/carray-list, modules/carray-list-tests: New files.
67233         * modules/linked-list, modules/linked-list-tests: New files.
67234         * modules/avltree-list, modules/avltree-list-tests: New files.
67235         * modules/rbtree-list, modules/rbtree-list-tests: New files.
67236         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
67237         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
67238         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
67239         * modules/oset: New file.
67240         * modules/array-oset: New file.
67241         * modules/avltree-oset, modules/avltree-oset-tests: New files.
67242         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
67243         * tests/test-carray_list.c: New file.
67244         * tests/test-linked_list.c: New file.
67245         * tests/test-avltree_list.c: New file.
67246         * tests/test-rbtree_list.c: New file.
67247         * tests/test-linkedhash_list.c: New file.
67248         * tests/test-avltreehash_list.c: New file.
67249         * tests/test-rbtreehash_list.c: New file.
67250         * tests/test-avltree_oset.c: New file.
67251         * tests/test-rbtree_oset.c: New file.
67252         * MODULES.html.sh (Container data structures): New section.
67253
67254 2006-07-17  Bruno Haible  <bruno@clisp.org>
67255
67256         * m4/gl_list.m4: New file.
67257
67258 2006-07-17  Bruno Haible  <bruno@clisp.org>
67259
67260         * lib/gl_list.h: New file.
67261         * lib/gl_list.c: New file.
67262         * lib/gl_array_list.h: New file.
67263         * lib/gl_array_list.c: New file.
67264         * lib/gl_carray_list.h: New file.
67265         * lib/gl_carray_list.c: New file.
67266         * lib/gl_linked_list.h: New file.
67267         * lib/gl_linked_list.c: New file.
67268         * lib/gl_anylinked_list1.h: New file.
67269         * lib/gl_anylinked_list2.h: New file.
67270         * lib/gl_avltree_list.h: New file.
67271         * lib/gl_avltree_list.c: New file.
67272         * lib/gl_anyavltree_list1.h: New file.
67273         * lib/gl_anyavltree_list2.h: New file.
67274         * lib/gl_rbtree_list.h: New file.
67275         * lib/gl_rbtree_list.c: New file.
67276         * lib/gl_anyrbtree_list1.h: New file.
67277         * lib/gl_anyrbtree_list2.h: New file.
67278         * lib/gl_anytree_list1.h: New file.
67279         * lib/gl_anytree_list2.h: New file.
67280         * lib/gl_linkedhash_list.h: New file.
67281         * lib/gl_linkedhash_list.c: New file.
67282         * lib/gl_anyhash_list1.h: New file.
67283         * lib/gl_anyhash_list2.h: New file.
67284         * lib/gl_avltreehash_list.h: New file.
67285         * lib/gl_avltreehash_list.c: New file.
67286         * lib/gl_rbtreehash_list.h: New file.
67287         * lib/gl_rbtreehash_list.c: New file.
67288         * lib/gl_anytreehash_list1.h: New file.
67289         * lib/gl_anytreehash_list2.h: New file.
67290
67291         * lib/gl_oset.h: New file.
67292         * lib/gl_oset.c: New file.
67293         * lib/gl_array_oset.h: New file.
67294         * lib/gl_array_oset.c: New file.
67295         * lib/gl_avltree_oset.h: New file.
67296         * lib/gl_avltree_oset.c: New file.
67297         * lib/gl_rbtree_oset.h: New file.
67298         * lib/gl_rbtree_oset.c: New file.
67299         * lib/gl_anytree_oset.h: New file.
67300
67301 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67302
67303         * m4/mkancesdirs.m4: New file.
67304         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67305         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67306         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67307         it.
67308
67309 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67310
67311         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67312         * lib/mkancesdirs.h: New files.
67313         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67314         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67315         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67316         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67317         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67318         callers changed.  Revamp internals significantly, by not
67319         attempting to create directories that are temporarily more
67320         permissive than the final results.  Do not attempt to use
67321         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67322         This removes some race conditions, fixes some bugs, and simplifies
67323         things.  Use new dirchownmod function to do owner and mode changes.
67324         * lib/mkdir-p.h: Likewise.
67325         * lib/modechange.c (octal_to_mode): New function.
67326         (struct mode_change): New member mentioned.
67327         (make_node_op_equals): New arg mentioned.  All callers changed.
67328         (mode_compile): Keep track of which mode bits the user has explicitly
67329         mentioned.
67330         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67331         New arg PMODE_BITS, to keep track of which mode bits the user
67332         mentioned; it treats S_ISUID and S_ISGID speciall.
67333         All callers changed.
67334         * lib/modechange.h: Likewise.
67335
67336 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67337
67338         * MODULES.html.sh: Add mkancestors.
67339         * modules/mkancesdirs: New module.
67340         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67341         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67342         The chdir-safer and afs files are now orphans; I'll remove them
67343         unless someone speaks up.
67344         Add lib/dirchownmod.c, lib/dirchownmod.h.
67345         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67346         Add lchown, mkancesdirs.
67347         (Maintainer): Add self.
67348
67349 2006-07-15  Karl Berry  <karl@gnu.org>
67350
67351         * gnulib-tool: help message wording/arrangement.
67352
67353 2006-07-14  Simon Josefsson  <jas@extundo.com>
67354
67355         * doc/gnulib.texi (Libtool and Windows): New section.
67356
67357 2006-07-12  Simon Josefsson  <jas@extundo.com>
67358
67359         * modules/gendocs (License): Fix license, approved by Karl.
67360
67361 2006-07-12  Eric Blake  <ebb9@byu.net>
67362
67363         * MODULES.html.sh: Add gendocs.
67364
67365 2006-07-11  Eric Blake  <ebb9@byu.net>
67366
67367         * modules/fdl: New module, to install doc/fdl.texi.
67368         * MODULES.html.sh: Add new section for documentation modules.
67369         * gnulib-tool: Avoid space-tab.
67370         (--doc-base): New option, to manage files from doc.
67371
67372 2006-07-11  Eric Blake  <ebb9@byu.net>
67373
67374         * m4/absolute-header.m4: Fix comments to match recent change.
67375
67376 2006-07-11  Eric Blake  <ebb9@byu.net>
67377
67378         * gnulib-tool: List --doc-base before --tests-base.
67379
67380 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67381
67382         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67383
67384 2006-07-11  Bruno Haible  <bruno@clisp.org>
67385
67386         * README: Mention where to put documentation.
67387
67388 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67389
67390         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67391
67392 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67393
67394         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67395         to stdint.m4.
67396
67397 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67398
67399         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
67400         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
67401         "no/such/file/stdint.h" when there is no such file, so that
67402         the resulting C code can be parsed by dodgy compilers.
67403         Problems reported by Bob Proulx.
67404
67405 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67406
67407         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
67408         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67409         macros into the GNU _D_EXACT_NAMLEN.
67410         * lib/savedir.c:  Likewise.
67411         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
67412
67413 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67414         and Paul Eggert  <eggert@cs.ucla.edu>
67415
67416         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
67417         * m4/savedir.m4:
67418         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67419         macros into the GNU _D_EXACT_NAMLEN.
67420
67421 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67422
67423         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
67424         around the absolute name, to work around a problem with the HP-UX
67425         11.23 native C compiler, reported by Bob Proulx.
67426
67427 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67428
67429         * doc/maintain.texi, make-stds.texi: Sync from
67430         <http://savannah.gnu.org/projects/gnustandards>.
67431
67432 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67433
67434         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
67435
67436 2006-07-09  Jim Meyering  <jim@meyering.net>
67437
67438         * m4/glob.m4: Remove a doubled word in a comment.
67439
67440 2006-07-09  Jim Meyering  <jim@meyering.net>
67441
67442         * lib/argp-pv.c: Remove a doubled word in a comment.
67443         * lib/check-version.c (check_version): Likewise.
67444         * lib/javacomp.c (compile_java_class): Likewise.
67445
67446 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67447
67448         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
67449         for the benefit of people using Autoconf 2.60.  If you want to
67450         support older Autoconf versions you can copy m4/onceonly_2_57.m4
67451         (or m4/onceonly.m4, if pre-2.57) manually.
67452
67453 2006-07-08  Jim Meyering  <jim@meyering.net>
67454
67455         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
67456         comment.
67457         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
67458         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
67459         comment.
67460
67461 2006-07-08  Jim Meyering  <jim@meyering.net>
67462
67463         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
67464
67465 2006-07-07  Simon Josefsson  <jas@extundo.com>
67466
67467         * tests/test-crc.c: Change expected crc value, the test vector
67468         were probably computed using the old broken crc.c?
67469
67470 2006-07-06  Simon Josefsson  <jas@extundo.com>
67471
67472         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
67473         now the canonical place for the M4 file).
67474
67475         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
67476         from the sys_socket dependency now.
67477
67478         * modules/inet_pton (Files): Ditto.
67479
67480         * modules/inet_ntop (Files): Ditto.
67481
67482 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67483
67484         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67485         not gl_PREREQ_GETUSERSHELL.
67486
67487 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67488
67489         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67490         with only one argument, for Autoconf 2.60.
67491         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67492         expand to nothing, so add a shell command to avoid syntax error.
67493         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67494
67495 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67496
67497         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67498
67499 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67500
67501         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67502         no longer needed.  Check for isblank decl.
67503         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67504         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67505         of existence.
67506
67507 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67508
67509         * lib/getloadavg.c: Use __VMS, not VMS.
67510         * lib/getopt.c: Likewise.
67511         * lib/getpagesize.h: Likewise.
67512         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67513         and probably does not work.
67514
67515 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67516
67517         * lib/.cppi-disable: Add wcwidth.
67518         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67519         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67520         (ISGRAPH): Remove.  All uses changed to isgraph.
67521         (FOLD) [!defined _LIBC]: Remove special case.
67522         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67523         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67524         HAVE_ISBLANK.
67525         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67526         case.
67527
67528 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67529
67530         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67531         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67532         brackets.  Other minor changes to suppress some compiler
67533         warnings.
67534
67535 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67536         and Paul Eggert  <eggert@cs.ucla.edu>
67537
67538         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67539         of invoking obsolescent AC_HEADER_DIRENT macro.
67540         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67541         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67542         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67543         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67544         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67545         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67546         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67547         * m4/readdir.m4: Remove; no longer needed.
67548
67549 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67550         and Paul Eggert  <eggert@cs.ucla.edu>
67551
67552         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67553         Don't worry about this obsolete case any more.
67554         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67555         directories.
67556         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67557         worry about this obsolete case any more.
67558         * lib/fts.c: Likewise.
67559         * lib/getcwd.c: Likewise.
67560         * lib/glob.h: Likewise.
67561         * lib/savedir.c: Likewise.
67562
67563 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67564
67565         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67566         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67567         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67568         needed.
67569         All uses removed.
67570         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67571         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67572         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67573         needed.
67574         * m4/getdate.m4 (gl_GETDATE): Likewise.
67575         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67576         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67577         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67578         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67579         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67580         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67581         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67582         needed.
67583
67584 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67585
67586         * lib/memcasecmp.c: Include <limits.h>.
67587         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67588         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67589         Don't assume isdigit succeeds only on '0' through '9'.
67590
67591 2006-07-05  Eric Blake  <ebb9@byu.net>
67592
67593         * modules/getaddrinfo (Depends-on): Add snprintf.
67594
67595 2006-07-05  Eric Blake  <ebb9@byu.net>
67596
67597         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67598         to avoid 'header present but could not be compiled' on cygwin.
67599
67600 2006-07-05  Eric Blake  <ebb9@byu.net>
67601
67602         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67603         missing from netdb.h.
67604         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67605
67606 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67607
67608         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67609         no longer needed.
67610         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67611         * m4/getdate.m4 (gl_GETDATE): Likewise.
67612         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67613         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67614         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67615         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67616         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67617
67618 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67619
67620         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67621         All uses of is_space replaced by isspace.
67622         * lib/exit.h: Don't talk about STDC_HEADERS.
67623         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67624         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67625         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67626         replaced by isprint etc.
67627         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67628         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67629         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67630         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67631         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67632         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67633
67634 2006-07-05  Bruno Haible  <bruno@clisp.org>
67635
67636         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67637         the function exists, before testing against AIX.
67638         Reported by Martin Lambers <marlam@marlam.de>.
67639
67640 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67641
67642         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67643         From Mark D. Baushke.
67644
67645 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67646
67647         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67648         to the absolute name, not just one, to bypass Sun C 5.8's
67649         "warning: #include of /usr/include/... may be non-portable".
67650
67651 2006-07-04  Eric Blake  <ebb9@byu.net>
67652
67653         * modules/dirname-tests: New test module.
67654         * tests/test-dirname.c: New file, replacing dirname.c
67655         TEST_DIRNAME section that was recently deleted.
67656
67657 2006-07-04  Bruno Haible  <bruno@clisp.org>
67658
67659         Assume ANSI C header files and <ctype.h> functions.
67660         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67661         (mbsnwidth): Use isprint, iscntrl instead.
67662
67663 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67664
67665         Merge from coreutils.
67666         * MODULES.html.sh: Add xstrtold.
67667         * modules/xstrtold: New file.
67668         * modules/cycle-check (Files): Add lib/same-inode.h.
67669         * modules/dirname (Files): Add m4/double-slash-root.m4.
67670         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67671         * modules/mkdir-p (Files): Add lib/same-inode.h.
67672         * modules/same (Files): Add lib/same-inode.h.
67673
67674 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67675
67676         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67677         This is to keep the terminology clean; POSIX talks about
67678         "absolute pathnames", not "full pathnames", but the GNU
67679         Coding Standards say to use "path" for something else;
67680         so use "absolute" to keep both sides happy.
67681         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67682         Set gl_absolute_header, not gl_full_header_path.
67683         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67684         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67685         All uses changed.
67686
67687         Merge from coreutils.
67688
67689         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67690
67691         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67692         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67693         want to require the building of c-strtod.o.
67694         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67695         needs -lm directly.
67696         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67697
67698         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67699
67700         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67701         --as-needed option if available.  Problem reported by Albert Chin in
67702         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67703         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67704         cc merely issues a bunch of annoying warnings for --as-needed
67705         (this problem was reported by Bob Proulx).  Also, try linking with
67706         -lm to detect a bug in binutils 2.16 (this problem was reported
67707         by Ralf Wildenhues).
67708
67709         2006-06-18  Jim Meyering  <jim@meyering.net>
67710
67711         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67712         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67713         macro.
67714         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67715         also check for glibc-2.4's abort-inducing bug.
67716
67717         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67718         Low-probability clean-up should be to use rmdir to get rid of
67719         the just-created directory, not unlink.
67720
67721         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67722         configure fail, and request a bug report to inform us about it.
67723         Add a comment that, barring reports to the contrary, in 2007 we'll
67724         assume ftruncate is universally available.
67725
67726         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67727
67728         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67729
67730         2006-03-12  Jim Meyering  <jim@meyering.net>
67731
67732         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67733         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67734         * m4/same.m4 (gl_SAME): Likewise.
67735         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67736
67737         2006-03-11  Eric Blake  <ebb9@byu.net>
67738
67739         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67740         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67741         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67742         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67743
67744 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67745
67746         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67747         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67748         reported by Mark D. Baushke, one in
67749         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67750
67751         Merge from coreutils.
67752
67753         * lib/.cppi-disable: Add stdint_.h.
67754         * lib/.cvsignore: Add stdint.h.
67755
67756         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67757
67758         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67759         both double and long double versions.
67760         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67761         * lib/xstrtold.c: New file.
67762         * lib/xstrtod.h (xstrtold): New decl.
67763
67764         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67765
67766         * lib/filemode.c (setst): Remove.
67767         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67768         (arguably) clearer, and the generated code is a bit smaller on my
67769         Debian GNU/Linux stable x86 host.
67770
67771         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67772
67773         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67774         Assume that filemode.h includes sys/types.h and sys/stat.h.
67775         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67776         (ftypelet): Reorder to put common cases first, for efficiency.
67777         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67778         to do 'M'.
67779         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67780         of 10, for compatibility with FreeBSD.  All callers changed.
67781         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67782         types that can't be deduced solely from st_mode.  First arg is now a
67783         const pointer.
67784         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67785         (strmode): Renamed from mode_string.
67786         (filemodestring): New decl.
67787         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67788         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67789         needed.
67790         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67791
67792         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67793
67794         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67795         fsusage.h now does that.  Include fsusage.h first, to test interface.
67796         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67797         at most one method (the old code could have generated decls that
67798         didn't conform to C89, not that this was ever exercised).
67799         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67800
67801         2006-03-19  Jim Meyering  <jim@meyering.net>
67802
67803         Work even in a chroot where d_ino values for entries in "/"
67804         don't match the stat.st_ino values for the same names.
67805         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67806         number, iterate through all entries again, using lstat instead.
67807         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67808         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67809
67810         * lib/getcwd.c (__getcwd): Clarify a comment.
67811         Use memcpy in place of a call to strcpy.
67812
67813         2006-03-12  Jim Meyering  <jim@meyering.net>
67814
67815         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67816         matches that of the current directory (which we're about to chdir ".."
67817         out of), then save the dev-ino of the parent, instead.
67818
67819         * lib/same-inode.h (SAME_INODE): New file/macro.
67820         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67821         Include "same-inode.h", instead.
67822         * lib/same.c: Likewise.
67823         * lib/cycle-check.h: Include "same-inode.h".
67824         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67825         * lib/cycle-check.c (SAME_INODE): Remove definition.
67826         * lib/root-dev-ino.h: Include "same-inode.h".
67827
67828         2006-03-11  Eric Blake  <ebb9@byu.net>
67829
67830         * lib/same.c (same_name): s/base_name/last_component/
67831         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67832         * lib/filenamecat.c (file_name_concat): Likewise.
67833
67834         2006-03-11  Eric Blake  <ebb9@byu.net>,
67835                     Paul Eggert  <eggert@cs.ucla.edu>
67836
67837         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67838         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67839         drive prefix.
67840         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67841         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67842         (last_component): New method.
67843         * lib/dirname.c (dir_len): Determine when drive letters need a
67844         subsequent slash.  Preserve // when it is special.
67845         (dir_name): Don't append dot when drive letter is absolute.
67846         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67847         * lib/basename.c (base_name): New semantics - malloc the result.
67848         Preserve // when it is special.  Preserve relative files that look
67849         like drive letters.
67850         (base_len): Preserve // when it is special.
67851         (last_component): New method, similar to old base_name semantics.
67852         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67853         base_name.  Strip redundant slashes from ///.
67854
67855 2006-07-03  Jim Meyering  <jim@meyering.net>
67856
67857         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67858         macro is used before the first cycle_check call.
67859
67860 2006-07-03  Eric Blake  <ebb9@byu.net>
67861
67862         * modules/dirname (Depends-on): Add xstrndup.
67863
67864 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67865
67866         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67867         test cases, so that config.log is a bit easier to follow.
67868
67869 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67870
67871         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67872         both are 64 bits, since this seems to be the tradition, and this
67873         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67874         we ever run into a host that prefers long long to long in this
67875         case, we'll need another configure-time test.  Problem reported by
67876         Jim Meyering.
67877
67878 2006-07-02  Eric Blake  <ebb9@byu.net>
67879
67880         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67881
67882 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67883
67884         * modules/inttypes (Depends-on): No longer depends on stdint.
67885         * modules/stdint (Description): Say more about assumptions.
67886         Say that the fast types might differ.  Say macros are used.
67887         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67888         (Makefile.am): Revise list of substituted symbols to match
67889         new stdint.m4.
67890         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67891         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67892         * tests/test-stdint.c (verify_same_types)
67893         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67894         the code conforms to C99/C89.
67895         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67896         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67897
67898 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67899
67900         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67901         but fix a bug, by requiring at least 64 bits.
67902         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67903         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67904         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67905         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67906
67907         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67908         changes.  Make 2.59 a prerequisite.  Check and substitute for
67909         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67910         inttypes.h.  Do not use special include files; just use the
67911         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67912         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67913         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67914         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67915         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67916         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67917         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67918         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67919         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67920         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67921         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67922         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67923         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67924         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67925         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67926         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67927         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67928         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67929         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67930         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67931         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67932         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67933         not check for things that C99 does not require, e.g., int8_t.  If
67934         a test isn't needed unless <stdint.h> isn't working, and is
67935         unlikely to be needed for any other reason, then don't do it
67936         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67937         size_t, since we assume C89 freestanding at least.  Do not check
67938         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67939         the right thing even if the types are not defined.  Instead use:
67940         (gl_STDINT_TYPE_PROPERTIES): New macro.
67941         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67942         testing whether <sys/types.h> clashes, as Autoconf does this for
67943         us now.  All uses removed.
67944         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67945         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67946         (gl_CHECK_TYPE_SAME):
67947         Remove; no longer needed.
67948         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67949         exists, since we'll return 0 anyway in that case.
67950         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67951
67952 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67953
67954         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67955         possible collision with system files.
67956         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67957         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67958         WCHAR_MIN and WCHAR_MAX in this case.
67959         (<stddef.h>): Do not include; no longer needed.
67960         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67961         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67962         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67963         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67964         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67965         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67966         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67967         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67968         !defined(__c99))]: Include in this case too, since it's harmless
67969         now.
67970         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67971         dangerous to do so.
67972         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67973         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67974         (_STDINT_MIN, _STDINT_MAX): New macros.
67975         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67976         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67977         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67978         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67979         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67980         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67981         macros, not typedefs; this simplifies things quite a bit.
67982         Use long int for all types narrower than int64_t.
67983         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67984         Define in terms of long long int or int64_t or long int,
67985         not int64_t or int32_t.  This saves some compile-time testing.
67986         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67987         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67988         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67989         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67990         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67991         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67992         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67993         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67994         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67995         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67996         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67997         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67998         undef any previous version and define our own version, for
67999         simplicity and consistency with the new macros for types.
68000         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68001         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68002         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
68003         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
68004         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
68005         @WINT_T_SUFFIX@ to keep things simple here.
68006         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
68007         Simplify by assuming typical 8/16/32/64 host, since we're
68008         already doing that elsewhere anyway.
68009         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
68010         and assume long long int is 64 bits if available.  This
68011         speeds up 'configure'.
68012
68013 2006-07-01  Eric Blake  <ebb9@byu.net>
68014
68015         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
68016         Reported by Andreas Buening.
68017
68018 2006-07-01  Eric Blake  <ebb9@byu.net>
68019
68020         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
68021
68022 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68023
68024         * lib/getaddrinfo.c: fixed typo
68025
68026 2006-06-29  Jim Meyering  <jim@meyering.net>
68027
68028         * modules/strftime (Maintainer): Add my name, since with the
68029         FPRINTFTIME changes strftime.c has forked from glibc.
68030
68031 2006-06-29  Eric Blake  <ebb9@byu.net>
68032
68033         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
68034
68035 2006-06-29  Eric Blake  <ebb9@byu.net>
68036
68037         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
68038
68039 2006-06-29  Eric Blake  <ebb9@byu.net>
68040
68041         * lib/stat_.h: New file.
68042
68043 2006-06-29  Eric Blake  <ebb9@byu.net>
68044
68045         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
68046         unused static function.
68047
68048 2006-06-29  Eric Blake  <ebb9@byu.net>
68049
68050         * doc/functions.texi (Function Portability): Document missing lstat
68051         on mingw.
68052
68053 2006-06-29  Eric Blake  <ebb9@byu.net>
68054
68055         * MODULES.html.sh: Add sys_stat.
68056         * modules/sys_stat: New module.
68057         * modules/mkstemp (Depends-on): Add sys_stat.
68058
68059 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68060
68061         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
68062
68063 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68064
68065         * m4/c-bs-a.m4: Removed.
68066
68067 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68068
68069         * lib/strftime.c: Assume strftime() exists.
68070
68071 2006-06-29  Derek Price  <derek@ximbiot.com>
68072
68073         * modules/c-bs-a: Removed - \a is C89.
68074         * MODULES.html.sh: Remove c-bs-a.
68075
68076 2006-06-29  Bruno Haible  <bruno@clisp.org>
68077
68078         * modules/wcwidth (License): Change to LGPL.
68079
68080 2006-06-28  Simon Josefsson  <jas@extundo.com>
68081
68082         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
68083         on _WIN32.
68084
68085         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
68086         getnameinfo.
68087
68088 2006-06-28  Simon Josefsson  <jas@extundo.com>
68089
68090         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
68091
68092 2006-06-28  Simon Josefsson  <jas@extundo.com>
68093
68094         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
68095         functions there.  It will succeed on Windows XP, but on Windows
68096         2000 and (presumably) earlier, it will fail, and use the internal
68097         re-implementation.
68098         (use_win32_p): New function.
68099         (getaddrinfo): Use strtoul on servname, to support numeric ports.
68100         Support AI_NUMERICSERV to disable getservbyname.
68101         (getnameinfo): New function, only supports
68102         NI_NUMERICHOST|NI_NUMERICSERV for now.
68103
68104         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
68105         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
68106         getnameinfo.
68107
68108 2006-06-28  Eric Blake  <ebb9@byu.net>
68109
68110         * modules/wcwidth: New file.
68111         * modules/mbchar (Depends-on): Add wcwidth.
68112         * modules/mbswidth (Depends-on): Add wcwidth.
68113         * MODULES.html.sh: Add wcwidth.
68114
68115 2006-06-28  Eric Blake  <ebb9@byu.net>
68116
68117         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
68118         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
68119
68120 2006-06-28  Eric Blake  <ebb9@byu.net>
68121
68122         * lib/xvasprintf.h: Fix comments.
68123
68124 2006-06-28  Eric Blake  <ebb9@byu.net>
68125
68126         * lib/mbchar.h (wcwidth): Include wcwidth.h.
68127         * lib/mbswidth.c (wcwidth): Move from here...
68128         * lib/wcwidth.h: ...to this new file.
68129
68130 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68131
68132         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
68133
68134         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
68135         it's obsolete.
68136         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
68137
68138 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68139
68140         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
68141         Autoconf 2.60 says this stuff was obsolete.
68142
68143 2006-06-28  Bruno Haible  <bruno@clisp.org>
68144
68145         * modules/wcwidth (Files): Add m4/wchar_t.m4.
68146
68147 2006-06-28  Bruno Haible  <bruno@clisp.org>
68148
68149         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
68150         gt_TYPE_WCHAR_T.
68151
68152 2006-06-28  Bruno Haible  <bruno@clisp.org>
68153
68154         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
68155         declaration for wcwidth.
68156         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
68157
68158 2006-06-28  Bruno Haible  <bruno@clisp.org>
68159
68160         * lib/mkdtemp.c [MINGW]: Include <io.h>.
68161         (mkdir): Define using _mkdir.
68162
68163 2006-06-28  Bruno Haible  <bruno@clisp.org>
68164
68165         * lib/getaddrinfo.h: Fix POSIX URL.
68166         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
68167         _WIN32.
68168         (use_win32_p): Make static.
68169         (getaddrinfo): Reject service name if it is empty or does not consist
68170         solely of decimal digits, or if its value is > 65535.
68171         (getnameinfo): Remove useless casts.
68172
68173 2006-06-27  Simon Josefsson  <jas@extundo.com>
68174
68175         * modules/sys_select: New file, suggested by Bruno Haible, Paul
68176         Eggert and Martin Lambers.
68177
68178 2006-06-27  Simon Josefsson  <jas@extundo.com>
68179
68180         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
68181         Eggert and Martin Lambers.
68182
68183 2006-06-27  Bruno Haible  <bruno@clisp.org>
68184
68185         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
68186         result to 0, not to empty.
68187         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
68188
68189 2006-06-27  Bruno Haible  <bruno@clisp.org>
68190
68191         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
68192
68193 2006-06-26  Simon Josefsson  <jas@extundo.com>
68194
68195         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
68196         present.
68197
68198 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
68199
68200         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
68201         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
68202         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
68203
68204 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
68205
68206         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
68207
68208 2006-06-26  Bruno Haible  <bruno@clisp.org>
68209
68210         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
68211
68212 2006-06-26  Bruno Haible  <bruno@clisp.org>
68213
68214         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
68215
68216 2006-06-26  Bruno Haible  <bruno@clisp.org>
68217
68218         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
68219         SGI C compiler in pre-C99 mode.
68220         Suggested by Mark D. Baushke and Larry Jones.
68221
68222 2006-06-26  Bruno Haible  <bruno@clisp.org>
68223
68224         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
68225         WCHAR_MAX.
68226         Reported by Mark D. Baushke and Larry Jones.
68227
68228 2006-06-26  Bruno Haible  <bruno@clisp.org>
68229
68230         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
68231         in pre-C99 mode.
68232         Suggested by Mark D. Baushke and Larry Jones.
68233
68234 2006-06-23  Simon Josefsson  <jas@extundo.com>
68235             Bruno Haible  <bruno@clisp.org>
68236
68237         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
68238         Emit mostlyclean-local rule.
68239         (func_emit_tests_Makefile_am): Likewise.
68240         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
68241
68242 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
68243
68244         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
68245
68246 2006-06-23  Bruno Haible  <bruno@clisp.org>
68247
68248         * tests/test-stdint.c: Update to match ISO C 99 Technical
68249         Corrigendum 1.
68250
68251 2006-06-23  Bruno Haible  <bruno@clisp.org>
68252
68253         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68254
68255 2006-06-23  Bruno Haible  <bruno@clisp.org>
68256
68257         * lib/stdint_.h: Treat IRIX like OpenBSD.
68258
68259 2006-06-23  Bruno Haible  <bruno@clisp.org>
68260
68261         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68262         ISO C 99 Technical Corrigendum 1.
68263
68264 2006-06-22  Simon Josefsson  <jas@extundo.com>
68265
68266         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68267         MinGW.
68268
68269 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68270
68271         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68272         needed.  Some compiler complained about some of them.  Problem reported
68273         by Larry Jones in
68274         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68275
68276 2006-06-21  Simon Josefsson  <jas@extundo.com>
68277
68278         * tests/test-getaddrinfo.c: New file.
68279
68280         * modules/getaddrinfo-tests: New file.
68281
68282         * MODULES.html.sh: Add inet_pton.
68283
68284         * modules/inet_pton: New file.
68285
68286 2006-06-21  Simon Josefsson  <jas@extundo.com>
68287
68288         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68289         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68290         of using the (limited) gnulib implementation on Windows XP.
68291
68292         * m4/inet_pton.m4: New file.
68293
68294 2006-06-21  Simon Josefsson  <jas@extundo.com>
68295
68296         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68297         variable.
68298
68299         * lib/socket_.h: Don't define WINVER.
68300
68301         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68302         slightly modified to work in gnulib.
68303
68304 2006-06-21  Simon Josefsson  <jas@extundo.com>
68305
68306         * doc/gnulib.texi (Windows sockets): Add.
68307
68308 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68309
68310         * lib/read-file.c (fread_file): Start with buffer allocation of
68311         0 bytes rather than 1 byte; this simplifies the code.
68312         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68313         code to free buffer and save/restore errno.
68314         (internal_read_file): Remove unused local.
68315
68316 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68319         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68320         Problem reported by Denis Excoffier in
68321         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68322
68323 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68324
68325         * modules/sys_socket, modules/socklen: Include sys/types since
68326         FreeBSD 4.x's sys/socket.h needs it.
68327
68328 2006-06-19  Simon Josefsson  <jas@extundo.com>
68329
68330         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68331
68332 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68333
68334         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68335
68336 2006-06-19  Bruno Haible  <bruno@clisp.org>
68337
68338         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68339         and FULL_PATH_INTTYPES_H in angle brackets.
68340         Reported by Mark D. Baushke <mdb@gnu.org>.
68341
68342 2006-06-17  Eric Blake  <ebb9@byu.net>
68343
68344         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68345         errno.
68346
68347 2006-06-17  Bruno Haible  <bruno@clisp.org>
68348
68349         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68350         <sys/inttypes.h>.
68351
68352 2006-06-17  Bruno Haible  <bruno@clisp.org>
68353
68354         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68355         whether errno is declared. Assume <errno.h> declares errno.
68356
68357 2006-06-17  Bruno Haible  <bruno@clisp.org>
68358
68359         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68360
68361 2006-06-17  Bruno Haible  <bruno@clisp.org>
68362
68363         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68364         problem on Solaris 2.5.1.
68365
68366 2006-06-16  Eric Blake  <ebb9@byu.net>
68367
68368         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68369         * lib/unicodeio.c [!defined errno]: Likewise.
68370         * lib/strtol.c [!defined errno]: Likewise.
68371         * lib/strtod.c [!defined errno]: Likewise.
68372
68373 2006-06-15  Eric Blake  <ebb9@byu.net>
68374
68375         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68376
68377 2006-06-15  Eric Blake  <ebb9@byu.net>
68378
68379         * config/srclist.txt (ssize_t.m4): Lose sync.
68380
68381 2006-06-15  Bruno Haible  <bruno@clisp.org>
68382
68383         * modules/stdint (Files): Include m4/full-header-path.m4,
68384         m4/size_max.m4, m4/wchar_t.m4.
68385         (Makefile.am): Many more substitutions.
68386         * modules/stdint-tests: New file.
68387         * tests/test-stdint.c: New file.
68388
68389 2006-06-15  Bruno Haible  <bruno@clisp.org>
68390
68391         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68392         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68393         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68394         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68395         gl_CHECK_TYPE_SAME): New macros.
68396
68397 2006-06-15  Bruno Haible  <bruno@clisp.org>
68398
68399         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
68400
68401 2006-06-15  Bruno Haible  <bruno@clisp.org>
68402
68403         * lib/stdint_.h: Rewritten to be fully auto-configured.
68404         Fixes bug on HP-UX/IA64.
68405
68406 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
68407
68408         * lib/getdate.y (__attribute__): Don't define if already defined.
68409         Problem reported by Larry Jones.
68410         * lib/utimens.c (__attribute__): Likewise.
68411
68412 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
68413
68414         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
68415         reported by Andreas Schwab.
68416
68417 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68418             Bruno Haible  <bruno@clisp.org>
68419
68420         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
68421         check for the declaration of strnlen and a run test that exposes the
68422         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
68423         rpl_strndup.
68424
68425 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68426             Bruno Haible  <bruno@clisp.org>
68427
68428         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
68429
68430 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68431
68432         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
68433         compile test, for Tru64 4.0D.
68434
68435 2006-05-28  Karl Berry  <karl@gnu.org>
68436
68437         * config/srclist.txt (printf-args.c): lose sync.
68438
68439 2006-05-26  Martin Lambers  <marlam@marlam.de>
68440
68441         * lib/getpass.c: Updates the test for the native W32 API, and adds
68442         missing includes, thus fixing compilation warnings.
68443
68444 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68445
68446         * lib/exclude.c (exclude_fnmatch): New function.
68447         (excluded_file_name): Call exclude_fnmatch.
68448         * lib/exclude.h (excluded_file_name): New prototype
68449
68450 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
68451
68452         * lib/tempname.c (small_open, large_open): New macros.
68453         (__open, __open64) [!_LIBC]: Remove.
68454         (__gen_tempname): Use small_open and large_open instead of __open
68455         and __open64.  This fixes a portability bug on HP-UX 11.11i
68456         reported by Simon Wing-Tang in
68457         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
68458
68459 2006-05-24  Bruno Haible  <bruno@clisp.org>
68460
68461         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
68462         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
68463         Reported by Thorsten Maerz <torte@netztorte.de> via
68464         Aaron Stone <aaron@serendipity.cx>.
68465
68466 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68467
68468         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
68469         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
68470         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
68471         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
68472         not really conditional on the cache.
68473         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
68474
68475 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68476
68477         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
68478         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
68479         (my_usleep): Don't mishandle maximum value.
68480
68481 2006-05-19  Jim Meyering  <jim@meyering.net>
68482
68483         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68484
68485 2006-05-17  Bruno Haible  <bruno@clisp.org>
68486
68487         Cygwin portability.
68488         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68489
68490 2006-05-17  Bruno Haible  <bruno@clisp.org>
68491
68492         * lib/stdint_.h: Fix recognition of Cygwin.
68493
68494 2006-05-15  Bruno Haible  <bruno@clisp.org>
68495
68496         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68497         on libtool patch by Ralf Wildenhues.
68498
68499 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68500
68501         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68502         test for C99 conformance; (bool) 0.5 is an integer constant
68503         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68504         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68505
68506 2006-05-11  Simon Josefsson  <jas@extundo.com>
68507
68508         * m4/xvasprintf.m4: Fix obvious typo.
68509
68510 2006-05-11  Jim Meyering  <jim@meyering.net>
68511
68512         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68513         James Lemley.
68514
68515 2006-05-10  Simon Josefsson  <jas@extundo.com>
68516
68517         * lib/md4.c: Typo fix, update copyright years.
68518         (K1, K2): Don't use L because it turn computations into 64-bit on
68519         64-bit platforms.
68520
68521 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68522
68523         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68524         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68525         unwanted sign propagation, e.g., on hosts with 64-bit int.
68526         There still are some problems with reeelly weird theoretical hosts
68527         (e.g., 33-bit int) but it's not worth worrying about now.
68528         * lib/sha1.c (rol): Likewise.
68529         (K1, K2, K3, K4): Remove unnecessary L suffix.
68530
68531 2006-05-10  Bruno Haible  <bruno@clisp.org>
68532
68533         * lib/des.c: Cast to avoid warnings.
68534
68535 2006-05-09  Bruno Haible  <bruno@clisp.org>
68536
68537         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68538         (Depends-on): Depend also on xsize, stdarg.
68539         (configure.ac): Add gl_XVASPRINTF.
68540
68541 2006-05-09  Bruno Haible  <bruno@clisp.org>
68542
68543         * m4/xvasprintf.m4: New file.
68544
68545 2006-05-09  Bruno Haible  <bruno@clisp.org>
68546
68547         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68548         (EOVERFLOW): Define fallback value.
68549         (xstrcat): New function.
68550         (xvasprintf): Recognize the special case of a string concatenation.
68551
68552 2006-05-08  Eric Blake  <ebb9@byu.net>
68553
68554         * gnulib-tool (func_version): Base copyright year on CVS date.
68555         (func_emit_copyright_notice): New function.
68556         (func_emit_lib_Makefile_am): Use it.
68557         (func_emit_tests_Makefile_am): Likewise.
68558         (func_import): Likewise.
68559
68560 2006-05-08  Bruno Haible  <bruno@clisp.org>
68561
68562         * modules/stdarg: New file.
68563         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68564
68565 2006-05-08  Bruno Haible  <bruno@clisp.org>
68566
68567         * m4/stdarg.m4: New file, from GNU gettext.
68568
68569 2006-05-08  Bruno Haible  <bruno@clisp.org>
68570
68571         * config/srclist.txt (build-aux/config.rpath): different from latest
68572         release.
68573
68574 2006-05-08  Bruno Haible  <bruno@clisp.org>
68575
68576         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68577
68578 2006-05-05  Jim Meyering  <jim@meyering.net>
68579
68580         * m4/warning.m4: New file, derived from bison's file by the same name.
68581
68582 2006-05-03  Bruno Haible  <bruno@clisp.org>
68583
68584         * lib/stdint_.h: Shorter URL.
68585         * lib/inttypes.h: Likewise.
68586
68587 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68588
68589         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68590
68591 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68592
68593         * lib/verify.h: Document the internals better.  Most of this change
68594         was written by Bruno Haible.
68595
68596 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68597
68598         * doc/verify.texi: New file, partly based on a proposal by
68599         Bruno Haible.
68600
68601 2006-05-02  Bruno Haible  <bruno@clisp.org>
68602
68603         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68604         test from here...
68605         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68606
68607 2006-04-29  Bruno Haible  <bruno@clisp.org>
68608
68609         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68610         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68611
68612 2006-04-29  Bruno Haible  <bruno@clisp.org>
68613
68614         * gnulib-tool: Make --update option actually work.
68615
68616 2006-04-29  Bruno Haible  <bruno@clisp.org>
68617
68618         * doc/gcd.texi: New file.
68619         * doc/gnulib.texi: Include it.
68620
68621 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68622
68623         * lib/getdate.y (get_date): When adding relative date, start with the
68624         initial time, not with the result of the first mktime call.
68625
68626 2006-04-25  Bruno Haible  <bruno@clisp.org>
68627
68628         * gnulib-tool (func_import): Output the include directives in three
68629         blocks, sorted separately.
68630         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68631
68632 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68633
68634         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68635         to define main with arguments, for C++.  Reported by Eric Blake.
68636         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68637         Prefer 'int main ()' to 'int main (void)', for C++.
68638         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68639         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68640         for 'main', for C99 and C++.
68641
68642 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68643
68644         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68645         Don't assume that exit status -1 is valid.
68646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68647         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68648         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68649         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68650         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68651         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68652         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68653         functions can be used without declaring them, or that you can
68654         exit with status -1.
68655         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68656
68657 2006-04-24  Karl Berry  <karl@gnu.org>
68658
68659         * config/srclist.txt (longdouble.m4): sync lost.
68660
68661 2006-04-24  Eric Blake  <ebb9@byu.net>
68662
68663         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68664
68665 2006-04-24  Bruno Haible  <bruno@clisp.org>
68666
68667         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68668         poll() implementation in AIX.
68669         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68670
68671 2006-04-24  Bruno Haible  <bruno@clisp.org>
68672
68673         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68674         assigned exactly once.
68675
68676 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68677             Bruno Haible  <bruno@clisp.org>
68678
68679         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68680         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68681         for AM_CPPFLAGS.
68682
68683 2006-04-23  Bruno Haible  <bruno@clisp.org>
68684
68685         * modules/copy-file: Depend on unistd.
68686         * modules/execute: Likewise.
68687         * modules/fatal-signal: Likewise.
68688         * modules/findprog: Likewise.
68689         * modules/mkdtemp : Likewise.
68690         * modules/pipe: Likewise.
68691         * modules/wait-process: Likewise.
68692
68693 2006-04-23  Bruno Haible  <bruno@clisp.org>
68694
68695         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68696         condition was already detected.
68697         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68698
68699 2006-04-23  Bruno Haible  <bruno@clisp.org>
68700
68701         * lib/copy-file.c: Include <unistd.h> unconditionally.
68702         * lib/execute.c: Likewise.
68703         * lib/fatal-signal.c: Likewise.
68704         * lib/findprog.c: Likewise.
68705         * lib/mkdtemp.c: Likewise.
68706         * lib/pipe.h: Likewise.
68707         * lib/pipe.c: Likewise.
68708         * lib/wait-process.h: Likewise.
68709
68710 2006-04-23  Bruno Haible  <bruno@clisp.org>
68711
68712         * gnulib-tool (func_usage): Fix --import description. Document
68713         --update.
68714         (func_import): Create temporary file in a temporary directory, if
68715         --dry-run is specified. Silence errors from 'grep' when there are no
68716         m4 files in $m4dir.
68717         (func_create_testdir): Silence errors from 'grep' when there are no
68718         m4 files in $m4dir.
68719         Reported by Karl Berry <karl@freefriends.org>.
68720
68721 2006-04-20  Bruno Haible  <bruno@clisp.org>
68722
68723         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68724         one argument, so that the code will be portable to Autoconf 2.60.
68725         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68726         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68727         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68728
68729 2006-04-19  Derek Price  <derek@ximbiot.com>
68730             Eric Blake  <ebb9@byu.net>
68731
68732         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68733         rather than "/full/path.h".  Update comment to match.  Shorten &
68734         generalize m4_translit call via AS_TR_CPP.
68735
68736 2006-04-19  Derek Price  <derek@ximbiot.com>
68737             Eric Blake  <ebb9@byu.net>
68738
68739         * lib/inttypes.h: Correct grammar in comment.
68740
68741 2006-04-18  Derek Price  <derek@ximbiot.com>
68742             Paul Eggert  <eggert@cs.ucla.edu>
68743
68744         * modules/inttypes: New file.
68745         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68746
68747 2006-04-18  Derek Price  <derek@ximbiot.com>
68748             Paul Eggert  <eggert@cs.ucla.edu>
68749
68750         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68751         New files.
68752
68753 2006-04-18  Derek Price  <derek@ximbiot.com>
68754             Paul Eggert  <eggert@cs.ucla.edu>
68755
68756         * lib/inttypes.h: New file.
68757         * lib/strtoimax.c: Assume <inttypes.h>.
68758
68759 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68760
68761         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68762         isn't mounted.  Problem reported by Kir Kolyshkin.
68763
68764 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68765
68766         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68767         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68768         Derek R. Price.
68769         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68770         implementation.
68771
68772 2006-04-12  Eric Blake  <ebb9@byu.net>
68773
68774         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68775         is now done automatically by the corresponding Autoconf macro.
68776
68777 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68778
68779         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68780         time_r.h.
68781
68782 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68783
68784         Merge regex changes from libc, removing some of our
68785         POSIX-conformance changes that were rejected and redoing them in a
68786         less-intrusive way.
68787
68788         * lib/regcomp.c (re_compile_internal, init_dfa):
68789         Length arg is now size_t, not Idx.  All uses changed.
68790         (peek_token): Forward decl now says internal_function.
68791         (__re_error_msgid, __re_error_msgid_idx):
68792         Now static rather than extern with attribute_hidden.
68793         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68794         For some reason libc prefers K&R style defns for external functions.
68795         (regerror) [!defined _LIBC]: Likewise.
68796         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68797         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68798         (build_range_exp, build_collating_symbol):
68799         Use K&R-style defn.
68800         (re_compile_fastmap): Use '\0' to memset, not 0.
68801         (utf8_sb_map): Make the calculations more obvious.
68802         (init_dfa, parse_bracket_exp, build_charclass_op):
68803         Call calloc and cast result, as glibc does.
68804         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68805         (build_range_exp, build_collating_symbol):
68806         Now internal functions.
68807
68808         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68809
68810         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68811         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68812         Don't depend on VMS; depend on __VMS instead, for POSIX
68813         namespace cleanness.
68814         (regoff_t): Define to ssize_t, not long int.
68815
68816         Remove the REG_ macros named below.  Instead, make the old names
68817         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68818         __USE_GNU_REGEX.
68819         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68820         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68821         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68822         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68823         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68824         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68825         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68826         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68827         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68828         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68829         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68830         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68831         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68832         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68833         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68834         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68835         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68836         (REG_NREGS):
68837         Remove.  All uses replaced by the old RE_* names.
68838         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68839         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68840         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68841         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68842         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68843         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68844         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68845         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68846         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68847         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68848         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68849         Don't bother having these macros be independent of each others'
68850         values, since they no longer exist in the POSIX name space.
68851
68852         Rename the following member names back to their old names,
68853         unless !__USE_GNU_REGEX.  All uses changed back.
68854         (buffer): Renamed from re_buffer.
68855         (allocated): Renamed from re_allocated.
68856         (used): Renamed from re_used.
68857         (syntax): Renamed from re_syntax.
68858         (fastmap): Renamed from re_fastmap.
68859         (translate): Renamed from re_translate.
68860         (can_be_null): Renamed from re_can_be_null.
68861         (regs_allocated): Renamed from re_regs_allocated.
68862         (fastmap_accurate): Renamed from re_fastmap_accurate.
68863         (no_sub): Renamed from re_no_sub.
68864         (not_bol): Renamed from re_not_bol.
68865         (not_eol): Renamed from re_not_eol.
68866         (newline_anchor): Renamed from re_newline_anchor.
68867         (num_regs): Renamed from rm_num_regs.
68868         (start): Renamed from rm_start.
68869         (end): Renamed from rm_end.
68870
68871         (free_state): Move up a bit.
68872
68873         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68874         #define to be empty.
68875         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68876         when that is what is intended.
68877         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68878         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68879         (MAX): New macro.
68880         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68881         All uses changed back to re_malloc, etc.  It's now the caller's
68882         responsibility to check for overflow; all callers changed.
68883         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68884         (re_x2nrealloc): Remove.
68885         (free_state): Remove decl.
68886
68887         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68888         (re_set_registers, re_exec):
68889         Use K&R-style defn.
68890
68891         2006-01-31  Roland McGrath  <roland@redhat.com>
68892
68893         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68894         Reported by Mike Frysinger <vapier@gentoo.org>.
68895
68896         2006-01-15  Andreas Jaeger  <aj@suse.de>
68897
68898         [BZ #1950]
68899         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68900         build_wcs_upper_buffer change.
68901         (build_wcs_upper_buffer): Change return type.
68902
68903         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68904
68905         * lib/regex_internal.h: Include <stdint.h> if available.
68906
68907         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68908
68909         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68910
68911         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68912
68913         * lib/regcomp.c: Adjust for changed secondary hash function.
68914
68915         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68916
68917         * lib/regex.h: Pretty printing.
68918         Clean up namespace a bit.
68919
68920         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68921
68922         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68923         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68924
68925         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68926                     Ulrich Drepper  <drepper@redhat.com>
68927
68928         [BZ #1302]
68929         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68930         changed.
68931         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68932
68933         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68934
68935         [BZ #281]
68936         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68937         * lib/regcomp.c: Remove unnecessary uses of
68938         unsigned RE_TRANSLATE_TYPE.
68939         * lib/regex_internal.h: Likewise.
68940         * lib/regex_internal.c: Likewise.
68941         * lib/regexec.c: Likewise.
68942         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68943
68944         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68945
68946         * lib/regexec.c (find_recover_state): Remove unnecessary
68947         initialization.
68948         (transit_state_bkref): Make DFA a const pointer.
68949         (get_subexp): Likewise.
68950         (check_arrival): Likewise.
68951         (update_cur_sifted_state): Likewise.
68952         (re_search_internal): Likewise.
68953         (prune_impossible_nodes): Likewise.
68954         (acquire_init_state_context): Likewise.
68955         (proceed_next_node): Likewise.
68956         (set_regs): Likewise.
68957         (free_fail_stack_return): Likewise.
68958         (check_arrival_expand_ecl): Mark DFA parameter as const.
68959         (check_arrival_expand_ecl_sub): Likewise.
68960         (check_subexp_limits): Likewise.
68961         (sub_epsilon_src_nodes):  Likewise.
68962         (add_epsilon_src_nodes):  Likewise.
68963         (merge_state_array): Likewise.
68964         (update_regs): Likewise.
68965         (build_trtable): Likewise.
68966         (sift_states_backward): Mark MCTX parameter as const.
68967         (build_sifted_states): Likewise.
68968         (update_cur_sifted_state): Likewise.
68969         (sift_states_mkref): Likewise.
68970         (check_arrival_expand_ecl): Mark eclosure as const.
68971         (check_dst_limits_calc_pos_1): Likewise.
68972         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68973         pointer.
68974
68975         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68976
68977         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68978         (transit_state_sb): Likewise.
68979         (transit_state_mb): Likewise.
68980         (sift_states_iter_mb): Likewise.
68981         (check_arrival_add_next_nodes): Likewise.
68982         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68983         [_LIBC] (re_search_2_stub): Use mempcpy.
68984
68985         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68986         mbrtowc for very simple UTF-8 case.
68987
68988         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68989         a pointer-to-const.
68990         (re_acquire_state_context): Likewise.
68991         * lib/regex_internal.h: Adjust prototypes.
68992
68993         * lib/regex.c: Prevent using C++ compilers.
68994
68995         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68996         (re_acquire_state_context): Likewise.
68997
68998 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68999
69000         * modules/regex (Depends-on): Add ssize_t.
69001
69002 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69003
69004         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
69005         translation table.
69006
69007 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69008
69009         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
69010
69011 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
69012             Bruno Haible  <bruno@clisp.org>
69013
69014         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
69015         <sys/types.h> and <inttypes.h>.
69016
69017 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69018
69019         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
69020         `__error_t_defined', so argp.h will not typedef the former.
69021
69022 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
69023
69024         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
69025         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
69026         glibc names.  Even if glibc is changed to conform to POSIX, the
69027         traditional names will be available anyway, since regex depends on
69028         the extensions module.  Also, fix a longstanding typo in the
69029         implementation of Spencer ERE test #75 from grep 2.3.  Problems
69030         reported by Emanuele Giaquinta.  Also, change sense of cached
69031         variable, so that the message makes sense.
69032
69033 2006-03-24  Simon Josefsson  <jas@extundo.com>
69034
69035         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
69036         including some doc fixes.
69037         (base64_encode_alloc): Fix +1 bug on allocation failures.
69038
69039 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69040
69041         * lib/base64.c (base64_encode): Do not read past end of array with
69042         unsanitized input on systems with CHAR_BIT > 8.
69043
69044 2006-03-24  Eric Blake  <ebb9@byu.net>
69045
69046         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
69047
69048 2006-03-22  Karl Berry  <karl@gnu.org>
69049
69050         * config/srclist.txt (*setenv.[ch]): get from coreutils.
69051         * config/srclistvars.sh (COREUTILS): new var.
69052
69053 2006-03-17  Jim Meyering  <jim@meyering.net>
69054
69055         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
69056         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
69057
69058 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69059
69060         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
69061         no longer needs it.  Instead, check that regoff_t is as least
69062         as wide as ptrdiff_t.
69063
69064         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
69065         so that our regex.h stays compatible with the installed regex.
69066         This is helpful for installers who configure --without-included-regex.
69067         Problem reported by Emanuele Giaquinta.
69068
69069 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69070
69071         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
69072         Typedef to long int, not to off_, as POSIX will likely change
69073         in that direction.
69074
69075 2006-03-15  Eric Blake  <ebb9@byu.net>
69076
69077         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
69078
69079 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69080
69081         * lib/argp-help.c (validate_uparams): Fix typo
69082         * lib/argp-parse.c (argp_default_options): Consistently begin help
69083         messages with a lowercase letter.
69084
69085 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
69086
69087         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
69088         overrun buffers and shouldn't be used (much as gets shouldn't be
69089         used).
69090         * lib/time_r.c (asctime_r, ctime_r): Likewise.
69091
69092 2006-03-08  Simon Josefsson  <jas@extundo.com>
69093
69094         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
69095         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69096
69097 2006-03-08  Simon Josefsson  <jas@extundo.com>
69098
69099         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
69100         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69101
69102 2006-03-08  Simon Josefsson  <jas@extundo.com>
69103
69104         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
69105         signal that configure disabled the device.
69106
69107 2006-03-08  Simon Josefsson  <jas@extundo.com>
69108
69109         * build-aux/maint.mk: Fix refresh-po, to handle no translated
69110         languages.
69111
69112 2006-03-07  Simon Josefsson  <jas@extundo.com>
69113
69114         * modules/getopt (Depends-on): Add unistd.
69115
69116         * modules/unistd: New file.
69117
69118 2006-03-07  Simon Josefsson  <jas@extundo.com>
69119
69120         * modules/gc-random: New file.
69121
69122 2006-03-07  Simon Josefsson  <jas@extundo.com>
69123
69124         * m4/unistd_h.m4: New file.
69125
69126 2006-03-07  Simon Josefsson  <jas@extundo.com>
69127
69128         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
69129         test to be side-effect free by storing the result in the cache
69130         variable gl_cv_lib_readline, and moving the assignment of
69131         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
69132         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69133
69134 2006-03-07  Simon Josefsson  <jas@extundo.com>
69135
69136         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
69137         error on missing devices (the functions will return an error).
69138
69139         * m4/gc.m4: Move random stuff to gc-random.m4
69140
69141 2006-03-07  Simon Josefsson  <jas@extundo.com>
69142
69143         * lib/unistd_.h: New file.
69144
69145 2006-03-07  Simon Josefsson  <jas@extundo.com>
69146
69147         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
69148
69149 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69150
69151         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
69152         Problem reported by Juan Manuel Guerrero.
69153
69154 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69155
69156         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
69157         the unistd module.
69158         * lib/getlogin_r.c: Likewise.
69159         * lib/getlogin_r.h: Likewise.
69160         * lib/glob.c: Likewise.
69161         * lib/pagealign_alloc.c: Likewise.
69162         * lib/unistd_.h: Remove; no longer needed.
69163
69164 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69165
69166         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69167         Add unistd.
69168         * modules/c-stack (Depends-on): Add unistd.
69169         * modules/getlogin_r: Likewise.
69170         * modules/glob: Likewise.
69171         * modules/pagealign_alloc: Likewise.
69172         * modules/unistd (Files): Remove lib/unistd_.h.
69173         (EXTRA_DIST): Remove.
69174         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
69175         need unistd_.h.
69176         (MOSTLYCLEANFILES): Remove unistd.h-t.
69177
69178 2006-03-03  Simon Josefsson  <jas@extundo.com>
69179
69180         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
69181
69182 2006-03-03  Simon Josefsson  <jas@extundo.com>
69183
69184         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
69185         libidn and bison.
69186
69187 2006-03-03  Simon Josefsson  <jas@extundo.com>
69188
69189         * build-aux/maint.mk: Add indent target.
69190
69191 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
69192
69193         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
69194         our replacement poll.h in any case, to avoid a differing
69195         declaration from a system header.  Seen on AIX.
69196
69197 2006-03-01  Simon Josefsson  <jas@extundo.com>
69198
69199         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
69200         <kasal@ucw.cz>.
69201
69202 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69203
69204         * modules/gettime (Depends-on): Add extensions module.
69205         * modules/nanosleep (Depends-on): Likewise.
69206         * modules/settime (Depends-on): Likewise.
69207
69208 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69209
69210         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
69211         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
69212         pedantically.
69213         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69214         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
69215
69216         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
69217         not "==".  Reported by Ralf Wildenhues.
69218
69219 2006-03-01  Karl Berry  <karl@gnu.org>
69220
69221         * doc/Copyright/request-*: new files, synced from gnuorg.
69222
69223 2006-03-01  Karl Berry  <karl@gnu.org>
69224
69225         * config/srclist.txt (Copyright/*): new entries.
69226
69227 2006-02-28  Simon Josefsson  <jas@extundo.com>
69228
69229         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
69230
69231 2006-02-27  Simon Josefsson  <jas@extundo.com>
69232
69233         * lib/base64.h: Indent #define's.  From Jim Meyering
69234         <jim@meyering.net>.
69235
69236 2006-02-27  Jim Meyering  <jim@meyering.net>
69237
69238         Revert the change of 2006-02-24, so these files can continue
69239         to be sync'd from gettext.
69240         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
69241         of `config.h'.
69242
69243 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69244
69245         * modules/intprops: New file.
69246         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69247         Add intprops.
69248         * modules/getloadavg (Files): Remove lib/intprops.h.
69249         (Depends-on): Add intprops.
69250         * modules/human: Likewise.
69251         * modules/inttostr: Likewise.
69252         * modules/openat: Likewise.
69253         * modules/sig2str: Likewise.
69254         * modules/userspec: Likewise.
69255         * modules/utimecmp: Likewise.
69256         * modules/xnanosleep: Likewise.
69257         * modules/xstrtol: Likewise.
69258
69259 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69260
69261         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69262         * modules/lock-tests (TESTS): Use $(EXEEXT).
69263         * modules/tls-tests: Likewise.
69264         * modules/argp-tests: Likewise.
69265         (check_PROGRAMS): New var, replacing...
69266         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69267
69268 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69269
69270         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69271         `config.h'.
69272
69273 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69274
69275         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69276
69277 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69278
69279         Sync from coreutils.
69280         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69281         gl_CHDIR_SAFER.
69282
69283 2006-02-22  Jim Meyering  <jim@meyering.net>
69284
69285         Sync from coreutils.
69286         * m4/chdir-safer.m4: New file.
69287
69288 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69289
69290         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69291         AT_FDCWD exceeds INT_MAX.
69292         * lib/openat.h (AT_FDCWD): Likewise.
69293
69294 2006-02-17  Eric Blake  <address@hidden>
69295
69296         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69297
69298 2006-02-16  Simon Josefsson  <jas@extundo.com>
69299
69300         * modules/getaddrinfo (Depends-on): Add sys_socket.
69301
69302 2006-02-15  Simon Josefsson  <jas@extundo.com>
69303
69304         * build-aux/maint.mk: Add dsyntax-check rule.
69305
69306 2006-02-15  Eric Blake  <ebb9@byu.net>
69307
69308         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69309         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69310         'present but cannot compile' warnings on cygwin.
69311         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69312         use ws2tcpip.h if sys/socket.h works.
69313         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69314         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69315
69316 2006-02-14  Simon Josefsson  <jas@extundo.com>
69317
69318         * modules/maintainer-makefile (Files): Rename.
69319
69320         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69321         and (the local) Makefile.cfg to maint-cfg.mk.
69322
69323         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69324         to the latter.
69325
69326         * modules/maintainer-makefile: New module.
69327
69328         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69329         severaly stripped to make it possible to build it up from scratch
69330         with reliable tests.
69331
69332         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69333         fixes to permit overriding the default actions when configure and
69334         makefile are not available.
69335
69336 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69337
69338         Sync from coreutils.
69339         * modules/lstat (Depends-on): Don't depend on xalloc.
69340         (License): Change from GPL to LGPL, since this is now simply a
69341         replacement for a libc function.
69342
69343 2006-02-14  Jim Meyering  <jim@meyering.net>
69344
69345         Sync from coreutils.
69346
69347         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69348         failure on deficient systems, and simplify gnulib lgpl dependencies.
69349         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69350         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69351
69352         * lib/xalloc-die.c: Remove unused definition of N_.
69353
69354 2006-02-14  Jim Meyering  <jim@meyering.net>
69355
69356         Sync from coreutils.
69357         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69358         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69359         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69360         double-quote uses of that variable, to accommodate the rare case in
69361         which getmntent is available in none of the libraries checked.  This
69362         happens at least on FreeBSD 5.0.
69363
69364 2006-02-13  Simon Josefsson  <jas@extundo.com>
69365
69366         * gnulib-tool (Usage): Fix --import, from
69367         karl@freefriends.org (Karl Berry).
69368
69369 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69370
69371         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69372
69373 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69374
69375         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69376         "autoupdate" on 2005-12-12.
69377
69378 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69379
69380         * modules/closeout (Depends-on): Remove atexit.
69381
69382 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69383
69384         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69385         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69386
69387 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69388
69389         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69390         __EXTENSIONS__ if this causes compilation to fail.  Problem
69391         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69392         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69393
69394 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69395
69396         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
69397         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
69398         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
69399         All uses changed.
69400
69401 2006-01-26  Simon Josefsson  <jas@extundo.com>
69402
69403         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
69404         prototype is visible on mingw32.
69405
69406         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
69407         for mingw32.
69408
69409         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
69410         mingw32).
69411
69412 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69413
69414         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
69415         attempt to open for write; this always fails, at least on POSIX
69416         hosts.  This reinstates the 2006-01-09 change, which was
69417         inadvertently removed.
69418
69419 2006-01-26  Bruno Haible  <bruno@clisp.org>
69420
69421         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
69422         Reported by Paul Eggert.
69423
69424 2006-01-26  Bruno Haible  <bruno@clisp.org>
69425             Paul Eggert  <eggert@cs.ucla.edu>
69426
69427         * lib/stdbool_.h (_Bool)
69428         [(! (defined __cplusplus || defined __BEOS__)
69429           && !defined __GNUC__
69430           && !(defined __HP_cc || defined __xlc__
69431                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
69432                || defined __sgi))]:
69433         #define to signed char in these cases too; this simplifies
69434         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
69435         etc., separately) and makes it more conservative.
69436
69437 2006-01-25  Simon Josefsson  <jas@extundo.com>
69438
69439         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
69440         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
69441         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
69442
69443 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69444
69445         * lib/argp-namefrob.h: Bugfix. Remove stray #
69446
69447 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
69448
69449         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
69450         so that we test the test.
69451         Check for yet another HP-UX cc bug involving *bool |= bool.
69452
69453 2006-01-25  Karl Berry  <karl@gnu.org>
69454
69455         * config/srclist.txt (vasnprintf.c): sync lost.
69456
69457 2006-01-25  Jim Meyering  <jim@meyering.net>
69458
69459         Sync from the stable (b5) branch of coreutils:
69460
69461         * lib/fts.c (fts_children): Don't let close() clobber errno from
69462         failed fchdir().
69463
69464         * lib/fts.c (fts_stat): When following a symlink-to-directory,
69465         don't necessarily interpret stat-fails+lstat-succeeds as indicating
69466         a dangling symlink.  That can also happen at least for ELOOP.
69467         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
69468         FYI, this bug predates the inclusion of fts.c in coreutils.
69469
69470         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
69471         in their own block, so pre-c99 compilers don't object.
69472
69473         Avoid the double-free (first in fts_read, second in fts_close) that
69474         would occur when an `active' directory is made inaccessible (e.g.,
69475         via chmod a-x) during a traversal.
69476         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69477         before returning.  Reproduce this failure by
69478         mkdir -p a/b; cd a; chmod a-x . b
69479         Reported by Stavros Passas.
69480
69481 2006-01-25  Jim Meyering  <jim@meyering.net>
69482
69483         * lib/fileblocks.c: Remove more useless parentheses.
69484         * lib/readutmp.h: Likewise.
69485
69486 2006-01-25  Bruno Haible  <bruno@clisp.org>
69487
69488         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69489         warnings.
69490         Reported by Paul Eggert.
69491
69492 2006-01-25  Bruno Haible  <bruno@clisp.org>
69493
69494         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69495         rid of a trap command. For Solaris sh.
69496         Reported by Mark D. Baushke <mdb@gnu.org>.
69497
69498 2006-01-24  Simon Josefsson  <jas@extundo.com>
69499
69500         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69501         Bruno.
69502
69503 2006-01-24  Karl Berry  <karl@gnu.org>
69504
69505         * config/srclist.txt (argp-namefrob.h): sync lost.
69506
69507 2006-01-24  Jim Meyering  <jim@meyering.net>
69508
69509         * modules/openat (Files): Add lib/intprops.h.
69510         From Mark D. Baushke.
69511
69512 2006-01-24  Jim Meyering  <jim@meyering.net>
69513
69514         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69515         Reported by Mark D. Baushke.
69516
69517 2006-01-24  Jim Meyering  <jim@meyering.net>
69518
69519         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69520
69521 2006-01-24  Bruno Haible  <bruno@clisp.org>
69522
69523         * modules/strnlen (Maintainer): Change from glibc to all.
69524
69525 2006-01-24  Bruno Haible  <bruno@clisp.org>
69526
69527         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69528         Patch by Paul Eggert.
69529
69530 2006-01-24  Bruno Haible  <bruno@clisp.org>
69531
69532         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69533         already has it.
69534         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69535         2005-11-26.
69536
69537         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69538         'signed char' to avoid problems with the built-in _Bool type.
69539         Reported by Paul Eggert on 2005-11-26.
69540
69541 2006-01-24  Bruno Haible  <bruno@clisp.org>
69542
69543         * gnulib-tool (func_import): Avoid constructing complicated sed
69544         expressions inside backquote.
69545         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69546
69547 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69548
69549         These changes imported from libc.
69550         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69551         test and two separate function calls.
69552         * lib/strndup.c (__strndup): Add libc_hidden_def.
69553
69554 2006-01-23  Simon Josefsson  <jas@extundo.com>
69555
69556         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69557         Remove the test_*_SOURCES variable: automake infers it by default.
69558         * modules/tls-tests: Likewise.
69559
69560 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69561
69562         Work around porting bugs reported by Dieter in
69563         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69564         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69565         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69566         Include "getopt.h" first, to check interface.
69567         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69568         !HAVE_DECL_GETENV.
69569         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69570         (__strndup): Revert to K&R-style function dfns, the glibc style.
69571         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69572         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69573         Include strnlen.h first, to get prototype properly.
69574         (strnlen): Renamed from __strnlen.
69575         Remove weak alias.
69576
69577 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69580
69581 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69582
69583         * config/srclist.txt: Adjust to reflect glibc reorganization.
69584         This affects only comments.
69585
69586 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69587
69588          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69589          Reported by Bruce Korb <bkorb@gnu.org>.
69590
69591 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69592
69593         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69594         to pacify gcc -Wswitch-default.
69595
69596 2006-01-22  Bruno Haible  <bruno@clisp.org>
69597
69598         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69599         temporary buffer for sprintf, take into account the precision also
69600         for 'd', 'i', 'u', 'o', 'x', 'X'.
69601
69602 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69603
69604         * modules/argp-tests: New module
69605         * tests/test-argp.c: New file
69606         * tests/test-argp-2.sh: New file
69607
69608 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69609
69610         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69611         (__argp_base_name): Removed
69612         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69613         typo.
69614         (__argp_base_name): Provide macro definition or extern declaration
69615         depending on the configuration
69616
69617 2006-01-20  Simon Josefsson  <jas@extundo.com>
69618
69619         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69620
69621 2006-01-20  Simon Josefsson  <jas@extundo.com>
69622
69623         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69624
69625 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69626
69627         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69628         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69629         Suggested by Bruno Haible.
69630
69631 2006-01-20  Karl Berry  <karl@gnu.org>
69632
69633         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69634         until changes propagate, I guess.
69635
69636 2006-01-19  Simon Josefsson  <jas@extundo.com>
69637
69638         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69639
69640 2006-01-19  Simon Josefsson  <jas@extundo.com>
69641
69642         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69643
69644 2006-01-19  Simon Josefsson  <jas@extundo.com>
69645
69646         * gnulib-tool: Set check_PROGRAMS.
69647
69648         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69649         modules/des-tests, modules/gc-arcfour-tests,
69650         modules/gc-arctwo-tests, modules/gc-des-tests,
69651         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69652         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69653         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69654         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69655         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69656         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69657         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69658         test_*_SOURCES.
69659
69660 2006-01-18  Simon Josefsson  <jas@extundo.com>
69661
69662         * modules/socklen (Depends-on): Depend on sys_socket.
69663
69664 2006-01-18  Simon Josefsson  <jas@extundo.com>
69665
69666         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69667         modules/des-tests, modules/gc-arcfour-tests,
69668         modules/gc-arctwo-tests, modules/gc-des-tests,
69669         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69670         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69671         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69672         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69673         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69674         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69675         $(EXEEXT) to automake TESTS variable, for mingw32.
69676
69677 2006-01-17  Simon Josefsson  <jas@extundo.com>
69678
69679         * modules/socklen (Include): Need sys/socket.h.
69680
69681 2006-01-17  Bruno Haible  <bruno@clisp.org>
69682
69683         * modules/ssize_t (Include): Add <sys/types.h>.
69684
69685 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69686
69687         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69688         it's not portable and it doesn't work with cross-compiles.
69689         Problem reported by Bruno Haible.  Fix missing-$ typo in
69690         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69691         -zignore from being used with Sun's C compiler.
69692
69693 2006-01-12  Simon Josefsson  <jas@extundo.com>
69694
69695         * lib/base64.c: Fix warning, reported by Bruno Haible
69696         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69697
69698 2006-01-12  Bruno Haible  <bruno@clisp.org>
69699
69700         * modules/ldd: New file.
69701         * build-aux/ldd.sh.in: New file.
69702         * MODULES.html.sh (Support for building libraries and executables): Add
69703         ldd.
69704
69705 2006-01-12  Bruno Haible  <bruno@clisp.org>
69706
69707         * m4/ldd.m4: New file.
69708
69709 2006-01-12  Bruno Haible  <bruno@clisp.org>
69710
69711         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69712         endless loop while replacing $auxdir with build-aux.
69713
69714 2006-01-11  Simon Josefsson  <jas@extundo.com>
69715
69716         * lib/stdint_.h (SIZE_MAX): Add missing (.
69717
69718 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69719
69720         Sync from coreutils.
69721         * lib/md5.c: Fix commentary typos.
69722         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69723         * lib/md5.h (__attribute__): Remove; unused.
69724         * lib/sha1.c: Fix commentary to match md5 better.
69725         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69726         so that we don't need to worry about alignment.  All uses changed.
69727         This merges the 2005-10-28 md5 change into sha1.
69728
69729 2006-01-11  Jim Meyering  <jim@meyering.net>
69730
69731         Sync from coreutils.
69732         * lib/md5.c (OP): Fix spacing.
69733
69734 2006-01-11  Bruno Haible  <bruno@clisp.org>
69735
69736         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69737         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69738         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69739
69740 2006-01-11  Bruno Haible  <bruno@clisp.org>
69741
69742         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69743         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69744         the "early" section as well.
69745
69746 2006-01-11  Bruno Haible  <bruno@clisp.org>
69747
69748         Avoid "ar: no archive members specified" error on MacOS X.
69749         * gnulib-tool (func_modules_add_dummy): New function.
69750         (func_import, func_create_testdir): Invoke it.
69751
69752 2006-01-11  Bruno Haible  <bruno@clisp.org>
69753
69754         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69755         with $auxdir in AC_CONFIG_FILES statements.
69756
69757 2006-01-11  Bruno Haible  <bruno@clisp.org>
69758
69759         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69760         Initialize also noinst_HEADERS to empty.
69761
69762 2006-01-11  Bruno Haible  <bruno@clisp.org>
69763
69764         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69765         variables.
69766         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69767         autoreconf.
69768
69769 2006-01-11  Bruno Haible  <bruno@clisp.org>
69770
69771         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69772         overridable by the user.
69773         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69774
69775 2006-01-10  Simon Josefsson  <jas@extundo.com>
69776
69777         * modules/sys_socket: New file.
69778
69779 2006-01-10  Simon Josefsson  <jas@extundo.com>
69780
69781         * m4/sys_socket_h.m4: New file.
69782
69783 2006-01-10  Simon Josefsson  <jas@extundo.com>
69784
69785         * lib/socket_.h: New file.
69786
69787 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69788
69789         * modules/readutmp (Maintainer): Add myself.
69790
69791 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69792
69793         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69794         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69795         People who are still concerned with buggy memcmp implementations
69796         can invoke gl_FUNC_MEMCMP themselves.
69797
69798 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69799
69800         * lib/regex_internal.h (BITSET_WORD_BITS):
69801         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69802         preprocessor mishandles large unsigned values as if they were signed.
69803         Problem reported by Claudio Fontana in
69804         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69805
69806 2006-01-10  Jim Meyering  <jim@meyering.net>
69807
69808         Avoid the double-free (first in fts_read, second in fts_close) that
69809         would occur when an `active' directory is made inaccessible (e.g.,
69810         via chmod a-x) during a traversal.
69811         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69812         before returning.  Reproduce this failure by
69813         mkdir -p a/b; cd a; chmod a-x . b
69814         Reported by Stavros Passas.
69815
69816         Sync from coreutils.
69817         * lib/sha1.c: Tweak grammar in a comment.
69818
69819 2006-01-10  Jim Meyering  <jim@meyering.net>
69820
69821         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69822         Patch by Joerg Sonnenberger.
69823
69824 2006-01-10  Bruno Haible  <bruno@clisp.org>
69825
69826         * modules/readutmp: Depend on module free.
69827         * modules/strtok_r: Depend on module restrict.
69828
69829 2006-01-10  Bruno Haible  <bruno@clisp.org>
69830
69831         * modules/gettext (configure.ac): Add an invocation of
69832         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69833
69834 2006-01-10  Bruno Haible  <bruno@clisp.org>
69835
69836         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69837         Reported by Werner Lemberg <wl@gnu.org>.
69838
69839 2006-01-10  Bruno Haible  <bruno@clisp.org>
69840
69841         * lib/localcharset.c: Update from GNU gettext.
69842
69843 2006-01-10  Bruno Haible  <bruno@clisp.org>
69844
69845         * lib/argp.h (__const): Remove macro. Use const instead.
69846         * lib/argp-fmtstream.h (__const): Likewise.
69847         * lib/glob_.h (__const): Remove macro.
69848         * lib/glob-libc.h: Use const instead of __const.
69849
69850 2006-01-10  Bruno Haible  <bruno@clisp.org>
69851
69852         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69853         variable.
69854         Needed to avoid an automake error regarding the 'gettext' module.
69855
69856 2006-01-09  Simon Josefsson  <jas@extundo.com>
69857
69858         * modules/inet_ntop (Depends-on): Add restrict.
69859
69860 2006-01-09  Simon Josefsson  <jas@extundo.com>
69861
69862         * modules/gc-rijndael-tests (License): Put under LGPL.
69863
69864         * modules/gc-des-tests (License): Likewise.
69865
69866         * modules/gc-arcfour-tests (License): Likewise.
69867
69868         * modules/gc-arctwo-tests (License): Likewise.
69869
69870         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69871
69872         * modules/gc-hmac-sha1-tests (Files): Likewise.
69873
69874         * modules/gc-hmac-md5-tests (License): Likewise.
69875
69876         * modules/gc-sha1-tests (License): Likewise.
69877
69878         * modules/gc-md5-tests (License): Likewise.
69879
69880         * modules/gc-md4-tests (License): Likewise.
69881
69882         * modules/gc-md2-tests (License): Likewise.
69883
69884         * modules/gc-tests (License): Likewise.
69885
69886         * modules/des-tests (License): Likewise.
69887
69888         * modules/md4-tests (License): Likewise.
69889
69890         * modules/md2-tests (License): Likewise.
69891
69892 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69893
69894         Sync from coreutils:
69895
69896         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69897         * modules/lib-ignore: New file.
69898         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69899         chdir-safer.m4, lchmod.m4.
69900         * modules/openat: Add mkdirat.c, openat-priv.h.
69901
69902 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69903
69904         Sync from coreutils.
69905         * m4/lib-ignore.m4: New file.
69906         * m4/lchmod.m4: New file.
69907
69908 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69909
69910         Sync from coreutils.
69911         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69912         for write access: POSIX says that must fail.
69913         * lib/fts.c (diropen): Likewise.
69914         * lib/save-cwd.c (save_cwd): Likewise.
69915         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69916         well, for minor improvements on hosts that lack O_DIRECTORY.
69917         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69918         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69919         Fall back on chown if open failed with EACCES.
69920
69921         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69922         Report an error at compile-time if only a 1-second nominal clock
69923         resolution is found.
69924
69925         * lib/lchmod.h: New file.
69926         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69927         (make_dir_parents): Use lchown rather than chown, and
69928         lchmod rather than chmod.
69929
69930         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69931         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69932         "proc" reported by n0dalus.
69933
69934         * lib/mountlist.c: Include <limits.h>.
69935         (dev_from_mount_options)
69936         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69937         New function.  It no longer assumes "dev=" has the System V meaning
69938         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69939         (read_file_system_list)
69940         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69941         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69942         dev= in that case.
69943
69944         * lib/posixtm.h (PDS_PRE_2000): New macro.
69945         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69946         allow_century.  All usages changed.  Reject dates outside the range
69947         1969-1999 if PDS_PRE_2000 is used.
69948
69949 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69950
69951         Sync from coreutils.
69952         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69953         (Time of day items): Mention the possibility of leap seconds.
69954         Problem reported by Dr. David Alan Gilbert.
69955
69956 2006-01-09  Jim Meyering  <jim@meyering.net>
69957
69958         Sync from coreutils.
69959
69960         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69961
69962         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69963
69964         * lib/modechange.c (mode_compile): Reject an invalid mode string
69965         that starts with an octal digit.  From Andreas Gruenbacher.
69966
69967         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69968         and dup to open_safer and dup_safer, respectively.
69969         (openat_permissive): Fix typo in comment.
69970
69971         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69972         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69973         (_): Remove; no longer needed.
69974         (openat): Renamed from rpl_openat; no need for rpl_openat
69975         since openat.h renames openat for us.
69976         Replace most of the body with a call to openat_permissive,
69977         to avoid duplicate code.
69978         Port to (probably hypothetical) environments were mode_t is
69979         wider than int.
69980         (openat_permissive): Require mode arg, so that we can check
69981         types better.  Put it just after flags.  Change cwd failure
69982         indicator from pointer-to-bool to pointer-to-errno-value.
69983         All callers changed.
69984         Invoke openat_save_fail and/or openat_restore_fail if
69985         cwd_errno is null, so that openat can call us.
69986         (openat_permissive, fdopendir, fstatat, unlinkat):
69987         Simplify errno handling to avoid some duplicate code,
69988         as it's OK to set errno on success.
69989         * lib/openat.h: Revamp code so that function macros depend on
69990         __OPENAT_PREFIX only, not also on AT_FDCWD.
69991         (openat_ro): Remove.  Caller changed to use openat_permissive.
69992         (openat_permissive): Now a macro, if not a function.
69993         (openat_restore_fail, openat_save_fail): Now always functions,
69994         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69995
69996         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69997         and openat.c.
69998         * lib/mkdirat.c: Include openat-priv.h.
69999         Remove definitions of macros defined therein.
70000         * lib/openat.c: Likewise.
70001
70002         * lib/mkdirat.c (mkdirat): New file and function.
70003         * lib/openat.h (mkdirat): Declare.
70004
70005         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
70006
70007         * lib/openat.h (openat_permissive): Declare.
70008         (openat_ro): Define.
70009
70010         * lib/openat.c (EXPECTED_ERRNO): New macro.
70011         (openat_permissive): New function -- used in remove.c rewrite.
70012         (all functions): Set errno just before returning, only if there
70013         was an actual failure.
70014         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
70015
70016         Emulate openat-family functions using Linux's procfs, if possible.
70017         Idea and some code based on Ulrich Drepper's glibc changes.
70018
70019         * lib/openat.c: (BUILD_PROC_NAME): New macro.
70020         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
70021         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
70022         before falling back on save_cwd and restore_cwd.
70023         (fdopendir, fstatat, unlinkat): Likewise.
70024
70025         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
70026         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
70027
70028         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
70029         as second argument to va_arg.  Otherwise, some versions of gcc
70030         warn that `if this code is reached, the program will abort'.
70031
70032 2006-01-09  Jim Meyering  <jim@meyering.net>
70033
70034         Sync from coreutils.
70035         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
70036         Require openat-priv.h.
70037
70038 2006-01-09  Bruno Haible  <bruno@clisp.org>
70039
70040         * modules/strnlen (Include): Use strnlen.h.
70041
70042 2006-01-09  Bruno Haible  <bruno@clisp.org>
70043
70044         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
70045
70046 2006-01-09  Bruno Haible  <bruno@clisp.org>
70047
70048         * lib/sysexit_.h (EX_OK): New macro.
70049         Suggested by Martin Lambers <marlam@marlam.de>.
70050
70051 2006-01-09  Bruno Haible  <bruno@clisp.org>
70052
70053         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
70054         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
70055
70056 2006-01-09  Bruno Haible  <bruno@clisp.org>
70057
70058         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
70059         numbers.
70060
70061 2006-01-09  Bruno Haible  <bruno@clisp.org>
70062
70063         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
70064         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
70065         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
70066         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
70067
70068 2006-01-09  Bruno Haible  <bruno@clisp.org>
70069
70070         * build-aux/javacomp.sh.in: New file, moved from lib/.
70071         * modules/javacomp-script (Files): Update.
70072         (configure.ac): Add AC_CONFIG_FILES invocation.
70073         (EXTRA_DIST): Remove variable.
70074
70075         * build-aux/javaexec.sh.in: New file, moved from lib/.
70076         * modules/javaexec (Files): Update.
70077         (configure.ac): Add AC_CONFIG_FILES invocation.
70078         (EXTRA_DIST): Remove javaexec.sh.in.
70079
70080         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
70081         * modules/csharpcomp-script (Files): Update.
70082         (configure.ac): Add AC_CONFIG_FILES invocation.
70083         (EXTRA_DIST): Remove variable.
70084
70085         * build-aux/csharpexec.sh.in: New file, moved from lib/.
70086         * modules/csharpexec (Files): Update.
70087         (configure.ac): Add AC_CONFIG_FILES invocation.
70088         (EXTRA_DIST): Remove csharpexec.sh.in.
70089
70090 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70091
70092         Sync from coreutils.
70093
70094         Add POSIX ACL support
70095         * lib/acl.h (copy_acl, set_acl): Add declarations.
70096         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
70097         systems other than Linux.
70098         (chmod_or_fchmod): New function: use fchmod when possible,
70099         and chmod otherwise.
70100         (file_has_acl): Add a POSIX ACL implementation, with a
70101         Linux-specific subcase.
70102         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
70103         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
70104         acls are unsupported.
70105         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
70106         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
70107         are unsupported.
70108
70109 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70110
70111         Sync from coreutils.
70112         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
70113
70114 2006-01-07  Bruno Haible  <bruno@clisp.org>
70115
70116         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
70117         gl_EARLY.
70118
70119 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70120
70121         * lib/strftime.c (tzname): Don't declare if it is already #defined.
70122         Problem reported for Mingw by Mark Junker.
70123
70124 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70125
70126         * README: Gnulib normally doesn't generate a tarball.
70127
70128 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
70129
70130         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
70131         long int, not int, for nanosecond counts, so that people who are
70132         used to POSIX struct timespec won't be surprised.  Reported by Jim
70133         Meyering.
70134
70135 2005-12-28  Bruno Haible  <bruno@clisp.org>
70136
70137         * build-aux/config.rpath: Update from GNU gettext.
70138
70139 2005-12-16  Jim Meyering  <jim@meyering.net>
70140
70141         * modules/fprintftime: New module.
70142         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
70143
70144 2005-12-16  Jim Meyering  <jim@meyering.net>
70145
70146         * m4/fprintftime.m4: New file.
70147
70148 2005-12-16  Jim Meyering  <jim@meyering.net>
70149
70150         * lib/fprintftime.c, lib/fprintftime.h: New files.
70151
70152 2005-12-15  Simon Josefsson  <jas@extundo.com>
70153
70154         * modules/socklen (configure.ac): Fix M4 macro name, to align with
70155         new m4/socklen.m4.
70156
70157 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70158
70159         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
70160         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
70161
70162 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70163
70164         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
70165         * lib/argp-help.c (fill_in_uparams): Check if the constructed
70166         struct uparams is valid. Fall back to the default values if it is
70167         not.
70168
70169 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70170
70171         * modules/argp (Files): Add argp-pin.c
70172         (Depends-on): dirname
70173         (lib_SOURCES): Add argp-pin.c
70174
70175 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70176
70177         * m4/argp.m4:  Check if program_invocation_name and
70178         program_invocation_short_name are declared and define appropriate
70179         macros if they are not.
70180
70181 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70182
70183         * lib/argp-help.c (__argp_base_name): New function
70184         (__argp_short_program_name): Rewrite using __argp_base_name
70185         * lib/argp-namefrob.h: Define program_invocation_name and
70186         program_invocation_short_name if requested
70187         (__argp_base_name): Add prototype
70188         * lib/argp-parse.c (argp_def): Use gettext wrappers
70189         (argp_default_parser): Use __argp_base_name
70190         * lib/argp-pin.c: New file. Defines program_invocation_name and
70191         program_invocation_short_name on systems that lack them.
70192
70193 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70194
70195         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
70196         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70197         porting problem reported by Georg Schwarz in
70198         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70199
70200 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70201
70202         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
70203         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70204         porting problem reported by Georg Schwarz in
70205         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70206
70207 2005-12-05  Bruno Haible  <bruno@clisp.org>
70208
70209         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
70210         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
70211         Reported by Mark Junker <mjscod@gmx.de>.
70212
70213 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
70214
70215         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
70216         Use implementation from Albert Chin, with some
70217         comments/corrections by Stepan Kasal and myself.
70218
70219 2005-12-02  Bruno Haible  <bruno@clisp.org>
70220
70221         * gnulib-tool (func_import): Accept GPLed build tool modules when
70222         --lgpl is given.
70223         * modules/csharpcomp-script: New file.
70224         * modules/csharpcomp: Depend on it.
70225         * modules/javacomp-script: New file.
70226         * modules/javacomp: Depend on it.
70227         Suggested by Simon Josefsson.
70228
70229 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
70230
70231         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
70232         statement, to work around an HP-UX 10.20 compiler bug reported by
70233         Peter O'Gorman.
70234
70235 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70236
70237         * modules/savedir (Depends-on): Add openat.
70238
70239 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70240
70241         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
70242         (uintmax_t) [defined uintmax_t]: Do not declare.
70243         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
70244         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
70245         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
70246         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
70247         sake of portability to weird hosts that C allows (though we don't
70248         know of any practical examples).
70249
70250         * lib/savedir.h (fdsavedir): New decl.
70251         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
70252         contains most of the former guts of savedir.
70253         (savedir): Use savedirstream.
70254         Include "openat.h".
70255
70256 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70257
70258         * modules/obstack (Files): Add m4/ulonglong.m4.
70259         Problem reported by Davide Angelocola.
70260
70261 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70262
70263         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70264         coreutils no longer futzes with rounding modes.
70265
70266 2005-11-14  Jim Meyering  <jim@meyering.net>
70267
70268         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70269         replacement of mkstemp.
70270
70271 2005-11-10  Simon Josefsson  <jas@extundo.com>
70272
70273         * lib/readline.c: Remove EOL.
70274
70275 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70276
70277         * modules/gethrxtime (Depends-on): Add gettime.
70278
70279 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70280
70281         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70282         or gettimeofday; no longer needed.
70283
70284 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70285
70286         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70287         time business.
70288         (gethrxtime) [! (HAVE_NANOUPTIME
70289         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70290         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70291         our own approximation.
70292
70293 2005-11-08  Eric Blake  <ebb9@byu.net>
70294
70295         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70296
70297 2005-11-08  Eric Blake  <ebb9@byu.net>
70298
70299         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70300
70301 2005-11-04  Bruno Haible  <bruno@clisp.org>
70302
70303         * gnulib-tool: Implement --update mode.
70304
70305 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70306
70307         Fix porting problem reported by Theodoros V. Kalamatianos.
70308         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70309         Don't assume that futimes failing means we must fail.
70310
70311 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70312
70313         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70314         variables to suggest the intended function of the PATH_MAX check.
70315
70316 2005-10-30  Kean Johnston  <jkj@sco.com>
70317
70318         Trivial changes to support SCO systems.
70319         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70320         as PATH_MAX.
70321         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70322         where __ptr is null when no I/O is pending.
70323
70324 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70325
70326         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70327         leave errno alone.  Problem reported by Dmitry V. Levin.
70328
70329 2005-10-28  Simon Josefsson  <jas@extundo.com>
70330
70331         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70332         Test more.
70333
70334         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70335
70336         * modules/md2, modules/md2-tests: New files.
70337
70338 2005-10-28  Simon Josefsson  <jas@extundo.com>
70339
70340         * m4/inet_ntop.m4: More tests.
70341
70342         * m4/gc-md2.m4, md2.m4: New file.
70343
70344 2005-10-28  Simon Josefsson  <jas@extundo.com>
70345
70346         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70347         "restrict" keywords, as per POSIX.  Protect the function
70348         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70349         Don't use K&R prototypes.  Check the sprintf return values.
70350         Re-define EAFNOSUPPORT if not present.  Indent.
70351
70352         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70353         suggested by Bruno Haible <bruno@clisp.org>.
70354
70355         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70356
70357         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70358
70359         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70360         libgcrypt).
70361
70362         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70363
70364         * lib/md2.h, lib/md2.c: New files.
70365
70366 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70367
70368         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70369         errno alone.  Problem reported by Frederic Jolliton.
70370
70371 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70372
70373         * modules/verify (License): Change from GPL to LGPL.  This is a
70374         tiny module and there are apparently near-equivalents that are
70375         under the BSD license.
70376
70377 2005-10-24  Simon Josefsson  <jas@extundo.com>
70378
70379         * modules/sha1: Relicense to LGPL.
70380
70381 2005-10-24  Simon Josefsson  <jas@extundo.com>
70382
70383         * lib/md4.h: Shrink buffer size, now that we changed the type.
70384
70385 2005-10-23  Simon Josefsson  <jas@extundo.com>
70386
70387         * gnulib-tool (func_import): Fix --tests-base.
70388
70389 2005-10-22  Simon Josefsson  <jas@extundo.com>
70390
70391         * modules/arcfour (Depends-on): Need stdint.
70392
70393 2005-10-22  Simon Josefsson  <jas@extundo.com>
70394
70395         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70396         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
70397
70398 2005-10-22  Simon Josefsson  <jas@extundo.com>
70399
70400         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
70401         suggested by Bruno Haible <bruno@clisp.org>.
70402
70403 2005-10-22  Simon Josefsson  <jas@extundo.com>
70404
70405         * lib/crc.h: Include stddef.h, for size_t.
70406
70407 2005-10-22  Simon Josefsson  <jas@extundo.com>
70408
70409         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
70410         arcfour_context struct (simplify test vector testing in GNU
70411         Shishi).
70412
70413 2005-10-21  Simon Josefsson  <jas@extundo.com>
70414
70415         * modules/des, modules/des-tests: New files.
70416
70417         * modules/gc-des, modules/gc-des-tests: New files.
70418
70419         * tests/test-des.c, tests/test-gc-des.c: New file.
70420
70421 2005-10-21  Simon Josefsson  <jas@extundo.com>
70422
70423         * modules/arctwo, modules/arctwo-tests: New files.
70424
70425         * tests/test-arctwo.c: New file.
70426
70427         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
70428
70429         * tests/test-gc-arctwo.c: New file.
70430
70431 2005-10-21  Simon Josefsson  <jas@extundo.com>
70432
70433         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
70434         Bruno Haible <bruno@clisp.org>.
70435
70436         * m4/gc-des.m4: New file.
70437
70438 2005-10-21  Simon Josefsson  <jas@extundo.com>
70439
70440         * m4/arctwo.m4: New file.
70441
70442         * m4/gc-arctwo.m4: New file.
70443
70444 2005-10-21  Simon Josefsson  <jas@extundo.com>
70445
70446         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
70447         block.
70448
70449 2005-10-21  Simon Josefsson  <jas@extundo.com>
70450
70451         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
70452         <bruno@clisp.org>.
70453
70454         * lib/hmac-sha1.c (hmac_sha1): Likewise.
70455
70456         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
70457         Bruno Haible <bruno@clisp.org>.
70458
70459         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
70460         <bruno@clisp.org>.
70461
70462 2005-10-21  Simon Josefsson  <jas@extundo.com>
70463
70464         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
70465
70466 2005-10-21  Simon Josefsson  <jas@extundo.com>
70467
70468         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
70469
70470 2005-10-21  Simon Josefsson  <jas@extundo.com>
70471
70472         * lib/des.h, lib/des.c: New files.
70473
70474         * lib/gc-gnulib.c: Support DES.c
70475
70476 2005-10-21  Simon Josefsson  <jas@extundo.com>
70477
70478         * lib/arctwo.h, lib/arctwo.c: New files.
70479
70480         * lib/gc-gnulib.c: Support ARCTWO.
70481
70482 2005-10-21  Simon Josefsson  <jas@extundo.com>
70483
70484         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70485         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70486
70487 2005-10-21  Simon Josefsson  <jas@extundo.com>
70488
70489         * gnulib-tool (func_import, func_create_testdir): Define automake
70490         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70491         Makefile.am snippet),
70492         suggested by Bruno Haible <bruno@clisp.org>.
70493
70494         * modules/gc (Makefile.am): Use it.
70495
70496 2005-10-21  Bruno Haible  <bruno@clisp.org>
70497
70498         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70499         patch.
70500
70501 2005-10-19  Simon Josefsson  <jas@extundo.com>
70502
70503         * tests/test-gc-rijndael.c: New file.
70504
70505         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70506
70507 2005-10-19  Simon Josefsson  <jas@extundo.com>
70508
70509         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70510         interface too.
70511
70512 2005-10-19  Simon Josefsson  <jas@extundo.com>
70513
70514         * tests/test-gc-arcfour.c: New file.
70515
70516         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70517
70518 2005-10-19  Simon Josefsson  <jas@extundo.com>
70519
70520         * modules/gc-md4, modules/gc-md4-tests: New file.
70521
70522         * tests/test-gc-md4.c: New file.
70523
70524 2005-10-19  Simon Josefsson  <jas@extundo.com>
70525
70526         * m4/gc-md4.m4: New file.
70527
70528 2005-10-19  Simon Josefsson  <jas@extundo.com>
70529
70530         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70531         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70532         <kasal@ucw.cz>.
70533
70534 2005-10-19  Simon Josefsson  <jas@extundo.com>
70535
70536         * m4/gc-arcfour.m4: New file.
70537
70538         * m4/gc-rijndael.m4: New file.
70539
70540 2005-10-19  Simon Josefsson  <jas@extundo.com>
70541
70542         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70543
70544 2005-10-19  Simon Josefsson  <jas@extundo.com>
70545
70546         * lib/gc-gnulib.c: Support ARCFOUR.
70547
70548 2005-10-19  Simon Josefsson  <jas@extundo.com>
70549
70550         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70551         support.
70552
70553         * lib/gc.h: Add ECB enum type.
70554
70555         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70556
70557 2005-10-18  Simon Josefsson  <jas@extundo.com>
70558
70559         * tests/test-md5.c: New file.
70560
70561         * modules/md5-tests: New file.
70562
70563 2005-10-18  Simon Josefsson  <jas@extundo.com>
70564
70565         * tests/test-md4.c: New file.
70566
70567         * modules/md4, modules/md4-tests: New files.
70568
70569 2005-10-18  Simon Josefsson  <jas@extundo.com>
70570
70571         * m4/md4.m4: New file.
70572
70573 2005-10-18  Simon Josefsson  <jas@extundo.com>
70574
70575         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70576
70577 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70578
70579         * gnulib-tool (func_create_testdir): Omit the second check whether
70580         BUILT_SOURCES in nonempty.
70581
70582 2005-10-17  Simon Josefsson  <jas@extundo.com>
70583
70584         * tests/test-rijndael.c: New file.
70585
70586 2005-10-17  Simon Josefsson  <jas@extundo.com>
70587
70588         * modules/sha1: Depend on stdint instead of md5.
70589
70590         * modules/md5: Depend on stdint, remove uint32_t.
70591
70592 2005-10-17  Simon Josefsson  <jas@extundo.com>
70593
70594         * modules/gc-sha1-tests: New file.
70595
70596         * tests/test-gc-sha1.c: New file.
70597
70598 2005-10-17  Simon Josefsson  <jas@extundo.com>
70599
70600         * m4/md5.m4: Remove call to uint32_t.m4.
70601
70602 2005-10-17  Simon Josefsson  <jas@extundo.com>
70603
70604         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70605
70606         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70607         md5.h.
70608
70609         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70610
70611         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70612
70613 2005-10-17  Simon Josefsson  <jas@extundo.com>
70614
70615         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70616
70617 2005-10-17  Simon Josefsson  <jas@extundo.com>
70618
70619         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70620
70621 2005-10-17  Simon Josefsson  <jas@extundo.com>
70622
70623         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70624
70625         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70626
70627 2005-10-17  Bruno Haible  <bruno@clisp.org>
70628
70629         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70630         that it can also be used in a test.
70631
70632 2005-10-16  Bruno Haible  <bruno@clisp.org>
70633
70634         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70635         TESTS_ENVIRONMENT, so that individual tests can augment it.
70636
70637         * gnulib-tool (func_create_testdir): Use an intermediate target for
70638         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70639         macros, like $(ALLOCA_H), which cannot be passed through the command
70640         line.
70641
70642 2005-10-15  Simon Josefsson  <jas@extundo.com>
70643
70644         * modules/rijndael-tests: New file.
70645
70646         * modules/rijndael: New file.
70647
70648 2005-10-15  Simon Josefsson  <jas@extundo.com>
70649
70650         * m4/rijndael.m4: New file.
70651
70652 2005-10-15  Simon Josefsson  <jas@extundo.com>
70653
70654         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70655
70656         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70657
70658 2005-10-14  Simon Josefsson  <jas@extundo.com>
70659
70660         * tests/test-arcfour.c: New file.
70661
70662         * modules/arcfour, modules/arcfour-tests: New files.
70663
70664 2005-10-14  Simon Josefsson  <jas@extundo.com>
70665
70666         * m4/arcfour.m4: New file.
70667
70668 2005-10-14  Simon Josefsson  <jas@extundo.com>
70669
70670         * lib/arcfour.h, lib/arcfour.c: New files.
70671
70672 2005-10-14  Roland McGrath  <roland@redhat.com>
70673
70674         Import from libc.  [BZ #1331]
70675         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70676         macro argument.
70677         Reported by Matej Vela <vela@debian.org>.
70678
70679 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70680
70681         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70682         include <wchar.h>; no longer needed.
70683
70684 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70685
70686         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70687
70688 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70689         and  Ulrich Drepper  <drepper@redhat.com>
70690
70691         Import from libc.
70692         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70693         instead of inline stream orientation test and two separate
70694         function calls.  Pay no attention to USE_IN_LIBIO.
70695
70696 2005-10-13  Simon Josefsson  <jas@extundo.com>
70697
70698         * modules/gc-hmac-md5-tests: New file.
70699
70700         * tests/test-gc-hmac-sha1.c: New file.
70701
70702         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70703
70704         * modules/gc-hmac-md5-tests: New file.
70705
70706         * tests/test-gc-md5.c: New file.
70707
70708         * modules/gc-md5-tests: New file.
70709
70710 2005-10-13  Simon Josefsson  <jas@extundo.com>
70711
70712         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70713         Move memory allocation outside of loop.
70714
70715 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70716
70717         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70718         intermediate directory is in a read-only file system.  Problem
70719         reported by Eric Blake.
70720
70721 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70722
70723         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70724
70725 2005-10-12  Simon Josefsson  <jas@extundo.com>
70726
70727         * tests/test-hmac-sha1.c: New file.
70728
70729         * modules/hmac-sha1-tests: New file.
70730
70731         * modules/hmac-sha1: New file.
70732
70733 2005-10-12  Simon Josefsson  <jas@extundo.com>
70734
70735         * modules/gc-sha1: New file.
70736
70737 2005-10-12  Simon Josefsson  <jas@extundo.com>
70738
70739         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70740
70741         * tests/test-gc-pbkdf2-sha1.c: New file.
70742
70743 2005-10-12  Simon Josefsson  <jas@extundo.com>
70744
70745         * modules/gc-md5, modules/gc-hmac-md5: New files.
70746
70747         * modules/gc (Files): Remove md5, memxor and hmac files.
70748
70749 2005-10-12  Simon Josefsson  <jas@extundo.com>
70750
70751         * m4/gc-pbkdf2-sha1.m4: New file.
70752
70753         * m4/gc-hmac-sha1.m4: New file.
70754
70755         * m4/gc-sha1: New file.
70756
70757         * m4/hmac-sha1.m4: New file.
70758
70759 2005-10-12  Simon Josefsson  <jas@extundo.com>
70760
70761         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70762
70763         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70764
70765 2005-10-12  Simon Josefsson  <jas@extundo.com>
70766
70767         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70768         suggested by Bruno Haible <bruno@clisp.org>.
70769
70770 2005-10-12  Simon Josefsson  <jas@extundo.com>
70771
70772         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70773
70774 2005-10-12  Simon Josefsson  <jas@extundo.com>
70775
70776         * lib/gc-pbkdf2-sha1.c: New file.
70777
70778         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70779
70780 2005-10-12  Simon Josefsson  <jas@extundo.com>
70781
70782         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70783
70784         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70785
70786 2005-10-12  Simon Josefsson  <jas@extundo.com>
70787
70788         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70789         GC_USE_HMAC_MD5, respectively.
70790
70791         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70792         (gc_md5): Fix typo.
70793
70794         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70795
70796         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70797
70798         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70799
70800 2005-10-12  Bruno Haible  <bruno@clisp.org>
70801
70802         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70803         Reported by Stepan Kasal <kasal@ucw.cz>.
70804
70805 2005-10-11  Simon Josefsson  <jas@extundo.com>
70806
70807         * tests/test-crc.c: New file.
70808
70809         * modules/crc, modules/crc-tests: New files.
70810
70811 2005-10-11  Simon Josefsson  <jas@extundo.com>
70812
70813         * m4/crc.m4: New file.
70814
70815 2005-10-11  Simon Josefsson  <jas@extundo.com>
70816
70817         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70818
70819         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70820
70821         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70822
70823 2005-10-11  Simon Josefsson  <jas@extundo.com>
70824
70825         * lib/crc.h, lib/crc.c: New files.
70826
70827         * lib/gc.h (gc_hash_buffer): Add doc.
70828
70829 2005-10-11  Bruno Haible  <bruno@clisp.org>
70830
70831         * modules/c-strcasestr: New file.
70832         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70833
70834 2005-10-11  Bruno Haible  <bruno@clisp.org>
70835
70836         * modules/c-strcase: New file.
70837         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70838
70839 2005-10-11  Bruno Haible  <bruno@clisp.org>
70840
70841         * lib/strcasecmp.c: Include limits.h.
70842         (strcasecmp): Avoid integer overflow on exotic platforms.
70843         * lib/strncasecmp.c: Include limits.h.
70844         (strncasecmp): Avoid integer overflow on exotic platforms.
70845         Reported by Paul Eggert.
70846
70847 2005-10-11  Bruno Haible  <bruno@clisp.org>
70848
70849         * lib/c-strcasestr.h: New file, from GNU gettext.
70850         * lib/c-strcasestr.c: New file, from GNU gettext.
70851
70852 2005-10-11  Bruno Haible  <bruno@clisp.org>
70853
70854         * lib/c-strcase.h: New file, from GNU gettext.
70855         * lib/c-strcasecmp.c: New file, from GNU gettext.
70856         * lib/c-strncasecmp.c: New file, from GNU gettext.
70857
70858 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70859
70860         * modules/mempcpy (License): GPL -> LGPL.
70861         * modules/strchrnul (License): Likewise.
70862         * modules/sysexits (License): Likewise.
70863
70864 2005-10-08  Simon Josefsson  <jas@extundo.com>
70865
70866         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70867
70868 2005-10-07  Simon Josefsson  <jas@extundo.com>
70869
70870         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70871
70872 2005-10-06  Simon Josefsson  <jas@extundo.com>
70873
70874         * tests/test-hmac-md5.c: New file.
70875
70876         * modules/hmac-md5-tests: New file.
70877
70878         * modules/hmac-md5: New file.
70879
70880 2005-10-06  Simon Josefsson  <jas@extundo.com>
70881
70882         * m4/hmac-md5.m4: New file.
70883
70884         * m4/memxor.m4: Require gl_C_RESTRICT.
70885
70886 2005-10-06  Simon Josefsson  <jas@extundo.com>
70887
70888         * lib/memxor.c (memxor): Avoid casts and warnings.
70889
70890 2005-10-06  Simon Josefsson  <jas@extundo.com>
70891
70892         * lib/hmac-md5.c: New file.
70893
70894         * lib/hmac.h: New file.
70895
70896 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70897
70898         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70899         promotes to int, not unsigned int, to catch the AIX 5.3
70900         compiler bug.
70901
70902 2005-10-05  Simon Josefsson  <jas@extundo.com>
70903
70904         * modules/memxor: New file.
70905
70906         * modules/iconv (Files): Move config.rpath to havelib, it is used
70907         there.
70908
70909         * modules/havelib (Files): Add config.rpath.
70910
70911 2005-10-05  Simon Josefsson  <jas@extundo.com>
70912
70913         * m4/memxor.m4: New file.
70914
70915 2005-10-05  Simon Josefsson  <jas@extundo.com>
70916
70917         * lib/memxor.c (memxor): Fix compiler error.
70918
70919         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70920         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70921
70922         * lib/memxor.h, lib/memxor.c: New files.
70923
70924         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70925         we assume all systems have it, suggested by Jim Meyering
70926         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70927         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70928         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70929         same reasons.
70930
70931 2005-10-05  Simon Josefsson  <jas@extundo.com>
70932
70933         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70934
70935 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70936
70937         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70938         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70939         needed, since the source code now assumes these .h files.
70940
70941 2005-10-05  Derek Price  <derek@ximbiot.com>
70942
70943         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70944
70945 2005-10-05  Bruno Haible  <bruno@clisp.org>
70946
70947         * modules/stdint (License): Change to LGPL.
70948
70949 2005-10-04  Simon Josefsson  <jas@extundo.com>
70950
70951         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70952         D. Baushke" <mdb@gnu.org>.
70953
70954 2005-10-04  Bruno Haible  <bruno@clisp.org>
70955
70956         * lib/verify.h (verify_true): Provide alternative definition for C++.
70957
70958 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70959
70960         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70961         (SSIZE_MAX): New macro, if not already defined.
70962         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70963         than 2 GiB.
70964
70965 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70966
70967         Sync from coreutils.
70968         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70969         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70970         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70971         ULLONG_MAX doesn't work with 2.7.2.1.
70972
70973 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70974
70975         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70976         From Ben Pfaff.
70977
70978         * modules/exclude (Depends-on): Depend on verify.
70979         * modules/strtoimax (Depends-on): Likewise.
70980         * modules/utimecmp (Depends-on): Likewise.
70981
70982 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70983
70984         * lib/exclude.c: Include verify.h.
70985         (verify): Remove.  All callers changed to use verify.h's version.
70986         * lib/strtoimax.c: Likewise.
70987         * lib/utimecmp.c: Likewis.e
70988
70989         Sync from coreutils.
70990         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70991         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70992         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70993         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70994         bother returning ENOSYS if settimeofday or stime fails; just let
70995         them return whatever errno they want to return.
70996         * lib/utimens.c: Include unistd.h, for dup2.
70997         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70998         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70999
71000 2005-10-02  Jim Meyering  <jim@meyering.net>
71001
71002         Sync from coreutils.
71003         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
71004         from glibc-2.2.5 that fails for read-only files.
71005
71006 2005-10-02  Jim Meyering  <jim@meyering.net>
71007
71008         Sync from coreutils.
71009         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
71010         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
71011         `#if HAVE_CONFIG_H'.
71012         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
71013         Remove AT_FDCWD test.
71014         Do not consume the fd unless successful.
71015         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
71016         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
71017         block, so that we don't even try to compile it if settimeofday is
71018         available.  This works around a compilation failure on OSF1 V5.1,
71019         due to stime requiring a `long int*' while tv_sec is `int'.
71020
71021 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
71022
71023         Sync from coreutils.
71024         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
71025         against `yes', rather than just testing for nonempty.
71026
71027 2005-10-01  Simon Josefsson  <jas@extundo.com>
71028
71029         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
71030         and Darwin.
71031
71032         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
71033         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
71034         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
71035         freeaddrinfo and gai_strerror are declared by the POSIX headers.
71036         Check if struct addrinfo is declared.
71037
71038 2005-10-01  Simon Josefsson  <jas@extundo.com>
71039
71040         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
71041         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
71042         AI_* and EAI_* definitions.  Protect function declarations.
71043
71044 2005-10-01  Jim Meyering  <jim@meyering.net>
71045
71046         Sync from coreutils.
71047
71048         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
71049         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
71050         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
71051         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71052         in the inet and nsl libraries.  Required on Solaris 5.7.
71053
71054 2005-10-01  Jim Meyering  <jim@meyering.net>
71055
71056         Sync from coreutils.
71057         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71058         in the inet and nsl libraries.  Required on Solaris 5.7.
71059
71060 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
71061
71062         * lib/getdelim.c (getdelim): Remove unused variables.
71063
71064 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
71067         so that the code works even with ancient cpp.  Portability problem
71068         with GCC 2.7.2.1 reported by Thomas M.Ott.
71069
71070 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71071
71072         * modules/regex (Depends-on): Add strcase.
71073
71074         * modules/gethostname (Licence): Change from GPL to LGPL, since
71075         gethostname.c is a trivial implementation of a standard library
71076         function.
71077         * modules/poll (License): Change from GPL to LGPL, since it's
71078         derived from LGPL code.
71079
71080 2005-09-27  Jim Meyering  <jim@meyering.net>
71081
71082         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
71083         HAVE_CONFIG_H.
71084
71085         * lib/intprops.h (signed_type_or_expr__): Define.
71086         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
71087         for unsigned types.
71088
71089 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71090
71091         * lib/verify.h (verify_expr): Remove, replacing with:
71092         (verify_true): New macro that returns true instead of void.
71093         (verify_type__): Remove.
71094         (verify): Use verify_true rather than verify_type__.
71095
71096 2005-09-26  Bruno Haible  <bruno@clisp.org>
71097
71098         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
71099         is necessary.
71100         (lib_SOURCES): Remove mbchar.c.
71101         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
71102         (Files): Add m4/mbrtowc.m4.
71103         * modules/mbiter: Likewise.
71104         * modules/mbuiter: Likewise.
71105
71106 2005-09-26  Bruno Haible  <bruno@clisp.org>
71107
71108         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
71109         compile mbchar.c if they are not both present.
71110         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
71111         * m4/mbiter.m4 (gl_MBITER): Likewise.
71112         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
71113         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
71114         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
71115
71116 2005-09-25  Jim Meyering  <jim@meyering.net>
71117
71118         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
71119         also uses socklen_t.
71120
71121 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
71122
71123         * lib/utimens.c (ENOSYS): Define if not already defined.
71124         (futimens): Support having a null PATH if the file descriptor
71125         is nonnegative.
71126
71127         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
71128         Remove.
71129         (__attribute): Define to empty unless GCC 3.1 or later.
71130         This works around a core dump on OpenBSD 3.4, which has GCC
71131         2.95.3, which dumps core when given __attribute__(()).  It also
71132         simplifies other tests, since we really don't want to bother with
71133         worrying about which ancient version of GCC supported what.
71134         Original problem reported by Yoann Vandoorselaere, with part of
71135         the fix suggested by Derek Price.
71136
71137 2005-09-24  Jim Meyering  <jim@meyering.net>
71138
71139         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
71140         so we can once again use a positive bitfield width of 1 -- now we
71141         don't have to explain why we were using a bitfield width of 2.
71142
71143 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71144
71145         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
71146         and similarly for the other external symbols.  Problem reported
71147         by James Gallager.
71148
71149         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
71150         bug reported by Jim Meyering.
71151
71152         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
71153         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
71154         not needed, since socklen is a prerequisite module.
71155
71156 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71157
71158         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
71159         Problem reported by Eric Blake.
71160         (getaddrinfo): Initialize se so that it's not garbage.
71161         Redo internal storage allocation so that it doesn't make unportable
71162         assumptions about alignment.
71163         Fix a memory leak.
71164
71165         * lib/utimens.c (futimens): Use futimesat if available.
71166         Prefer it to futimes since it doesn't have the futimes bug.
71167
71168         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
71169         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
71170         Instead, declare a function that returns a pointer to an array,
71171         and use verify_type__ to declare the size of the array.
71172         Problem and germ of a solution reported by Bruno Haible.
71173         (verify_type__): Use 2, not 1, for bitfield size, to avoid
71174         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
71175
71176 2005-09-23  Jim Meyering  <jim@meyering.net>
71177
71178         Sync from coreutils.
71179         Correct build failure (socklen_t not defined) on at least
71180         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
71181         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
71182
71183 2005-09-23  Jim Meyering  <jim@meyering.net>
71184
71185         * modules/getaddrinfo (Depends-on): Add socklen.
71186
71187 2005-09-23  Bruno Haible  <bruno@clisp.org>
71188
71189         * tests/test-verify.c: New file.
71190
71191 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71192
71193         Sync from coreutils.
71194
71195         * modules/argmatch (Depends-on): Add verify.
71196         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
71197         unistd-safer.
71198         * modules/save-cwd (Depends-on): Likewise.
71199
71200         * modules/openat (Files): Add lib/openat-die.c.
71201         (Depends-on): Remove error, exitfail.
71202         Add dirname.
71203
71204         * modules/verify: New file.
71205         * MODULES.html.sh (Diagnostics <assert.h>): New section,
71206         with "verify" module.
71207
71208 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71209
71210         Sync from coreutils.
71211
71212         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
71213         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
71214         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
71215         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
71216         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
71217         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
71218         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
71219         Don't bother checking for string.h, stdlib.h, unistd.h.
71220         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
71221         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
71222         module's job.
71223         * m4/jm-macros.m4 (gl_MACROS): Likewise.
71224         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
71225
71226         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
71227         (gl_GETDATE): Use it.
71228
71229         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
71230
71231 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71232
71233         Sync from coreutils.
71234
71235         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
71236         stat-time.h.
71237         * lib/argmatch.h: Include verify.h
71238         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
71239         (ARGMATCH_ASSERT): Remove; unused.
71240         * lib/canonicalize.c: Assume STDC_HEADERS.
71241         * lib/exclude.c: Include "strcase.h".
71242         * lib/regex_internal.h [!defined _LIBC]: Likewise.
71243         * lib/getusershell.c: Include stdio--.h rather than stdio.h
71244         and stdio-safer.h.
71245         (getusershell): Call fopen, not fopen_safer.
71246         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
71247         Do not include unistd-safer.h.
71248         (save_cwd): Don't call fd_safer; no longer needed
71249         now that we include fcntl--.h.
71250
71251         * lib/getdate.y (relative_time): New type.
71252         (RELATIVE_TIME_0): New constant.
71253         (parser_control): Use relative_time instead of doing it ourselves.
71254         (%union): Add new relative_time rel member.
71255         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71256         Now typeless.
71257         (relunit, relunit_snumber): Now of type rel.
71258         (zone, rel, relunit, get_date): Adjust to above changes.
71259
71260         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71261         Do not include unistd-safer.h.
71262         (getloadavg): Don't call fd_safer; no longer needed
71263         now that we include fcntl--.h.
71264
71265         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71266         (make_dir_parents): Treat ENOSYS like EEXIST.
71267
71268         Improve quality of diagnostics on restore_cwd failure.
71269         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71270         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71271         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71272         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71273         each time through the loop.  Do not diagnose restore_cwd failure;
71274         that is the caller's job (and perhaps the caller does not care).
71275
71276         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71277         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71278         If the file already exists but is not a directory, don't bother
71279         to try to make its parents.
71280         Close potential file descriptor leak if we can't chdir("/") (!).
71281         Don't always return true if chdir($PWD) fails; return true only
71282         if the requested action was done successfully (except for the
71283         chdir($PWD)).
71284         Don't log final directory unless we actually made it.
71285         Refactor to avoid duplicate code to fix up permissions.
71286         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71287
71288         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71289         to make it a bit faster and (I hope) clearer.
71290         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71291         Fix bug in formats like %2N.
71292
71293         * lib/verify.h: New file.
71294
71295 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71296
71297         Sync from coreutils.
71298         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71299
71300 2005-09-22  Jim Meyering  <jim@meyering.net>
71301
71302         Sync from coreutils.
71303
71304         * m4/lstat.m4 (gl_FUNC_LSTAT):
71305         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71306         Remove obsolete comment.
71307         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71308         * m4/xstrtod.m4: Likewise.
71309
71310         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71311
71312 2005-09-22  Jim Meyering  <jim@meyering.net>
71313
71314         Sync from coreutils.
71315
71316         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71317
71318         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71319         the .tm_year member, since otherwise gcc-4.0 would now warn about
71320         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71321
71322         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71323         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71324
71325         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71326         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71327         when run in a time zone for which daylight savings time is in effect
71328         for the starting date.
71329
71330         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71331         stop us from restricting permissions of just-created absolute-named
71332         directories.
71333         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71334         to restore initial working directory.
71335         * lib/mkdir-p.c (make_dir_parents): New parameter:
71336         different_working_dir, to tell caller if/when we change the working
71337         directory and are unable to return to the initial one.
71338         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71339         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71340         `return false'.  This fixes a bug introduced on 2004-07-30.
71341
71342         * lib/openat.c (fdopendir): Be sure to close the supplied
71343         file descriptor before returning.  This makes our replacement
71344         implementation a little closer to Solaris's, where fdopendir
71345         ties the file descriptor to the returned DIR* pointer.
71346         * lib/openat.c (unlinkat): New function.
71347         * lib/openat.h (unlinkat): Add prototype.
71348         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71349         (openat_restore_fail): Rename from openat_restore_die.
71350         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71351
71352         Provide an alternative to exiting immediately upon save_cwd or
71353         restore_cwd failure.  Now, an application can arrange e.g.,
71354         to perform a longjump in that case.
71355         * lib/openat.c: Include dirname.h.
71356         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71357         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71358         and openat_restore_die rather than calling error directly.
71359         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71360
71361         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71362         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71363         define.
71364
71365         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71366         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71367                             int utc, int nanoseconds);
71368         Background:
71369         date should not have to allocate a megabyte of virtual memory to
71370         handle a format argument like +%1048575T.  When implemented with
71371         strftime, it must allocate such a buffer, use strftime to fill it
71372         in, print it, then free it.
71373         With fprintftime, it simply prints everything and exits.
71374         With no need for memory allocation, that's one fewer way to fail.
71375         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71376         optional field width, not before, so we accept %9:z, not %:9z.
71377         (my_strftime): Be sure to use L_('x') for literals.
71378
71379         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71380         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71381         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71382         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71383         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71384         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71385         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71386         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71387         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71388         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71389         * lib/xgethostname.c, lib/xreadlink.c:
71390         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71391
71392         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71393         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71394         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71395         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71396         and don't include <sys/file.h>).
71397
71398 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
71399
71400         Sync from coreutils.
71401
71402         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
71403         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
71404         [!LDAV_DONE]: Avoid unused variable warning.
71405
71406 2005-09-21  Bruno Haible  <bruno@clisp.org>
71407
71408         * lib/unicodeio.h (unicode_to_mb): New declaration.
71409
71410 2005-09-20  Derek Price  <derek@ximbiot.com>
71411
71412         * lib/getaddrinfo.c: Don't include <netdb.h> included from
71413         getaddrinfo.h.
71414
71415 2005-09-20  Bruno Haible  <bruno@clisp.org>
71416
71417         * gnulib-tool: Remove trailing slashes from the values specified for
71418         --source-base, --m4-base, --tests-base, --aux-dir.
71419         Suggested by Simon Josefsson <jas@extundo.com>.
71420
71421 2005-09-20  Bruno Haible  <bruno@clisp.org>
71422
71423         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
71424         func_modules_to_filelist, func_import, func_create_testdir): Make all
71425         sorting results locale-independent, so that gnulib-cache.m4 doesn't
71426         change when gnulib-tool is invoked in a different locale.
71427
71428 2005-09-19  Simon Josefsson  <jas@extundo.com>
71429
71430         * m4/socklen.m4: Fix typo.
71431
71432 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71433
71434         Use a consistent style for including <config.h>.
71435         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
71436         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
71437         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
71438         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
71439         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
71440         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
71441         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
71442         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
71443         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
71444         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
71445         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
71446         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
71447         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
71448         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
71449         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
71450         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
71451         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
71452         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
71453         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
71454         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
71455         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
71456         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
71457         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
71458         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
71459         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
71460         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
71461         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
71462         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
71463         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
71464         lib/xstrtoumax.c, lib/yesno.c:
71465         Standardize inclusion of config.h.
71466         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
71467         lib/inttostr.h:  Removed inclusion of config.h from header files.
71468         * lib/inttostr.c:  Adjusted in-tree users.
71469         * lib/timespec.h: Remove superfluous warning to include config.h.
71470         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
71471         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
71472         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
71473         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
71474         config.h with HAVE_CONFIG_H.
71475
71476 2005-09-19  Jim Meyering  <jim@meyering.net>
71477
71478         * modules/pathmax (License): Change to LGPL.
71479
71480 2005-09-19  Derek Price  <derek@ximbiot.com>
71481
71482         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71483
71484 2005-09-19  Bruno Haible  <bruno@clisp.org>
71485
71486         * gnulib-tool (import): Provide default for --tests-base.
71487
71488 2005-09-19  Bruno Haible  <bruno@clisp.org>
71489
71490         * doc/quote.texi: New file, extracted from gnulib.texi.
71491         * doc/ctime.texi: New file, extracted from gnulib.texi.
71492         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71493         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71494         * doc/gnulib.texi: Include them.
71495
71496 2005-09-18  Bruno Haible  <bruno@clisp.org>
71497
71498         Portability fix.
71499         * gnulib-tool (func_readlink): New function.
71500         (func_ln_if_changed): Use it.
71501
71502 2005-09-18  Bruno Haible  <bruno@clisp.org>
71503
71504         * gnulib-tool: Support --with-tests also with --import.
71505         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71506         (func_import): Use variables $testsbase and $inctests. Emit a
71507         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71508         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71509         SUBDIRS += $testsdir.
71510         (func_create_testdir): Update.
71511
71512 2005-09-18  Bruno Haible  <bruno@clisp.org>
71513
71514         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71515         instead of $dry_run.
71516         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71517         (func_ln_if_changed): Don't handle dry-run here.
71518         (func_import): In dry-run mode, detect more precisely which actions
71519         would be performed, and don't use "...ing" verbs.
71520
71521 2005-09-18  Bruno Haible  <bruno@clisp.org>
71522
71523         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71524         (func_import): Use join on two temporary files instead of three nested
71525         loops, in order to determine which files are new or old.
71526
71527 2005-09-18  Bruno Haible  <bruno@clisp.org>
71528
71529         * gnulib-tool (func_import): Comment out code that spits out the
71530         new files with --dry-run.
71531
71532 2005-09-18  Bruno Haible  <bruno@clisp.org>
71533
71534         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71535
71536 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71537
71538         * lib/stat-time.h: New file.
71539         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71540         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71541         in a different way.
71542         (timespec_cmp): New function.
71543         * lib/utimecmp.c: Include stat-time.h.
71544         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71545         members exist, not on the obsolescent ST_MTIM_NSEC.
71546         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71547
71548 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71549
71550         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71551
71552 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71553
71554         * MODULES.html.sh (File system functions): Add stat-time.
71555         * modules/stat-time: New file.
71556         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71557         is now done in a different way, by the stat-time module.
71558         * modules/utimecmp (Depends-on): Add stat-time.
71559
71560 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71561
71562         * m4/st_mtim.m4: Remove.  Superseded by...
71563         * m4/stat-time.m4: New file.
71564         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71565         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71566
71567 2005-09-15  Derek Price  <derek@ximbiot.com>
71568
71569         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71570
71571 2005-09-15  Derek Price  <derek@ximbiot.com>
71572
71573         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71574         * lib/regex_internal.c: Ditto, using this...
71575         (__GNUC_PREREQ): ...new macro.
71576         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71577         using...
71578         (__GNUC_PREREQ): ...this new macro.
71579
71580         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71581
71582 2005-09-15  Derek Price  <derek@ximbiot.com>
71583             Paul Eggert  <eggert@cs.ucla.edu>
71584
71585         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71586         changes, consolidating in...
71587         * lib/regex_internal.h: ...this file.
71588
71589 2005-09-13  Jim Meyering  <jim@meyering.net>
71590
71591         * lib/canon-host.c: Filter through gnu indent and reword comments
71592         slightly.
71593         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71594
71595 2005-09-13  Derek Price  <derek@ximbiot.com>
71596
71597         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71598         failure.
71599         Reported by Jim Meyering  <jim@meyering.net>.
71600
71601 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71602
71603         * lib/base64.c: Typo.
71604         (base64_encode): Put b64str in initialized data section.
71605
71606 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71607
71608         Merge glibc and coreutils changes into gnulib, plus a few
71609         extra fixes.
71610         * lib/md5.c: Use #error rather than a string.
71611         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71612         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71613         (__attribute__): Define to empty for non recent-GCC.
71614         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71615         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71616         Renamed from their non-__ counterparts, with new macros replacing
71617         them if not _LIBC.  Add __THROW attribute.
71618         (rol): Remove.
71619         (struct md5_ctx): Align buffer if using GCC.
71620         * lib/sha1.h (struct sha1_ctx): Likewise.
71621         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71622         The old name was backwards.
71623         (NOTSWAP): Remove; not used.
71624         (rol): New macro, moved here from md5.h.
71625         (sha1_process_block): Remove a FIXME that doesn't make sense.
71626
71627 2005-09-12  Derek Price  <derek@ximbiot.com>
71628
71629         Return usable errors from canon-host.
71630         * lib/canon-host.h: New file.
71631         * lib/canon-host.c (canon_host): Wrap...
71632         (canon_host_r): ...this new function, which now relies exclusively on
71633         getaddrinfo.
71634         (ch_strerror): New function.
71635         (last_cherror): New global.
71636         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71637         interface.
71638         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71639         void *.
71640         (freeaddrinfo): Free ai->ai_canonname when set.
71641
71642 2005-09-12  Derek Price  <derek@ximbiot.com>
71643
71644         Make canon-host require getaddrinfo.
71645         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71646         AC_LIBSOURCE canon-host.h.  Call...
71647         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71648         gl_GETADDRINFO.
71649         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71650
71651 2005-09-12  Derek Price  <derek@ximbiot.com>
71652
71653         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71654         LGPL.
71655         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71656
71657 2005-09-12  Derek Price  <derek@ximbiot.com>
71658
71659         * lib/gai_strerror.c: Include config.h when available.  Include
71660         getaddrinfo.h before other headers to test interface.
71661         Reported by Larry Jones <lawrence.jones@ugs.com>.
71662
71663 2005-09-12  Derek Price  <derek@ximbiot.com>
71664             Paul Eggert  <eggert@cs.ucla.edu>
71665
71666         * modules/glob (Files): Add glob-libc.h.
71667
71668 2005-09-12  Derek Price  <derek@ximbiot.com>
71669             Paul Eggert  <eggert@cs.ucla.edu>
71670
71671         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71672         glob_.h, glob-libc.h.
71673         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71674
71675 2005-09-12  Derek Price  <derek@ximbiot.com>
71676             Paul Eggert  <eggert@cs.ucla.edu>
71677
71678         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71679         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71680         protecting things that should be done only in gnulib contexts.
71681         * lib/glob_.h: New file, containing only the glob things needed for
71682         gnulib.
71683         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71684         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71685         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71686         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71687         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71688         and to respect the namespace rules better.
71689
71690 2005-09-08  Simon Josefsson  <jas@extundo.com>
71691
71692         * modules/socklen: New file.
71693
71694 2005-09-08  Simon Josefsson  <jas@extundo.com>
71695
71696         * m4/socklen.m4: New file.
71697
71698 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71699
71700         * modules/utimens (Files): Add m4/utimbuf.m4, since
71701         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71702         Reported by Sergey Poznyakoff.
71703
71704 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71705
71706         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71707         definitions, since that's the preferred style in glibc.
71708         Fix a minor spacing issue, and update copyright notice to match
71709         glibc's.
71710
71711 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71712
71713         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71714
71715 2005-09-06  Simon Josefsson  <jas@extundo.com>
71716
71717         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71718         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71719
71720 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71721
71722         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71723         warning.
71724
71725 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71726
71727         * config/srclist.txt: Add glibc bug 1302.
71728
71729 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71730
71731         Change bitset word type from unsigned int to unsigned long int,
71732         as this has better performance on typical 64-bit hosts.
71733         Port bitset code to hosts with unusual word sizes.
71734         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71735         (build_collating_symbol):
71736         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71737         argument is a bitset.  This is merely a style issue, but it makes
71738         it clearer that an entire array is expected.
71739         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71740         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71741         Port to the case where bitset_word is not the same as unsigned int.
71742         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71743         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71744         Likewise.
71745         * lib/regexec.c (check_dst_limits_calc_pos_1,
71746         check_subexp_matching_top):
71747         (build_trtable, group_nodes_into_DFAstates):
71748         Likewise.
71749         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71750         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71751         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71752         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71753         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71754         * lib/regcomp.c (optimize_subexps, lower_subexp):
71755         Work even if bitset_word has holes in its bitwise representation.
71756         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71757         * lib/regexec.c (check_dst_limits_calc_pos_1,
71758         check_subexp_matching_top):
71759         Likewise.
71760         * lib/regex_internal.c (re_string_reconstruct):
71761         Don't assume UCHAR_MAX == 255.
71762         * lib/regex_internal.h (bitset_set_all): Likewise.
71763         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71764         All uses changed.
71765         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71766         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71767         All uses changed.
71768         (BITSET_WORD_MAX): New macro.
71769         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71770         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71771         (bitset_empty, bitset_copy):
71772         Prefer sizeof (bitset) to multiplying it out ourselves.
71773         (bitset_not_merge): Remove; unused.
71774         (bitset_contain): Return bool, not unsigned int with one bit on.
71775         All callers changed.
71776         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71777         alignment than re_node_set; do this by defining a new internal
71778         type struct dests_alloc and using it to allocate memory.
71779
71780 2005-09-05  Bruno Haible  <bruno@clisp.org>
71781
71782         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71783         links.
71784
71785 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71786
71787         * modules/size_max (Makefile.am): Add size_max.h
71788
71789 2005-09-04  Derek Price  <derek@ximbiot.com>
71790
71791         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71792
71793 2005-09-03  Simon Josefsson  <jas@extundo.com>
71794
71795         * gnulib-tool: Fix typo.
71796
71797 2005-09-03  Simon Josefsson  <jas@extundo.com>
71798
71799         * config/srclist.txt: Add glibc bug 1293.
71800
71801 2005-09-03  Derek Price  <derek@ximbiot.com>
71802
71803         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71804         From Larry Jones <lawrence.jones@ugs.com>.
71805
71806 2005-09-02  Simon Josefsson  <jas@extundo.com>
71807
71808         * modules/socklen: New file.
71809
71810 2005-09-02  Simon Josefsson  <jas@extundo.com>
71811
71812         * modules/havelib: New module.
71813
71814         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71815         Use havelib.
71816
71817 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71818
71819         Check for arithmetic overflow when calculating sizes, to prevent
71820         some buffer-overflow issues.  These patches are conservative, in the
71821         sense that when I couldn't determine whether an overflow was possible,
71822         I inserted a run-time check.
71823         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71824         macros.
71825         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71826         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71827         (re_xnrealloc, re_x2nrealloc): New inline functions.
71828         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71829         parse_bracket_exp):
71830         (build_equiv_class, build_charclass): Check for arithmetic overflow
71831         in size expression calculations.
71832         * lib/regex_internal.c (re_string_realloc_buffers):
71833         (build_wcs_upper_buffer, re_node_set_add_intersect):
71834         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71835         (re_dfa_add_node, register_state): Likewise.
71836         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71837         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71838         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71839         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71840
71841 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71842
71843         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71844         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71845
71846 2005-09-02  Bruno Haible  <bruno@clisp.org>
71847
71848         Support for lib vs. lib64 distinction on biarch platforms.
71849         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71850         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71851         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71852
71853 2005-09-02  Bruno Haible  <bruno@clisp.org>
71854
71855         * gnulib-tool (import): In the other first-use case, provide defaults
71856         as well.
71857
71858 2005-09-02  Bruno Haible  <bruno@clisp.org>
71859
71860         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71861         patches not yet found in the latest gettext release.
71862
71863 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71864
71865         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71866         to avoid a collision with bits/local_lim.h in glibc.
71867         All uses changed.  Problem reported by Dmitry V. Levin in
71868         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71869
71870         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71871         bugs in int versus size_t comparisons.
71872         (re_string_context_at): Fix bug where the code assumed that
71873         Idx is signed.
71874
71875         Use bool where appropriate.
71876         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71877         All callers changed.
71878         (calc_eclosure_iter): Likewise, for ROOT arg.
71879         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71880         (build_charclass_op): Likewise, for NON_MATCH arg.
71881         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71882         (re_string_construct_common): Likewise, for ICASE arg.
71883         * lib/regexec.c (re_search_2_stub, re_search_stub):
71884         Likewise, for RET_LEN arg.
71885         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71886         (set_regs): Likewise, for FL_BACKTRACK arg.
71887         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71888         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71889         (calc_eclosure_iter, parse_bracket_exp):
71890         Use bool for internal variables that are booleans.
71891         * lib/regexec.c (re_search_internal, check_matching,
71892         proceed_next_node):
71893         (set_regs, build_sifted_states, sift_states_bkref):
71894         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71895         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71896         (find_collation_sequence_value):
71897         Likewise.
71898         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71899         (re_node_set_compare):
71900         Return bool, not int. All callers changed.
71901         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71902         (build_trtable, check_node_accept): Likewise.
71903         * lib/regex_internal.h: Include stdbool.h.
71904
71905         Fix bugs uncovered when converting to bool.
71906         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71907         failure instead of charging ahead blindly.
71908         * lib/regex_internal.c (register_state): Likewise.
71909         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71910         for freeing internal storage.
71911         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71912         bitset pieces used as boolean, to avoid undefined behavior
71913         on hosts that do int overflow checking.
71914
71915 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71916
71917         * config/srclist.txt: Add glibc bugs 1285-1287.
71918
71919 2005-09-01  Jim Meyering  <jim@meyering.net>
71920
71921         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71922         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71923         Require gl_STAT_MACROS, too.
71924
71925 2005-09-01  Bruno Haible  <bruno@clisp.org>
71926
71927         * gnulib-tool (import): In the first-use case, provide defaults.
71928
71929 2005-09-01  Bruno Haible  <bruno@clisp.org>
71930
71931         * gnulib-tool (func_import): Remove the .tmp files.
71932
71933 2005-09-01  Bruno Haible  <bruno@clisp.org>
71934
71935         * gnulib-tool (func_import): Fix handling of symbolic links.
71936
71937 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71938
71939         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71940         old glibc regex code mishandles strings longer than 2**31 bytes.
71941         This patch fixes this when the regex code is used in gnulib
71942         (i.e., outside glibc).
71943
71944         This patch should not affect the use of the regex code inside
71945         glibc.  No doubt this problem also needs to be handled for glibc
71946         as well, but the result will be an incompatible change to the
71947         glibc ABI, and the old ABI will have to be supported too.  That
71948         can be the the subject for another patch.
71949
71950         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71951         governing whether the rest of this patch is active.  By default,
71952         the macro is disabled and the patch has no effect.
71953         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71954         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71955         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71956         (re_match_2, re_set_registers): Use the new types.
71957         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71958         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71959         New macros.
71960         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71961         (re_string_context_at, bin_tree_t, re_dfastate_t):
71962         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71963         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71964         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71965         (re_string_char_size_at, re_string_wchar_at):
71966         (re_string_elem_size_at):
71967         Use the new types and macros to port to 64-bit hosts.
71968         Use unsigned types for internal values, so that the code
71969         mostly works even for arrays larger than SSIZE_MAX.
71970         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71971         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71972         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71973         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71974         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71975         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71976         (calc_inveclosure, parse_dup_op, build_range_exp):
71977         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71978         (fetch_number, create_token_tree, mark_opt_subexp):
71979         Likewise.
71980         * lib/regex_internal.c (re_string_construct_common,
71981         create_ci_newstate):
71982         (create_cd_newstate, re_string_allocate, re_string_construct):
71983         (re_string_realloc_buffers, build_wcs_upper_buffer):
71984         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71985         (re_string_reconstruct, re_string_peek_byte_case):
71986         (re_string_fetch_byte_case, re_string_context_at):
71987         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71988         (re_node_set_init_copy, re_node_set_add_intersect):
71989         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71990         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71991         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71992         (re_acquire_state, re_acquire_state_context, register_state):
71993         Likewise.
71994         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71995         search_cur_bkref_entry):
71996         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71997         (re_search_internal, re_search_2_stub, re_search_stub)
71998         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71999         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
72000         (update_cur_sifted_state, check_dst_limits):
72001         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72002         (check_subexp_limits, sift_states_bkref, merge_state_array):
72003         (check_subexp_matching_top, get_subexp, get_subexp_sub):
72004         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
72005         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72006         (expand_bkref_cache, check_node_accept_bytes):
72007         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
72008         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
72009         (acquire_init_state_context, check_halt_node_context):
72010         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
72011         (sift_states_backward, clean_state_log_if_needed):
72012         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
72013         (find_recover_state, transit_state_sb, transit_state_mb):
72014         (transit_state_bkref, build_trtable, match_ctx_clean):
72015         Likewise.
72016         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
72017         to work around an assumption that REG_MISSING is negative.
72018
72019         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
72020         (seek_collating_symbol_entry) [defined _LIBC]:
72021         (lookup_collation_sequence_value) [defined _LIBC]:
72022         (build_range_exp, build_collating_symbol) [defined _LIBC]:
72023         Use prototypes rather than old-style function definitions.
72024         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
72025         (transit_state_sb) [0]:
72026         (find_collation_sequence_value) [defined _LIBC]: Likewise.
72027
72028         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
72029         rm_eo.
72030
72031         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
72032         (optimize_subexps, lower_subexp):
72033         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
72034         since the signed shift might overflow.  Use 1u<<31 instead.
72035         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72036         Likewise.
72037         * lib/regexec.c (check_dst_limits_calc_pos_1,
72038         check_subexp_matching_top): Likewise.
72039
72040         * lib/regcomp.c (optimize_subexps, lower_subexp):
72041         Use CHAR_BIT rather than 8, for clarity.
72042         * lib/regexec.c (check_dst_limits_calc_pos_1):
72043         (check_subexp_matching_top): Likewise.
72044         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
72045         have to worry about portability issues when shifting it left.
72046         Remove no-longer-needed test for table_size > 0.
72047         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
72048         in a word, as the resulting behavior is undefined.
72049         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
72050         in one case, a <= should have been an <, and in another case the
72051         whole test was missing.
72052         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
72053         the standard name CHAR_BIT.
72054         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
72055         this is not true on one's complement and signed-magnitude hosts.
72056
72057         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
72058         next_last_offset.
72059         (struct re_dfa_t): Remove unused member states_alloc.
72060         * lib/regcomp.c (init_dfa): Don't initialize unused members.
72061
72062 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72063
72064         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
72065         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
72066         and large-file glibc and in 32-bit large-file Solaris.
72067
72068 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72069
72070         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
72071         lengths fit in regoff_t; this isn't true if regoff_t is the same
72072         width as size_t.
72073         * lib/regex.c (re_search_internal): 5th arg is LAST_START
72074         (= START + RANGE) instead of RANGE.  This avoids overflow
72075         problems when regoff_t is the same width as size_t.
72076         All callers changed.
72077         (re_search_2_stub): Check for overflow when adding the
72078         sizes of the two strings.
72079         (re_search_stub): Check for overflow when adding START
72080         to RANGE; if it occurs, substitute the extreme value.
72081
72082 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72083
72084         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
72085
72086 2005-08-31  Jim Meyering  <jim@meyering.net>
72087
72088         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
72089         a pointer-to-const.
72090         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
72091         (register_state): Likewise.
72092         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
72093         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72094         (group_nodes_into_DFAstates): Likewise.
72095
72096 2005-08-31  Jim Meyering  <jim@meyering.net>
72097
72098         * check-module: Add a FIXME comment.
72099
72100 2005-08-31  Eric Blake  <ebb9@byu.net>
72101
72102         * modules/unistd-safer (Files): Add unistd--.h.
72103         * modules/stdio-safer (Files): Add stdio--.h.
72104
72105 2005-08-31  Derek Price  <derek@ximbiot.com>
72106
72107         * lib/getdelim.c (getdelim): Return EOF on EOF.
72108         Reported by Larry Jones <lawrence.jones@ugs.com>.
72109
72110 2005-08-31  Bruno Haible  <bruno@clisp.org>
72111
72112         Avoid unnecessary diffs in the generated lib/Makefile.am.
72113         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
72114         the generated files.
72115         (func_import): Don't set cmd.
72116
72117 2005-08-31  Bruno Haible  <bruno@clisp.org>
72118
72119         * lib/strstr.c: Include <stddef.h>, for NULL.
72120         * lib/strcasestr.c: Likewise.
72121         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72122
72123 2005-08-31  Bruno Haible  <bruno@clisp.org>
72124
72125         * gnulib-tool: New option --macro-prefix.
72126         (func_import): Use macro_prefix.
72127         (import): Handle option --macro-prefix.
72128
72129 2005-08-31  Bruno Haible  <bruno@clisp.org>
72130
72131         * gnulib-tool (import): Rename most ac_* variables to cached_*.
72132         Also use new variables cached_lgpl, cached_libtool.
72133
72134 2005-08-31  Bruno Haible  <bruno@clisp.org>
72135
72136         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
72137         always instantiating them.
72138
72139 2005-08-31  Bruno Haible  <bruno@clisp.org>
72140
72141         * gnulib-tool (func_import): Read the previous cached settings
72142         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
72143         earlier added by gnulib but are now dropped. Warn when a gnulib file
72144         overwrites a non-gnulib file.
72145
72146 2005-08-31  Bruno Haible  <bruno@clisp.org>
72147
72148         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
72149         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
72150         projects that don't keep autogenerated files in CVS. Put into
72151         actioncmd only the specified modules, not the transitive closure.
72152
72153 2005-08-31  Bruno Haible  <bruno@clisp.org>
72154
72155         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
72156         Create directories that shall be filled.
72157         (import): Don't look for gl_* macros in configure.ac. Recurse across
72158         all directories containing a gnulib-cache.m4 files, if meaningful.
72159
72160 2005-08-31  Bruno Haible  <bruno@clisp.org>
72161
72162         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
72163         (import): Set seen_libtool when we see gl_LIBTOOL.
72164
72165 2005-08-31  Bruno Haible  <bruno@clisp.org>
72166
72167         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
72168         declaration macro definitions from generated gnulib.m4.
72169
72170 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
72171
72172         * lib/iconvme.h: Add prototype for iconv_alloc.
72173
72174 2005-08-29  Simon Josefsson  <jas@extundo.com>
72175
72176         * lib/iconvme.c: Fix errno.
72177
72178 2005-08-29  Bruno Haible  <bruno@clisp.org>
72179
72180         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
72181         that it works when the directory contains spaces.
72182
72183 2005-08-29  Bruno Haible  <bruno@clisp.org>
72184
72185         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
72186
72187 2005-08-29  Bruno Haible  <bruno@clisp.org>
72188
72189         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
72190         Emit more advice.
72191
72192 2005-08-29  Bruno Haible  <bruno@clisp.org>
72193         and Stepan Kasal  <kasal@ucw.cz>
72194
72195         * check-module: If more parameters are given, check each of them
72196         separately; add more exceptions, as noted by Jim Meyering.
72197         (check_module): New procedure.
72198         (%exempt_header): Now contains all exceptions.
72199
72200 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
72201
72202         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
72203
72204 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72205
72206         * lib/iconvme.c: Split iconv_string into iconv_alloc.
72207
72208 2005-08-28  Bruno Haible  <bruno@clisp.org>
72209
72210         * m4/gnulib-tool.m4: New file.
72211
72212 2005-08-27  Jim Meyering  <jim@meyering.net>
72213
72214         * modules/unistd-safer (Files): Add pipe-safer.c.
72215         * modules/fcntl-safer (Files): Add creat-safer.c.
72216
72217 2005-08-27  Jim Meyering  <jim@meyering.net>
72218
72219         * m4/stdlib-safer.m4: New file.  From coreutils.
72220         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
72221         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
72222         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
72223         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
72224         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
72225
72226 2005-08-27  Jim Meyering  <jim@meyering.net>
72227
72228         * lib/fopen-safer.c: Merge minor changes from coreutils.
72229         * lib/dup-safer.c: Likewise.
72230         * lib/fd-safer.c: Likewise.
72231
72232         Merge from coreutils.
72233         * lib/stdio--.h: New file.
72234         * lib/stdlib--.h: New file.
72235         * lib/mkstemp-safer.c: New file.
72236
72237         GNU tar needs these.
72238         * lib/pipe-safer.c: New file.
72239         * lib/creat-safer.c: New file.
72240         * lib/fcntl--.h (creat): Define to creat_safer.
72241         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
72242         * lib/unistd--.h (pipe): Define to pipe_safer.
72243         * lib/unistd-safer.h: Declare pipe_safer.
72244
72245 2005-08-26  Simon Josefsson  <jas@extundo.com>
72246
72247         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
72248         Haible <bruno@clisp.org>.
72249
72250 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
72251
72252         * lib/regex_internal.h: Remove all references to
72253         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72254         or better.
72255         (bitset_not, bitset_merge, bitset_not_merge):
72256         (bitset_mask, re_string_allocate, re_string_construct):
72257         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72258         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72259         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72260         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72261         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72262         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72263         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72264         (re_acquire_state_context):
72265         Remove unnecessary forward decls.
72266         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72267         Put __attribute at function definition,
72268         now that the function decl has been removed.
72269         * lib/regex_internal.c (re_string_peek_byte_case):
72270         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72271         Likewise.
72272
72273 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72274
72275         * m4/regex.m4: Add AC_PREREQ(2.50).
72276         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72277
72278 2005-08-25  Simon Josefsson  <jas@extundo.com>
72279
72280         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72281         __fsetlocking.
72282
72283 2005-08-25  Simon Josefsson  <jas@extundo.com>
72284
72285         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72286         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72287         GLIBC specific code.
72288
72289 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72290
72291         Make regex safe for g++.  This fixes one real bug (an "err"
72292         that should have been "*err").  g++ problem reported by
72293         Sam Steingold.
72294         * lib/regex_internal.h (re_calloc): New macro, consistent with
72295         re_malloc etc.  All callers of calloc changed to use re_calloc.
72296         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72297         not int.  All callers changed.
72298         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72299         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72300         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72301         (find_recover_state): Change "err" to "*err"; this fixes what
72302         appears to be a real bug.
72303         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72304         versus int.
72305
72306 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72307
72308         * modules/regex (Depends-on): Add malloc, since the code
72309         assumes that !malloc(0) means failure.
72310
72311 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72312
72313         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72314
72315         alloca modernization/simplification for regex.
72316         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72317         needs to be at the start of the file, and can be moved into
72318         regex_internal.h and simplified.
72319         * lib/regex_internal.h: Include <alloca.h>.
72320         (__libc_use_alloca) [!defined _LIBC]: New macro.
72321         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72322         now works outside glibc.
72323
72324 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72325
72326         * config/srclist.txt: Add glibc bugs 1241, 1245.
72327
72328 2005-08-25  Jim Meyering  <jim@meyering.net>
72329
72330         * lib/open-safer.c: Include <config.h>.
72331         Otherwise, we'd lose LARGEFILE support in any file using
72332         e.g. "fcntl--.h"
72333
72334 2005-08-25  Bruno Haible  <bruno@clisp.org>
72335
72336         * m4/minmax.m4: Require autoconf 2.52.
72337         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72338         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72339         alternatives of translit over the alphabet.
72340         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72341
72342 2005-08-24  Simon Josefsson  <jas@extundo.com>
72343
72344         * tests/test-getpass.c: New file.
72345
72346 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72347
72348         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72349         for GNU regex features.
72350
72351 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72352
72353         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72354         * lib/regex.h (regerror): Likewise.
72355
72356         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72357         requires this.  (The code never needed it.)
72358
72359         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72360         All uses of recently-renamed identifiers changed to use the new,
72361         POSIX-compliant names.  The code will build and run just fine
72362         without these changes, but it's better to eat our own dog food
72363         and use the standard-conforming names.
72364
72365         * lib/regex.h: Fix a multitude of POSIX name space violations.
72366         These changes have an effect only for programs that define
72367         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72368         do not change anything for programs compiled in the normal way.
72369         Also, there is no effect on the ABI.
72370
72371         (_REGEX_SOURCE): New macro.
72372         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72373         defined and _GNU_SOURCE is not; this fixes a name space violation.
72374
72375         Rename the following macros to obey POSIX requirements.
72376         The old names are still visible as macros if _REGEX_SOURCE is defined.
72377         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72378         RE_BACKSLASH_ESCAPE_IN_LISTS.
72379         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72380         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72381         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72382         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72383         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72384         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72385         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72386         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72387         (REG_INTERVALS): renamed from RE_INTERVALS.
72388         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72389         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72390         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72391         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72392         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72393         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72394         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72395         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72396         RE_UNMATCHED_RIGHT_PAREN_ORD.
72397         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
72398         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
72399         (REG_DEBUG): renamed from RE_DEBUG.
72400         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
72401         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
72402         unusual, since we can't clash with the POSIX REG_ICASE.
72403         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
72404         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
72405         (REG_NO_SUB): renamed from RE_NO_SUB.
72406         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
72407         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
72408         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
72409         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
72410         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
72411         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
72412         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
72413         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
72414         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
72415         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
72416         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
72417         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
72418         RE_SYNTAX_POSIX_MINIMAL_BASIC.
72419         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
72420         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
72421         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
72422         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
72423         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
72424         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
72425         (REG_FIXED): Renamed from REGS_FIXED.
72426         (REG_NREGS): Renamed from RE_NREGS.
72427
72428         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
72429         of other REG_* macros, since POSIX says the user is allowed to
72430         #undef these macros selectively.
72431
72432         (reg_errcode_t): Update comment stating what other tables need
72433         to be consistent.
72434
72435         Rename the following enum values to obey POSIX requirements.
72436         The old names are still visible as macros.
72437         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
72438         is not defined, since GNU is supposed to be a superset of POSIX as
72439         much as possible, and since we want reg_errcode_t to be a signed
72440         type for implementation consistency.
72441         (_REG_NOERROR): Renamed from REG_NOERROR.
72442         (_REG_NOMATCH): Renamed from REG_NOMATCH.
72443         (_REG_BADPAT): Renamed from REG_BADPAT.
72444         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
72445         (_REG_ECTYPE): Renamed from REG_ECTYPE.
72446         (_REG_EESCAPE): Renamed from REG_EESCAPE.
72447         (_REG_ESUBREG): Renamed from REG_ESUBREG.
72448         (_REG_EBRACK): Renamed from REG_EBRACK.
72449         (_REG_EPAREN): Renamed from REG_EPAREN.
72450         (_REG_EBRACE): Renamed from REG_EBRACE.
72451         (_REG_BADBR): Renamed from REG_BADBR.
72452         (_REG_ERANGE): Renamed from REG_ERANGE.
72453         (_REG_ESPACE): Renamed from REG_ESPACE.
72454         (_REG_BADRPT): Renamed from REG_BADRPT.
72455         (_REG_EEND): Renamed from REG_EEND.
72456         (_REG_ESIZE): Renamed from REG_ESIZE.
72457         (_REG_ERPAREN): Renamed from REG_ERPAREN.
72458         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
72459         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
72460         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
72461         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
72462
72463         (_REG_RE_NAME, _REG_RM_NAME): New macros.
72464         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
72465         changed.  But support the old name if the new one is not defined
72466         and if _REGEX_SOURCE.
72467
72468         Change the following member names in struct re_pattern_buffer.
72469         The old names are still supported if !_REGEX_SOURCE.
72470         The new names are always supported, regardless of _REGEX_SOURCE.
72471         (re_buffer): Renamed from buffer.
72472         (re_allocated): Renamed from allocated.
72473         (re_used): Renamed from used.
72474         (re_syntax): Renamed from syntax.
72475         (re_fastmap): Renamed from fastmap.
72476         (re_translate): Renamed from translate.
72477         (re_can_be_null): Renamed from can_be_null.
72478         (re_regs_allocated): Renamed from regs_allocated.
72479         (re_fastmap_accurate): Renamed from fastmap_accurate.
72480         (re_no_sub): Renamed from no_sub.
72481         (re_not_bol): Renamed from not_bol.
72482         (re_not_eol): Renamed from not_eol.
72483         (re_newline_anchor): Renamed from newline_anchor.
72484
72485         Change the following member names in struct re_registers.
72486         The old names are still supported if !_REGEX_SOURCE.
72487         The new names are always supported, regardless of _REGEX_SOURCE.
72488         (rm_num_regs): Renamed from num_regs.
72489         (rm_start): Renamed from start.
72490         (rm_end): Renamed from end.
72491
72492         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72493         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72494         Prepend __ to parameter names.
72495
72496         Undo yesterday's changes.
72497
72498 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72499
72500         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72501         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72502         lib/regex.c.
72503
72504 2005-08-24  Jim Meyering  <jim@meyering.net>
72505
72506         Sync from coreutils.
72507         * m4/fcntl-safer.m4: New file.
72508
72509         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72510         and object files for this module.
72511
72512 2005-08-24  Jim Meyering  <jim@meyering.net>
72513
72514         Sync from coreutils.
72515         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72516
72517 2005-08-24  Jim Meyering  <jim@meyering.net>
72518
72519         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72520         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72521
72522 2005-08-24  Jim Meyering  <jim@meyering.net>
72523
72524         * modules/fcntl-safer: New module.
72525         * modules/fts (Depends-on): Add fcntl-safer.
72526         * MODULES.html.sh (File descriptor based Input/Output):
72527         Add fcntl-safer.
72528
72529 2005-08-24  Bruno Haible  <bruno@clisp.org>
72530
72531         Support for unit test modules.
72532         * modules/README: Mention tests modules.
72533         * modules/TEMPLATE-TESTS: New file.
72534         * gnulib-tool: New options --extract-tests-module, --with-tests and
72535         --tests-base (unused for the moment).
72536         (testsbase, inctests): New variables.
72537         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72538         (func_verify_module): Exclude TEMPLATE-TESTS.
72539         (func_verify_nontests_module, func_verify_tests_module): New functions.
72540         (func_get_dependencies): Add implicit dependency for tests modules.
72541         (func_get_tests_module): New function.
72542         (func_modules_transitive_closure): When --with-tests was specified,
72543         include the unit tests as well, unless explicitly avoided.
72544         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72545         (func_emit_tests_Makefile_am): New function.
72546         (func_create_testdir): When --with-tests was specified, emit a
72547         tests/ directory.
72548         * MODULES.html.sh (Future developments): Update.
72549
72550 2005-08-24  Bruno Haible  <bruno@clisp.org>
72551
72552         * modules/tls-tests: New file.
72553         * tests/test-tls.c: New file, from GNU gettext.
72554
72555 2005-08-24  Bruno Haible  <bruno@clisp.org>
72556
72557         * modules/lock-tests: New file.
72558         * tests/test-lock.c: New file, from GNU gettext.
72559
72560 2005-08-24  Bruno Haible  <bruno@clisp.org>
72561
72562         * lib/lock.h: Add multiple inclusion guard.
72563         * lib/tls.h: Add multiple inclusion guard.
72564
72565 2005-08-24  Bruno Haible  <bruno@clisp.org>
72566
72567         * gnulib-tool: Add support for the --aux-dir option to
72568         --create-testdir, --create-megatestdir, --test, --megatest.
72569         (func_create_testdir, func_create_megatestdir): Optionally emit a
72570         AC_CONFIG_AUX_DIR directive.
72571         (create-testdir, create-megatestdir, test, megatest): Provide a
72572         default value for $auxdir.
72573
72574 2005-08-24  Bruno Haible  <bruno@clisp.org>
72575
72576         * gnulib-tool (import): Use compound statement instead of subshell
72577         where possible.
72578
72579 2005-08-24  Bruno Haible  <bruno@clisp.org>
72580
72581         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72582
72583 2005-08-24  Bruno Haible  <bruno@clisp.org>
72584
72585         * gnulib-tool (func_version): Update.
72586
72587 2005-08-24  Bruno Haible  <bruno@clisp.org>
72588
72589         * gnulib-tool (func_import, func_create_testdir,
72590         func_create_megatestdir): Quote all autoconf macro arguments.
72591
72592 2005-08-24  Bruno Haible  <bruno@clisp.org>
72593
72594         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72595         option --force, because --force causes the aclocal.m4 of each
72596         subdirectory to be newer than the corresponding config.h.in.
72597
72598 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72599
72600         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72601         All contents moved to gl_REGEX.
72602         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72603         assume that it does.
72604
72605 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72606
72607         * lib/regex.h (REG_NOSYS)
72608         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72609         Define, since POSIX requires it as of 2001.
72610         (_REG_ENOSYS)
72611         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72612         New private symbol, used to keep the enum signed in all cases.
72613         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72614         Youngman in
72615         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72616
72617         * lib/regex_internal.c (re_string_skip_chars, register_state):
72618         (calc_state_hash):
72619         Remove forward decls; no longer needed now that we use prototypes.
72620         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72621         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72622         (clean_state_log_if_needed): Likewise.
72623
72624 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72625
72626         * config/srclist.txt: Add glibc bugs 1231-1233.
72627
72628 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72629
72630         Fix problems reported by Sam Steingold in
72631         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72632         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72633         assumed that reg_errcode_t is a signed type, which is not
72634         necessarily true if _XOPEN_SOURCE is not defined.
72635         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72636         since some compilers warn about it otherwise.
72637
72638 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72639
72640         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72641         (init_word_char, create_initial_state, duplicate_node_closure):
72642         (fetch_token, peek_token_bracket, build_range_exp):
72643         (build_collating_symbol): Remove forward decls; no longer needed
72644         now that we use prototypes.
72645
72646         * lib/regcomp.c:
72647         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72648         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72649         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72650         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72651         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72652         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72653         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72654         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72655         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72656         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72657         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72658         (build_charclass, build_charclass_op, fetch_number, create_tree):
72659         (create_token_tree, mark_opt_subexp, duplicate_tree):
72660         Use prototypes rather than old-style definitions.
72661
72662         * lib/regex_internal.c:
72663         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72664         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72665         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72666         (re_string_reconstruct, re_string_peek_byte_case):
72667         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72668         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72669         (re_node_set_init_copy, re_node_set_add_intersect):
72670         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72671         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72672         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72673         (re_acquire_state, re_acquire_state_context, register_state):
72674         (create_ci_newstate, create_cd_newstate, free_state):
72675         Likewise.
72676         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72677         re_search_2):
72678         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72679         (re_search_internal, prune_impossible_nodes):
72680         (acquire_init_state_context, check_matching, static):
72681         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72682         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72683         (update_regs, sift_states_backward, build_sifted_states):
72684         (clean_state_log_if_needed, merge_state_array):
72685         (update_cur_sifted_state, add_epsilon_src_nodes):
72686         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72687         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72688         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72689         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72690         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72691         (check_arrival, check_arrival_add_next_nodes):
72692         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72693         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72694         (check_node_accept_bytes, check_node_accept, extend_buffers):
72695         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72696         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72697         (sift_ctx_init):
72698         Likewise.
72699
72700         * lib/regex_internal.h:
72701         (re_string_allocate, re_string_construct, re_string_reconstruct):
72702         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72703         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72704         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72705         (re_string_context_at, re_string_peek_byte_case):
72706         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72707         is defined, since we now use prototypes always.
72708
72709         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72710         C89 or better.  All uses removed.
72711
72712 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72713
72714         * config/srclist.txt: Add glibc bugs 1220-1227.
72715
72716 2005-08-20  Jim Meyering  <jim@meyering.net>
72717
72718         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72719         of unused local, dfa.
72720
72721 2005-08-20  Bruno Haible  <bruno@clisp.org>
72722
72723         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72724
72725 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72726
72727         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72728         (re_node_set_insert_last, re_dfa_add_node):
72729         Rename local variables to avoid GCC shadowing warnings.
72730
72731 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72732
72733         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72734         [defined lint]: Suppress bogus uninitialized-variable warnings.
72735
72736         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72737         and let the caller return REG_ESPACE if out of space.  This
72738         removes an uninitialied-variable warning with GCC 4.0.1, and also
72739         avoids taking the address of a local variable.  All callers
72740         changed.
72741
72742 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72743
72744         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72745         $LIBCSRC/posix/regexec.c.
72746         Add glibc bug 1217 for regcomp.c.
72747
72748 2005-08-19  Jim Meyering  <jim@meyering.net>
72749
72750         * lib/regexec.c (proceed_next_node): Redo local variables to
72751         avoid GCC shadowing warnings.
72752
72753 2005-08-18  Bruno Haible  <bruno@clisp.org>
72754
72755         * lib/strstr.c (strstr): Fix return value in multibyte case.
72756         * lib/strcasestr.c (strcasestr): Likewise.
72757
72758 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72759
72760         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72761
72762 2005-08-17  Jim Meyering  <jim@meyering.net>
72763
72764         Make the %s format (seconds since the epoch) work for a negative
72765         number and when used with a zero-padded field width, e.g. %015s.
72766
72767         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72768         label so that it precedes the code to set `digits'.  Otherwise,
72769         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72770         print `00-22'.  Now, it prints `-0022', as it should.
72771
72772 2005-08-17  Bruno Haible  <bruno@clisp.org>
72773
72774         * modules/strstr (Files): Add m4/mbrtowc.m4.
72775         (Depends-on): Add mbuiter.
72776
72777 2005-08-17  Bruno Haible  <bruno@clisp.org>
72778
72779         * modules/strcasestr: New file.
72780         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72781         strcasestr.
72782
72783 2005-08-17  Bruno Haible  <bruno@clisp.org>
72784
72785         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72786
72787 2005-08-17  Bruno Haible  <bruno@clisp.org>
72788
72789         * modules/mbuiter: New file.
72790         * MODULES.html.sh (Extended multibyte and wide character utilities):
72791         Add mbuiter.
72792
72793 2005-08-17  Bruno Haible  <bruno@clisp.org>
72794
72795         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72796         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72797
72798 2005-08-17  Bruno Haible  <bruno@clisp.org>
72799
72800         * m4/strcasestr.m4: New file.
72801
72802 2005-08-17  Bruno Haible  <bruno@clisp.org>
72803
72804         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72805         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72806
72807 2005-08-17  Bruno Haible  <bruno@clisp.org>
72808
72809         * lib/strcasestr.h: New file.
72810         * lib/strcasestr.c: New file.
72811
72812 2005-08-17  Bruno Haible  <bruno@clisp.org>
72813
72814         * lib/strcasecmp.c: Use mbuiter.h.
72815
72816 2005-08-17  Bruno Haible  <bruno@clisp.org>
72817
72818         * lib/mbuiter.h: New file.
72819
72820 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72821
72822         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72823         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72824         and gl_GETOPT are both invoked via different paths (as happens
72825         with GNU tar CVS because it uses both argp and getopt), the former
72826         wins.
72827
72828 2005-08-16  Bruno Haible  <bruno@clisp.org>
72829
72830         * modules/tls: New file.
72831         * MODULES.html.sh (Multithreading): Add tls.
72832
72833 2005-08-16  Bruno Haible  <bruno@clisp.org>
72834
72835         * modules/strnlen1: New file.
72836         * MODULES.html.sh (String handling): Add strnlen1.
72837
72838 2005-08-16  Bruno Haible  <bruno@clisp.org>
72839
72840         * modules/strcase (Files): Add m4/mbrtowc.m4.
72841         (Depends-on): Add strnlen1, mbchar.
72842
72843 2005-08-16  Bruno Haible  <bruno@clisp.org>
72844
72845         * modules/mbiter: New file.
72846         * MODULES.html.sh (Extended multibyte and wide character utilities):
72847         Add mbiter.
72848
72849 2005-08-16  Bruno Haible  <bruno@clisp.org>
72850
72851         * modules/mbfile: New file.
72852         * MODULES.html.sh (Extended multibyte and wide character utilities):
72853         Add mbfile.
72854
72855 2005-08-16  Bruno Haible  <bruno@clisp.org>
72856
72857         * modules/mbchar: New file.
72858         * MODULES.html.sh (Extended multibyte and wide character utilities):
72859         New section.
72860
72861 2005-08-16  Bruno Haible  <bruno@clisp.org>
72862
72863         * m4/tls.m4: New file, from GNU gettext.
72864
72865 2005-08-16  Bruno Haible  <bruno@clisp.org>
72866
72867         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72868         always.
72869         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72870
72871 2005-08-16  Bruno Haible  <bruno@clisp.org>
72872
72873         * m4/mbiter.m4: New file.
72874
72875 2005-08-16  Bruno Haible  <bruno@clisp.org>
72876
72877         * m4/mbfile.m4: New file.
72878
72879 2005-08-16  Bruno Haible  <bruno@clisp.org>
72880
72881         * m4/mbchar.m4: New file.
72882
72883 2005-08-16  Bruno Haible  <bruno@clisp.org>
72884
72885         * lib/tls.h: New file, from GNU gettext.
72886         * lib/tls.c: New file, from GNU gettext.
72887
72888 2005-08-16  Bruno Haible  <bruno@clisp.org>
72889
72890         * lib/strnlen1.h: New file.
72891         * lib/strnlen1.c: New file.
72892
72893 2005-08-16  Bruno Haible  <bruno@clisp.org>
72894
72895         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72896         (mbi_init): Update.
72897         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72898         NUL byte, not after it.
72899
72900 2005-08-16  Bruno Haible  <bruno@clisp.org>
72901
72902         * lib/strcase.h (strcasecmp): Add note in comments.
72903         * lib/strncasecmp.c: Use code from strcasecmp.c.
72904         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72905         (strcasecmp): Work correctly in multibyte locales.
72906
72907 2005-08-16  Bruno Haible  <bruno@clisp.org>
72908
72909         * lib/mbiter.h: New file.
72910
72911 2005-08-16  Bruno Haible  <bruno@clisp.org>
72912
72913         * lib/mbfile.h: New file.
72914
72915 2005-08-16  Bruno Haible  <bruno@clisp.org>
72916
72917         * lib/mbchar.h: New file.
72918         * lib/mbchar.c: New file.
72919
72920 2005-08-16  Bruno Haible  <bruno@clisp.org>
72921
72922         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72923         the valid ones. Makes the comparison operations transitive:
72924         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72925         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72926
72927 2005-08-15  Simon Josefsson  <jas@extundo.com>
72928
72929         * modules/ssize_t (License): Change to 'unlimited'.
72930
72931         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72932
72933 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72934
72935         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72936         Add comments for each pending glibc patch.
72937
72938 2005-08-15  Bruno Haible  <bruno@clisp.org>
72939
72940         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72941         __cplusplus is defined.
72942
72943 2005-08-14  Jim Meyering  <jim@meyering.net>
72944
72945         Sync from coreutils.
72946
72947         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72948         Use the hash-table-based cycle-detection code not just when
72949         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72950         Reported by James Youngman in
72951         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72952         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72953         FTS_TIGHT_CYCLE_CHECK.
72954         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72955         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72956         once again.
72957         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72958         * lib/fts.c (fd_safer): Remove decl.
72959         Include fcntl--.h rather than unistd-safer.h
72960         (fts_safe_changedir): Don't call fd_safer; no longer needed
72961         now that we include fcntl--.h.
72962
72963 2005-08-12  Simon Josefsson  <jas@extundo.com>
72964
72965         * modules/getndelim2: Use ssize_t module.
72966         * modules/getnline: Likewise.
72967         * modules/safe-read: Likewise.
72968         * modules/xreadlink: Likewise.
72969
72970         * modules/ssize_t: New file.
72971
72972 2005-08-12  Simon Josefsson  <jas@extundo.com>
72973
72974         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72975
72976 2005-08-12  Simon Josefsson  <jas@extundo.com>
72977
72978         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72979         ssize_t.
72980
72981 2005-08-12  Simon Josefsson  <jas@extundo.com>
72982
72983         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72984         readline, getdelim and check_version.
72985         (Support for systems lacking ISO C 99: Sizes of integer types):
72986         Add size_max.
72987
72988 2005-08-12  Bruno Haible  <bruno@clisp.org>
72989
72990         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72991
72992 2005-08-11  Simon Josefsson  <jas@extundo.com>
72993
72994         * modules/readline: New file.
72995
72996         * modules/strnlen (Files): Add strnlen.h.
72997
72998 2005-08-11  Simon Josefsson  <jas@extundo.com>
72999
73000         * m4/readline.m4: New file.
73001
73002 2005-08-11  Simon Josefsson  <jas@extundo.com>
73003
73004         * lib/readline.h, readline.c: New file.
73005
73006 2005-08-11  Simon Josefsson  <jas@extundo.com>
73007
73008         * doc/gnulib.texi (Initial import, Finishing touches): Mention
73009         gl_AVOID.
73010
73011 2005-08-11  Bruno Haible  <bruno@clisp.org>
73012
73013         * lib/strnlen.h (strnlen): Change parameter name to match comment.
73014
73015 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
73016
73017         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
73018
73019 2005-08-10  Simon Josefsson  <jas@extundo.com>
73020
73021         * tests/test-iconvme.c: New file.
73022
73023 2005-08-10  Simon Josefsson  <jas@extundo.com>
73024
73025         * m4/strnlen.m4: New file.
73026
73027         * m4/strndup.m4: Don't check for strnlen declaration, done in
73028         strnlen.m4.
73029
73030 2005-08-10  Simon Josefsson  <jas@extundo.com>
73031
73032         * lib/strndup.c: Use strnlen.h.
73033
73034         * lib/strnlen.h: New file.
73035
73036 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73037
73038         * README: Typos.
73039
73040 2005-08-02  Simon Josefsson  <jas@extundo.com>
73041
73042         * modules/readline: New file.
73043
73044 2005-08-02  Simon Josefsson  <jas@extundo.com>
73045
73046         * modules/getdelim: New file.
73047
73048         * modules/getline: Rewrite, don't use getndelim2.
73049
73050 2005-08-02  Simon Josefsson  <jas@extundo.com>
73051
73052         * m4/getline.m4: Separate out getdelim stuff into separate module.
73053
73054         * m4/getdelim.m4: New file.
73055
73056 2005-08-02  Simon Josefsson  <jas@extundo.com>
73057
73058         * lib/getline.h, getline.c: Rewrite.
73059
73060         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
73061
73062 2005-07-31  Bruno Haible  <bruno@clisp.org>
73063
73064         * lib/lock.h (gl_lock_initializer): New macro.
73065         (gl_lock_define_initialized): Use it.
73066         (gl_rwlock_initializer): New macro.
73067         (gl_rwlock_define_initialized): Use it.
73068         (gl_recursive_lock_initializer): New macro.
73069         (gl_recursive_lock_define_initialized): Use it.
73070
73071 2005-07-30  Karl Berry  <karl@gnu.org>
73072
73073         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
73074         Report from Ben Pfaff, regarding getopt.
73075
73076 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
73077
73078         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
73079         normal way.
73080         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
73081         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
73082         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
73083         (gl_GETOPT): Use the new macros.  Most of the implementation
73084         is moved to the new macros.  This is for programs like Emacs
73085         that don't want all the functionality of gl_GETOPT.
73086
73087 2005-07-26  Bruno Haible  <bruno@clisp.org>
73088
73089         * m4/lock.m4: Update from GNU gettext.
73090
73091 2005-07-26  Bruno Haible  <bruno@clisp.org>
73092
73093         * lib/lock.h: Update from GNU gettext.
73094         * lib/lock.c: Update from GNU gettext.
73095
73096 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
73097
73098         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
73099         obsolescent AC_TRY_RUN.  Include the default includes files, for
73100         'exit'.
73101
73102 2005-07-24  Bruno Haible  <bruno@clisp.org>
73103
73104         * modules/visibility: New file.
73105         * MODULES.html.sh (Misc): Add visibility.
73106
73107 2005-07-24  Bruno Haible  <bruno@clisp.org>
73108
73109         * m4/visibility.m4: New file.
73110
73111 2005-07-24  Bruno Haible  <bruno@clisp.org>
73112
73113         * doc/visibility.texi: New file.
73114
73115 2005-07-22  Bruno Haible  <bruno@clisp.org>
73116
73117         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
73118         $(ALLOCA_H), redundant through BUILT_SOURCES.
73119         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
73120         redundant through BUILT_SOURCES.
73121         * modules/byteswap (Makefile.am): Remove explicit dependency on
73122         $(BYTESWAP_H), redundant through BUILT_SOURCES.
73123         * modules/fnmatch (Makefile.am): Remove explicit dependency on
73124         $(FNMATCH_H), redundant through BUILT_SOURCES.
73125         * modules/getopt (Makefile.am): Remove explicit dependency on
73126         $(GETOPT_H), redundant through BUILT_SOURCES.
73127         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
73128         redundant through BUILT_SOURCES.
73129         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
73130         redundant through BUILT_SOURCES.
73131         * modules/stdbool (Makefile.am): Remove explicit dependency on
73132         $(STDBOOL_H), redundant through BUILT_SOURCES.
73133         * modules/stdint (Makefile.am): Remove explicit dependency on
73134         $(STDINT_H), redundant through BUILT_SOURCES.
73135         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
73136         Remove explicit dependency on $(SYSEXITS_H).
73137         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
73138
73139 2005-07-18  Simon Josefsson  <jas@extundo.com>
73140
73141         * lib/check-version.c (check_version): Accept identical versions too.
73142
73143 2005-07-18  Bruno Haible  <bruno@clisp.org>
73144
73145         * modules/lock: New file.
73146         * MODULES.html.sh (Multithreading): New section.
73147
73148 2005-07-18  Bruno Haible  <bruno@clisp.org>
73149
73150         * m4/lock.m4: New file, from GNU gettext.
73151
73152 2005-07-18  Bruno Haible  <bruno@clisp.org>
73153
73154         * lib/lock.h: New file, from GNU gettext.
73155         * lib/lock.c: New file, from GNU gettext.
73156
73157 2005-07-18  Bruno Haible  <bruno@clisp.org>
73158
73159         * lib/lock.h (gl_once_t): New type.
73160         (gl_once_define, gl_once): New macros.
73161         * lib/lock.c (fresh_once): New variable.
73162         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
73163         functions.
73164
73165 2005-07-16  Simon Josefsson  <jas@extundo.com>
73166
73167         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
73168         workaround, suggested by Bruno.
73169
73170 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73171
73172         * modules/xalloc (Depends-on): Add xalloc-die.
73173         * modules/xvasprintf (Depends-on): Add xalloc-die.
73174
73175 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73176
73177         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
73178         with a minor change.
73179
73180 2005-07-15  Bruno Haible  <bruno@clisp.org>
73181
73182         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
73183         When using lib/poll.c, define poll as rpl_poll.
73184
73185 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
73186
73187         * modules/argp (Depends-on): Remove unlocked-io.
73188
73189 2005-07-14  Derek Price  <derek@ximbiot.com>
73190
73191         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
73192         for glob symlink bug.
73193
73194 2005-07-14  Bruno Haible  <bruno@clisp.org>
73195
73196         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
73197         Instead, test for *_unlocked function declarations directly.
73198
73199 2005-07-11  Simon Josefsson  <jas@extundo.com>
73200
73201         * modules/size_max: New file.
73202
73203         * modules/xsize: Depend on size_max module for size_max.m4.
73204
73205 2005-07-11  Simon Josefsson  <jas@extundo.com>
73206
73207         * lib/size_max.h: New file.
73208
73209 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
73210
73211         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
73212         copyright symbol and the year.
73213         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
73214         (version_etc_va): Use parameterized copyright notice.
73215         Reword to conform to the current GNU coding standards.
73216
73217 2005-07-11  Karl Berry  <karl@gnu.org>
73218
73219         * doc/gnulib.texi (Quoting): new node.
73220         (Initial import): more info, from Patrice.
73221
73222 2005-07-11  Bruno Haible  <bruno@clisp.org>
73223
73224         * gnulib-tool (func_usage): Document option --avoid.
73225         (Command line options): Handle --avoid.
73226         (func_acceptable): New function.
73227         (func_modules_transitive_closure): Use it.
73228
73229 2005-07-11  Bruno Haible  <bruno@clisp.org>
73230
73231         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
73232         Reported by Jim Meyering.
73233
73234 2005-07-10  Bruno Haible  <bruno@clisp.org>
73235
73236         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
73237         Needed when size_t is smaller than 'unsigned int'.
73238         Reported by Paul Eggert.
73239
73240 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73241
73242         * modules/argp (Depends-on): Add unlocked-io
73243
73244 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73245
73246         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
73247         block of defines.
73248
73249 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73250
73251         * config/srclist.txt: Comment out regcomp.c, since we have a porting
73252         fix now.
73253
73254 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73255         and Paul Eggert  <eggert@cs.ucla.edu>
73256
73257         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73258         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73259
73260 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73261
73262         * modules/regex (Files): Add lib/regex_internal.c,
73263         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73264         (Depends-on): Add extensions.
73265         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73266
73267 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73268
73269         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73270         pathconf.
73271         * m4/same.m4 (gl_SAME): Likewise.
73272         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73273
73274         * m4/regex.m4: Adjust to new libc regex implementation.
73275         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73276         all the .c and .h parts of (the new) regex.
73277         Quote the m4 stuff better.
73278         Check for RE_ICASE bug of old gnulib.
73279         Check for REG_STARTEND of recent libc.
73280         Rename local variables from jm_* to gl_*.
73281         Quote operand of "test -f".
73282         Say "recent enough" version of libc, not "version 2".
73283         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73284         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73285         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73286         Remove check for btowc, isascii.
73287         Require AM_LANGINFO_CODESET.
73288
73289 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73290
73291         * lib/regex.c, regex.h: Sync from libc.
73292         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73293         * lib/regexec.c:
73294         New files, synced from libc, except that regex_internal.h
73295         currently has a small porting fix.
73296
73297 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73298
73299         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73300         regex_internal.c, regexec.c.
73301         Add regex_internal.h too, but as a comment, since the libc version
73302         is currently broken in gnulib mode.
73303
73304 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73305
73306         Support programs like Emacs that use gnulib but not gettext.
73307         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73308         * modules/gettext-h: New file.
73309         * modules/gettext (Files): Remove lib/gettext.h.
73310         (Depends-on): Add gettext-h.
73311         (Makefile.am): Remove lib_SOURCES.
73312         * modules/argmatch, modules/c-stack, modules/closeout:
73313         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73314         * modules/execute, modules/file-type, modules/getaddrinfo:
73315         * modules/getopt, modules/human, modules/javacomp:
73316         * modules/javaexec, modules/mkdir-p, modules/obstack:
73317         * modules/openat, modules/pagealign_alloc, modules/pipe:
73318         * modules/quotearg, modules/regex, modules/rpmatch:
73319         * modules/unicodeio, modules/userspec, modules/version-etc:
73320         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73321         * modules/xsetenv:
73322         Depend on gettext-h, not gettext.
73323
73324 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73325
73326         * gnulib-tool (func_import): Add support for 'public domain' license.
73327         * modules/alloca, modules/atexit, modules/memmove:
73328         Now public domain, not GPL.
73329         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73330         * modules/realloc, modules/strerror, modules/strtod:
73331         Now LGPL, not GPL.
73332
73333 2005-07-05  Bruno Haible  <bruno@clisp.org>
73334
73335         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73336         autoconf CVS. Needed for mingw.
73337
73338 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73339
73340         Remove the dependency of the strftime module on the tzset module.
73341         * modules/strftime (Depends-on): Remove dependency on tzset.
73342
73343 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73344
73345         Remove the dependency of the strftime module on the tzset module.
73346         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73347         gl_FUNC_TZSET_CLOBBER.
73348
73349 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73350
73351         Remove the dependency of the strftime module on the tzset module.
73352         * lib/strftime.c (my_strftime)
73353         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73354         Copy the input structure, to work around some of the bug with
73355         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73356         Solaris releases, you should also use the tzset module, but we won't
73357         require it as a dependency any more since we don't want LGPLed code
73358         to depend on GPLed code.
73359
73360 2005-07-02  Jim Meyering  <jim@meyering.net>
73361
73362         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73363         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73364         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73365         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73366
73367 2005-07-02  Jim Meyering  <jim@meyering.net>
73368
73369         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73370
73371 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73372
73373         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73374         declares only 'struct timespec;' (!).
73375
73376 2005-07-01  Jim Meyering  <jim@meyering.net>
73377
73378         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73379         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73380         * lib/save-cwd.c, tempname.c:
73381         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73382         and don't include <sys/file.h>).
73383
73384 2005-06-29  Jim Meyering  <jim@meyering.net>
73385
73386         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73387         type name.  Use the variable name instead.
73388         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73389         Likewise.
73390
73391 2005-06-28  Simon Josefsson  <jas@extundo.com>
73392
73393         * modules/check-version (Files): Add check-version.m4.
73394
73395 2005-06-28  Simon Josefsson  <jas@extundo.com>
73396
73397         * m4/check-version.m4: New file, suggested by Jim Meyering
73398         <jim@meyering.net>.
73399
73400 2005-06-28  Simon Josefsson  <jas@extundo.com>
73401
73402         * lib/check-version.h, lib/check-version.c: New files.
73403
73404 2005-06-28  Simon Josefsson  <jas@extundo.com>
73405
73406         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
73407         collision with global variable.  Better indentation.  Don't
73408         increment buffer pointer beyond buffer end.  Based on comments
73409         from Paul Eggert <eggert@cs.ucla.edu>.
73410
73411         * lib/base64.h: Indent.
73412
73413 2005-06-28  Simon Josefsson  <jas@extundo.com>
73414
73415         * doc/gnulib.texi (Library version handling): New section.
73416
73417 2005-06-28  Jim Meyering  <jim@meyering.net>
73418
73419         * check-module (find_included_lib_files): Hard-code another
73420         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
73421         but modules/fts-lgpl (correctly) does not list those files.
73422
73423         * modules/canonicalize (Files): Add lib/pathmax.h.
73424
73425 2005-06-25  Simon Josefsson  <jas@extundo.com>
73426
73427         * modules/check-version: New file.
73428
73429 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
73430
73431         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
73432         initializer of struct addrinfo, as an indication that we don't
73433         care how many members the structure has.
73434
73435 2005-06-24  Derek Price  <derek@ximbiot.com>
73436         and Bruno Haible  <bruno@clisp.org>
73437
73438         Remove stat module & update lstat.
73439         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
73440         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73441         * m4/stat.m4: Remove this file.
73442
73443 2005-06-24  Derek Price  <derek@ximbiot.com>
73444         and Bruno Haible  <bruno@clisp.org>
73445
73446         Remove stat module & update lstat.
73447         * lib/stat.c: Remove this file...
73448         (slash_aware_lstat): ...moving this content and its support...
73449         * lib/lstat.c (rpl_lstat): ...into here.
73450         * lib/lstat.h: New file.
73451
73452 2005-06-24  Derek Price  <derek@ximbiot.com>
73453         and Bruno Haible  <bruno@clisp.org>
73454
73455         Remove stat module & update lstat.
73456         * config/srclist.txt (libc sources): Remove stat.
73457
73458 2005-06-24  Derek Price  <derek@ximbiot.com>
73459         and Bruno Haible  <bruno@clisp.org>
73460
73461         Remove stat module & update lstat.
73462         * MODULES.html.sh (stat): Remove.
73463         * MODULES.html: Regenerated.
73464         * modules/lstat (Description): Correct function name.
73465         (Files): Add "lstat.h".
73466         (Depends-on): Remove stat, add xalloc, stat-macros.
73467         * modules/stat: Remove this file.
73468         (Include): Add "lstat.h", remove <sys/stat.h>.
73469
73470 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
73471
73472         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
73473         (ranged_convert): Don't save conversion in a temporary struct.
73474         This causes a warning with GCC 4.0.0, and anyway in the typical
73475         case it's not worth the extra 100 bytes or so of code.
73476         (ranged_convert, __mktime_internal): When calling a function via a
73477         pointer P, use P () rather than (*P) (), as we now assume C89 or
73478         better.
73479
73480 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73481
73482         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73483         "who -r" failed to give output.  Problem reported by Tim Waugh.
73484
73485         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73486         (xcalloc): Use it to avoid needless tests.
73487         Problem reported by Jim Meyering.
73488
73489 2005-06-20  Derek Price  <derek@ximbiot.com>
73490
73491         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73492         unnecessary for Autoconfs > 2.59c.
73493
73494 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73495
73496         * lib/argp.h (__option_is_short): Check upper limit of
73497         __key. Isprint() requires its argument to have the value
73498         of an unsigned char or EOF.
73499
73500 2005-06-16  Jim Meyering  <jim@meyering.net>
73501
73502         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73503         when either N or S is zero.
73504
73505 2005-06-16  Derek Price  <derek@ximbiot.com>
73506
73507         * m4/bison.m4: Declare YACC & YFLAGS precious.
73508
73509 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73510
73511         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73512         multibyte string or pattern, fall back on unibyte matching.
73513         Problem reported by James Youngman.
73514
73515 2005-06-08  Bruno Haible  <bruno@clisp.org>
73516
73517         * modules/csharpcomp: New file.
73518         * MODULES.html.sh (C#): Add csharpcomp.
73519
73520 2005-06-08  Bruno Haible  <bruno@clisp.org>
73521
73522         * m4/csharpcomp.m4: New file, from GNU gettext.
73523
73524 2005-06-08  Bruno Haible  <bruno@clisp.org>
73525
73526         * lib/csharpcomp.h: New file, from GNU gettext.
73527         * lib/csharpcomp.c: New file, from GNU gettext.
73528         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73529
73530 2005-06-08  Bruno Haible  <bruno@clisp.org>
73531
73532         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73533         warning on mingw.
73534
73535 2005-06-07  Derek Price  <derek@ximbiot.com>
73536
73537         Sync from CVS.
73538         * lib/glob_.h: Indent nested #ifdef.
73539
73540 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         Sync from coreutils.
73543         Use "file name" when talking about file names, instead of "filename"
73544         or "path", as per the GNU coding standards.
73545         * lib/mkdir-p.c: Renamed from makepath.c.
73546         (make_dir_parents): Renamed from make_path.  All callers changed.
73547         * lib/mkdir-p.h: Likewise.  All includers changed.
73548         * lib/filenamecat.c: Renamed from path-concat.c.
73549         (file_name_concat): Renamed from path_concat.  All callers changed.
73550         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73551         * lib/filenamecat.h: Likewise.  All includers changed.
73552         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73553         in comments or local variable names.
73554         * lib/basename.c: Likewise.
73555         * lib/canonicalize.c, canonicalize.h: Likewise.
73556         * lib/dirname.c, dirname.h: Likewise.
73557         * lib/euidaccess.c: Likewise.
73558         * lib/exclude.c: Likewise
73559         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73560         * lib/fsusage.c, fsuage.h: Likewise.
73561         * lib/fts.c, fts_.h: Likewise.
73562         * lib/getcwd.c: Likewise.
73563         * lib/getloadavg.c: Likewise.
73564         * lib/mkstemp.c: Likewise.
73565         * lib/mountlist.c, mountlist.h: Likewise.
73566         * lib/openat.c, openat.h: Likewise.
73567         * lib/readlink-stub.c: Likewise.
73568         * lib/readutmp.c, readutmp.h: Likewise.
73569         * lib/rename.c: Likewise.
73570         * lib/rmdir.c: Likewise.
73571         * lib/same.c: Likewise.
73572         * lib/savedir.c: Likewise.
73573         * lib/stripslash.c: Likewise.
73574         * lib/tempname.c: Likewise.
73575         * lib/xreadlink.c: Likewise.
73576         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73577         All uses changed.
73578         * lib/exclude.h: Likewise.
73579
73580         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73581         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73582         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73583         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73584         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73585         files have been getting away with it for years (MORE/BSD 4.3
73586         is extinct now).
73587         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73588         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73589
73590         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73591         Define to 256, not 255, as per modern POSIX.
73592
73593 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73594
73595         Sync from coreutils.
73596         Use "file name" when talking about file names, instead of "filename"
73597         or "path", as per the GNU coding standards.
73598         * MODULES.html.sh: mkdir-p renamed from makepath.
73599         filenamecat renamed from path-concat.
73600         * modules/filenamecat: Renamed from modules/path-concat.
73601         (Files): filenamecat.h and filenamecat.c renamed from
73602         path-concat.h and path-concat.c.
73603         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73604         (Include): filenamecat.h, not path-concat.h.
73605         * modules/mkdir-p: Renamed from modules/makepath.
73606         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73607         makepath.c.
73608         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73609         (Include): mkdir-p.h, not makepath.h.
73610
73611 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73612
73613         Sync from coreutils.
73614         * m4/mkdir-p.m4: Renamed from makepath.m4.
73615         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73616         Rename files from makepath.c to mkdir-p.c, and from
73617         makepath.h to mkdir-p.h.
73618         * m4/filenamecat.m4: Renamed from path-concat.m4.
73619         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73620         Rename files from path-concat.c to filenamecat.c,
73621         and from path-concat.h to filenamecat.h.
73622         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73623         "file name" in local variables or comments.
73624         * m4/rename.m4: Likewise.
73625
73626 2005-06-01  Bruno Haible  <bruno@clisp.org>
73627
73628         * modules/csharpexec: New file.
73629         * MODULES.html.sh (C#): New section.
73630
73631 2005-06-01  Bruno Haible  <bruno@clisp.org>
73632
73633         * m4/csharp.m4: New file, from GNU gettext.
73634         * m4/csharpexec.m4: New file, from GNU gettext.
73635
73636 2005-06-01  Bruno Haible  <bruno@clisp.org>
73637
73638         * lib/csharpexec.h: New file, from GNU gettext.
73639         * lib/csharpexec.c: New file, from GNU gettext.
73640         * lib/csharpexec.sh.in: New file, from GNU gettext.
73641
73642 2005-05-31  Derek Price  <derek@ximbiot.com>
73643             Paul Eggert  <eggert@cs.ucla.edu>
73644
73645         Sync from cvs.
73646         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73647
73648 2005-05-31  Derek Price  <derek@ximbiot.com>
73649             Paul Eggert  <eggert@cs.ucla.edu>
73650
73651         Sync from cvs.
73652         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73653
73654 2005-05-29  Derek Price  <derek@ximbiot.com>
73655
73656         * config/srclist.txt (glob_.h, glob.c): Add these files.
73657
73658 2005-05-29  Derek Price  <derek@ximbiot.com>
73659
73660         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73661         * modules/glob: New file.
73662         * modules/getlogin_r: Add link to POSIX spec in description.
73663
73664 2005-05-29  Derek Price  <derek@ximbiot.com>
73665             Paul Eggert  <eggert@cs.ucla.edu>
73666
73667         * m4/glob.m4: New file.
73668
73669 2005-05-29  Derek Price  <derek@ximbiot.com>
73670             Paul Eggert  <eggert@cs.ucla.edu>
73671
73672         * lib/glob_.h, lib/glob.c: New files.
73673
73674 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73675
73676         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73677         * modules/fts-lgpl (Depends-on): Remove gettext.
73678
73679 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73680
73681         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73682         and don't require gt_INTTYPES_PRI.
73683
73684 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73685
73686         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73687
73688         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73689         the configuration hassle isn't worth it.
73690         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73691         (LONGEST_MODIFIER, PRIuMAX): Remove.
73692
73693 2005-05-27  Bruno Haible  <bruno@clisp.org>
73694
73695         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73696
73697 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73698
73699         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73700         _POSIX_PTHREAD_SEMANTICS for Solaris.
73701
73702 2005-05-25  Derek Price  <derek@ximbiot.com>
73703
73704         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73705
73706 2005-05-25  Derek Price  <derek@ximbiot.com>
73707             Paul Eggert  <eggert@cs.ucla.edu>
73708
73709         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73710         * lib/getlogin_r.c, getlogin_r.h: New files.
73711
73712 2005-05-25  Bruno Haible  <bruno@clisp.org>
73713             Derek Price  <derek@ximbiot.com>
73714
73715         * lib/getlogin_r.h: Simplify API documentation.
73716
73717 2005-05-23  Derek Price  <derek@ximbiot.com>
73718
73719         * modules/minmax (Files): Add m4/minmax.m4.
73720         (configure.ac): Add gl_MINMAX.
73721
73722 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73723
73724         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73725         so that unistd-safer.h (GPL'ed code) need not be included.
73726
73727 2005-05-22  Bruno Haible  <bruno@clisp.org>
73728
73729         * m4/minmax.m4: New file.
73730         Based on a patch by Derek Price <derek@ximbiot.com>.
73731
73732 2005-05-22  Bruno Haible  <bruno@clisp.org>
73733
73734         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73735         (INT64_MIN): Fix definition.
73736         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73737
73738         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73739         NEED_SIGNED_INT_TYPES.
73740
73741         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73742         HAVE_SYSTEM_INTTYPES.
73743
73744 2005-05-22  Bruno Haible  <bruno@clisp.org>
73745
73746         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73747         Also include <sys/param.h> if it defines MIN, MAX.
73748         Based on a patch by Derek Price <derek@ximbiot.com>.
73749
73750 2005-05-21  Jim Meyering  <jim@meyering.net>
73751
73752         * modules/fts (Files): Add m4/inttypes-pri.m4.
73753         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73754
73755 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         New fts module.
73758         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73759         (setup_dir, free_dir): New functions.
73760         (enter_dir, leave_dir): Define trivial
73761         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73762         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73763         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73764         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73765         Move to fts-cycle.c.
73766         (fts_open): Use setup_dir.
73767         (fts_close): Use free_dir.
73768         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73769         This adds a label and some gotos, but the alternatives were messier.
73770         Check for memory allocation failure when entering a dir.
73771         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73772         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73773         (FTS): New member fts_cycle, that is a union that contains the
73774         old active_dir_ht and cycle_state.  All uses changed to mention
73775         fts_cycle.ht and fts_cycle.state.
73776         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73777         fts.c, with the following changes:
73778         (setup_dir, free_dir): New functions.
73779         (enter_dir): Now returns bool.  Return true if successful, false
73780         if memory exhausted.  All callers changed.
73781         Do not bother partly cleaning up on
73782         memory allocation failure; that is free_dir's job.
73783         However, free ad if hash_insert fails, to avoid memory leak.
73784         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73785         fts->fts_options to see which union member to use.
73786
73787 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73788
73789         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73790         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73791
73792 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73793
73794         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73795
73796 2005-05-20  Jim Meyering  <jim@meyering.net>
73797
73798         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73799         Now a macro, to pacify GCC.
73800
73801 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73802
73803         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73804         of -1.
73805
73806 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73807
73808         * lib/chown.c (rpl_chown): Return -1 on failure.
73809
73810 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73811
73812         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73813         Don't check for stddef.h.
73814         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73815         don't use its results.
73816         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73817         since we include them unconditionally.  Don't require
73818         AM_STDBOOL_H, since stdbool is a prerequisite.
73819         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73820         since we assume C89 or better.
73821         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73822         as we don't use their results.
73823         Don't check for fchdir, memmove, memset, strrchr, as we use
73824         them unconditionally.
73825         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73826         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73827
73828 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73829
73830         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73831         Include <stddef.h> unconditionally, since we assume C89 now.
73832         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73833         * lib/fts.c: Include fts_.h first, to check interface.
73834         Do not include intprops.h; no longer needed.
73835         Include cycle-check.h and hash.h, since fts_.h no longer does.
73836         Remove unnecessary casts of closedir to void.
73837         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73838         decide whether to decrement nlinks.
73839         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73840         (FTS): Use struct hash_table * instead of Hash_table, so that
73841         we no longer need to include hash.h here.
73842
73843 2005-05-18  Jim Meyering  <jim@meyering.net>
73844
73845         * modules/dirfd (License): Change to LGPL.  Most of the code
73846         is already in the public domain.
73847
73848 2005-05-18  Jim Meyering  <jim@meyering.net>
73849
73850         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73851         Reported by Yoann Vandoorselaere.
73852
73853 2005-05-17  Jim Meyering  <jim@meyering.net>
73854
73855         * m4/fts.m4: New file, from coreutils.
73856
73857 2005-05-17  Jim Meyering  <jim@meyering.net>
73858
73859         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73860
73861 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73862
73863         Sync from coreutils.
73864         * m4/unlinkdir.m4: New file.
73865
73866 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73867
73868         Sync from coreutils.
73869         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73870         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73871         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73872         White space changes only.
73873         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73874         special.
73875         * lib/yesno.c: Include getline.h, not ctype.h.
73876         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73877         Use getline to remove arbitrary restriction on response length.
73878
73879 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73880
73881         * config/srclist-update: Spell out "Street" in FSF postal
73882         mail address; this is the style the FSF seems to prefer.
73883
73884         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73885         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73886         this updates FSF postal mail address.
73887
73888         Sync from coreutils.
73889         * modules/unlinkdir: New file.
73890         * modules/yesno (Depends-on): Add getline.
73891         * MODULES.html.sh (File system functions): Add unlinkdir.
73892
73893 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73894
73895         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73896         lib/strsep.h:
73897         Change the initial comment to refer to GPL, not LGPL.
73898         gnulib-tool will change it to LGPL as needed.
73899
73900         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73901         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73902         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73903         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73904         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73905         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73906         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73907         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73908         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73909         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73910         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73911         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73912         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73913         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73914         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73915         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73916         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73917         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73918         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73919         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73920         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73921         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73922         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73923         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73924         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73925         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73926         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73927         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73928         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73929         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73930         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73931         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73932         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73933         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73934         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73935         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73936         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73937         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73938         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73939         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73940         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73941         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73942         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73943         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73944         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73945         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73946         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73947         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73948         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73949         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73950         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73951         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73952         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73953         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73954         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73955         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73956         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73957         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73958         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73959         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73960         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73961         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73962         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73963         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73964         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73965         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73966         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73967         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73968         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73969         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73970         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73971         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73972         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73973         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73974         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73975         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73976         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73977         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73978         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73979         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73980         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73981         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73982         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73983         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73984         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73985         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73986         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73987         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73988         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73989         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73990         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73991         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73992         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73993         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73994         lib/yesno.c, lib/yesno.h:
73995         Update FSF postal mail address.
73996
73997 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73998
73999         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
74000         tests/test-memmem.c, tests/test-stpncpy.c:
74001         Update FSF postal mail address.
74002
74003 2005-05-13  Bruno Haible  <bruno@clisp.org>
74004
74005         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
74006         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
74007         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
74008         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
74009         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
74010         Add support for 64-bit integers in the MSVC compiler.
74011
74012 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74013
74014         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
74015
74016 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
74017
74018         * gnulib-tool (func_import): Sort and uniquify recommended includes.
74019
74020 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
74021
74022         * doc/getdate.texi (General date syntax): Don't say that date
74023         date --iso-8601=ns generates acceptable dates; it doesn't yet.
74024         Problem reported by Nic Ferrier.
74025
74026 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74027
74028         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
74029         specified in ai_socktype. Fix invalid ai_protocol
74030         check. ai_protocol is usually set to 0 or depending on
74031         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
74032         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
74033         ai_socktype / ai_protocol in the returned addrinfo structure.
74034
74035 2005-05-10  Simon Josefsson  <jas@extundo.com>
74036
74037         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
74038         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74039
74040 2005-05-10  Karl Berry  <karl@gnu.org>
74041
74042         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
74043         (from http://www.gnu.org/licenses).
74044         * doc/COPYING.LIB: also rename to COPYING.LESSER.
74045         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
74046         fdl.texi suffices.
74047
74048 2005-05-10  Karl Berry  <karl@gnu.org>
74049
74050         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
74051         (COPYING.DOC): remove.
74052
74053         * config/srclist-update: new FSF address.
74054
74055 2005-05-10  Derek Price  <derek@ximbiot.com>
74056
74057         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
74058         possible.
74059
74060 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74061             Bruno Haible  <bruno@clisp.org>
74062
74063         * modules/inet_ntop: New file.
74064         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74065         inet_ntop.
74066
74067 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74068             Bruno Haible  <bruno@clisp.org>
74069
74070         * m4/inet_ntop.m4: New file.
74071
74072 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74073             Bruno Haible  <bruno@clisp.org>
74074
74075         * lib/inet_ntop.h: New file.
74076         * lib/inet_ntop.c: New file, from glibc with modifications.
74077
74078 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
74079
74080         * modules/time_r (License): Change to LGPL.
74081         * modules/extensions (License): Change to LGPL.  Actually,
74082         the license is more permissive than that, but currently gnulib-tool
74083         doesn't know how to handle more-permissive licenses.
74084
74085         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
74086         Problem reported by Dave Love.
74087
74088 2005-05-08  Jim Meyering  <jim@meyering.net>
74089
74090         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
74091         blank.
74092
74093 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74094
74095         * modules/argmatch (Depends-on): Add stdbool.
74096         * modules/backupfile (Depends-on): Likewise.
74097         * modules/chdir-long (Depends-on): Likewise.
74098         * modules/closeout (Depends-on): Likewise.
74099         * modules/cycle-check (Depends-on): Likewise.
74100         * modules/dirname (Depends-on): Likewise.
74101         * modules/fnmatch (Depends-on): Likewise.
74102         * modules/fsusage (Depends-on): Likewise.
74103         * modules/fwriteerror (Depends-on): Likewise.
74104         * modules/getcwd (Depends-on): Likewise.
74105         * modules/getloadavg (Depends-on): Likewise.
74106         * modules/hard-locale (Depends-on): Likewise.
74107         * modules/makepath (Depends-on): Likewise.
74108         * modules/mountlist (Depends-on): Likewise.
74109         * modules/nanosleep (Depends-on): Likewise.
74110         * modules/posixtm (Depends-on): Likewise.
74111         * modules/quotearg (Depends-on): Likewise.
74112         * modules/readtokens (Depends-on): Likewise.
74113         * modules/readtokens0 (Depends-on): Likewise.
74114         * modules/readutmp (Depends-on): Likewise.
74115         * modules/save-cwd (Depends-on): Likewise.
74116         * modules/strftime (Depends-on): Likewise.
74117         * modules/userspec (Depends-on): Likewise.
74118         * modules/utimecmp (Depends-on): Likewise.
74119         * modules/xgetcwd (Depends-on): Likewise.
74120         * modules/xnanosleep (Depends-on): Likewise.
74121         * modules/xstrtod (Depends-on): Likewise.
74122         * modules/yesno (Depends-on): Likewise.
74123
74124 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
74125
74126         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
74127         needless checks.
74128
74129 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74130
74131         Merge from coreutils.  Among other things,
74132         add bulletproofing for cases where stdin, stdout, or stderr are closed.
74133         * lib/fd-safer.c: New file.
74134         * lib/fcntl-safer.h, open-safer.c: Remove.
74135         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
74136         * lib/dup-safer.c: Include unistd-safer.h first.
74137         Don't include errno.h.
74138         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
74139         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
74140         * lib/file-type.c: Rely on file-type.h change.
74141         * lib/getloadavg.c: Include unistd-safer.h.
74142         (getloadavg): Use safer open.
74143         * lib/getusershell.c: Include "stdio-safer.h".
74144         (getusershell): Use safer fopen.
74145         * lib/long-options.c (long_options): Use NULL rather than 0.
74146         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
74147         'free'.
74148         * lib/modechange.c: Likewise.
74149         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
74150         (MODE_DONE): New constant.
74151         (struct mode_change): Remove 'next' member.
74152         (make_node_op_equals): New function; like the old one of the
74153         same name, except it allocates an array.
74154         (mode_compile, mode_create_from_ref): Use it.
74155         (mode_compile): Allocate result as an array, not a linked list.
74156         Parse octal string ourself, so that we catch mistakes like "+0".
74157         (mode_adjust): Arg is an array, not a linked list.
74158         * lib/modechange.c: Include stat-macros.h, xalloc.h.
74159         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
74160         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
74161         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
74162         Remove.  This is now stat-macros.h's job.
74163         (talloc): Remove.  All callers replaced by xalloc, so that
74164         our invokers don't have to worry about reporting memory failures.
74165         (make_node_op_equals): Remove.
74166         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74167         New constants.
74168         (struct mode_change): Moved here from modechange.h.
74169         (mode_append_entry): Remove.
74170         (mode_compile): Remove MASKED_OPS arg, since it encouraged
74171         apps to have incorrect behavior.  Use simpler algorithm for head
74172         and tail.  Don't futz with umask; that's now the job of mode_adjust.
74173         Detect more invalid usages rather than having somewhat-random behavior.
74174         Don't insert an "a=" action, as that leads to incorrect behavior.
74175         (mode_compile, mode_create_from_ref): Return NULL on error instead
74176         of an enum, since now there's only one way to have an error.  All
74177         callers changed.
74178         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
74179         at the correct time.  Simplify calculation of "+u" and its ilk.
74180         Don't mishandle "+X".
74181         (mode_free): Remove "register" and localize decls.
74182         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74183         (struct mode_change): Move to modechange.c; callers don't
74184         need to see this stuff.
74185         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
74186         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
74187         (mode_change, mode_adjust): Reflect the new signatures noted above.
74188         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
74189         that might redefine system include files.
74190         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
74191         (my_usleep): Use NULL rather than (void *) 0.
74192         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
74193         Use siginterrupt to specify that system calls should be interrupted.
74194         (rpl_nanosleep): Move initialization of suspended closer to call of
74195         my_usleep.
74196         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
74197         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
74198         (desirable_utmp_entry): New function.
74199         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
74200         using x2nrealloc, to simplify logic.
74201         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
74202         size calculation.  Do not assume utmp file is a regular file.
74203         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
74204         (READ_UTMP_CHECK_PIDS): New constant.
74205         * lib/save-cwd.c: Include unistd-safer.h.
74206         (save_cwd): Use fd_safer.
74207         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
74208         [!_LIBC] Include "stat-macros.h" instead.
74209         * lib/unistd-safer.h (fd_safer): New decl.
74210
74211 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74212
74213         * modules/getloadavg (Depends-on): Add unistd-safer.
74214         * modules/getusershell (Depends-on): Add stdio-safer.
74215         * modules/lstat (Depends-on): Remove xalloc.
74216         * modules/mkstemp (Depends-on): Add stat-macros.
74217         * modules/modechange (Depends-on): Remove xstrtol.
74218         Add stat-macros, xalloc.
74219         * modules/save-cwd (Depends-on): Add unistd-safer.
74220         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
74221         * modules/unistd-safer (Files): Add lib/fd-safer.c
74222         (Makefile.am): Remove lib_SOURCES.
74223
74224         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
74225         Remove fcntl-safer; unistd-safer supersedes it.
74226
74227 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74228
74229         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
74230         AC_HEADER_STAT.
74231         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
74232         (gl_PREREQ_CHOWN): Remove.
74233         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
74234         it.  Don't require AC_HEADER_STAT.
74235         (gl_PREREQ_LSTAT): Remove.
74236         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
74237         Don't require AC_HEADER_STAT.
74238         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
74239         (gl_PREREQ_RMDIR): Remove.
74240         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
74241         mention stat-macros.h or AC_HEADER_STAT, since we'll make
74242         the stat-macros module a prerequisite.
74243         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
74244         * m4/filemode.m4 (gl_FILEMODE): Likewise.
74245         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
74246         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
74247         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
74248         variable names.
74249         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
74250         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
74251         variable prefixes.
74252         * m4/fcntl-safer.m4: Remove.
74253         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74254         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74255         Invoke gl_PREREQ_FD_SAFER.
74256         (gl_PREREQ_FD_SAFER): New macro.
74257         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74258         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74259         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74260         Remove duplicate call to AC_LIBOBJ(readutmp).
74261         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74262
74263         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74264         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74265
74266 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74267
74268         * MODULES.html.sh (Misc): Add byteswap.
74269
74270 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74271
74272         * modules/getcwd (Depends-on): Add extensions.
74273         * modules/openat (Depends-on): Likewise.
74274
74275 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74276
74277         * modules/byteswap: New file.
74278
74279 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74280
74281         * m4/byteswap.m4: New file.
74282
74283 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74284
74285         * lib/byteswap_.h: New file.
74286
74287 2005-04-25  Karl Berry  <karl@gnu.org>
74288
74289         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74290
74291 2005-04-25  Albert Chin  <china@thewrittenword.com>
74292
74293         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74294         Toolkit C bug.
74295
74296 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74297
74298         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74299         (func_ln_if_changed): Remove forcibly for no error message
74300         in case file does not exist.
74301
74302 2005-04-19  Simon Josefsson  <jas@extundo.com>
74303
74304         * gnulib-tool (Options): Make --symlink mean --symbolic.
74305
74306 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74307
74308         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74309
74310 2005-04-16  Simon Josefsson  <jas@extundo.com>
74311
74312         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74313
74314 2005-04-15  Simon Josefsson  <jas@extundo.com>
74315
74316         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74317
74318 2005-04-15  Simon Josefsson  <jas@extundo.com>
74319
74320         * gnulib-tool: Rename --symlink to --symbolic.
74321
74322 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74323
74324         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74325         symbolic links to files instead of copying/moving.  Add --aux-dir,
74326         specifying directory relative --dir where auxiliary build tools
74327         are placed.
74328
74329 2005-04-14  Bruno Haible  <bruno@clisp.org>
74330
74331         * modules/allocsa (License): Change to LGPL.
74332         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74333
74334 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74335
74336         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74337         that "UTC +1 second" continues to work.  Problem reported
74338         by Dmitry V. Levin.
74339         (relunit_snumber): New rule.
74340         (relunit): Use it.
74341
74342 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74343
74344         * lib/getdate.y (universal_time_zone_table): New constant.
74345         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74346         universal_time_zone_table.
74347         (lookup_zone): Prefer universal_time_zone_table to
74348         local_time_zone_table, so that "GMT" time stamps are allowed in
74349         London during the summer.  Problem reported by Ian Abbott.
74350
74351 2005-04-12  Jim Meyering  <jim@meyering.net>
74352
74353         * lib/human.c (humblock): Set *options even when returning due to
74354         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74355         warning from gcc-4.
74356
74357 2005-04-09  Jim Meyering  <jim@meyering.net>
74358
74359         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74360         -Wuninitialized: initialize tm0.tm_year.
74361
74362 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74363
74364         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74365         count, since there's no maximum.  All uses changed.
74366         Add member dsts_seen.
74367         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74368         not being INT_MAX.
74369         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74370         Use pc_rels_seen to decide whther a date is absolute.
74371
74372         * lib/getdate.y (number): Don't overwrite year.
74373         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74374         check.
74375
74376 2005-04-02  Simon Josefsson  <jas@extundo.com>
74377
74378         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74379         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74380
74381 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74382
74383         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74384         where no absolute path name can be longer than PATH_MAX.
74385
74386 2005-03-27  Jim Meyering  <jim@meyering.net>
74387
74388         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74389
74390 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74391
74392         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74393         "one's complement" -> "ones' complement" in comment, as per Knuth.
74394         "value of type" -> "type or expression" in comment.
74395         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74396
74397 2005-03-26  Jim Meyering  <jim@meyering.net>
74398
74399         Comment nits.
74400         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
74401         Correct typos: s/or/of/.
74402
74403 2005-03-26  Jim Meyering  <jim@meyering.net>
74404
74405         * modules/check-include-files: Move to ../ and rename to...
74406         * check-module: ...this.
74407
74408 2005-03-25  Jim Meyering  <jim@meyering.net>
74409
74410         * modules/xvasprintf (Files): Add xalloc.h.
74411
74412 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
74413
74414         * modules/gettext (Files): config/config.rpath ->
74415         build-aux/config.rpath
74416         * modules/iconv (Files): Likewise.
74417         Problem reported by Oskar Liljeblad.
74418
74419 2005-03-23  Jim Meyering  <jim@meyering.net>
74420
74421         * modules/check-include-files: New script to check for
74422         missing dependencies, multiple includes, etc.
74423
74424         * modules/c-strtold (Depends-on): Add xalloc.
74425         * modules/c-strtod (Depends-on): Add xalloc.
74426         * modules/hash (Depends-on): Add xalloc.
74427         (Files): Remove lib/xalloc.h.
74428
74429         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
74430         * modules/userspec (Files): Add lib/inttostr.h.
74431
74432 2005-03-23  Jim Meyering  <jim@meyering.net>
74433
74434         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
74435
74436 2005-03-22  Jim Meyering  <jim@meyering.net>
74437
74438         * modules/stat-macros: New module.
74439         * modules/canonicalize, modules/euidaccess, modules/file-type,
74440         * modules/filemode, modules/lchown, modules/makepath,
74441         * modules/rmdir, modules/stat: Depend on new stat-macros module
74442         rather than listing lib/stat-macros.h manually.
74443         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
74444
74445 2005-03-22  Jim Meyering  <jim@meyering.net>
74446
74447         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
74448
74449 2005-03-22  Bruno Haible  <bruno@clisp.org>
74450
74451         * config/srclist.txt: Replace target directory 'config' with
74452         'build-aux'.
74453         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
74454         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
74455         ../build-aux/.
74456
74457 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
74458
74459         * modules/chdir-long (Depends-on): Add mempcpy.
74460
74461         * modules/acl, modules/backupfile, modules/c-strtod,
74462         modules/c-strtold, modules/canon-host, modules/canonicalize,
74463         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
74464         modules/exclude, modules/exitfail, modules/file-type,
74465         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
74466         modules/getdate, modules/getline, modules/getpagesize,
74467         modules/getpass, modules/getugroups, modules/group-member,
74468         modules/hard-locale, modules/hash, modules/human, modules/idcache,
74469         modules/inttostr, modules/long-options, modules/makepath,
74470         modules/md5, modules/memcasecmp, modules/memcoll,
74471         modules/modechange, modules/mountlist, modules/path-concat,
74472         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
74473         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
74474         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
74475         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
74476         modules/strftime, modules/strndup, modules/strverscmp,
74477         modules/timespec, modules/unlocked-io, modules/userspec,
74478         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
74479         modules/yesno:
74480         Remove lib_SOURCES line from Makefile.am section, as this is now
74481         done automatically by the corresponding Autoconf macro.
74482
74483 2005-03-21  Jim Meyering  <jim@meyering.net>
74484
74485         Changes imported from coreutils.
74486
74487         * lib/cycle-check.c: Don't include xalloc.h.
74488
74489         * lib/path-concat.c: Don't include assert.h.
74490         (path_concat): Remove assertion that would have triggered
74491         for ABASE starting with more than one slash.
74492         Reported by Andreas Schwab.
74493
74494         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74495         properly when ABASE is an absolute file name.
74496         Correct the description of this function.
74497         Include <assert.h>.
74498         Add an assertion and a test driver.
74499         This fixes a bug introduced on 2004-07-02.
74500         Andreas Schwab reported the resulting failure of cp --parents:
74501         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74502
74503 2005-03-21  Jim Meyering  <jim@meyering.net>
74504
74505         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74506         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74507
74508 2005-03-21  Jim Meyering  <jim@meyering.net>
74509         and  Paul Eggert  <eggert@cs.ucla.edu>
74510
74511         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74512         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74513         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74514         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74515         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74516         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74517         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74518         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74519         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74520         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74521         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74522         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74523         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74524         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74525         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74526         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74527         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74528         for these modules.
74529
74530 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74531
74532         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74533         (which shouldn't happen), generate nothing instead of returning 0
74534         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74535
74536 2005-03-16  Bruno Haible  <bruno@clisp.org>
74537
74538         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74539         HAVE_LONGLONG_64BIT.
74540
74541 2005-03-16  Bruno Haible  <bruno@clisp.org>
74542
74543         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74544         HAVE_LONGLONG_64BIT.
74545
74546 2005-03-16  Bruno Haible  <bruno@clisp.org>
74547
74548         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74549         HAVE_LONGLONG_64BIT.
74550
74551 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74552
74553         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74554         reliably distinguish strftime failure from empty output on POSIX
74555         hosts.
74556
74557 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74558
74559         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74560         (iconv_string): Don't guess a size-zero buffer, as that might cause
74561         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74562         result would be 'too large', where 'too large' is (heuristically)
74563         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74564         overflow concerns.  This will prevent some unwanted malloc failures
74565         when the inputs are very large.
74566
74567 2005-03-15  Karl Berry  <karl@gnu.org>
74568
74569         * config/srclist.txt (config.rpath): from gettext.
74570         * config/config.rpath: update.
74571
74572 2005-03-15  Bruno Haible  <bruno@clisp.org>
74573
74574         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74575         to 'negate'.
74576
74577         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74578         variable.
74579
74580         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74581         results.
74582
74583 2005-03-14  Simon Josefsson  <jas@extundo.com>
74584
74585         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74586         <fx@gnu.org>.
74587
74588 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74589
74590         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74591         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74592         intprops.h.
74593         * lib/strtol.c: Likewise.
74594
74595 2005-03-14  Jim Meyering  <jim@meyering.net>
74596
74597         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74598         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74599         to be nonzero so that we (and caller) can detect the difference
74600         between a valid zero-length expansion and an error return, even
74601         when the underlying strftime fails before writing anything into
74602         that location.
74603
74604 2005-03-14  Bruno Haible  <bruno@clisp.org>
74605
74606         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74607         Update from GNU gettext 0.14.3.
74608
74609 2005-03-10  Jim Meyering  <jim@meyering.net>
74610
74611         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74612
74613 2005-03-10  Jim Meyering  <jim@meyering.net>
74614
74615         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74616         so that this module works on systems without fchdir.
74617
74618 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74619
74620         Factor int-properties macros into a single file, except for
74621         glibc-related files.
74622         * lib/intprops.h: New file.
74623         * lib/getloadavg.c: Include it instead of limits.h.
74624         (INT_STRLEN_BOUND): Remove.
74625         * lib/human.c: Include intprops.h.
74626         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74627         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74628         302/1000.
74629         * lib/inttostr.h: Include intprops.h instead of limits.h.
74630         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74631         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74632         for consistency with intprops.h.
74633         (time_t_is_integer, twos_complement_arithmetic): Use them.
74634         * lib/sig2str.h: Include <signal.h>, intprops.h.
74635         (INT_STRLEN_BOUND): Remove.
74636         * lib/strftime.c (TYPE_SIGNED): Remove.
74637         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74638         * lib/strtol.c: Adjust comments to match intprops.h.
74639         * lib/userspec.c: Include intprops.h.
74640         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74641         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74642         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74643         instead of rolling our own expressions.
74644         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74645
74646         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74647         instead of int.
74648         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74649         the right thing even if adding 1900 would overflow.  Similarly
74650         for tm_mon + 1 and tm_yday + 1.
74651         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74652         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74653         (DO_SIGNED_NUMBER): New macro.
74654         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74655
74656 2005-03-07  Bruno Haible  <bruno@clisp.org>
74657
74658         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74659
74660 2005-03-07  Bruno Haible  <bruno@clisp.org>
74661
74662         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74663
74664 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74665
74666         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74667         (func_import): Only replace files via --import when they have actually
74668         changed.
74669
74670 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74671
74672         * m4/mmap-anon.m4: New file.
74673         * m4/pagealign_alloc.m4: New file.
74674
74675 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74676             Bruno Haible  <bruno@clisp.org>
74677
74678         * modules/pagealign_alloc: New file.
74679         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74680
74681 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74682             Bruno Haible  <bruno@clisp.org>
74683
74684         * lib/pagealign_alloc.h: New file.
74685         * lib/pagealign_alloc.c: New file.
74686
74687 2005-03-03  Bruno Haible  <bruno@clisp.org>
74688
74689         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74690         Use an all-permissive copyright notice, recommended by RMS.
74691
74692 2005-03-02  Bruno Haible  <bruno@clisp.org>
74693
74694         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74695         of AIX, the replacement has to be done only after <string.h> is
74696         included, therefore not in config.h. stpncpy.h does the replacement,
74697         and stpncpy.c uses it.
74698
74699 2005-03-02  Bruno Haible  <bruno@clisp.org>
74700
74701         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74702         stpncpy.c uses it.
74703
74704 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74705
74706         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74707         The workaround isn't strictly needed for POSIX conformance, and
74708         it's too much of a pain to configure and maintain.  We'll ask
74709         people to fix their kernels instead.
74710         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74711         (NANOSLEEP_BUG_WORKAROUND): Remove.
74712         (xnanosleep): Remove the workaround.
74713
74714 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74715
74716         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74717         Reported by Derek Price.
74718         (Include): Add "timespec.h".
74719
74720         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74721
74722 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74723
74724         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74725         to detect nanosleep bug.
74726
74727 2005-03-01  Bruno Haible  <bruno@clisp.org>
74728
74729         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74730
74731 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74732
74733         * modules/gethrxtime: New file.
74734         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74735         (Depends-on): Add gethrxtime.
74736         (configure.ac): Add gl_XNANOSLEEP.
74737         (Makefile.am): Remove lib_SOURCES line.
74738
74739 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74740
74741         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74742         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74743
74744 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74745
74746         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74747         * lib/timespec.h (gettime): Return void, since it always
74748         succeeds now.  All uses changed.
74749         * lib/gettime.c (gettime): Likewise.
74750         [HAVE_NANOTIME]: Prefer nanotime.
74751         Assume gettimeofday succeeds, as POSIX requires.
74752         Assime time () succeeds, since other code already does.
74753         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74754         (timespec_subtract): Remove.
74755         (NANOSLEEP_BUG_WORKAROUND): New constant.
74756         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74757         things considerably.  Use it only on GNU/Linux hosts, since the
74758         workaround shouldn't be needed elsewhere.
74759
74760 2005-02-24  Bruno Haible  <bruno@clisp.org>
74761
74762         * modules/gettext (Files): Add m4/glibc2.m4.
74763
74764 2005-02-24  Bruno Haible  <bruno@clisp.org>
74765
74766         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74767         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74768         * m4/progtest.m4:
74769         Update from GNU gettext 0.14.2.
74770         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74771
74772 2005-02-24  Bruno Haible  <bruno@clisp.org>
74773
74774         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74775         * lib/config.charset: Update from GNU gettext 0.14.2.
74776
74777 2005-02-24  Bruno Haible  <bruno@clisp.org>
74778
74779         * lib/gettext.h: Update from GNU gettext 0.14.2.
74780
74781 2005-02-23  Simon Josefsson  <jas@extundo.com>
74782
74783         * m4/iconvme.m4: New file.
74784
74785 2005-02-23  Jim Meyering  <jim@meyering.net>
74786
74787         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74788         change.
74789         Thanks to Bruno Haible for catching it.
74790
74791 2005-02-22  Simon Josefsson  <jas@extundo.com>
74792
74793         * modules/iconvme: New file.
74794
74795         * MODULES.html.sh: Add iconvme.
74796
74797 2005-02-22  Simon Josefsson  <jas@extundo.com>
74798
74799         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74800
74801 2005-02-22  Simon Josefsson  <jas@extundo.com>
74802
74803         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74804
74805 2005-02-22  Jim Meyering  <jim@meyering.net>
74806
74807         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74808         s/ifndef/ifdef/.
74809
74810 2005-02-20  Neil Conway  <neilc@samurai.com>
74811
74812         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74813         returned by OSX/Darwin if the specified buffer is not large
74814         enough for the hostname.
74815
74816 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74817
74818         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74819         pass it to _help, otherwise the latter coredumps trying to
74820         dereference state.root_argp.
74821
74822 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74823
74824         * modules/chdir-long (Depends-on): Add memrchr.
74825         * modules/memrchr (Files): Add lib/memrchr.h.
74826         (Include): "memrchr.h".
74827
74828 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74829
74830         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74831
74832 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74833
74834         * lib/memrchr.h: New file.
74835         * lib/chdir-long.c: Include it.
74836         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74837         Don't bother including stddef.h.
74838
74839 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74840
74841         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74842         inclusion.
74843         Include <sys/types.h>, for dev_t.
74844         (ME_DUMMY, ME_REMOTE): Move from here....
74845         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74846         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74847         Dmitry V. Levin.
74848         Include mountlist.h first, to test the interface.
74849
74850 2005-01-29  Bruno Haible  <bruno@clisp.org>
74851
74852         * lib/progname.c (program_name): Initialize.
74853         Needed when linking statically on MacOS X.
74854
74855 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74856
74857         Sync from coreutils.
74858         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74859         (Depends-on): Add c-strtod.
74860         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74861
74862 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74863
74864         Sync from coreutils.
74865         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74866
74867         Remove files that are specific to coreutils.
74868         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74869
74870 2005-01-28  Bruno Haible  <bruno@clisp.org>
74871
74872         * modules/javacomp: New file.
74873         * MODULES.html.sh (Java): Add javacomp.
74874
74875 2005-01-28  Bruno Haible  <bruno@clisp.org>
74876
74877         * m4/javacomp.m4: New file, from GNU gettext.
74878
74879 2005-01-28  Bruno Haible  <bruno@clisp.org>
74880
74881         * lib/javacomp.sh.in: New file, from GNU gettext.
74882         * lib/javacomp.h: New file, from GNU gettext.
74883         * lib/javacomp.c: New file, from GNU gettext.
74884
74885 2005-01-26  Simon Josefsson  <jas@extundo.com>
74886
74887         * lib/gai_strerror.c: Use GPL in header.
74888
74889 2005-01-26  Bruno Haible  <bruno@clisp.org>
74890
74891         * modules/javaexec: New file.
74892         * MODULES.html.sh (Java): Add javaexec.
74893
74894 2005-01-26  Bruno Haible  <bruno@clisp.org>
74895
74896         * m4/javaexec.m4: New file, from GNU gettext.
74897
74898 2005-01-26  Bruno Haible  <bruno@clisp.org>
74899
74900         * lib/javaexec.sh.in: New file, from GNU gettext.
74901         * lib/javaexec.h: New file, from GNU gettext.
74902         * lib/javaexec.c: New file, from GNU gettext.
74903
74904 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74905
74906         * modules/lchown (Depends-on): Remove lchown.h
74907
74908 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74909
74910         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74911         must be defined if the header file was not found, in order
74912         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74913
74914 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74915
74916         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74917         initializers for struct pentry_state.
74918         (__argp_error): Check return value of __asprintf
74919         (__argp_failure): Translate error message
74920
74921         * lib/argp-parse.c: Removed braces around the expansion of N_()
74922
74923 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74924
74925         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74926         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74927         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74928         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74929         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74930         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74931         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74932         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74933         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74934         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74935         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74936         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74937         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74938         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74939         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74940         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74941         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74942         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74943         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74944         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74945         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74946         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74947         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74948         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74949         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74950         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74951         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74952         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74953         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74954         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74955         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74956         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74957         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74958         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74959         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74960         Use an all-permissive copyright notice, recommended by RMS.
74961
74962 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         * modules/chdir-long (Depends-on): Remove mempcpy.
74965
74966 2005-01-21  Jim Meyering  <jim@meyering.net>
74967
74968         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74969         same value as for Solaris 9.
74970
74971         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74972         component length.  This included changing the parameter to be
74973         of type `char *' rather than `char const *'.
74974         * lib/chdir-long.h (chdir_long): Update prototype.
74975
74976         * lib/openat.c (fdopendir, fstatat): New functions.
74977         * lib/openat.h: Include headers required for use of DIR and struct
74978         stat.
74979         [AT_SYMLINK_NOFOLLOW]: Define.
74980         (fdopendir, fstatat): Add prototypes.
74981
74982 2005-01-21  Bruno Haible  <bruno@clisp.org>
74983
74984         * modules/classpath: New file.
74985         * MODULES.html.sh (Java): Add classpath.
74986
74987 2005-01-21  Bruno Haible  <bruno@clisp.org>
74988
74989         * lib/classpath.h: New file, from GNU gettext.
74990         * lib/classpath.c: New file, from GNU gettext.
74991
74992 2005-01-20  Simon Josefsson  <jas@extundo.com>
74993
74994         * modules/version-etc-fsf: New file.
74995
74996 2005-01-20  Simon Josefsson  <jas@extundo.com>
74997
74998         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74999         * lib/version-etc.c: Remove version_etc_copyright.
75000         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
75001         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
75002
75003 2005-01-20  Simon Josefsson  <jas@extundo.com>
75004
75005         * lib/base64.h (isbase64): Add.
75006
75007         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
75008         using a unsigned prototype, don't inline.
75009         (base64_decode): Use it.
75010
75011 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75012
75013         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
75014         it.
75015
75016 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75017
75018         * lib/save-cwd.c (save_cwd): Remove code to support the case
75019         where fchdir is missing or flaky.
75020
75021 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75022
75023         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
75024
75025 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
75028         AC_LIBSOURCES now does this.
75029         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
75030         with new ullong_max module.
75031
75032 2005-01-19  Bruno Haible  <bruno@clisp.org>
75033
75034         * modules/sh-quote: New file.
75035         * MODULES.html.sh (Executing programs): Add sh-quote.
75036
75037 2005-01-19  Bruno Haible  <bruno@clisp.org>
75038
75039         * lib/sh-quote.h: New file, from GNU gettext.
75040         * lib/sh-quote.c: New file, from GNU gettext.
75041
75042 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75043
75044         Merge from coreutils.
75045         * m4/ullong_max.m4: New file.
75046         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
75047         (gl_MACROS): Assume localeconv exists.
75048
75049 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75050
75051         Merge changes from coreutils, as described below in several
75052         changelogs dated today.
75053
75054         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
75055         (O_DIRECTORY): Remove; not needed here, since "." must be
75056         a directory.  All uses removed.
75057         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
75058         universal on Suns, and we also need to test for IRIX.
75059         Revamp code to use 'if' rather than '#if'.
75060         Avoid unnecessary comparison of cwd->desc to 0.
75061
75062         * lib/utimens.c (futimens): Robustify the previous patch, by checking
75063         for known valid error numbers rather than observed invalid ones.
75064
75065 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75066
75067         * modules/ullong_max: New file.
75068
75069         * modules/chdir-long, modules/openat: New files.
75070         * modules/save-cwd (Depends-on): Depend on chdir-long.
75071         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
75072
75073 2005-01-18  Jim Meyering  <jim@meyering.net>
75074
75075         Merge from coreutils.
75076         * m4/chdir-long.m4, m4/openat.m4: New files.
75077         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
75078         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
75079         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
75080         is sane and DOES follow symlinks.  Besides, testing 20 different
75081         systems found no broken chown implementations.
75082         Prompted by a change in rsync's copy of this macro.
75083         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
75084
75085         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
75086
75087         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
75088         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
75089         NULL-means-set-to-current-time semantics.
75090         Remove temporary file immediately, rather than waiting
75091         for configure's at-exit trap code to do it.
75092
75093 2005-01-18  Jim Meyering  <jim@meyering.net>
75094
75095         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75096
75097         * lib/utimens.c (futimens): Account for the fact that futimes
75098         can also fail with errno == ENOSYS or errno == ENOENT.
75099         Patch from Dmitry V. Levin.
75100
75101         Change the name of the robust chdir function from chdir to chdir_long.
75102         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
75103         (restore_cwd): Use chdir_long, not chdir.
75104         * lib/chdir-long.c: Renamed from chdir.c.
75105         * lib/chdir-long.h: Renamed from chdir.h.
75106         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
75107         Hurd.
75108
75109 2005-01-18  Bruno Haible  <bruno@clisp.org>
75110
75111         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
75112         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
75113         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
75114         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
75115         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
75116         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
75117         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
75118         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
75119         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
75120         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
75121         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
75122         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
75123         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
75124         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
75125         Use an all-permissive copyright notice, recommended by RMS.
75126
75127 2005-01-18  Bob Proulx  <bob@proulx.com>
75128
75129         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
75130         simplify offsetof() macro construct to avoid compile failure with
75131         native HP-UX 11.0 ANSI C compiler.
75132
75133 2005-01-17  Bruno Haible  <bruno@clisp.org>
75134
75135         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
75136         redundant because stpncpy.m4 takes care of it.
75137
75138 2005-01-17  Bruno Haible  <bruno@clisp.org>
75139
75140         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
75141
75142 2005-01-17  Bruno Haible  <bruno@clisp.org>
75143
75144         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
75145         used.
75146
75147 2005-01-17  Bruno Haible  <bruno@clisp.org>
75148
75149         * lib/fwriteerror.h (fwriteerror): Change specification to include
75150         fclose.
75151         * lib/fwriteerror.c: Include <stdbool.h>.
75152         (fwriteerror): At the end, close the file stream. Record whether
75153         stdout was already closed.
75154
75155 2005-01-17  Bruno Haible  <bruno@clisp.org>
75156
75157         * lib/execute.c (environ): Declare if needed.
75158         * lib/pipe.c (environ): Likewise.
75159         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
75160
75161 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75162
75163         * modules/argp: Depend on vsnprintf
75164
75165 2005-01-10  Jim Meyering  <jim@meyering.net>
75166
75167         * modules/closeout (Depends-on): Add atexit.
75168
75169 2005-01-06  Bruno Haible  <bruno@clisp.org>
75170
75171         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
75172
75173 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75174
75175         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
75176         definitions to be after all include files, to avoid collisions.
75177         Problem reported by Bob Proulx.
75178
75179 2005-01-04  Jim Meyering  <jim@meyering.net>
75180
75181         Changes imported from coreutils.
75182         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
75183         as the mkstemp template, use a temporary directory and an
75184         8.3-friendly template to avoid trouble on systems like DJGPP.
75185         Reported by Juan M. Guerrero via Stepan Kasal.
75186         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
75187         close. Remove the temporary directory right away, rather than waiting
75188         for configure's at-exit trap code to do it.
75189         Suggestion from Stepan Kasal.
75190
75191 2005-01-01  Simon Josefsson  <jas@extundo.com>
75192
75193         * gnulib-tool: Print #include directives when --import'ing.
75194
75195 2004-12-28  Simon Josefsson  <jas@extundo.com>
75196
75197         * tests/test-base64.c: Include required header files.  Remove
75198         unused variables.
75199
75200 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75201
75202         * modules/error (Depends-on): Remove gettext.
75203
75204 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75205
75206         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
75207         not needed.  This removes a dependency on the gettext module.
75208         [defined _LIBC]: Do not include <libintl.h>; not needed.
75209
75210 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75211
75212         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
75213         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
75214
75215 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75216
75217         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
75218         HAVE_DECL_STRTOLD.
75219
75220 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75221
75222         * modules/getdate (Depends-on): Remove alloca-opt.
75223
75224 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75225
75226         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
75227
75228 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75229
75230         * lib/argp-parse.c: Include <stddef.h>.
75231         (alignof, alignto): New macros.
75232         (parser_init): Don't assume that void * is aligned sufficiently
75233         for struct option.
75234
75235         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
75236         need to extend the stack.
75237         (YYINITDEPTH): New macro, so that the initial stack isn't overly
75238         large.
75239
75240 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75241
75242         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
75243
75244 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75245
75246         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
75247         (2004-10-24) change.  Apparently this was a false alarm.
75248
75249         * modules/getdate: Depend on alloca-opt, not alloca.
75250
75251 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75252
75253         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75254         Remove now-obsolete comment about AIX.
75255         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75256         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75257         (YYMAXDEPTH): New macro.
75258
75259 2004-12-18  Simon Josefsson  <jas@extundo.com>
75260
75261         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75262
75263 2004-12-18  Bruno Haible  <bruno@clisp.org>
75264
75265         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75266
75267 2004-12-18  Bruno Haible  <bruno@clisp.org>
75268
75269         * lib/fatal-signal.c (fatal_signals): Make non-const.
75270         (init_fatal_signals): New function.
75271         (uninstall_handlers, install_handlers): Ignore signals that were set to
75272         SIG_IGN.
75273         (at_fatal_signal): Call init_fatal_signals.
75274         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75275         SIG_IGN.
75276         Reported by Paul Eggert.
75277
75278 2004-12-18  Bruno Haible  <bruno@clisp.org>
75279
75280         * doc/alloca.texi: New file.
75281         * doc/alloca-opt.texi: New file.
75282
75283 2004-12-17  Jim Meyering  <jim@meyering.net>
75284
75285         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75286         Otherwise, install-sh could exit with improper exit status when
75287         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75288
75289 2004-12-16  Simon Josefsson  <jas@extundo.com>
75290
75291         * tests/test-base64.c: Add license.
75292
75293 2004-12-15  Stepan Kasal  <address@hidden>
75294
75295         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75296
75297 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75298
75299         * modules/getcwd (Files): Add m4/d-ino.m4.
75300         Suggested by Mark D. Baushke.
75301
75302 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75303
75304         * lib/getdate.y (textint): New member "negative".
75305         (time_zone_hhmm): New function.
75306         Expect 14 shift-reduce conflicts, not 13.
75307         (o_colon_minutes): New rule.
75308         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75309         (yylex): Set the "negative" member of signed numbers.
75310
75311 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75312
75313         * doc/getdate.texi (Time of day items, Time zone items):
75314         Describe new formats +00:00, UTC+00:00.
75315
75316 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75317
75318         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75319         spurious "-l"s.  Problem reported by Stepan Kasal.
75320
75321 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75322
75323         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75324         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75325
75326 2004-12-04  Simon Josefsson  <jas@extundo.com>
75327
75328         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75329         Vandoorselaere <yoann@prelude-ids.org>.
75330
75331 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75332
75333         Changes imported from coreutils.
75334         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75335         exist.
75336         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75337
75338 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75339
75340         Changes imported from coreutils.
75341         * lib/hard-locale.c: Assume <locale.h> exists.
75342         Include "strdup.h".
75343         (GLIBC_VERSION): New macro.
75344         (hard_locale): Assume setlocale exists.
75345         Rewrite to avoid #ifdef.
75346         Use strdup rather than malloc + strcpy.
75347         * lib/human.c: Assume <locale.h> exists.
75348         (human_readable): Assume localeconv exists.
75349
75350 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75351
75352         * modules/hard-locale (Depends-on): Add strdup.
75353
75354 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75355
75356         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75357         convert T2, not T.  (Imported from libc.)
75358
75359 2004-11-30  Simon Josefsson  <jas@extundo.com>
75360
75361         * modules/restrict (License): Change to LGPL.
75362
75363 2004-11-30  Simon Josefsson  <jas@extundo.com>
75364
75365         * m4/restrict.m4: Add copyright and copying conditions.
75366
75367 2004-11-30  Simon Josefsson  <jas@extundo.com>
75368
75369         * m4/base64.m4: New file.
75370
75371 2004-11-30  Simon Josefsson  <jas@extundo.com>
75372
75373         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75374         base64.
75375
75376         * tests/test-base64.c: New file.
75377
75378         * modules/base64: New file.
75379
75380 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75381
75382         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75383         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75384
75385         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75386
75387 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75390         (__getcwd.c): Don't restore errno; glibc doesn't.
75391         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75392         first, falling back to our code only if its results look suspicious.
75393         Ensure that the resulting buffer is only as large as necessary.
75394
75395         * lib/readutmp.c: Include readutmp.h first.
75396         Include <errno.h>, since readutmp.h no longer does that.
75397         * lib/readutmp.h: Don't include <errno.h>,
75398         <sys/param.h>, <time.h>; not needed to establish interface.
75399         (errno): Remove decl.
75400         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
75401         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
75402         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
75403
75404 2004-11-28  Simon Josefsson  <jas@extundo.com>
75405
75406         * lib/base64.h, base64.c: New file.
75407
75408 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75409
75410         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
75411
75412 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75413
75414         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
75415         (Depends-on): Remove pathmax, same.  Add mempcpy.
75416         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
75417         (Makefile.am): Append getcwd.h to lib_SOURCES.
75418         (Include): Add getcwd.h.
75419         (Maintainer): Change from Jim Meyering to "all, glibc",
75420         since getdate now uses intended-for-glibc code.
75421         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
75422         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
75423
75424 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75425
75426         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
75427         HP's ANSI C compiler.
75428         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
75429         Declaring int functions causes warnings on some modern systems and
75430         shouldn't be needed to compile on ancient ones.
75431         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
75432         defined.
75433
75434         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
75435         with the following changes.
75436         (__set_errno): Parenthesize properly.
75437         Include <stdbool.h>.
75438         (MIN, MAX, MATCHING_INO): New macros.
75439         (__getcwd): Define with prototype, not K&R form.
75440         Use heuristics to allocate default buffer on stack if possible.
75441         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
75442         behavior, and to avoid the PATH_MAX limit when computing
75443         ../../../../...
75444         Use MATCHING_INO to compare inode number to file.
75445         Check for arithmetic overflow in size calculations.
75446         Fix bug in reallocation of dot array that caused getcwd to fail
75447         on directories nested deeper than 75.
75448         Be more careful about saving errno on error.
75449         Do not use realloc; use only free+malloc, as this is a bit
75450         more flexible and avoids a needless copy operation.
75451         Do not inspect st_dev and st_ino for symbolic links; POSIX
75452         doesn't specify the latter.
75453         Check for closedir errors.
75454         Avoid needless casts.
75455         Use "#ifdef weak_alias" around weak_alias, to be like other
75456         glibc code.
75457         The following changes to getcwd.c have effect only when used in
75458         gnulib; they have no effect inside glibc proper.
75459         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
75460         as alloca isn't used.
75461         (alloca, __alloca): Likewise.
75462         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
75463         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75464         unconditionally, as gnulib assumes C89 or better.
75465         Do not include <sys/param.h>.
75466         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
75467         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
75468         better.
75469         (NULL) [!defined NULL]: Remove; we assume C89 or better.
75470         Include <dirent.h> in a way that is compatible with modern Autoconf.
75471         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
75472         New macros, if not already defined.
75473         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
75474         Use "_LIBC", not "defined _LIBC", for consistency.
75475         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
75476         a mempcpy module.
75477         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
75478         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
75479         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75480         credit only to Jim Meyering and adjust the copyright dates.
75481         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75482         <stdlib.h>, <unistd.h>, "pathmax.h".
75483         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75484         (INITIAL_BUFFER_SIZE): Remove.
75485         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75486
75487 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75488
75489         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75490         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75491         Use the _ONCE methods, for efficiency.
75492         Check for fcntl.h.  In test program, include <errno.h>
75493         and <fcntl.h> if available.  Remove old K&R cruft from
75494         test program.  Check for common errors in GNU/Linux,
75495         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75496         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75497         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75498         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75499         name accordingly.
75500         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75501         accommodate new getcwd.c.
75502         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75503         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75504         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75505         that's all we need now.
75506
75507 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75508
75509         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75510         argp-parse.c depends on getopt internals, that means we should
75511         always use our getopt, to be on the safe side.
75512         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75513         order not to spoil the result of an eventual previous invocation
75514         of gl_GETOPT_SUBSTITUTE.
75515
75516 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75517
75518         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75519         redefinition warnings. To avoid them, include the defines
75520         in `#if !defined __need_getopt ... #endif'. The only place
75521         where __getopt_argv_const is used is in definitions
75522         of getopt_long and getopt_long_only below, which are as well
75523         protected by `#ifndef __need_getopt'.
75524         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75525         __need_getopt after including <stdio.h> and <unistd.h> These
75526         headers might have defined it.
75527
75528 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75529
75530         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75531
75532 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75533
75534         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75535         (futimens): New function, which uses futimes if available.
75536         (futimens, utimens): Support timespec==NULL, with same semantics
75537         as utime and utimens.
75538         * lib/utimens.h (futimens): New decl.
75539
75540 2004-11-23  Jim Meyering  <jim@meyering.net>
75541
75542         * lib/getopt_.h: Remove trailing blanks.
75543
75544 2004-11-23  Jim Meyering  <jim@meyering.net>
75545
75546         * lib/__fpending.c: Add comment.
75547
75548 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75549
75550         * modules/canonicalize (Depends-on): Add xreadlink.
75551         Problem reported by James Youngman.
75552
75553 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75554
75555         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75556         New macros.
75557         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75558         optopt): Use them instead of invoking ## directly; otherwise, the
75559         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75560
75561 2004-11-19  Bruno Haible  <bruno@clisp.org>
75562
75563         * lib/strtok_r.c: Move comments from here...
75564         * lib/strtok_r.h: ... to here.
75565
75566 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75567
75568         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75569         implementations that mishandle size_t overflow.
75570
75571 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75572
75573         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75574         might fail.  Problem reported by Yoann Vandoorselaere.
75575         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75576         implementations that mishandle size_t overflow.
75577
75578 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75579
75580         * modules/canon-host (Depends-on): Add strdup.
75581
75582 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75583
75584         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75585
75586 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75587
75588         * lib/canon-host.c: Include "strdup.h".
75589         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75590         Use strdup instead of malloc/strcpy to duplicate strings.
75591
75592         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75593         (human_space_before_unit): New constant.
75594         * lib/human.c (human_readable): Support it.
75595
75596         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75597         (xgetcwd): Set errno correctly when failing.
75598         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75599         the failure is actually due to a PATH_MAX problem.
75600
75601         Further getopt changes to make it more likely that glibc will
75602         buy the changes back.
75603         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75604         (getopt): Use it, so to preserve glibc semantic
75605         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75606         when compiling for libc.
75607         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75608         (getopt_long, getopt_long_only): Use it.
75609
75610         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75611         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75612         (getopt): Argv is now char * const *, as per standard.
75613         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75614         not char *__getopt_argv_const *.
75615         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75616         _getopt_long_only_r): Likewise.
75617         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75618         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75619         _getopt_long_r, _getopt_long_only_r): Likewise.
75620         * lib/getopt_.h (__getopt_argv_const): Remove.
75621         (getopt): Argv is now char * const *, as per standard.
75622
75623         * lib/getdate.y (tORDINAL): New token.
75624         (day, relunit): Allow it for relative times.
75625         (relative_time_table): Use tORDINAL for ordinals.
75626
75627 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75628
75629         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75630         Document that "second" isn't allowed as an ordinal number.
75631
75632 2004-11-16  Jim Meyering  <jim@meyering.net>
75633
75634         * modules/closeout (Depends-on): Add fpending.
75635
75636 2004-11-15  Jim Meyering  <jim@meyering.net>
75637
75638         * lib/closeout.c: Include "__fpending.h" once again.
75639         Include <stdbool.h>.
75640         (close_stdout): Don't fail just because stdout was closed initially,
75641         since some programs don't write to stdout in the normal course of
75642         operation (other than --version and --help), and we don't want this
75643         function to make e.g. `touch file >&-' fail.
75644         But do fail if it was closed and someone has tried to write to it.
75645         E.g., `printf foo >&-' must fail.
75646
75647 2004-11-13  Jim Meyering  <jim@meyering.net>
75648
75649         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75650
75651 2004-11-12  Simon Josefsson  <jas@extundo.com>
75652
75653         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75654         small doc fix is still pending.
75655
75656 2004-11-11  Simon Josefsson  <jas@extundo.com>
75657
75658         * modules/strtok_r: New file.
75659
75660         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75661         strtok_r.
75662
75663 2004-11-11  Simon Josefsson  <jas@extundo.com>
75664
75665         * m4/strtok_r.m4: New file.
75666
75667         * m4/getopt.m4: Replace opterr.
75668
75669 2004-11-11  Simon Josefsson  <jas@extundo.com>
75670
75671         * lib/strtok_r.h, strtok_r.c: New file.
75672
75673 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75674
75675         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75676         of replacing opterr, getopt, etc.  This should handle the
75677         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75678
75679 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75680
75681         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75682         we can stop lying to compilers about the constness of argv when we
75683         are compiled outside glibc.
75684         (getopt, getopt_long, getopt_long_only): Use it.
75685         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75686         _getopt_internal, getopt): Likewise.
75687         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75688         _getopt_long_only_r): Likewise.
75689         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75690         _getopt_long_r, _getopt_long_only_r): Likewise.
75691
75692         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75693         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75694         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75695         the other external symbols.
75696         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75697         declaration, since the above renaming now works around collisions.
75698
75699 2004-11-11  Jim Meyering  <jim@meyering.net>
75700
75701         * lib/linebreak.c: Remove trailing blanks.
75702         * lib/alloca_.h: Likewise.
75703         * lib/acosl.c: Likewise.
75704         * lib/euidaccess.c: Likewise.
75705         * lib/allocsa.h: Likewise.
75706
75707 2004-11-10  Simon Josefsson  <jas@extundo.com>
75708
75709         * m4/getaddrinfo.m4: New file.
75710
75711 2004-11-10  Simon Josefsson  <jas@extundo.com>
75712
75713         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75714
75715 2004-11-10  Simon Josefsson  <jas@extundo.com>
75716
75717         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75718         getaddrinfo.
75719
75720         * modules/getaddrinfo: New file.
75721
75722 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75723
75724         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75725
75726 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75727
75728         * lib/mktime.c (SHR): New macro, which is a portable
75729         substitute for >> that should work even on Crays.
75730         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75731         Problem reported by Mark D. Baushke in
75732         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75733         * lib/getdate.y (SHR): Likewise.
75734         (tm_diff): Use it.
75735         * lib/strftime.c (SHR): Likewise.
75736         (tm_diff): Use it.
75737         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75738         quote_these_too, so that right shifts are well defined.  All uses
75739         changed.
75740
75741 2004-11-10  Jim Meyering  <jim@meyering.net>
75742
75743         Ensure that no close failure goes unreported.
75744         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75745         return early when it seems there's nothing to flush.
75746         Don't include __fpending.h.
75747
75748 2004-11-10  Jim Meyering  <jim@meyering.net>
75749
75750         * modules/closeout (Depends-on): Remove fpending.
75751
75752 2004-11-10  Jim Meyering  <jim@meyering.net>
75753
75754         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75755
75756 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75757
75758         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75759         gl_FUNC_STRFTIME.
75760         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75761         and AC_REQUIRE when possible, to avoid duplicate checks.
75762         Check for <wchar.h>.
75763
75764 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75765
75766         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75767
75768 2004-11-09  Bruno Haible  <bruno@clisp.org>
75769
75770         * m4/sockpfaf.m4: New file.
75771
75772 2004-11-05  Bruno Haible  <bruno@clisp.org>
75773
75774         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75775         Reported by Mark D. Baushke <mdb@cvshome.org>.
75776
75777 2004-11-04  Bruno Haible  <bruno@clisp.org>
75778
75779         2004-09-11  Bruno Haible  <bruno@clisp.org>
75780                 * allocsa.valgrind: New file.
75781         2004-02-06  Bruno Haible  <bruno@clisp.org>
75782                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75783                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75784                 Reported by Christopher Seip <chris.seip@hp.com>.
75785
75786 2004-11-04  Bruno Haible  <bruno@clisp.org>
75787
75788         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75789         (Makefile.am): Distribute it.
75790
75791 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75792
75793         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75794         with errno == ERANGE if the buffer is too small.
75795         Problem reported by Mark D. Baushke.
75796
75797 2004-11-03  Albert Chin  <china@thewrittenword.com>
75798             Paul Eggert  <eggert@cs.ucla.edu>
75799
75800         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75801         equivalent, substitute $ac_type for equivalent type rather than
75802         blindly using uint32_t *always* which won't work if uint32_t is not
75803         available.  Define _UINT32_T to work around typedef of uint32_t if
75804         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75805         2.5.1.
75806
75807 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75808
75809         * m4/jm-macros.m4: Sync from coreutils.
75810         (gl_MACROS): Check for mbrlen, for pathchk.
75811         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75812
75813 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         * lib/xreadlink.c (MAXSIZE): New macro.
75816         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75817         size does not exceed MAXSIZE.  Avoid cast.
75818         As suggested by Mark D. Baushke in
75819         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75820         if readlink fails with buffer size just under MAXSIZE, try again
75821         with MAXSIZE.
75822
75823 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75824
75825         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75826
75827 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75828         and  Paul Eggert  <eggert@cs.ucla.edu>
75829
75830         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75831         (get_date): Overparenthesize to avoid GCC warning.
75832
75833 2004-11-02  Bruno Haible  <bruno@clisp.org>
75834
75835         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75836         returns void.
75837
75838 2004-11-02  Bruno Haible  <bruno@clisp.org>
75839
75840         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75841         function returns void.
75842
75843 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75844
75845         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75846         fflush_unlocked, flockfile, funlockfile, funlockfile,
75847         fputs_unlocked, putc_unlocked.
75848
75849 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75850
75851         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75852         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75853         already declared.
75854
75855 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75856
75857         * modules/getdate (Files): Add doc/getdate.texi.
75858         (Depends-on): Add setenv, xalloc.
75859
75860 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75861
75862         * lib/getdate.y: Add support for TZ="foo" within a date string.
75863         Fix some bugs near time_t boundaries.  Reject dates with
75864         out-of-range components, e.g., "Sept 31".
75865         Include <stdlib.h>, "setenv.h", "xalloc.h".
75866         (ISDIGIT_LOCALE): Remove; unused.
75867         Note that the TZ and time functions used here are not reentrant.
75868         (mktime_ok, get_tz): New functions.
75869         (TZBUFSIZE): New constant.
75870         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75871         This requires that we sometimes generate our own TZ="XXX..." setting.
75872
75873 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75874
75875         * doc/getdate.texi: New file, from coreutils with modifications for
75876         the new TZ parsing.
75877
75878 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75879
75880         * lib/mktime.c (not_equal_tm): Remove redundant check.
75881
75882 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75883
75884         * modules/regex (lib_SOURCES): Add regex.c.
75885         Reported by James Youngman in
75886         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75887
75888 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75889
75890         * lib/getdate.y: Use Bison 1.875 features, and some minor
75891         code cleanups.  This change does not affect semantics.
75892         Don't include <stdlib.h>; no longer needed.
75893         Don't include unlocked-io.h; only the "#if TEST" code uses
75894         stdio, and performance isn't crucial there.
75895         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75896         Bison 1.875 features as described below.
75897         All uses of "PC." replaced by "pc->".
75898         (YYSTYPE): Add a forward declaration.
75899         (yylex, yyerror): Use full prototypes in forward decls.
75900         Use "%pure-parser" rather than obsolescent "%pure_parser".
75901         Use %parse-param and %lex-param instead of obsolescent
75902         YYPARSE_PARAM and YYLEX_PARAM.
75903         (meridian_table, month_and_day_table, time_units_table,
75904         relative_time_table, time_zone_table, military_table,
75905         lookup_zone, lookup_word, get_date):
75906         Use NULL instead of 0 where appropriate.
75907         (to_hour): Avoid abort (), to avoid a dependency on
75908         stdlib.h.
75909         (yyerror, yylex): Now accepts parser_control * arg.
75910         (main) [TEST]: Use '\0' rather than 0 for char.
75911
75912 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75913
75914         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75915
75916 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75917
75918         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75919         It's now the caller's responsibility to handle the case where
75920         !HAVE_GETPAGESIZE && !defined getpagesize.
75921
75922         * lib/mktime.c (leapyear): Arg is long int, not int.
75923
75924 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75925
75926         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75927
75928 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75929
75930         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75931         missing.  Problem reported by James Youngman.
75932
75933 2004-10-16  Simon Josefsson  <jas@extundo.com>
75934
75935         * gnulib-tool: Fix comments.  Fix parse problem.
75936         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75937
75938 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75939
75940         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75941         implementation of getopt_long.  Problem reported by Alexander Taler in:
75942         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75943
75944 2004-10-15  Bruno Haible  <bruno@clisp.org>
75945
75946         * gnulib-tool: Untabify. Initialize supplied_libname.
75947         (func_usage): More homogenous output.
75948         (func_modules_transitive_closure, func_modules_to_filelist,
75949         func_emit_lib_Makefile_am): New functions.
75950         (func_import): New function, extracted from big case statement. Use
75951         func_get_license, func_modules_transitive_closure,
75952         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75953         opt_lgpl. Don't use test -a, as it's not portable.
75954         (func_create_testdir): Use func_modules_transitive_closure,
75955         func_modules_to_filelist, func_emit_lib_Makefile_am.
75956
75957 2004-10-15  Bruno Haible  <bruno@clisp.org>
75958
75959         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75960
75961 2004-10-15  Bruno Haible  <bruno@clisp.org>
75962
75963         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75964         the portions belonging to each module.
75965         Suggested by Derek Robert Price <derek@ximbiot.com>.
75966
75967 2004-10-12  Simon Josefsson  <jas@extundo.com>
75968
75969         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75970         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75971         to real functions.
75972
75973 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75974
75975         * modules/vsnprintf: New file.
75976
75977 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75978
75979         * m4/vsnprintf.m4: New file.
75980
75981 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75982
75983         * lib/vsnprintf.h: New file.
75984         * lib/vsnprintf.c: New file.
75985
75986 2004-10-11  Bruno Haible  <bruno@clisp.org>
75987
75988         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75989         vsnprintf.
75990
75991 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75992
75993         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75994
75995 2004-10-07  Bruno Haible  <bruno@clisp.org>
75996
75997         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75998         fits into the provided buffer.
75999
76000 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76001
76002         * lib/diacrit.c, diacrit.h: Add GPL notice.
76003
76004         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
76005         notice.
76006         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
76007         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
76008         This avoids a potential constant-folding bug.
76009
76010 2004-10-05  Bruno Haible  <bruno@clisp.org>
76011
76012         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
76013         for the declaration of strsep.
76014
76015 2004-10-05  Bruno Haible  <bruno@clisp.org>
76016
76017         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
76018
76019 2004-10-04  Simon Josefsson  <jas@extundo.com>
76020
76021         * modules/memmem: New file.
76022         * tests/test-memmem.c: New file.
76023         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
76024
76025 2004-10-04  Simon Josefsson  <jas@extundo.com>
76026
76027         * m4/memmem.m4: New file.
76028
76029 2004-10-04  Simon Josefsson  <jas@extundo.com>
76030
76031         * lib/memmem.h: New file.
76032         * lib/memmem.c: New file, taken from glibc.
76033
76034 2004-10-04  Simon Josefsson  <jas@extundo.com>
76035
76036         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
76037         '#ifdef USE_UNLOCKED_IO'.
76038
76039 2004-10-04  Simon Josefsson  <jas@extundo.com>
76040
76041         * config/srclist.txt: Add memmem from glibc.
76042
76043 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76044
76045         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
76046
76047         * modules/argmatch, modules/argp, modules/closeout, modules/error,
76048         modules/exclude, modules/getdate, modules/getline,
76049         modules/getndelim2, modules/getpass, modules/getpass-gnu,
76050         modules/getusershell, modules/linebuffer, modules/md5,
76051         modules/mountlist, modules/posixtm, modules/readtokens,
76052         modules/readutmp, modules/regex, modules/sha1,
76053         modules/version-etc, modules/yesno:
76054         Remove dependency on unlocked-io.
76055
76056 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76057
76058         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
76059
76060         * m4/unlocked-io.m4: Add copyright notice.
76061         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
76062
76063 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76064
76065         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
76066         * lib/xmalloc.c (xmemdup): Likewise.
76067         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
76068         XFREE): Remove these long-obsolescent macros.
76069         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
76070         * lib/xstrdup.c: Remove.
76071
76072         * lib/regex.c (re_comp): Cast gettext return value to char *,
76073         Problem reported by Martin Neitzel via Mark D. Baushke.
76074
76075 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76076
76077         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
76078         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
76079         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
76080         regex.c, sha1.c, version-etc.c, yesno.c:
76081         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
76082         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
76083         the includer's responsibility.
76084
76085         Sync from coreutils.
76086
76087         * lib/modechange.c (mode_compile): Don't decrement a pointer that
76088         points to the start of a string, as the C Standard says the
76089         resulting behavior is undefined.
76090
76091         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
76092         simple -> simple_backups, numbered_existing ->
76093         numbered_existing_backups, numbered -> numbered_backups
76094         to avoid shadowing problems.  All uses changed.
76095         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
76096         * lib/backupfile.c (check_extension, numbered_backup):
76097         Rename locals to avoid shadowing 'basename'.
76098         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
76099         once.
76100
76101         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
76102         * lib/.cvsignore: Add getopt.h.
76103
76104 2004-10-04  Bruno Haible  <bruno@clisp.org>
76105
76106         * modules/README: New file.
76107         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
76108         not a module.
76109
76110 2004-10-02  Jim Meyering  <jim@meyering.net>
76111
76112         * lib/dirfd.h, getpagesize.h: Add copyright notice.
76113
76114 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76115
76116         * modules/strsep: New file.
76117
76118 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76119
76120         * m4/strsep.m4: New file.
76121
76122 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76123
76124         * lib/strsep.h: New file.
76125         * lib/strsep.c: New file.
76126
76127 2004-10-01  Simon Josefsson  <jas@extundo.com>
76128
76129         * lib/snprintf.c (snprintf): Handle size==0.
76130
76131 2004-10-01  Simon Josefsson  <jas@extundo.com>
76132             Bruno Haible  <bruno@clisp.org>
76133
76134         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
76135         (snprintf): Declare 'args'.
76136
76137 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
76138
76139         * lib/snprintf.c: Remove comments as to why each header is needed.
76140
76141 2004-10-01  Bruno Haible  <bruno@clisp.org>
76142
76143         * MODULES.html.sh: Add strsep.
76144
76145 2004-09-30  Simon Josefsson  <jas@extundo.com>
76146
76147         * modules/snprintf: New file.
76148
76149 2004-09-30  Simon Josefsson  <jas@extundo.com>
76150
76151         * m4/snprintf.m4: New file.
76152
76153 2004-09-30  Simon Josefsson  <jas@extundo.com>
76154
76155         * lib/snprintf.h, lib/snprintf.c: New files.
76156
76157 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76158
76159         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
76160         (hol_entry_help): Never translate an empty string.
76161         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
76162         * lib/argp.h (OPTION_NO_TRANS): New option.
76163
76164 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76165
76166         * modules/argp (Maintainer): Replace Simon Josefsson
76167         by Sergey Poznyakoff.
76168
76169 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76170
76171         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
76172         changes merged back into glibc.
76173
76174 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76175
76176         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
76177
76178 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76179
76180         * lib/xvasprintf.c: Include xalloc.h.
76181         (xvasprintf): Use xalloc_die, not xmalloc_die.
76182
76183 2004-09-29  Bruno Haible  <bruno@clisp.org>
76184
76185         * modules/alloca-opt: New file, derived from modules/alloca.
76186         * modules/allocsa: Depend on alloca-opt instead of alloca.
76187         * modules/setenv: Likewise.
76188         * modules/vasnprintf: Likewise.
76189         * MODULES.html.sh: Add alloca-opt.
76190
76191 2004-09-28  Simon Josefsson  <jas@extundo.com>
76192
76193         * gnulib-tool: New parameter --lgpl, to asseert that modules are
76194         LGPL, and to replace license template from GPL to LGPL.
76195
76196 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76197
76198         * modules/dummy: Change license to LGPL.
76199
76200 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76201
76202         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
76203
76204 2004-09-24  Simon Josefsson  <jas@extundo.com>
76205
76206         * modules/minmax (License): Change from GPL to LGPL.
76207
76208 2004-09-23  Simon Josefsson  <jas@extundo.com>
76209
76210         * gnulib-tool (--import): Typo.
76211
76212 2004-09-23  Simon Josefsson  <jas@extundo.com>
76213
76214         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
76215
76216 2004-09-22  Bruno Haible  <bruno@clisp.org>
76217
76218         * modules/*: Add 'License' field.
76219         * gnulib-tool: Accept --extract-license option.
76220         (func_get_license): New function.
76221
76222 2004-09-21  Bruno Haible  <bruno@clisp.org>
76223
76224         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
76225         Reported by Simon Josefsson.
76226
76227 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76228
76229         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
76230         gl_AC_TYPE_LONG_LONG.
76231
76232 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76233
76234         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
76235
76236 2004-09-18  Simon Josefsson  <jas@extundo.com>
76237         and  Paul Eggert  <eggert@cs.ucla.edu>
76238
76239         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
76240         calls with autoreconf.  Define GL_LIB.
76241
76242 2004-09-14  Karl Berry  <karl@gnu.org>
76243
76244         * config/srclist.txt: unsync setenv.c, sigh.
76245
76246 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76247
76248         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
76249         Problem reported by Bruno Haible in:
76250         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
76251
76252 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76253
76254         * config/srclist.txt: Comment out argp-pvh.c.
76255
76256 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76257
76258         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76259         in case some system header has #define'd it.  Problem reported by
76260         Soeren D. Schulze in
76261         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76262
76263 2004-09-09  Karl Berry  <karl@gnu.org>
76264
76265         * regex.[ch]: delete from the root.  These were supposed to be
76266                 synced with emacs cvs, but this has not happened for about
76267                 a year, and anyway nothing else uses emacs regex.[ch].
76268                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76269                 lib/regex[.ch] is untouched.
76270
76271 2004-09-09  Bruno Haible  <bruno@clisp.org>
76272
76273         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76274
76275 2004-09-09  Bruno Haible  <bruno@clisp.org>
76276
76277         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76278         modifications.
76279         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76280
76281 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76282
76283         * modules/xvasprintf: New file.
76284         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76285
76286 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76287
76288         * lib/xvasprintf.h: New file.
76289         * lib/xvasprintf.c: New file.
76290         * lib/xasprintf.c: New file.
76291
76292 2004-09-08  Bruno Haible  <bruno@clisp.org>
76293
76294         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76295
76296 2004-09-08  Bruno Haible  <bruno@clisp.org>
76297
76298         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76299         length is > INT_MAX.
76300         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76301         more.
76302
76303 2004-09-08  Bruno Haible  <bruno@clisp.org>
76304
76305         * lib/stdint_.h: New file, taken from GNU clisp.
76306
76307 2004-09-08  Bruno Haible  <bruno@clisp.org>
76308             Oskar Liljeblad  <oskar@osk.mine.nu>
76309
76310         * modules/stdint: New file.
76311         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76312
76313 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76314
76315         Import from coreutils.
76316         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76317         strings on unbounded length.  alloca's performance benefits aren't
76318         that important here.
76319         (V_STRDUP): Remove.
76320         (parse_with_separator): New function, with most of the internals
76321         of the old parse_user_spec.  Allow user to omit both user and group,
76322         for compatibility with FreeBSD.
76323         Clone only the user name, not the entire spec.
76324         Do not set *uid, *gid unless entirely successful.
76325         Avoid memory leak in some failing cases.
76326         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76327         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76328         (parse_user_spec): Rewrite to use parse_with_separator.
76329
76330 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76331
76332         * modules/userspec: Don't depend on alloca.
76333
76334 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76335
76336         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76337
76338 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76339
76340         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76341         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76342         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76343
76344 2004-08-16  Simon Josefsson  <jas@extundo.com>
76345
76346         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76347         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76348         Add --dry-run for --import.
76349         Let user provided command line parameters override configure.ac
76350         settings.
76351
76352 2004-08-12  Simon Josefsson  <jas@extundo.com>
76353
76354         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76355         as discussed with Paul Eggert in threads rooted at
76356         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76357         and
76358         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76359         Before, the test was empty, and relied on ELIDE_CODE in source
76360         code.)
76361         (gl_PREREQ_GETOPT): New macro.
76362         (gl_GETOPT): Use them.
76363
76364 2004-08-12  Simon Josefsson  <jas@extundo.com>
76365
76366         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76367         * lib/getopt_.h: Renamed from getopt.h.
76368
76369 2004-08-12  Simon Josefsson  <jas@extundo.com>
76370
76371         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76372         Change default library name from libfoo to libgnu.
76373         Now, if you have a configure.ac that says:
76374                 gl_SOURCE_BASE(gl)
76375                 gl_M4_BASE(gl/m4)
76376                 gl_MODULES(error getopt etcetera)
76377                 gl_INIT
76378         you can import all you need by running:
76379                 ../gnulib/gnulib-tool --import
76380
76381         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76382         (Makefile.am): Rewrite, use logic from argz.
76383         (Include): Use <getopt.h> instead of "getopt.h".
76384
76385 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76386
76387         * modules/argp (Files): Add m4/unlocked-io.m4.
76388         (Depends-on): Add extensions.
76389
76390 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76391
76392         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76393         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76394         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76395         Check for program_invocation_name, program_invocation_short_name,
76396         flockfile, funlockfile, features.h, _getopt_long_only_r.
76397
76398 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76399
76400         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
76401         its complicated substitute.
76402         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
76403         and program_invocation_name.
76404         (__argp_basename) [!_LIBC]: Remove; the only use was
76405         replaced by its body.
76406         (__argp_short_program_name): Change condition from
76407         !defined __argp_short_program_name to
76408         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
76409         to match argp-namefrob.h.
76410         (__argp_failure): Don't assume strerror_r returns char *.
76411         * lib/argp-parse.c (N_): Define unconditionally.
76412         (argp_default_options): Fill out initializers with 0 to avoid
76413         gcc warnings.
76414
76415 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76416
76417         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
76418         getopt1.c.
76419
76420 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76421
76422         Merge from coreutils.
76423
76424         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
76425
76426         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
76427         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
76428
76429 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76430
76431         Merge from coreutils.
76432
76433         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
76434         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
76435         for Reliant Unix 5.43.
76436
76437         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
76438         (union fooround): Use uintmax_t, not long int.
76439         The rest is a merge from libc:
76440         [defined _LIBC]: Include <shlib-compat.h>.
76441         (_obstack) [defined _LIBC]: Remove after 2.3.4.
76442
76443         * lib/settime.c (settime): Recode to avoid warning with
76444         Sun Forte C 6U2.
76445
76446         * lib/strverscmp.c: Convert to UTF-8.
76447
76448 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76449
76450         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76451         m4/uintmax_t.m4.
76452
76453 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76454
76455         * modules/xalloc-die: New file.
76456         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
76457
76458         * modules/md5 (Files): Add m4/uint32_t.m4.
76459         * modules/sha1: Renamed from modules/sha.
76460         (Files):
76461         Rename lib/sha.h to lib/sha1.h.
76462         Rename lib/sha.c to lib/sha1.c.
76463         Rename m4/sha.m4 to m4/sha1.m4.
76464         (lib_SOURCES): Likewise.
76465         (configure.ac): Rename gl_SHA to gl_SHA1.
76466         (Include): sha.h -> sha1.h.
76467
76468 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76469
76470         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
76471         * m4/sha1.m4: Renamed from sha.m4.
76472         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
76473
76474 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76475
76476         * lib/obstack.h (obstack_empty_p):
76477         Don't assume that chunk->contents is suitably aligned.
76478         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
76479         Likewise. Problem reported by Benno in
76480         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76481
76482         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76483         readable.  This could be improved further but it'd take some work.
76484
76485 2004-08-08  Simon Josefsson  <jas@extundo.com>
76486
76487         * modules/xgethostname (Depends-on): Remove exit and error (not
76488         used).
76489
76490         * modules/getpass-gnu: Add getpass.h.
76491         (Depends-on): Add stdbool.
76492         * modules/getpass: Add getpass.h.
76493
76494 2004-08-08  Simon Josefsson  <jas@extundo.com>
76495
76496         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76497         Check getpass declaration.
76498
76499 2004-08-08  Simon Josefsson  <jas@extundo.com>
76500
76501         * lib/xgethostname.c: Don't include error.h (not used).
76502
76503         * lib/getpass.h: Add.
76504         * lib/getpass.c: Include getpass.h first.
76505
76506 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76507
76508         * lib/xalloc-die.c: New file.
76509         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76510         All uses removed.
76511         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76512         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76513         xalloc-die.c.
76514         (_, N_, xalloc_die): Move to xalloc-die.c.
76515         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76516         so that we needn't mess with xalloc_msg_memory_exhausted.
76517
76518         * lib/sha1.h: Renamed from sha.h.
76519         (SHA1_H): Renamed from _SHA_H.
76520         (sha1_ctx): Renamed from sha_ctx.
76521         (sha1_init_ctx): Renamed from sha_init_ctx.
76522         (sha1_process_block): Renamed from sha_process_block.
76523         (sha1_process_bytes): Renamed from sha_process_bytes.
76524         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76525         (sha1_read_ctx): Renamed from sha_read_ctx.
76526         (sha1_stream): Renamed from sha_stream.
76527         (sha1_buffer): Renamed from sha_buffer.
76528         * lib/sha1.c: Likewise; renamed from sha.c.
76529         Do not include <sys/types.h>.
76530         Include <stddef.h> rather than <stdlib.h>.
76531
76532 2004-08-08  Bruno Haible  <bruno@clisp.org>
76533
76534         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76535         FILESYSTEM_PREFIX_LEN.
76536         * lib/progreloc.c: Likewise.
76537         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76538
76539 2004-08-06  Simon Josefsson  <jas@extundo.com>
76540
76541         * modules/progname (Depends-on): Don't depend on stdbool.
76542
76543 2004-08-06  Simon Josefsson  <jas@extundo.com>
76544
76545         * modules/getsubopt: New file.
76546         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76547         getsubopt.
76548
76549 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76550
76551         More merge from coreutils.
76552
76553         * m4/utimens.m4, m4/utimecmp.m4: New files.
76554         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76555         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76556         prereq.m4, sha.m4: Import changes from coreutils.
76557
76558 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76559
76560         More merge from coreutils.
76561         * modules/raise, modules/readtokens0, modules/utimens:
76562         * modules/utimecmp, module/xnanosleep: New files.
76563         * modules/strftime: Add lib/strftime.h.
76564         Change include from <time.h> to "strftime.h".
76565         * modules/yesno: Add lib/yesno.h.
76566         * modules/backupfile: Remove lib/addext.c.
76567         * modules/euidaccess: Add stat-macros.h.
76568         * modules/canonicalize, modules/euidaccess,
76569         modules/filemode, modules/lchown, modules/makepath,
76570         modules/rmdir, modules/stat: Likewise.
76571
76572 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76573
76574         Merge from tar.
76575         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76576         SIZE_MAX is a valid preprocessor constant.
76577         (__argp_basename): Change from "#ifndef _LIBC"
76578         to "#ifndef __argp_short_program_name", so that
76579         we don't compile these functions for tar.
76580
76581         More merges from coreutils.
76582         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76583         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76584         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76585         * lib/addext.c: Remove; no longer needed.
76586         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76587         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76588         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76589         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76590         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76591         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76592         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76593         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76594         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76595         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76596         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76597         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76598         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76599         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76600         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76601         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76602         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76603         Import changes from coreutils.
76604
76605 2004-08-05  Simon Josefsson  <jas@extundo.com>
76606
76607         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76608
76609 2004-08-05  Simon Josefsson  <jas@extundo.com>
76610
76611         * m4/getsubopt.m4: New file.
76612
76613 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76614
76615         Merge from coreutils.
76616
76617         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76618         * m4/getcwd-path-max.m4: New files.
76619
76620         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76621         FILESYSTEM_PREFIX_LEN ->
76622         FILE_SYSTEM_PREFIX_LEN.
76623         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76624         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76625         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76626         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76627
76628         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76629         prerequisite modules now handle the DOS stuff.
76630         Don't check for unistd.h.
76631
76632 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76633
76634         Merge from coreutils.
76635
76636         * lib/.gdb-history: Remove; this doesn't belong here.
76637
76638         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76639         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76640         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76641         * lib/getcwd.c: New files.
76642
76643         * lib/dirname.h: Include <stdbool.h>.
76644         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76645         for consistency with POSIX terminology.  All uses changed.
76646         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76647         (strip_trailing_slashes): Use bool for booleans.
76648         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76649
76650         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76651         sometimes returns a positive errno value even when it succeeds.
76652         (print_errno_message) [!LIBC]: Fall back on strerror if
76653         __strerror_r fails.
76654
76655         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76656         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76657         (longest_relative_suffix): New function.
76658         (path_concat): Use it.  Assume first argument is not NULL.
76659         Port to DOS.  Omit redundant separators.
76660         Report an error instead of returning NULL.
76661         Use mempcpy instead of memcpy.
76662         (xpath_concat): Remove: not declared or used.
76663
76664         * lib/same.h: Include <stdbool.h>
76665         (same_name): Return bool, not int.
76666         * lib/same.c (same_name): Likewise.
76667         (errno): Don't declare; we assume C89 or better now.
76668
76669         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76670         if not already defined.
76671
76672         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76673         * lib/dup-safer.c (errno): Likewise.
76674
76675 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76676
76677         Merge from coreutils.
76678         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76679         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76680         * modules/path-concat: Don't depend on strdup.
76681
76682 2004-08-03  Simon Josefsson  <jas@extundo.com>
76683
76684         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76685         * lib/progname.h: Don't include stdbool.h.
76686
76687 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76688
76689         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76690         * MODULES.html.sh (func_all_modules): Remove fatal.
76691
76692 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76693
76694         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76695
76696 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76697
76698         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76699         working.
76700
76701 2004-08-02  Simon Josefsson  <jas@extundo.com>
76702
76703         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76704         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76705         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76706
76707 2004-08-01  Simon Josefsson  <jas@extundo.com>
76708
76709         * lib/xgetdomainname.c: Include stdlib.h, for free().
76710
76711 2004-07-19  Bruno Haible  <bruno@clisp.org>
76712
76713         * MODULES.html.sh (func_all_modules): Add dummy.
76714
76715 2004-07-16  Simon Josefsson  <jas@extundo.com>
76716
76717         * modules/dummy: New file.
76718
76719 2004-07-16  Simon Josefsson  <jas@extundo.com>
76720
76721         * lib/dummy.c: New file.
76722
76723 2004-07-16  Bruno Haible  <bruno@clisp.org>
76724
76725         * lib/backupfile.h: Add extern "C" for C++.
76726         * lib/closeout.h: Likewise.
76727         * lib/copy-file.h: Likewise.
76728         * lib/findprog.h: Likewise.
76729         * lib/full-write.h: Likewise.
76730         * lib/pathname.h: Likewise.
76731         * lib/progname.h: Likewise.
76732         * lib/stpcpy.h: Likewise.
76733         * lib/stpncpy.h: Likewise.
76734         * lib/strcase.h: Likewise.
76735         * lib/strstr.h: Likewise.
76736         * lib/xalloc.h: Likewise.
76737
76738         * lib/mbswidth.h: Add extern "C" for C++.
76739         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76740
76741 2004-07-13  Robert Millan  <robertmh@gnu.org>
76742
76743         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76744
76745 2004-07-09  Simon Josefsson  <jas@extundo.com>
76746
76747         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76748         failed without this.)
76749
76750 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76751
76752         * modules/chown (Files): Add lib/fchown-stub.c, since
76753         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76754
76755 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76756
76757         * lib/fchown-stub.c: New file.
76758
76759 2004-06-24  Jim Meyering  <jim@meyering.net>
76760
76761         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76762
76763 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76764
76765         * modules/argz: Omit "#include".
76766
76767         * MODULES.html.sh (func_all_modules): Add calloc, to match
76768         2004-06-01 addition of calloc module.
76769
76770 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76771
76772         * m4/argz.m4: New file, which is autoupdated from libtool.
76773
76774 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76775
76776         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76777         libtool.
76778
76779 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76780
76781         * config/srclist-update: Don't insist on "USA." before the
76782         close-comment, as libtool omits the period and puts the */ on a
76783         separate line.
76784         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76785         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76786
76787 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76788
76789         * modules/argz: New file.
76790         * MODULES.html.sh (func_all_modules): Add argz.
76791
76792 2004-06-12  Jim Meyering  <jim@meyering.net>
76793         and  Paul Eggert  <eggert@cs.ucla.edu>
76794
76795         * modules/hash (Files): Add lib/xalloc.h.
76796         * modules/pipe (Depends-on): Add wait-process.
76797         * modules/stat (Depends-on): Add xalloc.
76798         * modules/userspec (Files): Add lib/userspec.h.
76799         * modules/xstrto
76800
76801         Upgrade from gettext-0.13.
76802         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76803         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76804         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76805
76806 2004-06-10  Jim Meyering  <jim@meyering.net>
76807
76808         * lib/calloc.c: New file.
76809
76810 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76811
76812         * lib/getdate.y (yylex): Allow space between sign and number.
76813         Problem reported by Dan Jacobson.
76814
76815 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76816
76817         Merge from coreutils CVS.
76818
76819         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76820         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76821         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76822         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76823         xstrtol.m4: Fix copyright date and/or serial number.
76824
76825         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76826         See if we need an fchown replacement.
76827         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76828         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76829         and use the replacement function if we detect either defect.
76830
76831         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76832         gl_UTIMECMP.
76833
76834 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76835         and  Jim Meyering  <jim@meyering.net>
76836
76837         Merge from coreutils CVS.
76838
76839         * lib/stat-macros.h: New file, with contents from file-type.h
76840         and coreutils' system.h.
76841         * lib/file-type.c: Include "stat-macros.h".
76842         * lib/file-type.h (file_type): Move all macro definitions to new file,
76843         stat-macros.h.
76844
76845         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76846         Wrap old code with this conditional.
76847         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76848         function that does not dereference symlinks.
76849         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76850
76851         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76852         dependency problems.
76853         (xreadlink): Accept new arg SIZE, for efficiency.
76854         All decls and uses changed.
76855         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76856
76857         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76858         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76859
76860         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76861         sysexits.h.
76862
76863 2004-06-01  Jim Meyering  <jim@meyering.net>
76864
76865         * m4/calloc.m4: New file.
76866
76867 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76868
76869         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76870         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76871         Also, fix a typo in a diagnostic.
76872
76873 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76874
76875         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76876         or AC_FUNC_REALLOC.
76877
76878 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76879
76880         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76881         macros to be defined.
76882         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76883         the allocator returns NULL because the requested size is zero.
76884
76885 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76886
76887         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76888         var.  Add comment explaining why libc still defines it.  This
76889         merges the following patch from glibc:
76890         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76891
76892 2004-05-20  Andreas Schwab  <schwab@suse.de>
76893
76894         * m4/free.m4: Replace free if it not known to work, not the other
76895         way round.
76896
76897 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76898
76899         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76900         present in glibc since revision 1.1 of this file.
76901         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76902         obstack_alignment_mask, obstack_alloc, obstack_base,
76903         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76904         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76905         obstack_grow0, obstack_init, obstack_int_grow,
76906         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76907         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76908         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76909         nonexistent functions.
76910
76911 2004-05-18  Karl Berry  <karl@gnu.org>
76912
76913         * config/srclist.txt: break link for vasnprintf.c.
76914
76915 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76916
76917         Port obstack to the AS/400, where pointers are 16 bytes wide and
76918         you cannot cast an integer to a valid pointer.  This patch is
76919         currently waiting to be integrated into glibc; see
76920         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76921
76922         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76923         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76924         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76925         (struct obstack): temp member is now a union of a pointer and
76926         an integer, instead of an integer.  All integer uses changed.
76927         This does not affect the physical layout of struct obstack,
76928         except on hosts (like the AS/400) where the size or alignment of
76929         void * is greater than that of ptrdiff_t.
76930         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76931         __STDC__)]: Store temporary in pointer member of union, not
76932         integer member.
76933         * lib/obstack.c: Include <stddef.h>, for offsetof.
76934         (struct fooalign): Remove; it doesn't need a name.
76935         (union fooround): Change double to long double, and add void *.
76936         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76937         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76938         not a macro.  Hence the values are always int; so remove all
76939         casts-to-int in uses.
76940
76941 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76942
76943         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76944         we can get this patch merged into glibc.
76945
76946 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76947             Paul Eggert  <eggert@cs.ucla.edu>
76948
76949         * m4/argp: Depend on alloca.
76950
76951 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76952             Paul Eggert  <eggert@cs.ucla.edu>
76953
76954         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76955         freecoding.
76956
76957 2004-05-17  Bruno Haible  <bruno@clisp.org>
76958
76959         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76960         precision that consists of a '.' followed by an empty digit string.
76961         Patch by Tor Lillqvist <tml@iki.fi>.
76962
76963 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76964
76965         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76966         for backward compatibility with older code.  We need our own
76967         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76968         it under some other name, and our alloca.h will define it.
76969
76970 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76971             Derek Price  <derek@ximbiot.com>
76972
76973         * lib/alloca.c: Include <alloca.h>, to get our interface.
76974         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76975         include <alloca.h> first.  Use C89 prototype for alloca; this
76976         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76977         Use #elif for simplicity, since we can assume C89 now.
76978         Don't try to source the system alloca.h since it will not be found
76979         and to prevent recursively including its replacement.
76980         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76981         * lib/regex.c: Likewise.
76982
76983 2004-05-16  Derek Price  <derek@ximbiot.com>
76984             Paul Eggert  <eggert@cs.ucla.edu>
76985
76986         getline cleanup.  This changes the getndelim2 API: both order of
76987         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76988         no delimiter).
76989
76990         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76991         interface does that.
76992         (getline): Always use getdelim, so that we don't have two
76993         copies of this code.
76994         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76995         if available.
76996         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76997         (GETNDELIM2_MAXIMUM): New macro.
76998         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76999         instead of the old practice of delim2==0.  All callers changed.
77000         Return -1 on overflow, instead of returning junk.
77001         Do not set *linesize unless allocation succeeds.
77002         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
77003         that we include sys/types.h.
77004         * lib/getnline.h: Likewise.
77005         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
77006         (getndelim2): Reorder arguments.
77007         * lib/getnline.c (getnline, getndelim):
77008         Don't discard the NMAX argument.
77009         (getnline): Invoke getndelim, to avoid code duplication.
77010         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
77011         of (size_t) -1 by callers of the getnline family.
77012
77013 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77014
77015         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
77016         Check for gettimeofday.
77017         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
77018         Check for settimeofday, stime.
77019
77020 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77021
77022         * lib/nanosleep.c (suspended): Change its type from int to
77023         sig_atomic_t volatile.
77024         (first_call): Make it private to rpl_nanosleep, and have it
77025         be zero initially as that's a bit faster.
77026         (my_usleep): Round up fractional times instead of truncating them,
77027         as this is the usual meaning for 'sleep'.
77028
77029         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
77030         doesn't work.
77031         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
77032         (ENOSYS): Define if not defined.
77033         (settime): Fall back on stime if it exists and settimeofday fails.
77034         But don't bother with fallbacks if a method fails with errno == EPERM.
77035
77036 2004-05-11  Jim Meyering  <jim@meyering.net>
77037
77038         Prior to this change, the save_cwd caller required read access to the
77039         current directory on most systems (ones with the fchdir function).
77040
77041         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
77042         fails, try write-only, and finally, resort to using xgetcwd.
77043
77044 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77045
77046         * lib/obstack.c, obstack.h: Import changes from libc.
77047
77048 2004-04-28  Bruno Haible  <bruno@clisp.org>
77049
77050         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
77051         also implicitly appends .exe to executables.
77052         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
77053         accepts Windows pathnames.
77054         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77055         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77056         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77057         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77058         Reported by Derek Robert Price <derek@ximbiot.com>.
77059
77060 2004-04-21  Karl Berry  <karl@gnu.org>
77061
77062         * config/srclist.txt (localcharset.c): break sync.
77063
77064 2004-04-20  Paul Eggert  <eggert@twinsun.com>
77065
77066         * m4/host-os.m4: Add a copyright notice.
77067
77068 2004-04-20  Jim Meyering  <jim@meyering.net>
77069
77070         Change UTILS_ to gl_ in AC_DEFINE'd names.
77071         Change utils_- and jm_-prefixed variables, too.
77072         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
77073         UTILS_FUNC_MKDIR_TRAILING_SLASH.
77074         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
77075
77076         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
77077         Don't emit trailing blanks.
77078         Also rename jm_-prefixed variables to have gl_ prefix.
77079
77080         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
77081         Also rename jm_-prefixed variables to have gl_ prefix.
77082
77083         * m4/jm-macros.m4: Reflect the renamings.
77084         * m4/prereq.m4: Likewise.
77085
77086 2004-04-20  Jim Meyering  <jim@meyering.net>
77087
77088         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
77089         memory.
77090
77091 2004-04-20  Jim Meyering  <jim@meyering.net>
77092             Bruno Haible  <bruno@clisp.org>
77093
77094         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
77095         memory when realloc fails.
77096
77097 2004-04-19  Jim Meyering  <jim@meyering.net>
77098
77099         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
77100         now that readutmp.c may call `free (0)'.
77101
77102 2004-04-19  Bruno Haible  <bruno@clisp.org>
77103
77104         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
77105         * m4/inttypes_h.m4: Likewise.
77106         * m4/stdint_h.m4: Likewise.
77107         * m4/intmax_t.m4: Likewise.
77108         * m4/uintmax_t.m4: Likewise.
77109
77110 2004-04-18  Jim Meyering  <jim@meyering.net>
77111
77112         * m4/prereq.m4: Don't forbid jm_ prefix.
77113
77114         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
77115         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
77116         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
77117         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
77118         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
77119         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
77120         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
77121         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
77122         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
77123         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
77124         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
77125         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
77126         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
77127         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
77128         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
77129         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
77130         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
77131         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
77132         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
77133
77134 2004-04-18  Jim Meyering  <jim@meyering.net>
77135
77136         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
77137         failure, don't leak memory and do call END_UTMP_ENT.
77138
77139 2004-04-16  Jim Meyering  <jim@meyering.net>
77140
77141         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
77142         coreutils' stat program.
77143         (gl_PREREQ): Don't require jm_PREREQ_STAT.
77144
77145 2004-04-11  Paul Eggert  <eggert@twinsun.com>
77146
77147         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
77148         C89.
77149         (CHAR_BIT): Remove, since we assume C89.
77150         Include <stdint.h> if available, as per current Autoconf CVS advice.
77151
77152 2004-03-31  Jim Meyering  <jim@meyering.net>
77153
77154         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
77155         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
77156         * m4/xalloc.m4: Likewise.
77157
77158 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77159
77160         Merge from coreutils.
77161
77162         * m4/inttostr.m4: New file.
77163         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
77164         Require AM_STDBOOL_H and gl_TIMESPEC instead.
77165         Require gl_CLOCK_TIME.
77166         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
77167
77168 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77169
77170         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
77171         not bool, to be more consistent with Unix conventions.
77172         Suggested by Bruno Haible.
77173
77174         Merge from coreutils.
77175
77176         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
77177         * lib/umaxtostr.c: New files.
77178
77179         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
77180         the usual <time.h> dance.
77181         (get_date): Change signature to support fractional time stamps.
77182         All callers changed.
77183         * lib/getdate.y: Include "getdate.h" first, as we can now
77184         assume C89 and don't need to worry about 'const'.
77185         Similarly, include "unlocked-io.h" near start, not in middle.
77186         Include <limits.h>.
77187         (textint.value): Use long int rather than int.
77188         (textint.digits): Use size_t rather than int.
77189         (BILLION, LOG10_BILLION): New constants.
77190         (parser_control): New member rel_ns.  Members day_ordinal,
77191         time_zone, month, day, hour, minutes, rel_year, rel_month,
77192         rel_day, rel_hour, rel_minutes, rel_seconds
77193         are now long int, not int.  Member seconds is now struct timespec,
77194         not int.  New member timespec_seen.  Members dates_seen, days_seen,
77195         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
77196         not int.
77197         (%union.intval): Now long int, not int.
77198         New member timespec.
77199         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
77200         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
77201         (spec): Now is a timespec or an item list.
77202         (timespec, items): New nonterminals.
77203         (time, rel, relunit, number, get_date):
77204         Add support for fractional seconds.
77205         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
77206         (gmtime, localtime, mktime): Remove decls; not needed with C89.
77207         (to_hour): First arg is now long int, not int.
77208         (to_year): Returns long int, not int.
77209         Don't treat year -70 like 70.
77210         (tm_diff): Returns long int, not int.
77211         (lookup_word): Use bool instead of int when appropriate.
77212         (yylex): Use size_t for count, not int.
77213         Detect overflow when parsing large integer constants.
77214         Add support for fractions.
77215         (get_date): Make pointers 'const' if possible.
77216         Use more-portable code to detect integer overflow.
77217         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
77218         Don't use ctime; it's not reliable if the year has >4 digits.
77219
77220         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
77221         This is for compatibility with BSD.
77222
77223         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
77224         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
77225         From coreutils' system.h.
77226
77227         * lib/userspec.c: Don't include "posixver.h".
77228         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
77229         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
77230         compatible extension.  Simplify code by removing a boolean int
77231         that was always nonzero if a string was nonnull.
77232
77233 2004-03-30  Jim Meyering  <jim@meyering.net>
77234
77235         Merge from coreutils.
77236
77237         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
77238         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
77239         on some systems one must include <grp.h> before it.
77240         Reported by Christian Krackowizer.
77241
77242 2004-03-30  Jim Meyering  <jim@meyering.net>
77243
77244         Merge from coreutils.
77245
77246         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
77247
77248         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
77249         an empty input stream.
77250
77251         * lib/readtokens.c: Include <stdbool.h>.
77252         (readtoken): Use `size_t' rather than int/long.
77253         All callers adjusted.
77254         Use `bool' rather than `int' where appropriate.
77255         Use memset rather than an explicit loop.
77256         Use x2nrealloc rather than xrealloc.
77257         Allow the use of `\0' as a delimiter.
77258         (readtokens): Likewise.
77259         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77260
77261 2004-03-30  Jim Meyering  <jim@meyering.net>
77262
77263         * m4/realloc.m4: Remove file, since now it does no more than
77264         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77265         the `configure.ac' section of module/realloc.
77266         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77267
77268 2004-03-30  Bruno Haible  <bruno@clisp.org>
77269
77270         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77271         nonnull.
77272
77273 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77274
77275         Merge changes to getloadavg.c from coreutils and Emacs.
77276
77277         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77278         Define to an expression, not to the empty string.
77279         Include cloexec.h and xalloc.h.
77280         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77281         Use set_cloexec_flag rather than rolling our own.
77282         * lib/cloexec.c, lib/cloexec.h: New files.
77283
77284 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77285
77286         * m4/cloexec.m4: New file.
77287
77288 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77289
77290         * lib/getopt.h: Sync with libc CVS.
77291
77292 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77293             Bruno Haible  <bruno@clisp.org>
77294
77295         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77296         mbswidth.
77297
77298 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77299             Bruno Haible  <bruno@clisp.org>
77300
77301         * lib/mbswidth.h: Include <wchar.h> only if
77302         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77303         <wchar.h>.
77304         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77305
77306 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77307
77308         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77309         Sync with libc CVS.
77310         * lib/getopt_int.h: New file, also synced from libc.
77311
77312 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77313
77314         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77315         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77316         Bring back getopt.c, getopt.h, getopt1.c.
77317
77318 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77319
77320         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77321         All uses changed.  Check for sa_sigaction member; this fixes
77322         a bug first reported by Jason Andrade in
77323         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77324
77325 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77326
77327         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77328         '#if' expressions.  Unlike the code it replaces, it does not
77329         depend on (defined _SC_PAGESIZE).  However, it does depend on
77330         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77331         first reported by Jason Andrade in
77332         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77333
77334 2004-02-25  Simon Josefsson  <jas@extundo.com>
77335
77336         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77337
77338 2004-02-25  Simon Josefsson  <jas@extundo.com>
77339
77340         * lib/strdup.h: New file.
77341         * lib/strdup.c: Include it.
77342         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77343         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77344
77345 2004-02-23  Karl Berry  <karl@gnu.org>
77346
77347         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77348         (from fencepost.gnu.org:/gd/gnuorg).
77349
77350 2004-02-23  Karl Berry  <karl@gnu.org>
77351
77352         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77353         * config/srclist.txt: add maintain/standards documents.
77354
77355 2004-02-18  Bruno Haible  <bruno@clisp.org>
77356
77357         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77358         Reported by Derek Robert Price <derek@ximbiot.com>.
77359
77360 2004-02-16  Karl Berry  <karl@gnu.org>
77361
77362         * config/mkinstalldirs, install-sh: update from automake.
77363
77364 2004-02-06  Karl Berry  <karl@gnu.org>
77365
77366         * m4/po.m4: update from gettext 0.14.1.
77367
77368 2004-02-06  Karl Berry  <karl@gnu.org>
77369
77370         * lib/config.charset: update from gettext 0.14.1.
77371
77372 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77373
77374         Add comments and code, prompted by suggestions from Bruno Haible
77375         for sh-quote.
77376         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77377         describing the enum quoting_style values.
77378         * lib/quotearg.c (quotearg_alloc): New function.
77379         (quotearg_buffer_restyled): Treat lone { and } as special.
77380         Treat = as special.  Work around bug with older shells
77381         that "see" a '\' that is really the 2nd byte of a multibyte char.
77382         Quote empty string with shell_quoting_style.
77383
77384 2004-02-03  Bruno Haible  <bruno@clisp.org>
77385
77386         * m4/pipe.m4: New file, from GNU gettext.
77387
77388 2004-02-03  Bruno Haible  <bruno@clisp.org>
77389
77390         * lib/pipe.h: New file, from GNU gettext.
77391         * lib/pipe.c: New file, from GNU gettext.
77392
77393 2004-01-27  Bruno Haible  <bruno@clisp.org>
77394
77395         * m4/execute.m4: New file, from GNU gettext.
77396
77397 2004-01-27  Bruno Haible  <bruno@clisp.org>
77398
77399         * lib/execute.h: New file, from GNU gettext.
77400         * lib/execute.c: New file, from GNU gettext.
77401         * lib/w32spawn.h: New file, from GNU gettext.
77402
77403 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77404
77405         Merge from diffutils.
77406
77407         * lib/file-type.c (file_type): Add typed memory objects.
77408         * lib/file-type.h (S_TYPEISTMO): New macro.
77409
77410         * lib/c-stack.h (c_stack_action): Remove argv argument.
77411         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
77412         (die): Don't calculate message unless segv_action returns.
77413         (get_stack_location, min_address_from_argv, max_address_from_argv,
77414         volatile stack_base, volatile_stack_size): Remove.
77415         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
77416         that every segmentation violation is a stack overflow.  (Ouch!)
77417         See Debian bug 136249 (still outstanding) for more info about why
77418         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
77419
77420 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77421
77422         Exit-status fix from coreutils.
77423
77424         Use exit_failure consistently in place of EXIT_FAILURE,
77425         so that program exit statuses are consistent on failure.
77426
77427         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
77428         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
77429         * lib/argmatch.h: Comment fix to match the above.
77430         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
77431         Now a macro referring to exit_failure, instead of a separate
77432         variable.  Include "exitfail.h" to get it.
77433         * lib/xstrtol.h: Include "exitfail.h".
77434         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
77435
77436         * lib/long-options.c (parse_long_options): Use prototype
77437         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
77438         for clarity.
77439
77440 2004-01-21  Jim Meyering  <jim@meyering.net>
77441
77442         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
77443         so as not to conflict with a different-sized __mktime_internal
77444         function in GNU libc.
77445         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
77446         Problem building statically-linked `ls' reported by Michael Brunnbauer.
77447
77448 2004-01-20  Karl Berry  <karl@gnu.org>
77449
77450         * config/config.guess: update from config.
77451
77452         * config/srclistvars.sh: GNUWWWLICENSES for karl.
77453
77454 2004-01-20  Bruno Haible  <bruno@clisp.org>
77455
77456         Safer stack allocation.
77457         * lib/setenv.c: Include allocsa.h.
77458         (alloca): Remove fallback definition.
77459         (freea): Remove macro.
77460         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
77461         instead of freea.
77462
77463 2004-01-20  Bruno Haible  <bruno@clisp.org>
77464
77465         * m4/eealloc.m4: New file, from GNU gettext.
77466
77467 2004-01-20  Bruno Haible  <bruno@clisp.org>
77468
77469         * m4/allocsa.m4: New file, from GNU gettext.
77470
77471 2004-01-20  Bruno Haible  <bruno@clisp.org>
77472
77473         * lib/xallocsa.h: New file, from GNU gettext.
77474         * lib/xallocsa.c: New file, from GNU gettext.
77475
77476 2004-01-20  Bruno Haible  <bruno@clisp.org>
77477
77478         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
77479
77480 2004-01-20  Bruno Haible  <bruno@clisp.org>
77481
77482         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77483         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77484         specially.
77485
77486 2004-01-20  Bruno Haible  <bruno@clisp.org>
77487
77488         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77489         patch.
77490
77491 2004-01-20  Bruno Haible  <bruno@clisp.org>
77492
77493         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77494
77495 2004-01-20  Bruno Haible  <bruno@clisp.org>
77496
77497         * lib/eealloc.h: New file.
77498
77499 2004-01-20  Bruno Haible  <bruno@clisp.org>
77500
77501         * lib/binary-io.h: Avoid warnings on Cygwin.
77502
77503 2004-01-20  Bruno Haible  <bruno@clisp.org>
77504
77505         * lib/allocsa.h: New file, from GNU gettext.
77506         * lib/allocsa.c: New file, from GNU gettext.
77507
77508 2004-01-18  Karl Berry  <karl@gnu.org>
77509
77510         * doc/gpl.texi, doc/lgpl.texi: new files.
77511
77512 2004-01-18  Karl Berry  <karl@gnu.org>
77513
77514         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77515         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77516
77517 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77518
77519         Merge from coreutils.
77520
77521         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77522         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77523         (gl_DEFAULT_POSIX2_VERSION): Move
77524         the documentation from 'configure' into 'config.hin',
77525         so that 'configure --help' isn't burdened by it and
77526         we don't have to worry about its formatting there.
77527         Reword the documentation so that it's more succinct
77528         and can be run together into a single paragraph.
77529         * m4/same.m4 (gl_SAME): Check for pathconf.
77530
77531 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77532
77533         Merge from coreutils.
77534
77535         * lib/posixver.c: Include posixver.h.
77536
77537         * lib/same.c: Include <stdbool.h>, <limits.h>.
77538         (_POSIX_NAME_MAX): Define if not defined.
77539         (MIN): New macro.
77540         (same_name): If file names are silently truncated, report
77541         that the file names are the same if they are the same after
77542         the silent truncation.
77543
77544         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77545         conversion function.
77546         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77547         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77548         longer needed.
77549
77550 2004-01-15  Jim Meyering  <jim@meyering.net>
77551
77552         Merge from coreutils.
77553
77554         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77555         if no library is required.
77556         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77557         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77558         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77559         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77560         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77561         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77562         value, $ac_cv_search_crypt, if it's "none required".
77563         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77564         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77565         not gl_FUNC_GETLOADAVG.
77566         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77567         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77568
77569 2004-01-15  Jim Meyering  <jim@meyering.net>
77570
77571         Merge from coreutils.
77572
77573         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77574         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77575         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77576
77577         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77578         optional configure-time default.
77579
77580         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77581
77582         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77583
77584 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77585
77586         Merge from coreutils.
77587
77588         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77589         value, $ac_cv_search_nanosleep, if it's "none required".
77590
77591 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77592
77593         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77594         with like-named macro in fnmatch.c.
77595         (EXT): Use an internal constant instead.
77596
77597         Merge fnmatch patches from glibc.
77598         * lib/fnmatch.c (mbsinit): Remove define.
77599         Add libc_hidden_ver (__fnmatch, fnmatch).
77600         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77601         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77602
77603 2004-01-14  Karl Berry  <karl@gnu.org>
77604
77605         * config/install-sh: update from automake.
77606
77607 2004-01-13  Karl Berry  <karl@gnu.org>
77608
77609         * config/install-sh: update from automake.
77610
77611 2004-01-09  Karl Berry  <karl@gnu.org>
77612
77613         * config/install-sh: update from automake.
77614
77615 2004-01-05  Karl Berry  <karl@gnu.org>
77616
77617         * config/config.{sub,guess}: update from config.
77618
77619 2003-12-31  Karl Berry  <karl@gnu.org>
77620
77621         * config/depcomp: update from automake.
77622
77623 2003-12-14  Karl Berry  <karl@gnu.org>
77624
77625         * lib/config.charset: update from gettext-runtime.
77626
77627 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77628
77629         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77630         Bug reported by Alfred M. Szmidt.
77631
77632 2003-12-03  Bruno Haible  <bruno@clisp.org>
77633
77634         * m4/gettext.m4: Upgrade from gettext-0.13.
77635         * m4/po.m4: Upgrade from gettext-0.13.
77636         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77637         * m4/intmax.m4: New file, from gettext-0.13.
77638         * m4/printf-posix.m4: New file, from gettext-0.13.
77639
77640 2003-11-29  Karl Berry  <karl@gnu.org>
77641
77642         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77643
77644 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77645             Bruno Haible  <bruno@clisp.org>
77646
77647         * lib/printf-parse.h: Don't include sys/types.h.
77648         (ARG_NONE): New macro.
77649         (char_directive): Change type of *arg_index fields to size_t.
77650         * lib/printf-parse.c: Don't include sys/types.h.
77651         (SSIZE_MAX): Remove macro.
77652         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77653         Remove unnecessary overflow check.
77654         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77655         fields.
77656
77657 2003-11-25  Bruno Haible  <bruno@clisp.org>
77658
77659         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77660
77661 2003-11-25  Bruno Haible  <bruno@clisp.org>
77662
77663         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77664         gt_TYPE_SSIZE_T.
77665
77666 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77667
77668         * modules/alloca: Remove dependency on xalloc.
77669
77670 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77671
77672         * lib/alloca.c: Remove dependency on xalloc module.
77673         (xalloc_die): Remove.
77674         (memory_full) [!defined emacs]: New macro.
77675         [!defined emacs]: Don't include xalloc.h.
77676         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77677         address arithmetic overflows.  Change datatypes a bit to avoid
77678         unnecessary casts.
77679
77680 2003-11-22  Jim Meyering  <jim@meyering.net>
77681
77682         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77683         s/size/size_t/.
77684
77685 2003-11-21  Karl Berry  <karl@gnu.org>
77686
77687         * config/config.{sub,guess}: update from config.
77688
77689 2003-11-18  Karl Berry  <karl@gnu.org>
77690
77691         * config/config.{sub,guess}: update from config.
77692
77693         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77694
77695 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77696
77697         * README: Mention that S+T cannot overflow if S is the size of
77698         an existing object and T is sufficiently small.
77699
77700 2003-11-17  Jim Meyering  <jim@meyering.net>
77701
77702         On systems without utime and without a utimes function capable of
77703         dealing with a NULL struct utimbuf* argument, this utime replacement
77704         could -- in unusual circumstances -- leak a file descriptor.
77705         * lib/utime.c: Include <unistd.h> and <errno.h>.
77706         (utime_null): Be sure to close `fd' and to preserve errno.
77707         Reported by Geoff Collyer via Arnold Robbins.
77708
77709 2003-11-17  Bruno Haible  <bruno@clisp.org>
77710
77711         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77712         (Depends-on): Add xsize.
77713
77714 2003-11-17  Bruno Haible  <bruno@clisp.org>
77715
77716         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77717
77718 2003-11-17  Bruno Haible  <bruno@clisp.org>
77719
77720         * lib/vasnprintf.c (alloca): Remove fallback definition.
77721         (freea): Remove definition.
77722         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77723         Reported by Paul Eggert.
77724
77725 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77726             Bruno Haible  <bruno@clisp.org>
77727
77728         Protect against address arithmetic overflow.
77729         * lib/printf-args.h: Include stddef.h.
77730         (arguments): Change type of field 'count' to size_t.
77731         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77732         'unsigned int' where appropriate.
77733         * lib/printf-parse.h: Include sys/types.h.
77734         (char_directive): Change type of *arg_index fields to ssize_t.
77735         (char_directives): Change type of fields 'count', max_*_length to
77736         size_t.
77737         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77738         (SSIZE_MAX): Define fallback value.
77739         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77740         instead of 'int' where appropriate. Check a_allocated, d_allocated
77741         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77742         * lib/vasnprintf.c: Include xsize.h.
77743         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77744         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77745         overflow. Avoid wraparound when converting a width or precision from
77746         decimal to binary.
77747
77748 2003-11-16  Bruno Haible  <bruno@clisp.org>
77749
77750         Update from GNU gettext.
77751         * lib/printf-parse.c: Generalize to it can be compiled for wide
77752         strings.
77753         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77754         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77755         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77756         SNPRINTF): New macros.
77757         Don't include <alloca.h> if the file is used inside libintl.
77758         (local_wcslen): New function, for Solaris 2.5.1.
77759         (VASNPRINTF): Use it instead of wcslen.
77760
77761 2003-11-16  Bruno Haible  <bruno@clisp.org>
77762
77763         * lib/xsize.h (xmax): New function.
77764         (xsum, xsum3, xsum4): Declare as "pure" functions.
77765
77766 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77767
77768         * modules/xalloc (Files): Undo latest change, since xalloc.h
77769         no longer needs SIZE_MAX or PTRDIFF_MAX.
77770
77771 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77772
77773         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77774         gl_PTRDIFF_MAX.
77775
77776 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77777
77778         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77779         "return", to pacify some unknown compiler.  Problem reported
77780         by Joerg Schilling.
77781
77782 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77783
77784         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77785         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77786         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77787         heuristic is just as accurate as far as we know, and it removes a
77788         dependency on size_max.m4 and ptrdiff_max.m4.
77789
77790 2003-11-11  Bruno Haible  <bruno@clisp.org>
77791
77792         * modules/xsize (Files): Add m4/size_max.m4.
77793         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77794
77795 2003-11-11  Bruno Haible  <bruno@clisp.org>
77796
77797         * m4/size_max.m4: New file.
77798         * m4/ptrdiff_max.m4: New file.
77799         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77800         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77801         (gl_XALLOC): Invoke it.
77802
77803 2003-11-11  Bruno Haible  <bruno@clisp.org>
77804
77805         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77806         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77807         defined.
77808
77809 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77810
77811         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77812         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77813         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77814         From Bruno Haible.
77815         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77816         not (size_t) -1, since it's defined here.
77817
77818 2003-11-09  Karl Berry  <karl@gnu.org>
77819
77820         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77821
77822 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77823
77824         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77825         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77826         Reject sizes of exactly SIZE_MAX bytes.
77827         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77828         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77829
77830 2003-11-05  Bruno Haible  <bruno@clisp.org>
77831
77832         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77833         SIZE_MAX defined in <limits.h> on Solaris.
77834
77835 2003-11-04  Jim Meyering  <jim@meyering.net>
77836
77837         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77838         variable names, rather than @VAR@.
77839         * modules/poll: Likewise.
77840
77841 2003-11-04  Bruno Haible  <bruno@clisp.org>
77842
77843         * modules/xsize: New file.
77844         * modules/linebreak: Depend on xsize.
77845         * MODULES.html.sh (func_all_modules): Add xsize.
77846
77847 2003-11-04  Bruno Haible  <bruno@clisp.org>
77848
77849         * m4/xsize.m4: New file.
77850
77851 2003-11-04  Bruno Haible  <bruno@clisp.org>
77852
77853         * lib/xsize.h: New file.
77854         * lib/linebreak.c: Include xsize.h.
77855         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77856         argument for overflow.
77857         Suggested by Paul Eggert.
77858
77859 2003-11-03  Karl Berry  <karl@gnu.org>
77860
77861         * config/config.{guess,sub}: update from config.
77862
77863 2003-11-03  Jim Meyering  <jim@meyering.net>
77864
77865         * modules/userspec (lib_SOURCES): Add userspec.h.
77866         (Include): Add "userspec.h".
77867         Improve description.
77868
77869 2003-11-03  Jim Meyering  <jim@meyering.net>
77870
77871         * lib/userspec.c: Include "userspec.h".
77872         * lib/userspec.h: New file.
77873
77874 2003-11-03  Bruno Haible  <bruno@clisp.org>
77875
77876         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77877
77878 2003-11-03  Bruno Haible  <bruno@clisp.org>
77879
77880         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77881         available, to avoid (extremely rare) race condition.
77882         Suggested by Paul Eggert.
77883
77884 2003-11-02  Karl Berry  <karl@gnu.org>
77885
77886         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77887
77888 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77889
77890         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77891         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77892         (read_filesystem_list): Set and use me_type_malloced.
77893         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77894         whatever the type happens to be), for brevity and consistency.
77895         Check for size calculation overflow on Alphas running OSF/1.
77896
77897 2003-10-31  Jim Meyering  <jim@meyering.net>
77898
77899         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77900
77901         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77902
77903 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77904             Bruno Haible  <bruno@clisp.org>
77905
77906         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77907         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77908
77909 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77910
77911         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77912         netbsd*-gnu*.  Suggested by Robert Millan.
77913
77914 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77915
77916         * modules/group-member: Depend on stdbool.
77917
77918 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77919
77920         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77921
77922 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77923
77924         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77925         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77926         after the 'gnu' in these cases.  This fixes some bugs in the
77927         previous change, and is based on suggestions by Robert Millan.
77928
77929 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77930
77931         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77932         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77933         no longer needed.
77934         * lib/quotearg.c (quotearg_n_options): Use it.
77935         * lib/group-member.c: Include <stdbool.h>.
77936         (free_group_info): Arg is now const *; don't free arg.
77937         (get_group_info): Now returns bool and accepts struct group_info *,
77938         rather than returning a malloc'ed struct group_info *.
77939         All uses changed.  Check for overflow in internal size calculation.
77940
77941         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77942         rather than xmalloc/xrealloc.
77943         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77944         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77945         conformance bug: the old code used a pointer after freeing the
77946         storage that it addressed.
77947         * lib/hash.c (hash_initialize): Simplify the code by using
77948         xalloc_oversized rather than doing it by hand.
77949         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77950         the buffer preserved.  Use free and xmalloc instead.
77951         * lib/quotearg.c (quotearg_n_options): Likewise.
77952         Use a simpler test for size overflow.  Don't use xalloc_oversized
77953         because unsigned int might be wider than size_t (!); this suggests
77954         that we should switch from unsigned int to size_t for slot numbers.
77955
77956 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77957
77958         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77959         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77960         NetBSD kernels.  Requested by Richard Stallman.
77961
77962 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77963
77964         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77965         to allocate the returned structure.  Do not allocate a subarray,
77966         as x2nrealloc will do that.
77967         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77968         instead of xnrealloc.
77969         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77970
77971 2003-10-27  Bruno Haible  <bruno@clisp.org>
77972
77973         * lib/stdbool_.h: Better support for BeOS.
77974
77975 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77976
77977         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77978         now uses inline.
77979
77980 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77981
77982         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77983         callers that want to do their own size-overflow checking.  Include
77984         <stdbool.h>, since xalloc_oversized returns bool.
77985         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77986         to use xalloc_oversized.
77987
77988         Add two functions x2realloc, x2nrealloc, for programs that grow
77989         arrays dynamically by doubling their sizes.
77990         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77991         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77992         New functions.
77993
77994         Port to C99 semantics for 'inline' of external functions.
77995         Bug reported by Bruno Haible.
77996         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77997         with the old contents of xnmalloc.
77998         (xnmalloc, xmalloc): Use it.
77999         (xnrealloc_inline): New static inline function,
78000         with the old contents of xnrealloc.
78001         (xnrealloc, xrealloc): Use it.
78002
78003         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
78004         that.
78005
78006 2003-10-26  Karl Berry  <karl@gnu.org>
78007
78008         * config/srclist.txt (COPYING.DOC): no longer available from
78009         /gd/gnuorg; don't know where the ultimate source is.
78010
78011 2003-10-25  Paul Eggert  <eggert@twinsun.com>
78012
78013         Fix several address-calculation bugs in the hash modules,
78014         plus some minor code cleanup.
78015
78016         * lib/hash.h: Include <stdbool.h>, for bool.
78017         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
78018         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
78019         hash_get_n_entries, hash_get_max_bucket_length,
78020         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
78021         hash_rehash): Use size_t rather than unsigned.
78022         * lib/hash.c (struct hash_table, hash_get_n_buckets,
78023         hash_get_n_buckets_used, hash_get_n_entries,
78024         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
78025         hash_get_entries, hash_do_for_each, hash_string, is_prime,
78026         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
78027         Likewise.
78028         (SIZE_MAX): Define if not defined.
78029         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
78030         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
78031         hash_print):
78032         Use const * when possible.
78033         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
78034         (check_tuning): Fix bug: if tuning parameters were very close to
78035         0 or 1, rounding errors could have caused subscript violations.
78036         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
78037         (hash_initialize): Add 'fail:' label
78038         to free table and return NULL, and use it to simplify code.
78039         Use calloc rather than clearing the storage ourself.
78040         (hash_initialize, hash_rehash): Check for arithmetic overflow in
78041         buffer size calculations.
78042         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
78043         Include <stddef.h>, for size_t.
78044         * lib/hash-pjw.c (hash_pjw): Likewise.
78045         Switch to method described by Bruno Haible.
78046         Include <limits.h>, for CHAR_BIT.
78047         (SIZE_BITS): New macro.
78048
78049 2003-10-23  Paul Eggert  <eggert@twinsun.com>
78050
78051         * m4/getline.m4 (AM_FUNC_GETLINE):
78052         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
78053         hosts.  Problem reported by Derek Robert Price in
78054         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
78055         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
78056         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
78057
78058 2003-10-21  Paul Eggert  <eggert@twinsun.com>
78059
78060         * lib/getndelim2.c (getndelim2): When size calculation overflows,
78061         ceiling the allocation at NMAX bytes rather than silently
78062         discarding input bytes before NMAX is reached.  This makes
78063         a difference only if NMAX exceeds SIZE_MAX / 2.
78064
78065         * lib/obstack.c: Merge from glibc.
78066         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
78067         Add libc_hidden_def (_obstack_newchunk).
78068         (_obstack_free) [! defined _LIBC]: Remove.
78069         [defined _LIBC]: Make a strong alias from obstack_free, rather than
78070         a clone of the function body.
78071         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
78072         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
78073
78074         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
78075         glibc.
78076         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
78077         arg to memcpy.
78078
78079         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
78080         (obstack_ptr_grow_fast, obstack_int_grow_fast):
78081         Don't use lvalue casts, as GCC plans to remove support for them
78082         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
78083         was also present in the non-GCC version, indicating that this
78084         code had always been buggy and had never been widely used.
78085         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
78086         Use the fast variant of each macro, rather than copying the
78087         definiens of the fast variant; that way, we'll be more likely to
78088         catch future bugs in the fast variants.
78089
78090 2003-10-20  Bruno Haible  <bruno@clisp.org>
78091
78092         * modules/wait-process: New file.
78093         * MODULES.html.sh (func_all_modules): Add wait-process.
78094
78095 2003-10-20  Bruno Haible  <bruno@clisp.org>
78096
78097         * m4/wait-process.m4: New file.
78098
78099 2003-10-20  Bruno Haible  <bruno@clisp.org>
78100
78101         * lib/wait-process.h: New file, from GNU gettext.
78102         * lib/wait-process.c: New file, from GNU gettext.
78103
78104 2003-10-19  Jim Meyering  <jim@meyering.net>
78105
78106         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
78107         HPUX 10.20.
78108
78109 2003-10-18  Karl Berry  <karl@gnu.org>
78110
78111         * config/config.guess: update from config.
78112
78113 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78114
78115         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
78116         (getgroups): First arg is int, not size_t.
78117         Don't let 'free' mangle errno.
78118
78119 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78120
78121         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
78122
78123 2003-10-16  Karl Berry  <karl@gnu.org>
78124
78125         * config/config.{guess,sub}: update from config.
78126
78127 2003-10-16  Jim Meyering  <jim@meyering.net>
78128
78129         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
78130         memcpy.
78131
78132 2003-10-15  Paul Eggert  <eggert@twinsun.com>
78133
78134         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
78135         (SIZE_MAX): Remove.
78136         (new_exclude, add_exclude_file): Initial size no longer needs to
78137         be a power of 2.
78138         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
78139         our own address arithmetic overflow checking.
78140
78141         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
78142         (fnmatch): Do not alloca more than 2000 wide characters;
78143         instead, use malloc for large buffers.
78144         Check for address arithmetic overflow, and return -1
78145         with errno set to ENOMEM in that case.
78146         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
78147         (NEW_PATTERN): Do not alloca more than 8000 bytes;
78148         instead, return -1.  Check for address arithmetic overflow.
78149
78150 2003-10-14  Paul Eggert  <eggert@twinsun.com>
78151
78152         Handle invalid suffixes and overflow independently, so that
78153         callers can treat them independently as needed.  Fix some bugs in
78154         suffix handling, e.g., "100k@" was not diagnosed as an invalid
78155         suffix for a human-readable blocksize.  The major caller-visible
78156         change is the addition of a new
78157         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
78158         that both overflow and suffix chars were found.
78159
78160         * lib/human.c (humblock): Don't check separately for invalid suffix
78161         char; that is xstrtoumax's job (now that its bug is fixed).
78162         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
78163         INTMAX_MAX]: New macros.
78164         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
78165         TYPE_MAXIMUM): New macros.
78166         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
78167         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
78168         if overflow occurs, as it's what __strtol does and it's more useful
78169         in practice.
78170         (__xstrtol): If __strtol reports some error other than ERANGE,
78171         reflect it to the caller as LONGINT_INVALID.  If it reports
78172         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
78173         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
78174         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
78175         value.
78176         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
78177         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
78178         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
78179         [defined UINTMAX_MAX]: New macros.
78180
78181 2003-10-14  Bruno Haible  <bruno@clisp.org>
78182
78183         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
78184
78185 2003-10-14  Bruno Haible  <bruno@clisp.org>
78186
78187         * m4/sig_atomic_t: New file, from GNU gettext.
78188         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
78189
78190 2003-10-14  Bruno Haible  <bruno@clisp.org>
78191
78192         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
78193         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
78194         Also use volatile where needed.
78195
78196 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78197
78198         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
78199         Change maintainer from Bruno Haible to 'all'.
78200
78201 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78202
78203         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
78204
78205 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78206
78207         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
78208         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
78209         and define in terms of the other primitives.
78210         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
78211         (SIZE_MAX): Define if not already defined.
78212         (array_size_overflow): New function.
78213         (xalloc_die): Abort instead of exiting if 'error' returns.
78214         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
78215         (xmalloc, xrealloc): Use them.
78216         (xcalloc): Check for address arithmetic overflow.
78217         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
78218         a bit faster than strcpy.
78219
78220 2003-10-10  Simon Josefsson  <jas@extundo.com>
78221
78222         * modules/argp (Depends-on): Add restrict and strcase.
78223
78224 2003-10-10  Simon Josefsson  <jas@extundo.com>
78225
78226         * m4/argp.m4: Add AC_C_INLINE.
78227
78228 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78229
78230         Merge getpass from libc, plus a few fixes.
78231
78232         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
78233         Include <stdbool.h>.
78234         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
78235         __fsetlocking to empty.
78236         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
78237         do include <bits/libc-lock.h>.
78238         Do not include <fcntl.h>; not needed.
78239         [_LIBC]: Include <wchar.h>.
78240         (NOTCANCEL_MODE): New macro.
78241         (flockfile, funlockfile) [_LIBC]: New macros.
78242         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
78243         [!_LIBC]: New macros.
78244         (call_fclose): New function.
78245         (getpass): Use it.  Save tty stream separately; this simplifies the
78246         code and makes it more reliable if stdin happens to equal stdout.
78247         Invoke __fsetlocking on tty.
78248         Handle thread cancellation if needed.
78249         Namespace cleanup (use __tcgetattr, __getline).
78250         Use bool for Booleans.
78251         [USE_IN_LIBIO]: Handle wide streams.
78252         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78253         stream might go where.
78254
78255         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78256         doesn't have to include <stdio.h> before us.
78257         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78258         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78259         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78260         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78261         if not declared, so that we can use getpass.c code from libc without
78262         rewriting it.
78263         (flockfile, ftrylockfile, funlockfile): New macros.
78264
78265 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78266
78267         * modules/getpass: Depend on stdbool.
78268
78269 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78270
78271         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78272
78273 2003-10-07  Karl Berry  <karl@gnu.org>
78274
78275         * config/config.{guess,sub}: update from config.
78276
78277 2003-10-06  Jim Meyering  <jim@meyering.net>
78278             Bruno Haible  <bruno@clisp.org>
78279
78280         This lets translators provide better translations for the
78281         "Written by ..." part of --version output.
78282         * lib/version-etc.h: Include stdarg.h.
78283         (version_etc_copyright): Declare as readonly.
78284         (version_etc): Make this function variadic with a NULL-terminated list
78285         of author name strings.
78286         (version_etc_va): New declaration.
78287         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78288         (version_etc_copyright): Declare as readonly.
78289         (version_etc_va): New function. Provide a different translatable string
78290         for each possible number of authors < 10. Abbreviate when there are 10
78291         authors or more.
78292         (version_etc): Make this function variadic. Call version_etc_va.
78293         Suggestion from Gary V. Vaughan.
78294
78295         * lib/long-options.h (parse_long_options): Change prototype: the
78296         authors string is moved to the end and becomes variadic.
78297         * lib/long-options.c: Include stdarg.h.
78298         (parse_long_options): Make this function variadic, too.
78299         Call version_etc_va, not version_etc.
78300
78301 2003-10-06  Bruno Haible  <bruno@clisp.org>
78302
78303         * modules/version-etc-2: Remove file.
78304         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78305
78306 2003-10-06  Bruno Haible  <bruno@clisp.org>
78307
78308         * modules/fatal-signal: New file.
78309         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78310
78311 2003-10-06  Bruno Haible  <bruno@clisp.org>
78312
78313         * m4/fatal-signal.m4: New file.
78314         * m4/signalblocking.m4: New file, from GNU gettext.
78315
78316 2003-10-06  Bruno Haible  <bruno@clisp.org>
78317
78318         * lib/version-etc-2.h: Remove file.
78319         * lib/version-etc-2.c: Remove file.
78320
78321 2003-10-06  Bruno Haible  <bruno@clisp.org>
78322
78323         * lib/fatal-signal.h: New file, from GNU gettext.
78324         * lib/fatal-signal.c: New file, from GNU gettext.
78325
78326 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78327
78328         * README: Rework advice for preventing empty .o files.
78329         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78330         not <sys/types.h>.
78331
78332 2003-10-04  Karl Berry  <karl@gnu.org>
78333
78334         * lib/argp*: update from libc.
78335
78336 2003-10-04  Karl Berry  <karl@gnu.org>
78337
78338         * config/config.{guess,sub}: update from config.
78339
78340 2003-10-02  Bruno Haible  <bruno@clisp.org>
78341
78342         * modules/lchown (Include): Add lchown.h.
78343         * modules/time_r (Include): Use "..." syntax.
78344         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78345
78346 2003-10-01  Simon Josefsson  <jas@extundo.com>
78347
78348         * MODULES.html.sh (func_all_modules): Move gethostname from section
78349         'based on' to section 'lacking' POSIX:2001.
78350
78351 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78352
78353         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78354         to output mode on the same stream.
78355
78356 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78357
78358         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78359         Fix arg typo in previous patch.
78360
78361 2003-09-28  Jim Meyering  <jim@meyering.net>
78362
78363         * lib/error.c: Correct cpp indentation.
78364
78365 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78366
78367         * modules/free: New file.
78368
78369 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78370
78371         * m4/free.m4: New file.
78372
78373 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78374
78375         * lib/minmax.h (MIN, MAX)
78376         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78377         Omit the special code that used __typeof__, since we worry that
78378         it could be more trouble than it's worth.  See:
78379         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78380         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78381
78382         * lib/free.c: New file.
78383
78384 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78385
78386         Trivial fixes to Makefile.am parts of module listings.
78387         * modules/strstr: Append strstr.h to lib_SOURCES.
78388         * modules/strcase: Likewise, for strcase.h.
78389
78390 2003-09-27  Karl Berry  <karl@gnu.org>
78391
78392         * config/mkinstalldirs: update from automake.
78393
78394 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78395
78396         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
78397         (error_tail): Do not loop, reallocating temporary buffer, since
78398         the output cannot contain more wide characters than the input
78399         contains bytes, the size must be big enough already.  This avoids
78400         one potential size overflow calculation.  Check for size overflow
78401         when calculating temporary buffer size.  Free temporary buffer
78402         when done, if it was allocated with malloc; this plugs a memory
78403         leak.  Remove casts from void * to pointers, that are no longer
78404         needed now that we're assuming C89 or better.
78405
78406         Merge error changes from glibc.
78407
78408         * lib/error.c, error.h: Update copyright notice header to match glibc.
78409         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
78410         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
78411         Disable cancellation while printing error.
78412         * lib/error.h: Prepend __ to parameter names.
78413
78414 2003-09-26  Jim Meyering  <jim@meyering.net>
78415
78416         * lib/error.c (error_tail): Move some declarations
78417         into inner scope where the local variables are used.
78418
78419 2003-09-26  Bruno Haible  <bruno@clisp.org>
78420
78421         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
78422         stpncpy().
78423         Don't define stpncpy through config.h; it's now done through stpncpy.h.
78424
78425 2003-09-26  Bruno Haible  <bruno@clisp.org>
78426
78427         * lib/stpncpy.h (gnu_stpncpy): New declaration.
78428         (stpncpy): Define as alias for gnu_stpncpy.
78429         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
78430
78431 2003-09-25  Simon Josefsson  <jas@extundo.com>
78432
78433         * lib/xgetdomainname.h: New file.
78434         * lib/xgetdomainname.c: New file.
78435
78436 2003-09-25  Simon Josefsson  <jas@extundo.com>
78437             Bruno Haible  <bruno@clisp.org>
78438
78439         * modules/getdomainname: New file.
78440         * modules/xgetdomainname: New file.
78441         * MODULES.html.sh (func_all_modules): Add getdomainname,
78442         xgetdomainname.
78443
78444 2003-09-25  Simon Josefsson  <jas@extundo.com>
78445             Bruno Haible  <bruno@clisp.org>
78446
78447         * m4/getdomainname.m4: New file.
78448
78449 2003-09-25  Simon Josefsson  <jas@extundo.com>
78450             Bruno Haible  <bruno@clisp.org>
78451
78452         * lib/getdomainname.h: New file.
78453         * lib/getdomainname.c: New file.
78454
78455 2003-09-25  Karl Berry  <karl@gnu.org>
78456
78457         * lib/argp-fmtstream.c, argp-help.c: update from libc.
78458
78459 2003-09-25  Karl Berry  <karl@gnu.org>
78460
78461         * config/install-sh: update from automake.
78462
78463 2003-09-25  Bruno Haible  <bruno@clisp.org>
78464
78465         * modules/version-etc-2: New file, from modules/version-etc with
78466         modifications.
78467         * MODULES.html.sh (func_all_modules): Add version-etc-2.
78468
78469 2003-09-25  Bruno Haible  <bruno@clisp.org>
78470
78471         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
78472         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
78473
78474 2003-09-24  Simon Josefsson  <jas@extundo.com>
78475
78476         * modules/xgethostname: Add xgethostname.h.
78477
78478 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78479
78480         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78481         the buffer associated with the argument.  Bug reported by
78482         Simon Josefsson.
78483
78484 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78485
78486         * README: Document assumptions that 'int' is at least 32 bits
78487         wide, that integer arithmetic is 2's complement without overflow,
78488         that there are no holes in integer values, that adding sizes of
78489         two nonoverlapping objects can't overflow, and that all-bits-zero
78490         yields scalar zero.  Fix spelling and capitalization typos.
78491
78492 2003-09-19  Karl Berry  <karl@gnu.org>
78493
78494         * lib/argp.h: update from libc.
78495
78496 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78497
78498         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78499         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78500         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78501
78502 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78503
78504         * gnulib-tool: Use "test -h", not "test -L", for portability
78505         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78506         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78507         (sed_extract_prog): Issue s commands one-by-one, rather than
78508         using \| in one s command.
78509
78510 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78511
78512         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78513         input error, instead of returning NULL the next time we are called
78514         (and therefore losing track of errno).
78515
78516 2003-09-16  Bruno Haible  <bruno@clisp.org>
78517
78518         * gnulib-tool (func_create_testdir): Warn about duplicated
78519         dependencies.
78520
78521 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78522
78523         * modules/argmatch, modules/fatal, modules/obstack,
78524         modules/xalloc, modules/xgethostname: Sort dependencies by
78525         importance, not alphabetically.
78526
78527 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78528
78529         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78530         fails, so that the caller gets the proper errno.
78531
78532         * lib/readutmp.c (read_utmp): Likewise.
78533         Check for fstat error.  Close stream and free storage
78534         when failing.
78535
78536 2003-09-14  Karl Berry  <karl@gnu.org>
78537
78538         * config/srclist.txt (strdup.c): disable for c89 changes.
78539
78540 2003-09-14  Jim Meyering  <jim@meyering.net>
78541
78542         * lib/getloadavg.c: Correct cpp indentation.
78543         * lib/strdup.c: Likewise.
78544         * lib/vasnprintf.c: Likewise.
78545
78546 2003-09-14  Bruno Haible  <bruno@clisp.org>
78547
78548         * modules/fwriteerror: New file.
78549         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78550
78551 2003-09-14  Bruno Haible  <bruno@clisp.org>
78552
78553         * lib/fwriteerror.h: New file.
78554         * lib/fwriteerror.c: New file.
78555
78556 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78557
78558         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78559         modules/xgethostname, modules/xalloc: Depend on exit.
78560
78561 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78562
78563         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78564
78565         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78566         and AC_MINIX, too, so that their extensions are available.
78567
78568         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78569         This macro has been superseded by gl_BACKUPFILE.
78570
78571         More patches to assume C89 or better.
78572
78573         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78574
78575         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78576         unconditionally.
78577         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78578         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78579         Include <string.h>, <stdlib.h> unconditionally.
78580         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78581         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78582         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78583         headers or for string.h.
78584         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78585         or strtoul.
78586
78587         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78588         headers.
78589         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78590         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78591         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78592         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78593         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78594         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78595         memcpy, memset.
78596         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78597         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78598         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78599         strtol.
78600         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78601         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78602         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78603         strtoul.
78604
78605 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78606
78607         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78608         * lib/obstack.c [!defined _LIBC]: Likewise.
78609         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78610         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78611         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78612
78613         More changes to assume C89 or better.
78614
78615         * lib/error.c (error_tail): Assume vprintf.
78616
78617         * lib/argmatch.c (getenv): Remove decl.
78618         * lib/progreloc.c (get_full_program_name): Define via prototype.
78619         * lib/setenv.c (clearenv): Likewise.
78620         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78621         needed.
78622         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78623         (malloc, memcpy): Remove decls.
78624         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78625         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78626         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78627         (memcpy): Remove macro.
78628         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78629         (__P): Remove.  All uses removed.
78630         (PTR): Remove.  All uses changed to void *.
78631         (CHAR_BIT, NULL): Remove.
78632         (spaces, zeros, memset_space, memset_zero)
78633         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78634         Remove.
78635         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78636         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78637         Define with prototype.
78638         Remove now-unnecessary prototype decl.
78639         (extra_args_spec): Assume ANSI C.  All uses changed.
78640         (extra_args_spec_iso): Remove.
78641         (my_strftime, emacs_strftimeu): Define via prototype.
78642         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78643         unconditionally.
78644         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78645         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78646         (strtoul, strtol): Remove decls.
78647         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78648         LONG_MAX): Remove.
78649         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78650         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78651         (LOCALE_PARAM_PROTO): New macro.
78652         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78653         (INTERNAL (strtol), strtol): Define with a prototype.
78654         (PARAMS): Remove.  All uses removed.
78655         * lib/tempname.c: Include <string.h> unconditionally.
78656         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78657         * lib/xgethostname.c (main): Define with a prototype.
78658         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78659         Include <stdlib.h> unconditionally.
78660         (calloc, malloc, realloc, free): Remove decls.
78661         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78662         Include <stdlib.h> unconditionally.  Sort include file names.
78663         (strtod): Remove.
78664         (xstrtod): Define with a prototype.
78665         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78666         (strtol, strtoul): Remove decls.
78667
78668 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78669
78670         More patches to assume C89 or better.
78671         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78672         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78673         string.h, memchr, STDC_HEADERS.
78674
78675 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78676
78677         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78678         Include <stdlib.h>, <string.h> unconditionally.
78679         Remove now-unnecessary cast to char *.
78680         * lib/strnlen.c: Include <string.h> unconditionally.
78681         * lib/yesno.c (yesno): Define with a prototype.
78682
78683 2003-09-11  Bruno Haible  <bruno@clisp.org>
78684
78685         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78686
78687 2003-09-10  Jim Meyering  <jim@meyering.net>
78688
78689         * lib/error.c: Correct indentation of cpp directives.
78690
78691 2003-09-10  Bruno Haible  <bruno@clisp.org>
78692
78693         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78694         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78695         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78696         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78697         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78698         <stdlib.h> and <string.h> checks.
78699         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78700         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78701
78702 2003-09-10  Bruno Haible  <bruno@clisp.org>
78703
78704         * lib/strcspn.c: Include <string.h> unconditionally.
78705         * lib/strpbrk.c: Include <string.h> unconditionally.
78706         * lib/strstr.c: Include <string.h> unconditionally.
78707         * lib/unicodeio.c: Include <string.h> unconditionally.
78708         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78709         * lib/unsetenv.c: Likewise.
78710         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78711         * lib/yesno.c: Include <stdlib.h> unconditionally.
78712         (rpmatch): Add prototype.
78713
78714 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78715
78716         More patches to assume C89 or better.
78717         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78718         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78719         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78720         or for string.h.
78721         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78722         stdlib.h.
78723         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78724         C headers.
78725         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78726         string.h.
78727         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78728         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78729         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78730         or for string.h.
78731         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78732         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78733         C headers.
78734         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78735         memcpy.
78736         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78737         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78738         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78739         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78740         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78741         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78742         string.h, free.
78743         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78744         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78745         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78746         C headers, or for string.h.
78747         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78748         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78749         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78750         headers, memory.h, stdlib.h, string.h, strings.h.
78751         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78752         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78753         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78754         strchr.
78755         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78756         headers, memory.h, string.h.
78757         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78758         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78759         free.
78760         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78761         headers.
78762         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78763         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78764         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78765         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78766         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78767
78768 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78769
78770         More K&R removal.
78771
78772         * lib/acosl.c (main): Use a prototype.
78773         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78774         tanl.c: Likewise.
78775
78776         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78777
78778         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78779         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78780         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78781         with a prototype.
78782         * lib/getopt.c (const): Remove macro.
78783         Include <string.h> unconditionally.
78784         (my_index): Remove; all uses changed to strchr.
78785         (strlen): Remove decl.
78786         (exchange): Remove forward decl; no longer needed.
78787         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78788         Define with prototype.
78789         * lib/getopt1.c (const): Remove macro.
78790         (getopt_long, getopt_long_only, main): Define with prototype.
78791
78792         * lib/getugroups.c: Include <string.h> unconditionally.
78793
78794         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78795         (getusershell, setusershell, endusershell, readname, main):
78796         Define with prototypes.
78797
78798         * lib/group-member.c: Include group-member.h first.
78799         Include <stdlib.h> unconditionally.
78800
78801         * lib/hard-locale.c: Include hard-locale.h first.
78802         Include <stdlib.h>, <string.h> unconditionally.
78803
78804         * lib/hash.c (free, malloc): Remove decls.
78805         Include <stdlib.h> unconditionally.
78806
78807         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78808         (getenv): Do not declare.
78809
78810         * lib/idcache.c: Include <string.h> unconditionally.
78811
78812         * lib/long-options.c: Include long-options.h first, to test interface.
78813         Include <stdlib.h> unconditionally.
78814
78815         * lib/makepath.c: Include makepath.h first, to test interface.
78816         Include <stdlib.h> and <string.h> unconditionally.
78817
78818         * lib/linebuffer.c: Include <stdlib.h>.
78819         (free): Remove decl.
78820
78821         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78822         stddef.h. rpl_malloc returns void *, not char *.
78823         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78824         prototype.
78825
78826         * lib/md5.h: Include <limits.h> unconditionally.
78827         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78828         (__P): Remove; all uses removed.
78829         * lib/md5.c: Include "md5.h" first.
78830         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78831         md5_buffer, md5_process_bytes, md5_process_block):
78832         Define with prototypes.
78833         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78834         * lib/sha.c: Include "sha.h" first.
78835         Include <stdlib.h>, <string.h> unconditionally.
78836
78837         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78838         * lib/memcmp.c (__ptr_t): Likewise.
78839         * lib/memrchr.c (__ptr_t): Likewise.
78840         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78841         Include <string.h> unconditionally.
78842         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78843         * lib/memchr.c: Include <stdlib.h> unconditionally.
78844         * lib/memchr.c (LONG_MAX): Remove.
78845         * lib/memrchr.c (LONG_MAX): Likewise.
78846         * lib/memchr.c (__memchr): Define via a prototype.
78847         * lib/memrchr.c (__memrchr): Likewise.
78848         * lib/memcmp.c (__P): Remove, and remove all uses.
78849         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78850         Remove forward decls; no longer needed.
78851         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78852         Use types required by C89 in prototype.
78853
78854         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78855         * lib/savedir.c: Likewise.
78856         * lib/mkdir.c (free): Remove decl.
78857         * lib/rmdir.c (rmdir): Define with a prototype.
78858         * lib/savedir.c: Include savedir.h first, to test interface.
78859
78860         * lib/mktime.c (STDC_HEADERS): Remove.
78861         Include <stdlib.h>, <string.h> unconditionally.
78862
78863         * lib/modechange.c: Include <stdlib.h> unconditionally.
78864         (malloc): Remove decl.
78865
78866         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78867         (free): Remove decl.
78868
78869         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78870         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78871         (This type really should be intptr_t, but that's a C99ism.)
78872         (_obstack_memcpy): Remove: all uses changed to memcpy.
78873         Include <string.h> unconditionally.
78874         (struct obstack): Assume __STDC__ for types of members
78875         chunkfun, freefun, extra_arg.
78876         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78877         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78878         obstack_begin, obstack_specify_allocation,
78879         obstack_specify_allocation_with_arg, obstack_chunkfun,
78880         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78881         Remove unprototyped decls and the macros that use them.
78882         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78883         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78884         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78885         (defined __STDC__ && __STDC__)]:
78886         Remove nonprototyped code.
78887         Include <stdlib.h> unconditionally.
78888         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78889         _obstack_allocated_p, _obstack_free, obstack_free,
78890         _obstack_memory_used, print_and_abort):
78891         Define using prototypes.
78892         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78893         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78894         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78895         obstack_next_free, obstack_object_size, obstack_room) [0]:
78896         Remove unused, unprototyped code.
78897
78898         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78899
78900         * lib/physmem.c (physmem_total, physmem_available, main): Define
78901         with prototypes.
78902
78903         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78904         (main): Define with a prototype.
78905
78906         * lib/posixver.c (getenv): Remove decl.
78907
78908         * lib/putenv.c (malloc): Returns void *, not char *.
78909         Include <string.h> unconditionally.
78910         (strchr, memcpy, NULL): Do not define.
78911
78912         * lib/readtokens.c: Include readtokens.h first, to test interface.
78913         Include <stdlib.h>, <string.h> unconditionally.
78914         (init_tokenbuffer): Define with a prototype.
78915
78916         * lib/regex.c (PARAMS): Remove.  All uses removed.
78917         All uses of _RE_ARGS removed, too.
78918         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78919         unconditionally.
78920         (bzero): Assume memset exists.
78921         (memcmp, memcpy, NULL): Remove.
78922         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78923         char, or assignments to local vars of type signed char.
78924         (init_syntax_once, PREFIX(extract_number_and_incr),
78925         PREFIX(print_partial_compiled_pattern),
78926         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78927         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78928         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78929         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78930         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78931         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78932         wcs_compile_range, byte_compile_range, truncate_wchar,
78933         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78934         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78935         count_mbs_length, wcs_re_match_2_internal,
78936         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78937         PREFIX(alt_match_null_string_p),
78938         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78939         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78940         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78941         now-unnecessary declaration, if any.
78942         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78943         regcomp, regexec):
78944         Remove now-unnecessary casts among pointer types.
78945         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78946
78947         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78948         (free): Remove decl.
78949
78950         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78951
78952         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78953         (free): Remove decl.
78954
78955         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78956         * lib/xgetcwd.c: Likewise.
78957
78958         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78959         (free): Remove decl.
78960
78961         * lib/strchrnul.c (strchrnul): Define with a prototype.
78962         Fix bug: c_in was not converted to char before searching.
78963
78964         The following changes are not K&R related:
78965
78966         * lib/group-member.h: Include <sys/types.h>, so that this file is
78967         self-contained.
78968         * lib/makepath.h: Likewise.
78969
78970         * lib/getusershell.c (readname, default_index, line_size, readname):
78971         Use size_t, not int, for sizes.
78972         (readname): If the size overflows, report an error instead of
78973         looping forever.
78974
78975 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78976
78977         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78978         libc.
78979
78980 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78981
78982         * README: New section: portability guidelines.
78983
78984 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78985
78986         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78987         C89 spec.
78988
78989 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78990
78991         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78992
78993 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78994
78995         Assume C89 or better; remove K&R cruft.
78996         A few of these changes were first proposed by Derek Robert Price
78997         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78998
78999         * lib/addext.c: Include <string.h> unconditionally.
79000         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
79001         Don't declare getenv or malloc.
79002
79003         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
79004         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
79005         (NULL): Remove.
79006         (find_stack_direction, alloca): Use prototypes.
79007
79008         * lib/atexit.c (atexit): Define using a prototype.
79009
79010         * lib/basename.c, dirname.c, stripslash.c:
79011         Include <string.h> unconditionally.
79012
79013         * lib/bcopy.c: Include <stddef.h>.
79014         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
79015
79016         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
79017
79018         * lib/error.h (error, error_at_line, error_print_progname)
79019         [! (defined (__STDC__) && __STDC__)]: Remove decls.
79020         * lib/error.c: Include error.h first, to check interface.
79021         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79022         (VA_START): Remove; all uses changeed to va_start.
79023         (exit, strerror): Remove decls.
79024         (error_print_progname): Prototype uncondionally.
79025         Don't include <errno.h>; no longer needed.
79026         (private_strerror): Remove.
79027         (error_tail): Always define.
79028         (error, error_at_line): Assume C89 or better; always use prototypes.
79029         * lib/fatal.c: Include "fatal.h" first, to test interface.
79030         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79031         (VA_START): Remove; all uses changed to va_start.
79032         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
79033         this case.
79034         (exit): Remove decl.
79035         (fatal): Prototype unconditionally.  Assume va_start works.
79036         Abort at end, to pacify gcc.
79037
79038         * lib/euidaccess.c (main): Define with a prototype.
79039
79040         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
79041
79042         * lib/exitfail.c: Include <stdlib.h> unconditionally.
79043
79044         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
79045         prototypes.
79046         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
79047         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
79048         (getenv): Remove decl.
79049         (fnmatch): Define using a prototype.
79050         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
79051         (FCT): Define using a prototype.
79052
79053         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
79054
79055         * lib/gethostname.c: Include <stddef.h>.
79056         (gethostname): Define with prototype.  Length is size_t, not int.
79057
79058 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79059
79060         Assume C89 or better; remove K&R cruft.
79061         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
79062         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
79063         string.h, getenv, malloc.
79064         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
79065         headers.
79066         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
79067         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
79068         do not check for strerror.
79069         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
79070         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
79071         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
79072         do not check for doprnt or vprintf.
79073         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
79074         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
79075
79076 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79077
79078         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
79079         getversion.c should have been removed then, but was accidentally
79080         preserved.
79081
79082         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
79083         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
79084
79085 2003-09-08  Karl Berry  <karl@gnu.org>
79086
79087         * config/config.sub, config.guess, srclistvars.sh: update from savannah
79088                 config, forget about prep.
79089
79090         * config/depcomp, missing: update from automake.
79091
79092 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79093
79094         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
79095         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79096
79097 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79098
79099         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
79100         copy_tm_result.  Bug reported by Simon Josefsson in
79101         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79102
79103 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79104
79105         * m4/time_r.m4: New file.
79106         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
79107         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
79108         is. Check for timegm declaration.
79109         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
79110         Do not check for gmtime_r.
79111         Replace mktime if __mktime_internal does not exist and if mktime
79112         hasn't been replaced already.
79113
79114 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79115
79116         * lib/time_r.c, lib/time_r.h: New files.
79117
79118         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
79119         __localtime_r.
79120         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
79121         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
79122
79123         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
79124         __gmtime_r.
79125         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
79126         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
79127         Include <time_r.h>.
79128
79129         * lib/timegm.c: Switch to glibc implementation, with the following
79130         changes:
79131         [defined HAVE_CONFIG_H]: Include <config.h>.
79132         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
79133         (__mktime_internal) [!defined _LIBC]: New decl.
79134         (__gmtime_r) [!defined _LIBC]: New macro and function.
79135         (timegm): Use a prototype, since gnulib assumes C89.
79136         Do not bother declaring tmp to be const, as it's not really usefu.
79137         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
79138         (timegm): Declare only if HAVE_DECL_TIMEGM.
79139
79140 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79141
79142         * MODULES.html.sh (func_all_modules): Add time_r.
79143         * modules/time_r: New file.
79144         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
79145         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
79146
79147 2003-09-03  Paul Eggert  <eggert@twinsun.com>
79148
79149         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
79150         Bug reported by Lute Kamstra in
79151         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
79152
79153         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
79154         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
79155         course with correspondingly smaller numbers for tomorrow and
79156         yesterday.  From Tadayoshi Funaba.  Originally installed into
79157         sh-utils on 1999-08-07, but the patch got lost (I guess during the
79158         coreutils merge?).
79159
79160 2003-08-31  Simon Josefsson  <jas@extundo.com>
79161
79162         * modules/timegm: New file.
79163         * MODULES.html.sh (func_all_modules): Add timegm.
79164
79165 2003-08-31  Simon Josefsson  <jas@extundo.com>
79166
79167         * m4/timegm.m4: New file.
79168
79169 2003-08-31  Simon Josefsson  <jas@extundo.com>
79170
79171         * lib/timegm.h: New file.
79172         * lib/timegm.c: New file.  Based on
79173         wget-1.8.2/src/http.c:mktime_from_utc.
79174
79175 2003-08-31  Karl Berry  <karl@gnu.org>
79176
79177         * lib/argp.h: update from libc.
79178
79179 2003-08-28  Bruno Haible  <bruno@clisp.org>
79180
79181         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
79182         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
79183         followed by '#define fnmatch fnmatch_posix' gives an error.
79184
79185 2003-08-28  Bruno Haible  <bruno@clisp.org>
79186
79187         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
79188         warning on QNX, which defines O_BINARY to 000000.
79189
79190 2003-08-27  Jim Meyering  <jim@meyering.net>
79191
79192         * m4/mkstemp.m4: Require that the system mkstemp be able to create
79193         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
79194         would fail after 32.  Reported by Danny Levinson.  Details here:
79195         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
79196
79197 2003-08-24  Bruno Haible  <bruno@clisp.org>
79198
79199         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
79200         MSVC7 <stdio.h> is included later.
79201
79202 2003-08-22  Simon Josefsson  <jas@extundo.com>
79203
79204         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
79205
79206 2003-08-20  Karl Berry  <karl@gnu.org>
79207
79208         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
79209
79210 2003-08-20  Bruno Haible  <bruno@clisp.org>
79211
79212         * modules/progname: New file.
79213         * MODULES.html.sh (func_all_modules): Add progname.
79214
79215 2003-08-20  Bruno Haible  <bruno@clisp.org>
79216
79217         * lib/progname.h: New file, from GNU gettext.
79218         * lib/progname.c: New file, from GNU gettext.
79219         * lib/progreloc.c: New file, from GNU gettext.
79220
79221 2003-08-19  Jim Meyering  <jim@meyering.net>
79222
79223         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
79224         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
79225
79226 2003-08-19  Bruno Haible  <bruno@clisp.org>
79227
79228         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
79229         more.
79230
79231 2003-08-19  Bruno Haible  <bruno@clisp.org>
79232
79233         * lib/xstrdup.c: Assume <string.h> exists.
79234
79235 2003-08-18  Paul Eggert  <eggert@twinsun.com>
79236
79237         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
79238         in makefile rules.
79239
79240 2003-08-18  Jim Meyering  <jim@meyering.net>
79241
79242         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
79243         * m4/lib-ld.m4: Likewise.
79244
79245 2003-08-18  Jim Meyering  <jim@meyering.net>
79246
79247         * lib/setenv.h: Indent nested cpp directive.
79248         * lib/vasnprintf.c: Remove trailing blanks.
79249
79250 2003-08-17  Simon Josefsson  <jas@extundo.com>
79251
79252         * modules/xstrndup: New file.
79253         * MODULES.html.sh (func_all_modules): Add xstrndup.
79254
79255 2003-08-17  Simon Josefsson  <jas@extundo.com>
79256
79257         * modules/argp: Fix autoconf macro name. Add more dependencies.
79258
79259 2003-08-17  Simon Josefsson  <jas@extundo.com>
79260
79261         * m4/xstrndup.m4: New file.
79262
79263 2003-08-17  Simon Josefsson  <jas@extundo.com>
79264
79265         * m4/argp.m4: New file.
79266
79267 2003-08-17  Simon Josefsson  <jas@extundo.com>
79268             Bruno Haible  <bruno@clisp.org>
79269
79270         * lib/xstrndup.h: New file.
79271         * lib/xstrndup.c: New file.
79272
79273 2003-08-17  Bruno Haible  <bruno@clisp.org>
79274
79275         * modules/strndup (Files, Include): Add lib/strndup.h.
79276
79277 2003-08-17  Bruno Haible  <bruno@clisp.org>
79278
79279         * modules/euidaccess (Files): Add lib/euidaccess.h.
79280
79281 2003-08-17  Bruno Haible  <bruno@clisp.org>
79282
79283         * lib/strndup.h: New file.
79284
79285 2003-08-17  Bruno Haible  <bruno@clisp.org>
79286
79287         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79288         like AC_GNU_SOURCE.
79289         * modules/extensions (configure.ac): Comment out the invocation of
79290         gl_USE_SYSTEM_EXTENSIONS.
79291
79292 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79293
79294         Merges from coreutils, etc.
79295         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79296         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79297         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79298         fixing a typo.
79299         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79300         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79301
79302 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79303
79304         Document merge from coreutils.
79305         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79306         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79307         * modules/utime: Add m4/utimes-null.m4.
79308
79309 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79310
79311         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79312         space, undoing this 2003-08-12 change:
79313         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79314
79315 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79316
79317         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79318         strtoul.c from libc, undoing this 2003-08-12 change:
79319         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79320
79321 2003-08-16  Jim Meyering  <jim@meyering.net>
79322
79323         Merges from coreutils.
79324         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79325         prefix.  Adjust cache variables similarly.  Create 500 rather than
79326         just 300 files, to exercise bug on Darwin6.5, too.
79327         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79328         $missing_dir.
79329         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79330         AM_SYS_POSIX_TERMIOS.
79331         Reported by mkc@mathdogs.com.
79332         Also change use of $am_cv_sys_posix_termios
79333         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79334         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79335         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79336         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79337         in /proc/mounts until it finds one with matching device number.  This
79338         is unnecessary when the FILE argument *is* a mount point.  No stat call
79339         is necessary in that case.  So, disable the statvfs-testing code on
79340         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79341         as RedHat bug# 84846.
79342         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79343         to 1MB, so as not to render systems with no stack size limit (e.g.,
79344         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79345         Include <unistd.h>.  On some systems,
79346         it is required for the definition of _SC_PAGESIZE.
79347
79348 2003-08-16  Jim Meyering  <jim@meyering.net>
79349
79350         Merge from coreutils.
79351         * lib/xstrtoimax.c: #else #if -> #elif.
79352         * lib/xstrtoumax.c: Likewise.
79353
79354 2003-08-16  Jim Meyering  <jim@meyering.net>
79355
79356         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79357         * m4/utimes.m4: Removed.
79358         * m4/utimes-null.m4: Renamed from utimes.m4.
79359
79360         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79361         to 1MB, so as not to render systems with no stack size limit (e.g.,
79362         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79363         Include <unistd.h>.  On some systems,
79364         it is required for the definition of _SC_PAGESIZE.
79365
79366 2003-08-16  Jim Meyering  <jim@meyering.net>
79367         and Paul Eggert  <eggert@cs.ucla.edu>
79368
79369         Merges from coreutils, etc.
79370
79371         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79372         using the latest version from cvs.  This avoids problems with #line
79373         directives using a vendor (Sun) compiler.
79374         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79375         Don't set GETGROUPS_LIB here; now it's
79376         done via getgroups.m4's wrapper function.
79377         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79378         rather than just in sh-util/configure.in, so that the
79379         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79380         same.
79381         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79382         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79383         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79384         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79385         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79386         Remove code that is now done by the newly-required macros.
79387         Append $(EXEEXT) to DF_PROG.
79388         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79389         Do not invoke or require the following here,
79390         since prereq.m4 or some gnulib .m4 now does this for us:
79391         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79392         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79393         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79394         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79395         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79396         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
79397         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
79398         AC_FUNC_OBSTACK.
79399         Do not replace the following functions, as this is now the job
79400         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
79401         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
79402         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
79403         atexit getpass, strdup, getpagesize.
79404         Replace 'raise'.
79405         Do not check for the following functions, as this is now the job
79406         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
79407         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
79408         setregid.
79409         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
79410         Check for sys/sysctl.h.
79411         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
79412         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
79413         of checking for ssize_t ourselves.
79414
79415         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
79416         Require every macro that gnulib/modules/* suggests for us.
79417         (jm_PREREQ_ADDEXT): New macro.
79418         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
79419         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
79420
79421         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
79422         (gl_PHYSMEM): Use it.
79423         Also check for `table' function.
79424         Check for new headers and functions.
79425         Add check for sys/sysmp.h.
79426         With suggestions from Kaveh Ghazi.
79427         Ignore headers that are present but cannot be compiled.  This
79428         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
79429         C 5.4.
79430
79431 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79432
79433         Document merge from coreutils.
79434         * modules/userspec: Depend on posixver.
79435         * modules/strftime: Depend on tzset.
79436
79437 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79438
79439         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
79440         rather than tab, after '#' in shell-script copyright notices.
79441         Suggested by Bruno Haible.
79442
79443 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79444
79445         * config/srclist-update: Use three spaces, rather than tab, after '#'
79446         in shell-script copyright notices.  Suggested by Bruno Haible.
79447         Remove unnecessary parenthesization in regular expression.
79448
79449 2003-08-15  Jim Meyering  <jim@meyering.net>
79450
79451         Merge from coreutils.
79452         * lib/xgethostname.c: Include <stdlib.h>.
79453         (xghostname): Don't exit for anything other than memory-related
79454         failure; just return NULL.
79455         * lib/userspec.c: Include "posixver.h".
79456         (parse_user_spec): Accept `.' as a separator only
79457         in pre-POSIX-200112 mode.
79458         * lib/strtoimax.c: Use #elif rather than #else #if.
79459         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
79460         Remove function, now that we can rely on a working tzset function.
79461         [!_LIBC]: Ensure that the required autoconf test has been run.
79462         [!defined _NL_CURRENT && HAVE_STRFTIME]:
79463         Use underlying_strftime for %r.
79464         * lib/sha.c: Merge in some clean-up and optimization changes from
79465         glibc.
79466         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
79467         Ensure that it is a multiple of 64.
79468         Rearrange loop exit tests so as to avoid performing an
79469         additional fread after encountering an error or EOF.
79470         * lib/realloc.c: Update copyright date.
79471
79472 2003-08-15  Jim Meyering  <jim@meyering.net>
79473         and Paul Eggert  <eggert@twinsun.com>
79474
79475         Merge from coreutils.
79476         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
79477         member but strut utmpx does not.  Needed for AIX 4.3.3.
79478         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
79479
79480 2003-08-15  Jim Meyering  <jim@meyering.net>
79481         and Paul Eggert  <eggert@cs.ucla.edu>
79482
79483         Merges from coreutils, etc.
79484         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79485         Require gl_FUNC_TZSET_CLOBBER.
79486         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79487         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79488         members.
79489
79490 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79491
79492         Help the merge from coreutils.
79493         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79494         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79495         * m4/tzset.m4: Use it too.
79496
79497 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79498
79499         * modules/tzset: New file.
79500
79501 2003-08-14  Jim Meyering  <jim@meyering.net>
79502
79503         Merges from coreutils.
79504         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79505         variable names, rather than @FNMATCH_H@.
79506         * modules/alloca: Likewise for $(ALLOCA_H).
79507
79508         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79509         the three copies of the literal target, `fnmatch.h'.
79510         * modules/alloca (alloca.h): Likewise.
79511
79512 2003-08-14  Jim Meyering  <jim@meyering.net>
79513
79514         Merge from coreutils.
79515         * m4/tzset.m4: New file.
79516         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79517         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79518         otherwise, AIX 5.1 systems would end up using the latter.
79519         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79520         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79521         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79522         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79523
79524 2003-08-14  Jim Meyering  <jim@meyering.net>
79525
79526         Merge from coreutils.
79527         * lib/obstack.h: Whitespace changes.
79528         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79529         and xcalloc return values.
79530         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79531         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79532         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79533         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79534         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79535         error from mntctl.
79536         Use mntctl's return value to drive the entry-processing loop, since
79537         we can't rely on the value of the vmt_length member in the last
79538         entry.  On some systems doing so could result in exhausting
79539         virtual memory.  Based in part on a patch from Mike Jetzer.
79540
79541 2003-08-14  Jim Meyering  <jim@meyering.net>
79542         and Paul Eggert  <eggert@twinsun.com>
79543
79544         Merges from coreutils, plus other fixes.
79545         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79546         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79547         for credits and details.  Thanks to Kaveh Ghazi for helping
79548         to keep these files in sync.
79549         (ARRAY_SIZE): Define it.
79550         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79551         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79552         (memcasecmp): Don't assume size_t fits in unsigned int.
79553         Remove casts and duplicate code.
79554         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79555         (memcpy): Remove definition.
79556         Merge in some clean-up and optimization changes from glibc.
79557         [BLOCKSIZE]: Move definition to top of file.
79558         Ensure that it is a multiple of 64.
79559         Rearrange loop exit tests so as to avoid performing an
79560         additional fread after encountering an error or EOF.
79561         * lib/md5.h (md5_uintptr): Define.
79562         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79563         return to the initial working directory.  Preserve errno
79564         for caller.
79565         * lib/idcache.c: Include "xalloc.h".
79566         (xmalloc, xrealloc): Remove decls.
79567         (getuser): Remove casts no longer required in C89.
79568         * lib/human.c: Include stdio.h, for sprintf.
79569         * lib/group-member.c: Include "xalloc.h".
79570         (xmalloc, xrealloc): Remove decls.
79571         (get_group_info): Remove casts no longer required in C89.
79572         * lib/getusershell.c (readname): Remove casts no longer required in
79573         C89.
79574         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79575         * lib/getline.c: Whitespace fix, from coreutils.
79576
79577 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79578
79579         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79580         Check for isascii.
79581
79582         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79583         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79584         Undo previous (whitespace-only) change.
79585
79586 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79587
79588         * lib/exclude.c: Include <ctype.h>
79589         (IN_CTYPE_DOMAIN): New macro.
79590         (is_space): New fn.
79591         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79592         and empty lines.
79593
79594         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79595         Undo previous (whitespace-only) change.
79596
79597 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79598
79599         * config/srclist-update: Change update back to the old behavior,
79600         leaving whitespace alone.  Use one 'sed' command rather than a
79601         pipeline.
79602         (fixlicense): Now a variable, not a function.
79603         (remove_trailing_blanks): Remove.
79604         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79605         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79606         Undo previous (whitespace-only) change.
79607
79608 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79609
79610         Merge from coreutils.
79611         * modules/euidaccess: Add lib_SOURCES, include for new
79612         file euidaccess.h
79613
79614 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79615
79616         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79617         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79618         Normalize leading white space and remove trailing white space.
79619
79620         Merge from coreutils
79621         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79622
79623         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79624         0.12.1.  These files are now being upgraded automatically by
79625         ../config/srclist-update.
79626
79627 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79628
79629         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79630         Normalize leading white space and remove trailing white space.
79631         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79632         notice, as per ../config/srclist-update.
79633
79634         Merge from coreutils.
79635         * lib/euidaccess.h: New file.
79636         * lib/euidaccess.c: Include it.
79637         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79638         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79639         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79640
79641 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79642
79643         * config/srclist-update: Add copyright notice.
79644         (remove_id_lines, remove_trailing_blanks): New constants.
79645         (fixfile): Use them to normalize spacing a bit in copied files.
79646         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79647         Normalize leading white space and remove trailing white space.
79648
79649         * config/texinfo.tex: Sync with texinfo.
79650
79651         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79652         strtoul.c from libc, to merge coreutils whitespace changes.
79653
79654         * config/srclist.txt: Get the following m4 files from gettext:
79655         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79656         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79657         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79658         wint_t.m4.
79659
79660 2003-08-12  Karl Berry  <karl@gnu.org>
79661
79662         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79663         been made.
79664
79665 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79666
79667         * modules/gnu-source, m4/gnu-source.m4:
79668         Remove; we're assuming Autoconf 2.54 or later now.
79669         Suggested by Bruno Haible.
79670         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79671
79672 2003-08-11  Bruno Haible  <bruno@clisp.org>
79673
79674         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79675
79676 2003-08-11  Bruno Haible  <bruno@clisp.org>
79677
79678         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79679         (vasnprintf): Use it instead of wcslen.
79680
79681 2003-08-11  Bruno Haible  <bruno@clisp.org>
79682
79683         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79684         value to ensure that _Bool promotes to int. Use #define for _Bool when
79685         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79686
79687 2003-08-10  Karl Berry  <karl@gnu.org>
79688
79689         * lib/regex.h: update from libc (whitespace fix).
79690
79691 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79692
79693         Merge some files from coreutils.  These changes were
79694         originally made by Jim Meyering.
79695         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79696         many older Unixes require this.
79697         * lib/alloca.c (alloca): Remove cast to argument of free;
79698         no longer needed in C89.
79699         * lib/alloca_.h, regex.h: Fix white space to match
79700         what GNU indent does.
79701
79702 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79703
79704         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79705         apparently Emacs's Unicode mode got confused before my 2003-08-05
79706         checkin.
79707
79708 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79709
79710         * m4/extensions.m4: New file.
79711         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79712         Require gl_USE_SYSTEM_EXTENSIONS.
79713         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79714         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79715
79716 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79717
79718         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79719         * modules/extensions, modules/gnu-source: New files.
79720         * modules/timespec, modules/unlocked-io: Depend on extensions.
79721
79722 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79723
79724         * modules/restrict: New file.
79725         * MODULES.html.sh (func_all_modules): Add restrict.
79726         * modules/regex: Depend on restrict.
79727
79728 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79729
79730         * m4/restrict.m4: New file.
79731         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79732
79733 2003-08-07  Bruno Haible  <bruno@clisp.org>
79734
79735         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79736         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79737
79738 2003-08-07  Bruno Haible  <bruno@clisp.org>
79739
79740         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79741         makes the module 'getndelim2' compatible with the module 'getline'.
79742
79743 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79744
79745         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79746         byte with "\201" to avoid glitches when editing that source file
79747         with multi-gnome-terminal.
79748
79749 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79750
79751         * lib/bumpalloc.h: Remove.
79752
79753 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79754
79755         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79756         * modules/bumpalloc: Remove.
79757
79758 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79759
79760         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79761         GNU coding style.
79762
79763         Merge from coreutils.
79764         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79765         1. From glibc.
79766         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79767         from Karl Berry, implemented by Jim Meyering.
79768         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79769         from Dmitry V. Levin.
79770         Remove anachronistic cast of xrealloc.
79771         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79772         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79773         type. Otherwise, it wouldn't compile with at least /bin/cc on
79774         ymp-cray-unicos9.0.2.X.
79775         Combine two mostly-identical uses of alloca into one.
79776         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79777
79778 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79779
79780         [From Emacs.]
79781
79782         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79783         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79784         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79785         obsolete NLIST_NAME_UNION.
79786         [__GNU__]: Undef BSD and FSCALE.
79787         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79788
79789 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79790
79791         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79792         an enum type, so that it's guaranteed to promote to int.  See:
79793         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79794
79795 2003-08-03  Karl Berry  <karl@gnu.org>
79796
79797         * config/depcomp: update from automake.
79798
79799 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79800
79801         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79802         (strerror): Don't assume that a printable int fits in 14 bytes.
79803
79804 2003-07-31  Bruno Haible  <bruno@clisp.org>
79805
79806         * modules/getpass-gnu: New file.
79807         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79808
79809 2003-07-31  Bruno Haible  <bruno@clisp.org>
79810
79811         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79812
79813 2003-07-24  Karl Berry  <karl@gnu.org>
79814
79815         * config/missing: update from automake.
79816
79817 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79818             Bruno Haible  <bruno@clisp.org>
79819
79820         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79821         * lib/getline.c (getline, getdelim): Likewise.
79822         Remove _GNU_SOURCE define; now it's defined in config.h through
79823         m4/getline.m4.
79824
79825 2003-07-23  Karl Berry  <karl@gnu.org>
79826
79827         * config/config.sub: update from prep.
79828
79829 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79830
79831         * modules/xalloc (Depends-on): Add exitfail.
79832         * modules/xmemcoll: Likewise.
79833
79834 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79835
79836         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79837         over-parenthesization in macros.
79838
79839         Sync with coreutils.
79840
79841         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79842         required by C99.
79843
79844         Use `exit_failure' for xalloc and xmemcoll instead of their own
79845         private exit-failure variables.
79846         * lib/xalloc.h (xalloc_exit_failure): Remove.
79847         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79848         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79849         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79850         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79851         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79852
79853 2003-07-20  Jim Meyering  <jim@meyering.net>
79854
79855         * modules/closeout (Depends-on): Add exitfail.
79856         Suggestion from Bruno Haible.
79857
79858 2003-07-19  Karl Berry  <karl@gnu.org>
79859
79860         * config/config.sub: update from prep.
79861
79862 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79863
79864         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79865         Remove.
79866         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79867         to test that it can stand by itself.  Include "exitfail.h".
79868         Clients should set exit_failure instead.
79869         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79870
79871 2003-07-18  Bruno Haible  <bruno@clisp.org>
79872
79873         * modules/getndelim2: New file.
79874         * modules/getline: Share files with module getndelim2.
79875         * modules/getnline: Depend on getndelim2 instead of sharing files with
79876         it. Add getnline.c to lib_SOURCES.
79877         * MODULES.html.sh (func_all_modules): Add getndelim2.
79878
79879 2003-07-18  Bruno Haible  <bruno@clisp.org>
79880
79881         * m4/getndelim2.m4: New file.
79882         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79883         invoke gl_PREREQ_GETNDELIM2.
79884         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79885         gl_PREREQ_GETNDELIM2.
79886         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79887         gl_GETNDELIM2.
79888
79889 2003-07-18  Bruno Haible  <bruno@clisp.org>
79890
79891         * lib/getndelim2.h: New file.
79892         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79893         getndelim2.h.
79894         (getndelim2): Make non-static. Change return type to ssize_t.
79895         * lib/getline.h: Change argument names.
79896         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79897         * lib/getnline.c: Include getndelim2.h.
79898
79899 2003-07-18  Andreas Schwab  <schwab@suse.de>
79900
79901         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79902
79903 2003-07-17  Karl Berry  <karl@gnu.org>
79904
79905         * config/config.sub: update from prep.
79906
79907 2003-07-17  Bruno Haible  <bruno@clisp.org>
79908
79909         * modules/getnline: New file.
79910         * modules/getline: Add lib/getndelim2.c to source file list.
79911         * MODULES.html.sh (func_all_modules): Add getnline.
79912
79913 2003-07-17  Bruno Haible  <bruno@clisp.org>
79914
79915         * m4/getnline.m4: New file.
79916
79917 2003-07-17  Bruno Haible  <bruno@clisp.org>
79918
79919         * m4/Makefile.am.in: Remove file.
79920         * m4/Makefile.am: Remove file.
79921         * m4/Makefile.in: Remove file.
79922
79923 2003-07-17  Bruno Haible  <bruno@clisp.org>
79924
79925         * lib/getnline.h: New file.
79926         * lib/getnline.c: New file.
79927         * lib/getndelim2.c: New file, extracted from getline.c.
79928         (getndelim2): Renamed from getdelim2, with added nmax argument.
79929         * lib/getline.c: Include getndelim2.c.
79930         (getdelim2): Moved out to getndelim2.c.
79931         (getline, getdelim): Update.
79932
79933 2003-07-17  Bruno Haible  <bruno@clisp.org>
79934
79935         * lib/Makefile.am: Remove file.
79936         * lib/Makefile.in: Remove file.
79937
79938 2003-07-17  Bruno Haible  <bruno@clisp.org>
79939
79940         * configure.in: Remove file.
79941         * Makefile.in: Remove file.
79942
79943 2003-07-17  Bruno Haible  <bruno@clisp.org>
79944
79945         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79946
79947 2003-07-16  Karl Berry  <karl@gnu.org>
79948
79949         * config/srclist-update: was running fixlicense twice, which caused
79950                 texinfo.tex to be nullified for some reason.  Simplify,
79951                 $gplsrc is no longer needed as far as I can see?
79952
79953 2003-07-16  Jim Meyering  <jim@meyering.net>
79954
79955         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79956
79957 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79958
79959         * config/srclist.txt: Get the following files from gettext-runtime/intl
79960         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79961         ref-del.sin.  From Bruno Haible.
79962         * config/srclist-update (fixfile): Change grep pattern again, since the
79963         previous fix didn't work (there was another trailing $).  Use
79964         '[$]' to escape the $s.
79965
79966 2003-07-15  Karl Berry  <karl@gnu.org>
79967
79968         * lib/vasnprintf.c: update from gettext.
79969
79970 2003-07-15  Karl Berry  <karl@gnu.org>
79971
79972         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79973         gets expanded when surrounded by '$'.
79974
79975 2003-07-15  Jim Meyering  <jim@meyering.net>
79976
79977         * modules/save-cwd: Don't depend on error.  From Derek Price.
79978
79979 2003-07-15  Jim Meyering  <jim@meyering.net>
79980
79981         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79982
79983 2003-07-14  Simon Josefsson  <jas@extundo.com>
79984
79985         * modules/mempcpy: New file.
79986         * MODULES.html.sh (func_all_modules): Add mempcpy.
79987
79988 2003-07-14  Simon Josefsson  <jas@extundo.com>
79989
79990         * m4/mempcpy.m4: New file.
79991
79992 2003-07-14  Simon Josefsson  <jas@extundo.com>
79993
79994         * lib/mempcpy.h: New file.
79995         * lib/mempcpy.c: New file.
79996
79997 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79998
79999         * modules/getdate, modules/posixtm: Depend on mktime.
80000
80001 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80002
80003         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
80004         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
80005         unicodeio.c, unicodeio.h, unlocked-io.h:
80006         Switch from LGPL to GPL.
80007
80008 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80009
80010         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
80011         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
80012         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
80013         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
80014         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
80015         updated automatically by ../config/srclist-update.  This changes
80016         their license from LPGL to GPL.
80017
80018 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80019
80020         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
80021         assumed to refer to the root of the most recent stable gettext version.
80022         * config/srclistvars.sh: Add defaults for eggert.
80023         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
80024         Match "This program" as well as "The program".  This is needed
80025         for gettext.
80026
80027 2003-07-14  Jim Meyering  <jim@meyering.net>
80028
80029         Don't emit diagnostics.  Let callers do that.
80030         * lib/save-cwd.c: Don't include "error.h".
80031         (save_cwd): Don't call error.  Ensure that errno is valid
80032         when returning nonzero.
80033
80034         * lib/save-cwd.h (restore_cwd): Update prototype.
80035         * lib/save-cwd.c (restore_cwd): Remove two parameters.
80036         Simplify.  Don't call error upon failure.  Let callers do that.
80037         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
80038         when auditing is enabled.  But don't bother updating the #if.
80039
80040 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
80041
80042         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
80043         it breaks C++ compilation.
80044         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
80045
80046 2003-07-10  Simon Josefsson  <jas@extundo.com>
80047
80048         * modules/strchrnul (Makefile.am): Add strchrnul.h.
80049
80050 2003-07-10  Jim Meyering  <jim@meyering.net>
80051
80052         * m4/clock_time.m4: Remove trailing blank.
80053         * m4/intmax_t.m4: Likewise.
80054
80055 2003-07-10  Jim Meyering  <jim@meyering.net>
80056
80057         * lib/vasnprintf.c: Remove trailing blanks.
80058         Make cpp indentation consistent.
80059
80060 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80061
80062         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
80063         posixver.c, strftime.c, strnlen.c, strverscmp.c:
80064         Switch from LGPL to GPL.
80065
80066 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80067
80068         * config/srclist.txt: Sort sublists.  Add
80069         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
80070         that differ from gnulib for one reason or another; we'd like this list
80071         to be smaller but for now let's document what we have.
80072
80073 2003-07-08  Paul Eggert  <eggert@twinsun.com>
80074
80075         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
80076         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
80077         and sweeter "eval x=$x".
80078         * config/srclist.txt: Get lib/argp* from glibc.
80079
80080 2003-07-07  Paul Eggert  <eggert@twinsun.com>
80081
80082         * lib/mktime.c: Fix some boundary cases and remove need for floating
80083         point.
80084
80085         Issue a compile-time diagnostic if time_t is floating point, or if
80086         two's complement arithmetic is not in effect, or if arithmetic
80087         right shift does not propagate the sign.  These assumptions were
80088         all in the original code but they weren't checked.
80089
80090         (TIME_T_MIDPOINT, verify): New macros.
80091         (__isleap): Remove; it has integer overflow problems.
80092         (leapyear): New function, without those problems.
80093         (ydhms_tm_diff): Remove; splitting into two parts.
80094         (ydhms_diff): New function, containing the arithmetic part of
80095         the old ydhms_tm_diff function.  Issue a compile-time
80096         diagnostic if we are not using C99 integer division.
80097         Avoid casts when possible.
80098         (guess_time_tm): New function, containing the checking part of
80099         the old ydhms_tm_diff function.  Return the new value, rather than
80100         the difference between it and the old.  Accept a new argument T
80101         so that *T specifies the old value.  Check for overflow in the result.
80102
80103         (__mktime_internal): Use a time_t offset, not a long int offset.
80104         This undoes the 2003-06-04 change, which is no longer needed now
80105         that we have better overflow checking.
80106         (localtime_offset): Likewise.
80107
80108         (__mktime_internal): Avoid harmful overflow on hosts where time_t
80109         and long are 64-bit but int is only 32-bit.
80110         (ydhms_diff): Use long int to store year1 and yday1.
80111         Issue a compile-time diagnostic if long int is not wide enough.
80112
80113         (__mktime_internal): Use long int to store adjusted year and yday.
80114         Use plain C rather than preprocessor commands, if that doesn't
80115         affect efficiency.
80116         Check for overflow (and try to repair) after each probe
80117         rather than checking only at the very end.  This avoids some bugs
80118         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
80119         does not equal GMT offset at maximum time).
80120         Use integer to check for overflow rather than floating point; this
80121         is more portable to non-IEEE hosts, and is a tad faster.
80122         When we detect that we are oscillating between two values,
80123         don't check whether tm_isdst has the requested value, since
80124         we already know the answer.  When tm_isdst has the wrong value,
80125         use a different heuristic to find the right one, based on the
80126         extreme values actually observed in practice in tz2003a,
80127         rather than the (overly optimistic) "previous 3 calendar quarters".
80128
80129         (not_equal_tm, print_tm, check_result): Use "const T" rather than
80130         "T const" to accommodate glibc style.
80131         (check_result): Use less-confusing report format.  "long" -> "long int.
80132         (main): Likewise.
80133         Don't loop if the iteration overflows time_t.
80134         Allow a negative step in the iteration.
80135
80136 2003-07-06  Karl Berry  <karl@gnu.org>
80137
80138         * config/depcomp: update from automake.
80139         * config/config.sub: update from prep.
80140
80141 2003-07-03  Karl Berry  <karl@gnu.org>
80142
80143         * config/config.guess: update from prep.
80144
80145 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80146
80147         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
80148         xreadlink.c now includes it unconditionally.
80149
80150 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80151
80152         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
80153         having it depend on HAVE_SYS_TYPES_H.
80154
80155 2003-07-01  Bruno Haible  <bruno@clisp.org>
80156
80157         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
80158         <sys/types.h> should be sufficient.
80159         Reported by Paul Eggert.
80160
80161 2003-06-26  Karl Berry  <karl@gnu.org>
80162
80163         * config/depcomp: update from automake.
80164
80165 2003-06-26  Bruno Haible  <bruno@clisp.org>
80166
80167         * modules/human: Depend on module stdbool.
80168
80169 2003-06-25  Bruno Haible  <bruno@clisp.org>
80170
80171         * modules/readlink: New file.
80172         * modules/xreadlink: Depend on it.
80173         * MODULES.html.sh (func_all_modules): Add readlink.
80174
80175 2003-06-25  Bruno Haible  <bruno@clisp.org>
80176
80177         * m4/readlink.m4: New file.
80178
80179 2003-06-25  Bruno Haible  <bruno@clisp.org>
80180
80181         * lib/readlink.c: New file.
80182
80183 2003-06-22  Karl Berry  <karl@gnu.org>
80184
80185         * config/srclist.txt: update mkinstalldirs from automake.
80186         * config/mkinstalldirs: update.
80187
80188 2003-06-22  Bruno Haible  <bruno@clisp.org>
80189
80190         Portability to mingw32.
80191         * m4/ssize_t.m4: New file, from GNU gettext.
80192         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
80193         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
80194
80195 2003-06-22  Bruno Haible  <bruno@clisp.org>
80196
80197         * modules/safe-read: Add m4/ssize_t.m4.
80198         * modules/xreadlink: Add m4/ssize_t.m4.
80199
80200 2003-06-20  Bruno Haible  <bruno@clisp.org>
80201
80202         Assume C89, so PARAMS isn't needed.
80203         * lib/unicodeio.h (PARAMS): Remove.
80204         * lib/unicodeio.c: Don't use PARAMS.
80205
80206 2003-06-18  Karl Berry  <karl@gnu.org>
80207
80208         * config/config.{guess,sub}: update from prep.
80209
80210 2003-06-18  Jim Meyering  <jim@meyering.net>
80211
80212         Merge changes from coreutils.
80213         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
80214         Remove explicit declarations of xmalloc and realloc.
80215         Include xalloc.h.
80216         (read_utmp): Remove anachronistic cast of xmalloc.
80217
80218 2003-06-17  Paul Eggert  <eggert@twinsun.com>
80219
80220         Assume C89, so PARAMS isn't needed.
80221         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
80222         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
80223         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
80224         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
80225         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
80226         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
80227         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
80228         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
80229         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
80230         lib/xstrtod.h, lib/xstrtol.h: Likewise.
80231         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
80232         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
80233         no longer needed. Anyway, config.h should always be included before any
80234         other file.
80235
80236 2003-06-11  Simon Josefsson  <jas@extundo.com>
80237
80238         * modules/sysexits: New file.
80239         * MODULES.html.sh (func_all_modules): Add sysexits.
80240
80241 2003-06-11  Simon Josefsson  <jas@extundo.com>
80242
80243         * lib/sysexit_.h: New file.
80244
80245 2003-06-11  Derek Price  <derek@ximbiot.com>
80246
80247         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
80248         necessary.
80249
80250 2003-06-11  Bruno Haible  <bruno@clisp.org>
80251
80252         * m4/sysexits.m4: New file.
80253
80254 2003-06-10  Simon Josefsson  <jas@extundo.com>
80255
80256         * lib/argp.h: New file, from glibc.
80257         * lib/argp-ba.c: New file, from glibc.
80258         * lib/argp-eexst.c: New file, from glibc.
80259         * lib/argp-fmtstream.c: New file, from glibc.
80260         * lib/argp-fmtstream.h: New file, from glibc.
80261         * lib/argp-fs-xinl.c: New file, from glibc.
80262         * lib/argp-help.c: New file, from glibc.
80263         * lib/argp-namefrob.h: New file, from glibc.
80264         * lib/argp-parse.c: New file, from glibc.
80265         * lib/argp-pv.c: New file, from glibc.
80266         * lib/argp-pvh.c: New file, from glibc.
80267         * lib/argp-xinl.c: New file, from glibc.
80268
80269 2003-06-10  Simon Josefsson  <jas@extundo.com>
80270
80271         * modules/strchrnul: New file.
80272
80273 2003-06-10  Simon Josefsson  <jas@extundo.com>
80274
80275         * modules/argp: New file.
80276
80277 2003-06-10  Simon Josefsson  <jas@extundo.com>
80278
80279         * m4/strchrnul.m4: New file.
80280
80281 2003-06-10  Simon Josefsson  <jas@extundo.com>
80282
80283         * lib/strchrnul.h: New file.
80284         * lib/strchrnul.c: New file.
80285
80286 2003-06-10  Bruno Haible  <bruno@clisp.org>
80287
80288         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80289
80290 2003-06-07  Karl Berry  <karl@gnu.org>
80291
80292         * config/config.{guess,sub}: update from prep.
80293
80294 2003-06-07  Jim Meyering  <jim@meyering.net>
80295
80296         * modules/strtod: Use $(...) notation, not @...@ for
80297         AC_REPLACE'd variables.
80298         * modules/localcharset: Likewise.
80299
80300 2003-06-07  Jim Meyering  <jim@meyering.net>
80301
80302         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80303         in place of my name in the copyright comment.
80304         Remove definition and uses of __P.
80305
80306         From coreutils.
80307         * lib/stat.c: Don't declare xmalloc explicitly.
80308         Instead, include "xalloc.h".
80309         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80310         xrealloc, and xcalloc return values.
80311         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80312         Improve comment.
80313         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80314
80315 2003-06-07  Bruno Haible  <bruno@clisp.org>
80316
80317         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80318         avoid AC_CONFIG_LINKS.
80319         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80320         fnmatch.h, to avoid AC_CONFIG_LINKS.
80321         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80322
80323 2003-06-07  Bruno Haible  <bruno@clisp.org>
80324
80325         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80326         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80327         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80328         directory.
80329         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80330         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80331         directory.
80332
80333 2003-06-06  Jim Meyering  <jim@meyering.net>
80334
80335         Merge from coreutils.
80336         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80337         Consolidate declarations and initializations of *_base* locals.
80338
80339         Merge from coreutils.
80340         This avoids a core dump on systems without GNU putenv,
80341         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80342         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80343         (unsetenv): New static function, from GNU libc.
80344         (rpl_putenv): Use it.
80345
80346         * lib/modechange.c: Remove trailing blanks.
80347
80348         Merge from coreutils.
80349         * lib/fsusage.c: Remove declaration of statfs.
80350         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80351
80352         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80353
80354 2003-06-06  Jim Meyering  <jim@meyering.net>
80355
80356         * lib/stdbool_.h: Renamed from stdbool.h.in.
80357
80358 2003-06-06  Jim Meyering  <jim@meyering.net>
80359             Bruno Haible  <bruno@clisp.org>
80360
80361         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80362         Adjust Makefile.am snippet not to redirect directly to target.
80363         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80364
80365 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80366
80367         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80368         mismatch, look in future quarters as well as past.  This fixes a
80369         bug when processing fall-backwards gaps immediately after a long
80370         period of daylight-saving time.
80371
80372         * lib/mktime.c: Assume freestanding C89 or better.
80373         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80374         (__P): Remove; not used.
80375         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80376         (mktime, not_equal_tm, print_tm, check_result,
80377         main): Use prototypes.  Use const * where appropriate.
80378         (main): Fix typo in testing code that uncovered by above changes.
80379         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80380
80381 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80382
80383         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80384         locale.h, localeconv.  This merges changes from coreutils.
80385
80386         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80387         It can be removed after the next Autoconf is released.
80388         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80389         needed.
80390
80391 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80392
80393         * lib/mktime.c: Fix Debian bug 177940
80394         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80395         (localtime_offset): Now long int, not time_t, because we want it
80396         to be guaranteed to be signed.  All uses changed.
80397         (__mktime_internal): If overflow would occur when adding offset,
80398         don't add it.
80399
80400         Merge 'human' changes from coreutils.  Rewrite to support
80401         locale-specific notations like thousands separators.
80402         * lib/human.c: Simplify authorship notice.
80403         Include human.h immediately after config.h.
80404         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
80405         <limits.h>: Do not include, since human.h does.
80406         (SIZE_MAX, UINTMAX_MAX): New macros.
80407         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
80408         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
80409         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
80410         (power_letter): Renamed from suffixes.
80411         (generate_suffix_backwards): Remove.
80412         (adjust_value): Now takes int style (because of human.h changes)
80413         and long double value (for greater precision on some platforms).
80414         (group_number): New function.
80415         (human_readable): Use it.  Use integer options, not enum.
80416         Put the options before the sizes in the arg list.
80417         Support all the new options.
80418         The old human_readable function has been removed;
80419         use inttostr.h instead.
80420         (human_readable, default_block_size, humblock):
80421         Use uintmax_t, not int, for block sizes.
80422         (human_readable_inexact, block_size_types): Remove.
80423         (block_size_opts): New constant.
80424         (human_options): Renamed from human_block_size, with new signature
80425         that allows block sizes up to UINTMAX_MAX.  All callers changed.
80426         * lib/human.h: Add copyright and authorship notice.
80427         Include <limits.h> and <stdbool.h> unconditionally.
80428         (PARAMS): Remove.  All uses removed.
80429         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
80430         (enum human_inexact_style): Remove tag; now a nameless enum.
80431         (human_floor, human_ceiling, human_round_to_even): Now have
80432         values 2, 0, 1 rather than -1, 1, 0.
80433         (human_group_digits, human_suppress_point_zero, human_autoscale,
80434         human_base_1024, human_SI, human_B): New constants.
80435         (human_readable_inexact, human_block_size): Remove.
80436         (human_readable): Size args are now uintmax_t, not int.
80437         (human_options): New decl.
80438
80439         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
80440         unnecessary now that we assume C89 or better.  This change
80441         imported from coreutils.
80442
80443         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80444         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
80445         in the 2003-05-30 sync from glibc.
80446
80447         .h files should stand alone, but we shouldn't include <sys/types.h>
80448         if we can get away with just <stddef.h>.
80449
80450         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
80451         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
80452         rather than <sys/types.h>, as we merely need size_t.
80453         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
80454         to get size_t.
80455         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
80456         Include <stdio.h>, to get FILE.
80457         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
80458         memcasecmp.h has included <stddef.h> and all we need is size_t.
80459         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
80460         our interface, instead of including <sys/types.h>
80461
80462 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80463
80464         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
80465         now, as glibc mktime is buggy on non-glibc systems.
80466
80467 2003-06-03  Karl Berry  <karl@gnu.org>
80468
80469         * config/config.sub: update from prep.
80470
80471 2003-06-02  Paul Eggert  <eggert@twinsun.com>
80472
80473         [from coreutils]
80474         Fix some minor time-related bugs with POSIX time arguments.
80475         Some valid time stamps were being rejected (notably -1, and
80476         time stamps before 1900 on 64-bit hosts).  And some invalid
80477         time stamps were being accepted, e.g. September 31.
80478
80479         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80480         that we can return (time_t) -1 successfully.
80481         * lib/posixtm.c: Likewise.
80482         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80483         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80484         (t): Remove static var.
80485         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80486         of static var.  All uses changed.
80487         (year): Do not reject years before 1900; they can occur with
80488         64-bit time_t.
80489         (posix_time_parse): Do not check for out-of-range components;
80490         that is now the caller's responsibility, since our checks were
80491         only approximations.
80492         (posixtime): Use mktime to check for out-of-range components,
80493         since it knows them exactly.
80494         If mktime returns (time_t) -1, check whether an error actually occurred
80495         by invoking localtime on -1.
80496         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80497         posixtime failures better.
80498         Improve the test data (in comments only).
80499
80500 2003-06-02  Karl Berry  <karl@gnu.org>
80501
80502         * config/mkinstalldirs (version): new variable.
80503         (--version): new option.
80504         (usage): improve message.
80505
80506 2003-05-30  Karl Berry  <karl@gnu.org>
80507
80508         * lib/mktime.c: update from libc.
80509
80510 2003-05-30  Bruno Haible  <bruno@clisp.org>
80511
80512         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80513         * config/config.rpath: Upgrade to gettext-0.12.1.
80514
80515 2003-05-30  Bruno Haible  <bruno@clisp.org>
80516
80517         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80518         * m4/nls.m4: New file, from gettext-0.12.1.
80519         * m4/po.m4: New file, from gettext-0.12.1.
80520         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80521
80522 2003-05-30  Bruno Haible  <bruno@clisp.org>
80523
80524         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80525         * lib/localcharset.h: Likewise.
80526         * lib/localcharset.c: Likewise.
80527
80528 2003-05-29  Karl Berry  <karl@gnu.org>
80529
80530         * config/config.rpath: update from gettext.
80531
80532 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80533
80534         Assume the headers required for C89 freestanding compilers.
80535         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80536         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80537         * m4/human.m4 (gl_HUMAN): Likewise.
80538         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80539         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80540         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80541         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80542         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80543         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80544
80545 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80546
80547         Assume the headers required for C89 freestanding compilers.
80548         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80549         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80550         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80551         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80552         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80553         define, since <limits.h> is guaranteed to do that.
80554         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80555         * lib/exclude.c: Include <stdbool.h> unconditionally.
80556         * lib/tempname.c: Include <stddef.h> unconditionally.
80557         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80558         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80559         <stddef.h> does that.
80560         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80561         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80562         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80563         needed.
80564         * lib/xstrtol.c: Likewise.
80565         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80566         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80567
80568         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80569         warnings on some platforms.
80570
80571         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80572         arbitrarily.
80573
80574 2003-05-26  Jim Meyering  <jim@meyering.net>
80575
80576         Merge in a change from coreutils:
80577         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80578         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80579         that condition, rather than `-1' which is slightly misleading.
80580         Change the name of the cache variable to have the gl_ prefix.
80581         Prompted by a patch from Richard Dawe for DJGPP.
80582
80583 2003-05-24  Karl Berry  <karl@gnu.org>
80584
80585         * config/config.guess: update from prep.
80586
80587 2003-05-22  Karl Berry  <karl@gnu.org>
80588
80589         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80590
80591 2003-05-20  Karl Berry  <karl@gnu.org>
80592
80593         * config/config.guess: update from prep.
80594
80595 2003-05-18  Karl Berry  <karl@gnu.org>
80596
80597         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80598         might actually be set by the user.
80599
80600         * config/depcomp, install-sh, mdate-sh: update from automake.
80601
80602 2003-05-17  Bruno Haible  <bruno@clisp.org>
80603
80604         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80605         invalid expansion for AC_EGREP_CPP.
80606         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80607         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80608         Suggested by Akim Demaille <akim@epita.fr> in
80609         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80610
80611 2003-05-12  Jim Meyering  <jim@meyering.net>
80612
80613         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80614         the space-padded-by-default conversion specifiers, %e, %k, %l.
80615
80616 2003-05-12  Bruno Haible  <bruno@clisp.org>
80617
80618         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80619         the string is longer than 4 KB.
80620
80621 2003-05-11  Karl Berry  <karl@gnu.org>
80622
80623         * config/config.{guess,sub}: update from prep.
80624
80625 2003-05-09  Bruno Haible  <bruno@clisp.org>
80626
80627         * modules/error: Add m4/strerror_r.m4 to file list.
80628
80629 2003-05-03  Bruno Haible  <bruno@clisp.org>
80630
80631         Upgrade to Unicode-4.0.
80632         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80633         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80634         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80635         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80636         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80637         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80638         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80639         Change width of U+E0100..U+E01EF from 1 to 0.
80640
80641 2003-04-25  Jim Meyering  <jim@meyering.net>
80642
80643         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80644         of type size_t, not int.
80645
80646 2003-04-25  Bruno Haible  <bruno@clisp.org>
80647
80648         * lib/copy-file.c: Include <stddef.h>, for size_t.
80649
80650 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80651
80652         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80653         code which expansion is under static control.  Patch imported from
80654         Akim Demaille's patch to Bison; see
80655         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80656
80657 2003-04-14  Bruno Haible  <bruno@clisp.org>
80658
80659         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80660
80661 2003-04-11  Jim Meyering  <jim@meyering.net>
80662
80663         Merge changes from Coreutils.
80664
80665         2003-03-22  Jim Meyering  <jim@meyering.net>
80666
80667         * lib/strftime.c (widen): Cast alloca return value to proper type.
80668
80669         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80670
80671         From GNU libc.
80672         * lib/strftime.c (my_strftime): Handle very large width
80673         specifications for numeric values correctly.  Improve checks for
80674         overflow.
80675
80676         2003-01-19  Jim Meyering  <jim@meyering.net>
80677
80678         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80679         definitions.
80680         (nl_get_alt_digit) [! defined my_strftime]: Define.
80681         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80682         _nl_get_alt_digit and _nl_get_walt_digit.
80683
80684         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80685         libc. These changes have no effect outside of _LIBC.
80686
80687 2003-04-10  Bruno Haible  <bruno@clisp.org>
80688
80689         * modules/findprog: New file.
80690         * MODULES.html.sh (func_all_modules): Add it.
80691
80692 2003-04-10  Bruno Haible  <bruno@clisp.org>
80693
80694         * m4/findprog.m4: New file.
80695         * m4/eaccess.m4: New file.
80696
80697 2003-04-10  Bruno Haible  <bruno@clisp.org>
80698
80699         * lib/findprog.h: New file, from GNU gettext.
80700         * lib/findprog.c: New file, from GNU gettext.
80701
80702 2003-04-05  Jim Meyering  <jim@meyering.net>
80703
80704         Merge changes from Coreutils.
80705
80706         * lib/exclude.h (PARAMS): Remove definition and uses.
80707         * lib/exclude.c: Remove uses of `PARAMS'.
80708
80709         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80710         Add test-cases for DOS filenames. Declare program_name.
80711         (main): Set up program_name.  Patch by Rich Dawe.
80712
80713         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80714         error from mntctl.
80715         Use mntctl's return value to drive the entry-processing loop, since
80716         we can't rely on the value of the vmt_length member in the last
80717         entry.  On some systems doing so could result in exhausting
80718         virtual memory.  Based in part on a patch from Mike Jetzer.
80719
80720 2003-04-04  Bruno Haible  <bruno@clisp.org>
80721
80722         * modules/linebreak: New file.
80723         * MODULES.html.sh (func_all_modules): Add it.
80724
80725 2003-04-04  Bruno Haible  <bruno@clisp.org>
80726
80727         * m4/linebreak.m4: New file.
80728
80729 2003-04-04  Bruno Haible  <bruno@clisp.org>
80730
80731         * lib/linebreak.h: New file, from GNU gettext.
80732         * lib/linebreak.c: New file, from GNU gettext with slight
80733         modifications.
80734         * lib/lbrkprop.h: New file, from GNU gettext.
80735
80736 2003-04-03  Bruno Haible  <bruno@clisp.org>
80737
80738         * modules/utf8-ucs4: New file.
80739         * modules/utf16-ucs4: New file.
80740         * modules/ucs4-utf8: New file.
80741         * modules/ucs4-utf16: New file.
80742         * MODULES.html.sh (func_all_modules): Add them.
80743
80744 2003-04-03  Bruno Haible  <bruno@clisp.org>
80745
80746         * m4/utf-ucs4.m4: New file.
80747         * m4/ucs4-utf.m4: New file.
80748
80749 2003-04-03  Bruno Haible  <bruno@clisp.org>
80750
80751         * lib/utf8-ucs4.h: New file, from GNU gettext.
80752         * lib/utf16-ucs4.h: New file, from GNU gettext.
80753         * lib/ucs4-utf8.h: New file, from GNU gettext.
80754         * lib/ucs4-utf16.h: New file, from GNU gettext.
80755
80756 2003-04-02  Bruno Haible  <bruno@clisp.org>
80757
80758         * modules/binary-io: New file.
80759         * MODULES.html.sh (func_all_modules): Add it.
80760
80761 2003-04-02  Bruno Haible  <bruno@clisp.org>
80762
80763         * lib/binary-io.h: New file, from GNU gettext.
80764
80765 2003-04-01  Bruno Haible  <bruno@clisp.org>
80766
80767         * modules/pathname: New file.
80768         * MODULES.html.sh (func_all_modules): Add it.
80769
80770 2003-04-01  Bruno Haible  <bruno@clisp.org>
80771
80772         * lib/pathname.h: New file, from GNU gettext.
80773         * lib/concatpath.c: New file, from GNU gettext.
80774
80775 2003-03-30  Bruno Haible  <bruno@clisp.org>
80776
80777         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80778
80779 2003-03-30  Bruno Haible  <bruno@clisp.org>
80780
80781         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80782         function chown() doesn't exist.
80783
80784 2003-03-28  Bruno Haible  <bruno@clisp.org>
80785
80786         * modules/copy-file: New file.
80787         * MODULES.html.sh (func_all_modules): Add it.
80788
80789 2003-03-28  Bruno Haible  <bruno@clisp.org>
80790
80791         * m4/copy-file.m4: New file.
80792
80793 2003-03-28  Bruno Haible  <bruno@clisp.org>
80794
80795         * lib/copy-file.h: New file, from GNU gettext.
80796         * lib/copy-file.c: New file, from GNU gettext.
80797
80798 2003-03-18  Jim Meyering  <jim@meyering.net>
80799
80800         * lib/quote.c (quote_n): Fix typo in comment.
80801
80802 2003-03-18  Bruno Haible  <bruno@clisp.org>
80803
80804         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80805         checking.
80806         * m4/onceonly_2_57.m4: Likewise.
80807
80808 2003-03-17  Bruno Haible  <bruno@clisp.org>
80809
80810         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80811         (m4_quote): Remove macro.
80812         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80813
80814 2003-03-14  Jim Meyering  <jim@meyering.net>
80815
80816         Merge changes from Coreutils.
80817         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80818         to be const, in order to avoid warnings.
80819         (obstack_room): Likewise.
80820         (obstack_empty_p): Likewise.
80821
80822 2003-03-14  Bruno Haible  <bruno@clisp.org>
80823
80824         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80825         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80826
80827 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80828
80829         Merge changes from Bison.
80830         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80831         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80832         when compiling Bison 1.875's `bitset bset = obstack_alloc
80833         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80834         * lib/hash.c: Include <stdbool.h> unconditionally.
80835
80836 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80837
80838         * m4/onceonly.m4 (m4_quote): New macro.
80839         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80840         Quote AC_FOREACH variable-expansions properly.
80841
80842 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80843
80844         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80845
80846 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80847
80848         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80849         Reported by Bruce Becker; see:
80850         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80851
80852 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80853             Bruno Haible  <bruno@clisp.org>
80854
80855         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80856         Reported by John Hughes, see
80857         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80858
80859 2003-02-20  Bruno Haible  <bruno@clisp.org>
80860
80861         * MODULES.html.sh (func_all_modules): Add poll.
80862
80863 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80864
80865         * modules/poll: New file.
80866
80867 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80868
80869         * lib/poll_.h: New file.
80870         * lib/poll.c: New file.
80871
80872 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80873
80874         * m4/poll.m4: New file.
80875
80876 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80877
80878         * modules/mathl: New file.
80879
80880 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80881
80882         * lib/mathl.h: New file.
80883         * lib/acosl.c: New file.
80884         * lib/asinl.c: New file.
80885         * lib/atanl.c: New file.
80886         * lib/ceill.c: New file.
80887         * lib/cosl.c: New file.
80888         * lib/expl.c: New file.
80889         * lib/floorl.c: New file.
80890         * lib/frexpl.c: New file.
80891         * lib/ldexpl.c: New file.
80892         * lib/logl.c: New file.
80893         * lib/sincosl.c: New file.
80894         * lib/sinl.c: New file.
80895         * lib/sqrtl.c: New file.
80896         * lib/tanl.c: New file.
80897         * lib/trigl.c: New file.
80898         * lib/trigl.h: New file.
80899
80900 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80901
80902         * m4/mathl.m4: New file.
80903
80904 2003-02-18  Bruno Haible  <bruno@clisp.org>
80905
80906         * MODULES.html.sh (func_all_modules): Add mathl.
80907
80908 2003-02-17  Bruno Haible  <bruno@clisp.org>
80909
80910         * modules/mkdtemp: New module.
80911         * MODULES.html.sh (func_all_modules): Add it.
80912
80913 2003-02-17  Bruno Haible  <bruno@clisp.org>
80914
80915         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80916
80917 2003-02-17  Bruno Haible  <bruno@clisp.org>
80918
80919         * lib/mkdtemp.h: New file, from GNU gettext.
80920         * lib/mkdtemp.c: New file, from GNU gettext.
80921
80922 2003-02-02  Jim Meyering  <jim@meyering.net>
80923
80924         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80925         e.g. glibc-2.2.93.
80926
80927 2003-01-31  Bruno Haible  <bruno@clisp.org>
80928
80929         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80930         'rpl_rename'.
80931         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80932         'rpl_strnlen'.
80933         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80934         'rpl_strtod'.
80935         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80936         'rpl_utime'.
80937
80938 2003-01-31  Bruno Haible  <bruno@clisp.org>
80939
80940         * lib/rename.c: #undef rename before defining rpl_rename.
80941         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80942
80943 2003-01-30  Bruno Haible  <bruno@clisp.org>
80944
80945         * modules/vasnprintf, modules/vasprintf: New modules.
80946         * MODULES.html.sh (func_all_modules): Add them.
80947
80948 2003-01-30  Bruno Haible  <bruno@clisp.org>
80949
80950         * m4/signed.m4: New file, from GNU gettext.
80951         * m4/longdouble.m4: New file, from GNU gettext.
80952         * m4/wchar_t.m4: New file, from GNU gettext.
80953         * m4/wint_t.m4: New file, from GNU gettext.
80954         * m4/vasnprintf.m4: New file.
80955         * m4/vasprintf.m4: New file.
80956
80957 2003-01-30  Bruno Haible  <bruno@clisp.org>
80958
80959         * lib/printf-args.h: New file, from GNU gettext.
80960         * lib/printf-args.c: New file, from GNU gettext.
80961         * lib/printf-parse.h: New file, from GNU gettext.
80962         * lib/printf-parse.c: New file, from GNU gettext.
80963         * lib/vasnprintf.h: New file, from GNU gettext.
80964         * lib/vasnprintf.c: New file, from GNU gettext.
80965         * lib/asnprintf.c: New file, from GNU gettext.
80966         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80967         * lib/vasprintf.c: New file, from GNU gettext.
80968         * lib/asprintf.c: New file, from GNU gettext.
80969
80970 2003-01-29  Bruno Haible  <bruno@clisp.org>
80971
80972         * modules/stpncpy: New module.
80973         * MODULES.html.sh (func_all_modules): Add it.
80974
80975 2003-01-29  Bruno Haible  <bruno@clisp.org>
80976
80977         * m4/stpncpy.m4: New file.
80978
80979 2003-01-29  Bruno Haible  <bruno@clisp.org>
80980
80981         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80982         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80983
80984 2003-01-28  Bruno Haible  <bruno@clisp.org>
80985
80986         * modules/c-ctype: New module.
80987         * MODULES.html.sh (func_all_modules): Add it.
80988
80989 2003-01-28  Bruno Haible  <bruno@clisp.org>
80990
80991         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80992         Paul Eggert.
80993         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80994         Paul Eggert.
80995
80996 2003-01-27  Bruno Haible  <bruno@clisp.org>
80997
80998         * modules/xsetenv: New module.
80999         * MODULES.html.sh (func_all_modules): Add it.
81000
81001 2003-01-27  Bruno Haible  <bruno@clisp.org>
81002
81003         * lib/xsetenv.h: New file, from GNU gettext.
81004         * lib/xsetenv.c: New file, from GNU gettext.
81005
81006 2003-01-23  Jim Meyering  <jim@meyering.net>
81007
81008         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
81009         from working on systems without dirfd (at least Irix and OSF1/Tru64).
81010
81011 2003-01-23  Bruno Haible  <bruno@clisp.org>
81012
81013         * modules/minmax: New module.
81014         * MODULES.html.sh (func_all_modules): Add it.
81015
81016 2003-01-23  Bruno Haible  <bruno@clisp.org>
81017
81018         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
81019         Eggert.
81020
81021 2003-01-22  Bruno Haible  <bruno@clisp.org>
81022
81023         * modules/exit: New module.
81024         * MODULES.html.sh (func_all_modules): Add it.
81025
81026 2003-01-22  Bruno Haible  <bruno@clisp.org>
81027
81028         * lib/exit.h: New file, from GNU gettext.
81029
81030 2003-01-19  Bruno Haible  <bruno@clisp.org>
81031
81032         * gnulib-tool: Recognize option --extract-maintainer.
81033         (func_get_maintainer): New function.
81034         * modules/*: Add Maintainer entry.
81035
81036 2003-01-16  Jim Meyering  <jim@meyering.net>
81037
81038         * m4/regex.m4: The `regex' struct is both input and output.
81039         Initialize it before each use.  Patch by Tim Waugh.
81040
81041 2003-01-16  Bruno Haible  <bruno@clisp.org>
81042
81043         * MODULES.html.sh: Add a table of contents. Add the module name as
81044         leftmost column. Add hyperlinks.
81045
81046 2003-01-15  Bruno Haible  <bruno@clisp.org>
81047
81048         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
81049
81050 2003-01-15  Bruno Haible  <bruno@clisp.org>
81051
81052         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
81053         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
81054         suffix.
81055
81056 2003-01-15  Bruno Haible  <bruno@clisp.org>
81057
81058         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
81059
81060 2003-01-15  Bruno Haible  <bruno@clisp.org>
81061
81062         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
81063         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
81064
81065 2003-01-14  Jim Meyering  <jim@meyering.net>
81066
81067         * lib/same.c (same_name): Tweak a comment.
81068
81069 2003-01-14  Bruno Haible  <bruno@clisp.org>
81070
81071         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
81072         when a string comparison is sufficient.
81073
81074 2003-01-14  Bruno Haible  <bruno@clisp.org>
81075
81076         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
81077         'unsigned int'.
81078
81079 2003-01-14  Bruno Haible  <bruno@clisp.org>
81080
81081         * lib/hash-pjw.c: Add comment about low quality of this function.
81082
81083 2003-01-13  Bruno Haible  <bruno@clisp.org>
81084
81085         * modules/stpcpy: Distribute lib/stpcpy.h.
81086         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
81087
81088 2003-01-13  Bruno Haible  <bruno@clisp.org>
81089
81090         * modules/*: Add a description.
81091         * modules/strpbrk: Fix Makefile.am snippet.
81092         * modules/strtoimax: Fix dependencies.
81093         * modules/strtoumax: Likewise.
81094
81095 2003-01-13  Bruno Haible  <bruno@clisp.org>
81096
81097         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
81098         * modules/alloca (Makefile.am): All object files depend on alloca.h.
81099         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
81100
81101 2003-01-13  Bruno Haible  <bruno@clisp.org>
81102
81103         * gnulib-tool (func_create_testdir): Store config/* files in the main
81104         directory.
81105         * config.rpath: Move to ...
81106         * config/config.rpath: ... here.
81107         * modules/gettext: Contains config/config.rpath, not config.rpath.
81108         * modules/iconv: Likewise.
81109
81110 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81111
81112         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81113         to avoid collisions with libcurses and libreadline.
81114
81115         * m4/getstr.m4: Remove.
81116         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
81117
81118 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81119
81120         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81121         to avoid collisions with libcurses and libreadline.
81122
81123         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
81124         * lib/getstr.h, getstr.c: Remove.
81125         * lib/getline.c: Include "getline.h", to check interface.
81126         Move body of old getstr.c here: this defines MIN_CHUNK and
81127         declares getdelim2, which is renamed from getstr.
81128         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
81129
81130         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
81131         All uses changed.
81132         * lib/linebuffer.h: Likewise.
81133         (readline): Remove backward-compatibility macro.
81134
81135 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81136
81137         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81138         to avoid collisions with libcurses and libreadline.
81139         * getstr: Remove.
81140         * MODULES.html.sh: Remove getstr.
81141         * modules/getline: Depend on unlocked-io, not getstr.
81142
81143 2003-01-12  Jim Meyering  <jim@meyering.net>
81144
81145         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
81146
81147 2003-01-10  Bruno Haible  <bruno@clisp.org>
81148
81149         * modules/alloca: Change Makefile.am requirements. Simplify Include
81150         requirements. Add lib/alloca_.h to file list.
81151
81152 2003-01-10  Bruno Haible  <bruno@clisp.org>
81153
81154         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
81155
81156 2003-01-10  Bruno Haible  <bruno@clisp.org>
81157
81158         * lib/alloca_.h: New file.
81159         * lib/getdate.y: Unconditionally include alloca.h.
81160         * lib/makepath.c: Likewise.
81161         * lib/setenv.c: Likewise.
81162         * lib/userspec.c: Likewise.
81163
81164 2003-01-09  Karl Berry  <karl@gnu.org>
81165
81166         * MODULES.html.sh: include `dirname $0` in PATH, to find
81167         gnulib-tool.
81168
81169 2003-01-09  Bruno Haible  <bruno@clisp.org>
81170
81171         * modules/stdbool: Change configure.ac, Makefile.am requirements.
81172         Simplify Include requirements. Add lib/stdbool.h.in to file list.
81173
81174 2003-01-09  Bruno Haible  <bruno@clisp.org>
81175
81176         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
81177
81178 2003-01-09  Bruno Haible  <bruno@clisp.org>
81179
81180         * lib/stdbool.h.in: New file.
81181
81182 2003-01-09  Bruno Haible  <bruno@clisp.org>
81183
81184         * gnulib-tool (func_all_modules): Ignore files ending in ~.
81185         * MODULES.html.sh: Likewise.
81186
81187 2003-01-08  Jim Meyering  <jim@meyering.net>
81188
81189         * lib/full-write.c: Undefine and define-away `const' after inclusion
81190         of errno.h, not before.  Suggestion from Bruno Haible.
81191
81192 2003-01-08  Bruno Haible  <bruno@clisp.org>
81193
81194         * modules/full-read: Depend on full-write.
81195
81196 2003-01-08  Bruno Haible  <bruno@clisp.org>
81197
81198         * lib/safe-read.c: Include specification header first, to ensure its
81199         selfcontainedness.
81200         * lib/full-write.c: Likewise.
81201
81202 2003-01-07  Jim Meyering  <jim@meyering.net>
81203
81204         * lib/full-write.c: Rework so that it may serve to define full_read,
81205         too.
81206         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
81207
81208 2003-01-07  Bruno Haible  <bruno@clisp.org>
81209
81210         * lib/strtoimax.c: Include <stdint.h> as an alternative to
81211         <inttypes.h>.
81212         * lib/xstrtol.h: Likewise.
81213         * lib/xstrtoimax.c: Likewise.
81214         * lib/xstrtoumax.c: Likewise.
81215         * lib/human.h: Likewise.
81216
81217         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
81218         on systems that have <inttypes.h> but not <stdint.h>.
81219
81220 2003-01-07  Bruno Haible  <bruno@clisp.org>
81221
81222         * MODULES.html.sh: Add copyright notice.
81223         (missed_files): Omit CVS directory entries.
81224         (func_module): Make it work with sed-3.02.
81225         * MODULES.txt: Remove file.
81226
81227 2003-01-06  Jim Meyering  <jim@meyering.net>
81228
81229         * lib/version-etc.c: Update year in translatable copyright string.
81230
81231 2003-01-03  Karl Berry  <karl@gnu.org>
81232
81233         * config/config.{guess,sub}: update from prep.
81234
81235 2003-01-02  Karl Berry  <karl@gnu.org>
81236
81237         * doc/COPYING.DOC: belatedly updated to 1.2.
81238
81239 2003-01-01  Karl Berry  <karl@gnu.org>
81240
81241         * gnulib-tool (func_verify_module): report module name $module in
81242         error message, not $1.
81243         * gnulib-tool (create-testdir): don't complain if destdir couldn't
81244         be created, only if it doesn't exist.
81245         * gnulib-tool (last_checkin_date): don't expand the $Date here.
81246
81247 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81248
81249         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
81250
81251 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81252
81253         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81254         memcmp if strcoll doesn't work.
81255
81256 2002-12-31  Bruno Haible  <bruno@clisp.org>
81257
81258         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81259         nonempty.
81260
81261 2002-12-31  Bruno Haible  <bruno@clisp.org>
81262
81263         * lib/memcoll.c (STRCOLL): New macro.
81264         (memcoll): Use it.
81265
81266 2002-12-31  Bruno Haible  <bruno@clisp.org>
81267
81268         * lib/localcharset.h: New file.
81269         * lib/localcharset.c: Include it.
81270         * lib/unicodeio.c: Likewise.
81271
81272 2002-12-31  Bruno Haible  <bruno@clisp.org>
81273
81274         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81275         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81276
81277 2002-12-31  Bruno Haible  <bruno@clisp.org>
81278
81279         * lib/getline.h: Include <stddef.h>, for size_t.
81280
81281         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81282         * lib/unicodeio.c: Don't include <stddef.h>.
81283
81284 2002-12-31  Bruno Haible  <bruno@clisp.org>
81285
81286         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81287         HAVE_TM_ZONE.
81288
81289 2002-12-24  Karl Berry  <karl@gnu.org>
81290
81291         * config/config.guess: update from prep.
81292
81293 2002-12-24  Bruno Haible  <bruno@clisp.org>
81294
81295         General infrasructure.
81296         * m4/README: Rewritten.
81297         * m4/onceonly.m4: New file.
81298         * m4/onceonly_2_57.m4: New file.
81299
81300         Module atexit.
81301         * m4/atexit.m4: New file.
81302
81303         Module strtod.
81304         * m4/strtod.m4: New file.
81305
81306         Module strtol.
81307         * m4/strtol.m4: New file.
81308
81309         Module strtoul.
81310         * m4/strtoul.m4: New file.
81311
81312         Module memchr.
81313         * m4/memchr.m4: New file.
81314
81315         Module memcmp.
81316         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81317         (jm_FUNC_MEMCMP): Invoke it.
81318
81319         Module memcpy.
81320         * m4/memcpy.m4: New file.
81321
81322         Module memmove.
81323         * m4/memmove.m4: New file.
81324
81325         Module memset.
81326         * m4/memset.m4: New file.
81327
81328         Module strcspn.
81329         * m4/strcspn.m4: New file.
81330
81331         Module strpbrk.
81332         * m4/strpbrk.m4: New file.
81333
81334         Module strstr.
81335         * m4/strstr.m4: New file.
81336
81337         Module strerror.
81338         * m4/strerror.m4: New file.
81339
81340         Module mktime.
81341         * m4/mktime.m4: Renamed from jm-mktime.m4.
81342         (gl_PREREQ_MKTIME): New macro.
81343         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81344
81345         Module malloc.
81346         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81347         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81348         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81349
81350         Module realloc.
81351         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81352         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81353         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81354
81355         Module strftime.
81356         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81357         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81358         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81359         gl_TM_GMTOFF.
81360         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81361
81362         Module xalloc.
81363         * m4/xalloc.m4: New file.
81364
81365         Module alloca.
81366         * m4/alloca.m4: New file.
81367
81368         Module putenv.
81369         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81370         (jm_FUNC_PUTENV): Invoke it.
81371
81372         Module setenv.
81373         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81374         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81375         when invoked twice.
81376         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81377         gt_FUNC_SETENV.
81378
81379         Module memrchr.
81380         * m4/memrchr.m4: New file.
81381
81382         Module stpcpy.
81383         * m4/stpcpy.m4: New file.
81384
81385         Module strcase.
81386         * m4/strcase.m4: New file.
81387
81388         Module strdup.
81389         * m4/strdup.m4: New file.
81390
81391         Module strnlen.
81392         * m4/strnlen.m4: New file.
81393
81394         Module strndup.
81395         * m4/strndup.m4: New file.
81396
81397         Module xstrtod.
81398         * m4/xstrtod.m4: New file.
81399
81400         Module xstrtol.
81401         * m4/xstrtol.m4: New file.
81402
81403         Module getdate.
81404         * m4/getdate.m4: New file.
81405
81406         Module unlocked-io.
81407         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
81408         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
81409         * m4/jm-glibc-io.m4n: Remove file.
81410
81411         Module long-options.
81412         * m4/long-options.m4: New file.
81413
81414         Module md5.
81415         * m4/md5.m4: New file.
81416
81417         Module sha.
81418         * m4/sha.m4: New file.
81419
81420         Module getstr.
81421         * m4/getstr.m4: New file.
81422
81423         Module getline.
81424         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
81425         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
81426         <sys/types.h>, for size_t. Use the function name gnu_getline, not
81427         simply getline. Infoke gl_PREREQ_GETLINE.
81428
81429         Module obstack.
81430         * m4/obstack.m4: New file.
81431
81432         Module hash.
81433         * m4/hash.m4: New file.
81434
81435         Module readtokens.
81436         * m4/readtokens.m4: New file.
81437
81438         Module strverscmp.
81439         * m4/strverscmp.m4: New file.
81440
81441         Module stdbool.
81442         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
81443         OSF/1.
81444
81445         Module strtoll.
81446         * m4/strtoll.m4: New file.
81447
81448         Module strtoull.
81449         * m4/strtoull.m4: New file.
81450
81451         Module strtoimax.
81452         * m4/strtoimax.m4: New file.
81453
81454         Module strtoumax.
81455         * m4/strtoumax.m4: New file.
81456
81457         Module xstrtoimax.
81458         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
81459         jm_AC_PREREQ_XSTRTOIMAX.
81460         Moved the strtol prerequisites to strtol.m4.
81461         Moved the strtoll prerequisites to strtoll.m4.
81462         Moved the strtoimax prerequisites to strtoimax.m4.
81463
81464         Module xstrtoumax.
81465         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
81466         jm_AC_PREREQ_XSTRTOUMAX.
81467         Moved the strtoul prerequisites to strtoul.m4.
81468         Moved the strtoull prerequisites to strtoull.m4.
81469         Moved the strtoumax prerequisites to strtoumax.m4.
81470
81471         Module chown.
81472         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
81473         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
81474
81475         Module dup2.
81476         * m4/dup2.m4: New file.
81477
81478         Module ftruncate.
81479         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81480         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81481
81482         Module getgroups.
81483         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81484         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81485
81486         Module gettimeofday.
81487         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81488         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81489         gl_PREREQ_GETTIMEOFDAY.
81490
81491         Module mkdir.
81492         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81493         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81494
81495         Module mkstemp.
81496         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81497         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81498         jm_AC_TYPE_UINTMAX_T.
81499         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81500
81501         Module stat.
81502         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81503         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81504
81505         Module lstat.
81506         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81507         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81508
81509         Module timespec.
81510         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81511         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81512         * m4/st_mtim.m4: Indentation.
81513
81514         Module nanosleep.
81515         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81516         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81517         gl_PREREQ_NANOSLEEP.
81518
81519         Module regex.
81520         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81521         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81522         (gl_REGEX): New macro.
81523
81524         Module rename.
81525         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81526         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81527
81528         Module rmdir.
81529         * m4/rmdir.m4: New file.
81530
81531         Module utime.
81532         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81533         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81534         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81535
81536         Module dirname.
81537         * m4/dirname.m4: New file.
81538
81539         Module getopt.
81540         * m4/getopt.m4: New file.
81541
81542         Module unistd-safer.
81543         * m4/unistd-safer.m4: New file.
81544
81545         Module fnmatch.
81546         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81547         declaration.
81548         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81549         (gl_FUNC_FNMATCH_POSIX): New macro.
81550         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81551         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81552         simply fnmatch.
81553
81554         Module exclude.
81555         * m4/exclude.m4: New file.
81556
81557         Module human.
81558         * m4/human.m4: New file.
81559
81560         Module acl.
81561         * m4/acl.m4: Nop.
81562
81563         Module backupfile.
81564         * m4/backupfile.m4: New file.
81565         * m4/d-ino.m4: Indentation.
81566
81567         Module fsusage.
81568         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81569         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81570         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81571
81572         Module dirfd.
81573         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81574         requirements.
81575
81576         Module euidaccess.
81577         * m4/euidaccess.m4: New file.
81578
81579         Module file-type.
81580         * m4/file-type.m4: New file.
81581
81582         Module fileblocks.
81583         * m4/fileblocks.m4: New file.
81584
81585         Module filemode.
81586         * m4/filemode.m4: New file.
81587
81588         Module isdir.
81589         * m4/isdir.m4: New file.
81590
81591         Module lchown.
81592         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81593         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81594
81595         Module makepath.
81596         * m4/makepath.m4: New file.
81597
81598         Module modechange.
81599         * m4/modechange.m4: New file.
81600
81601         Module mountlist.
81602         * m4/mountlist.m4: New file.
81603         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81604         Indentation.
81605
81606         Module path-concat.
81607         * m4/path-concat.m4: New file.
81608
81609         Module pathmax.
81610         * m4/pathmax.m4: New file.
81611
81612         Module same.
81613         * m4/same.m4: New file.
81614
81615         Module save-cwd.
81616         * m4/save-cwd.m4: New file.
81617
81618         Module savedir.
81619         * m4/savedir.m4: New file.
81620
81621         Module xgetcwd.
81622         * m4/xgetcwd.m4: New file.
81623         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81624
81625         Module xreadlink.
81626         * m4/xreadlink.m4: New file.
81627
81628         Module safe-read.
81629         * m4/safe-read.m4: New file.
81630
81631         Module safe-write.
81632         * m4/safe-write.m4: New file.
81633
81634         Module closeout.
81635         * m4/closeout.m4: New file.
81636
81637         Module stdio-safer.
81638         * m4/stdio-safer.m4: New file.
81639
81640         Module getpass.
81641         * m4/getpass.m4: New file.
81642
81643         Module getugroups.
81644         * m4/getugroups.m4: New file.
81645
81646         Module group-member.
81647         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81648         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81649
81650         Module idcache.
81651         * m4/idcache.m4: New file.
81652
81653         Module userspec.
81654         * m4/userspec.m4: New file.
81655
81656         Module gettime.
81657         * m4/clock_time.m4: New file.
81658         * m4/gettime.m4: New file.
81659
81660         Module settime.
81661         * m4/settime.m4: New file.
81662
81663         Module posixtm.
81664         * m4/posixtm.m4: New file.
81665
81666         Module gethostname.
81667         * m4/gethostname.m4: New file.
81668
81669         Module canon-host.
81670         * m4/canon-host.m4: New file.
81671
81672         Module gettext.
81673         * m4/codeset.m4: New file, from gettext-0.11.5.
81674         * m4/gettext.m4: New file, from gettext-0.11.5.
81675         * m4/glibc21.m4: New file, from gettext-0.11.5.
81676         * m4/iconv.m4: New file, from gettext-0.11.5.
81677         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81678         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81679         * m4/inttypes.m4: New file, from gettext-0.11.5.
81680         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81681         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81682         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81683         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81684         * m4/lib-link.m4: New file, from gettext-0.11.5.
81685         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81686         * m4/progtest.m4: New file, from gettext-0.11.5.
81687         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81688         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81689         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81690
81691         Module localcharset.
81692         * m4/localcharset.m4: New file.
81693
81694         Module hard-locale.
81695         * m4/hard-locale.m4: New file.
81696
81697         Module mbswidth.
81698         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81699         onceonly macros.
81700         * m4/mbrtowc.m4: Add comment.
81701
81702         Module memcasecmp.
81703         * m4/memcasecmp.m4: New file.
81704
81705         Module memcoll.
81706         * m4/memcoll.m4: New file.
81707
81708         Module unicodeio.
81709         * m4/unicodeio.m4: New file.
81710
81711         Module rpmatch.
81712         * m4/rpmatch.m4: New file.
81713
81714         Module yesno.
81715         * m4/yesno.m4: New file.
81716
81717         Module exitfail.
81718         * m4/exitfail.m4: New file.
81719
81720         Module c-stack.
81721         * m4/c-stack.m4 (gl_C_STACK): New macro.
81722         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81723
81724         Module error.
81725         * m4/error.m4 (gl_ERROR): New macro.
81726         (jm_PREREQ_ERROR): Use onceonly macros.
81727
81728         Module fatal.
81729         * m4/fatal.m4: New file.
81730
81731         Module getloadavg.
81732         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81733         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81734
81735         Module getpagesize.
81736         * m4/getpagesize.m4: New file.
81737
81738         Module getusershell.
81739         * m4/getusershell.m4: New file.
81740
81741         Module physmem.
81742         * m4/physmem.m4: New file.
81743
81744         Module posixver.
81745         * m4/posixver.m4: New file.
81746
81747         Module quotearg.
81748         * m4/quotearg.m4: New file.
81749
81750         Module quote.
81751         * m4/quote.m4: New file.
81752
81753         Module readutmp.
81754         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81755
81756         Module sig2str.
81757         * m4/sig2str.m4: New file.
81758
81759         Other.
81760         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81761         ulonglong.m4.
81762         * m4/intmax_t.m4: New file.
81763         * m4/d-type.m4: Indentation.
81764         * m4/jm-macros.m4: Update.
81765         * m4/prereq.m4 (jm_PREREQ): Update.
81766         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81767         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81768         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81769         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81770         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81771         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81772         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81773         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81774         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81775         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81776         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81777         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81778         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81779         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81780         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81781         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81782         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81783         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81784         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81785
81786 2002-12-24  Bruno Haible  <bruno@clisp.org>
81787
81788         * MODULES.txt: Update according to m4/ changes.
81789
81790         Module gettext.
81791         * config.rpath: New file, from gettext-0.11.5.
81792
81793         * modules/*: New module descriptions.
81794         * gnulib-tool: New file.
81795         * MODULES.html.sh: New file.
81796
81797 2002-12-21  Karl Berry  <karl@gnu.org>
81798
81799         * doc/fdl.texi: update to version 1.2.
81800
81801 2002-12-19  Karl Berry  <karl@gnu.org>
81802
81803         * config/config.guess: update from prep.
81804
81805 2002-12-18  Bruno Haible  <bruno@clisp.org>
81806
81807         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81808         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81809
81810 2002-12-17  Bruno Haible  <bruno@clisp.org>
81811
81812         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81813         stdlib.h, string.h.
81814
81815 2002-12-17  Bruno Haible  <bruno@clisp.org>
81816
81817         * lib/canon-host.c (strdup): Remove unused declaration.
81818
81819         * lib/fsusage.c: Include full_read.h.
81820         (get_fs_usage): Use full_read instead of safe_read.
81821
81822         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81823
81824 2002-12-12  Karl Berry  <karl@gnu.org>
81825
81826         * config/config.guess: update from prep.
81827
81828 2002-12-11  Bruno Haible  <bruno@clisp.org>
81829
81830         * m4/setenv.m4: New file, from gettext-0.11.5.
81831
81832 2002-12-11  Bruno Haible  <bruno@clisp.org>
81833
81834         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81835         not unsetenv().
81836         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81837         modifications:
81838
81839         2002-12-11  Bruno Haible  <bruno@clisp.org>
81840
81841                 * setenv.c (alloca): Fall back to malloc.
81842                 (freea): New macro.
81843                 (setenv): Use freea() to free memory allocated with alloca().
81844
81845         2002-11-13  Bruno Haible  <bruno@clisp.org>
81846
81847                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81848                 function declarations.
81849                 * unsetenv.c (unsetenv): Likewise.
81850
81851         2002-03-04  Bruno Haible  <bruno@clisp.org>
81852
81853                 Portability to AIX 4.3.3.
81854                 * unsetenv.c: New file, extracted from setenv.c.
81855                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81856
81857         2001-12-20  Bruno Haible  <bruno@clisp.org>
81858
81859                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81860                 use malloc instead. For SunOS 4.
81861
81862         2001-12-11  Bruno Haible  <bruno@clisp.org>
81863
81864                 * setenv.c: Declare alloca.
81865                 (compar_fn_t): New typedef.
81866                 (KNOWN_VALUE, STORE_VALUE): Use it.
81867
81868         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81869         setenv.h.
81870
81871 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81872
81873         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81874         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81875         Choose values that are less likely to collide with system fnmatch
81876         options.
81877         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81878         defined (e.g., a pure POSIX system).
81879         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81880         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81881
81882 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81883
81884         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81885         a pain in practice to deal with generated m4 files.  This change
81886         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81887
81888         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81889         and jm-glibc-io.m4, as they are no longer a special case.
81890         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81891         kludge and the auto-generation stuff.  Check only whether the
81892         functions are declared, not whether they exist, since older hosts
81893         that don't declare the functions can't use the optimization anyway.
81894
81895 2002-12-06  Jim Meyering  <jim@meyering.net>
81896
81897         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81898
81899         Merge in changes from libc's misc/error.c, in preparation
81900         for the merge of gnulib's changes back into libc.
81901
81902         * lib/error.c (_): Define only if not already defined.
81903         Move definition to follow all #include directives.
81904         Include unlocked-io.h only if !_LIBC.
81905         [_LIBC]: Include <libio/libioP.h>.
81906         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81907         (fflush): Tweak definition to use INTUSE.
81908         (putc): Define.
81909
81910 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81911
81912         * lib/alloca.c [defined emacs]: Include "lisp.h".
81913         (xalloc_die) [defined emacs]: New macro.
81914         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81915         [! defined emacs]: Include <xalloc.h>.
81916         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81917         (pointer): Typedef to POINTER_TYPE *.
81918         (malloc): Remove decl; we now always use xmalloc.
81919         (alloca): Use old-style definition, since Emacs needs this.
81920         Check for arithmetic overflow when computing combined size.
81921
81922 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81923
81924         Do not generate unlocked-io.h automatically, since it's easier to
81925         maintain it by hand.
81926
81927         * lib/unlocked-io.h: New file, from GNU diffutils,
81928         but with proper copyright notice and attribution.
81929         * lib/gen-uio: Remove.
81930         * lib/Makefile.am: Add copyright notice.
81931         (libfetish_a_SOURCES): Add unlocked-io.h.
81932         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81933         (DISTCLEANFILES, io_functions): Remove macros.
81934         (EXTRA_DIST): Remove gen_uio.
81935         (unlocked-io.h): Remove rule.
81936
81937 2002-12-04  Jim Meyering  <jim@meyering.net>
81938
81939         Reflect the fact that stat.c and lstat.c are no longer generated.
81940         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81941         (DISTCLEANFILES): Likewise.
81942         (EXTRA_DIST): Likewise.
81943         (all_local): Don't depend on stat.c or lstat.c.
81944         (stat.c, lstat.c): Remove rules.
81945         (EXTRA_DIST): Remove xstat.in.
81946
81947         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81948         * lib/stat.c: New file.  Contents mostly from xstat.in.
81949         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81950         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81951
81952         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81953         too.
81954         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81955
81956 2002-12-03  Jim Meyering  <jim@meyering.net>
81957
81958         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81959         but not semantics, to minimize the differences between these two files.
81960         (safe_read): Change comment to mention SAFE_READ_ERROR.
81961
81962         * lib/safe-read.c (IS_EINTR): Define.
81963         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81964
81965 2002-12-02  Jim Meyering  <jim@meyering.net>
81966
81967         * lib/safe-read.c (EINTR): Define.
81968         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81969         (INT_MAX): Provide fallback.
81970         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81971
81972         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81973
81974 2002-12-02  Bruno Haible  <bruno@clisp.org>
81975
81976         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81977         Define, taken from safe-read.c.
81978         (INT_MAX): Provide fallback.
81979         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81980         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81981
81982         * lib/safe-read.c (EINTR): Remove definition.
81983         (safe_read): Don't use EINTR if it is absent.
81984
81985 2002-12-01  Jim Meyering  <jim@meyering.net>
81986
81987         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81988         zero.
81989         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81990
81991 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81992
81993         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81994         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81995         with `if (! (value < limit)) abort ();', for readability.
81996
81997 2002-11-26  Karl Berry  <karl@gnu.org>
81998
81999         * lib/strdup.c: copy from libc again, with jim's ok.
82000         * lib/.cppi-disable: re-add strdup.c
82001
82002 2002-11-25  Karl Berry  <karl@gnu.org>
82003
82004         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
82005         instead of "strtol.c".
82006
82007 2002-11-25  Karl Berry  <karl@gnu.org>
82008
82009         * config/install-sh: update from automake for variable quoting, $0 in
82010         error msgs, etc.
82011
82012         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
82013         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
82014         entry.
82015
82016 2002-11-25  Jim Meyering  <jim@meyering.net>
82017
82018         * lib/mktime.c: Sync from libc, now that it has the latest fix.
82019
82020 2002-11-24  Karl Berry  <karl@gnu.org>
82021
82022         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
82023         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
82024
82025 2002-11-24  Jim Meyering  <jim@meyering.net>
82026
82027         Update from coreutils:
82028
82029         * lib/mktime.c: Merge in changes from libc.
82030
82031         Avoid a link-time failure on some Linux systems.
82032         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
82033         (otherwise).
82034         (__mon_yday): Declare with the STATIC attribute.
82035         (__mktime_internal): Likewise.
82036         Based on a report from Greg Schafer.
82037
82038 2002-11-23  Jim Meyering  <jim@meyering.net>
82039
82040         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
82041         Use `unsigned', not `int', as type of index.
82042
82043         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
82044
82045         * lib/fsusage.c: Remove unneeded parentheses around operands of
82046         `defined'.
82047
82048 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82049
82050         * lib/quotearg.h: Allow multiple inclusion by surrounding with
82051         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
82052         so that we can be included first.
82053         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
82054         * lib/quotearg.c: Include quotearg.h immediately after config.h.
82055         No need to include stddef.h or sys/types.h any more.
82056         Surround local include files with "", not "<>".
82057         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
82058         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
82059         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
82060         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
82061         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
82062         (ISPRINT): Remove; no longer needed now that we assume C89.
82063
82064         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
82065         Preserve errno.
82066
82067         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
82068         quotearg_char): Use SIZE_MAX rather than
82069         (size_t) -1 when we are talking about "infinity".
82070
82071         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
82072
82073 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82074
82075         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
82076         hint that one should use `if (! x) abort ();' rather than `assert
82077         (x);', and anyway it's one less thing to worry about configuring.
82078         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
82079         hash_rehash, hash_insert): Use abort rather than assert.
82080
82081 2002-11-22  Bruno Haible  <bruno@clisp.org>
82082
82083         * lib/safe-read.h: Assume C89. Add comments.
82084         (safe_read): Change return type to size_t.
82085         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
82086         byte counts > SSIZE_MAX correctly.
82087         * lib/safe-write.h: New file.
82088         * lib/safe-write.c: New file.
82089         * lib/full-read.h: New file.
82090         * lib/full-read.c: New file.
82091         * lib/full-write.h: Assume C89. Add comments.
82092         * lib/full-write.c: Include safe-write.h.
82093         (full_write): Rewritten to use safe_write.
82094         Suggested by Jim Meyering and Paul Eggert.
82095
82096 2002-11-21  Jim Meyering  <jim@meyering.net>
82097
82098         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
82099
82100         Merge in changes from the coreutils.
82101
82102         2002-09-25  Paul Eggert  <eggert@twinsun.com>
82103         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
82104         <stdint.h>.
82105         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
82106         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
82107         int.  Work more efficiently if X is the same width as uintmax_t.
82108         Do not compare X to -1, to avoid bogus compiler warning.
82109         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
82110         Don't assume that f_frsize and f_bsize are the same type.
82111
82112         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
82113         warning on FreeBSD.
82114
82115         * lib/makepath.c (make_path): Restore umask *before* creating the final
82116         component.
82117         (make_path): Minor reformatting.
82118
82119         * lib/xmalloc.c: Adjust to work with new autoconf macros,
82120         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
82121         HAVE_MALLOC/HAVE_REALLOC.
82122
82123         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
82124         dummy ones.  At least on GNU/Linux systems, `auto' means something
82125         else.
82126         From Michael Stone.
82127
82128 2002-11-21  Bruno Haible  <bruno@clisp.org>
82129
82130         Remove case insensitive option matching.
82131         * lib/argmatch.h (argcasematch): Remove declaration.
82132         (ARGCASEMATCH): Remove macro.
82133         (__xargmatch_internal): Remove case_sensitive argument.
82134         (XARGMATCH): Update.
82135         (XARGCASEMATCH): Remove macro.
82136         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
82137         case_sensitive argument.
82138         (argcasematch): Remove function.
82139         (__xargmatch_internal): Remove case_sensitive argument.
82140         (main): Use XARGMATCH instead of XARGCASEMATCH.
82141
82142         * lib/xmalloc.c: Change compile-time error message. Add comment about
82143         required autoconf version.
82144
82145 2002-11-20  Paul Eggert  <eggert@twinsun.com>
82146
82147         Merge argmatch cleanups from Bison.  Assume C89.
82148
82149         * lib/argmatch.c: Include config.h here, not in argmatch.h.
82150         Include stdlib.h, for EXIT_FAILURE.
82151         Always include <string.h>, since we assume C89.
82152         (EXIT_FAILURE): Remove pre-C89 bug workaround.
82153         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
82154         Include <stddef.h> instead, since it's all we need for size_t.
82155         (PARAMS): Remove.  All uses removed.
82156         (ARRAY_CARDINALITY): Do not bother to #undef.
82157         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
82158         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82159         Remove unnecessary parentheses.
82160         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82161         Insert necessary parentheses.
82162         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
82163         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
82164
82165 2002-11-19  Bruno Haible  <bruno@clisp.org>
82166
82167         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
82168         * lib/mbswidth.h: Include <stddef.h>, for size_t.
82169
82170         * lib/mbswidth.h (PARAMS): Remove macro.
82171         (mbswidth, mbsnwidth): Use ANSI C function declarations.
82172         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
82173
82174         * lib/gcd.h (PARAMS): Remove macro.
82175         (gcd): Use ANSI C function declarations.
82176         * lib/gcd.c (gcd): Likewise.
82177
82178 2002-11-15  Bruno Haible  <bruno@clisp.org>
82179
82180         * lib/strcspn.c: Include <stddef.h>.
82181         (strcspn): Use ANSI C function declaration. Change return type to
82182         size_t. Use NULL.
82183         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
82184         (strpbrk): Use NULL.
82185         * lib/strpbrk.h (PARAMS): Remove macro.
82186         (strpbrk): Use ANSI C function declaration.
82187         * lib/strstr.c: Don't include <sys/types.h>.
82188         * lib/strstr.h (PARAMS): Remove macro.
82189         (strstr): Use ANSI C function declarations.
82190
82191 2002-11-14  Karl Berry  <karl@gnu.org>
82192
82193         * config/mkinstalldirs: `do' on separate line, instead of
82194         `for var; do'.
82195
82196 2002-11-06  Bruno Haible  <bruno@clisp.org>
82197
82198         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
82199         * lib/gcd.c (gcd): Likewise.
82200
82201 2002-11-05  Bruno Haible  <bruno@clisp.org>
82202
82203         * lib/gcd.h: New file, from gettext-0.11.5.
82204         * lib/gcd.c: New file, from gettext-0.11.5.
82205
82206 2002-11-05  Bruno Haible  <bruno@clisp.org>
82207
82208         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82209         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82210         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82211         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82212
82213         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
82214         <libintl.h>.
82215         * lib/makepath.c: Include gettext.h instead of <locale.h> and
82216         <libintl.h>.
82217
82218         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
82219         * lib/human.c: Include gettext.h instead of <libintl.h>.
82220         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
82221         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
82222         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
82223         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
82224         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
82225         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
82226         (textdomain): Remove definition.
82227         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
82228
82229         * lib/long-options.c: Remove include of <libintl.h> and definition of
82230         _.
82231         * lib/same.c: Remove include of <libintl.h> and definition of _.
82232
82233 2002-11-04  Owen Taylor  <otaylor@redhat.com>
82234
82235         * lib/config.charset: A few additions for Solaris.
82236
82237 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82238
82239         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
82240         * lib/localcharset.c (locale_charset): Declare as extern "C".
82241
82242 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82243
82244         * lib/config.charset: msdos in uk_UA uses CP1125.
82245
82246 2002-11-04  Bruno Haible  <bruno@clisp.org>
82247
82248         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
82249         * lib/strcase.h: New file, from GNU gettext-0.11.5.
82250         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
82251         * lib/strstr.h: New file, from GNU gettext-0.11.5.
82252         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82253
82254 2002-11-04  Bruno Haible  <bruno@clisp.org>
82255
82256         * lib/localcharset.c (locale_charset): Don't return an empty string.
82257
82258 2002-11-04  Bruno Haible  <bruno@clisp.org>
82259
82260         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82261         aliases.
82262
82263 2002-11-04  Bruno Haible  <bruno@clisp.org>
82264
82265         * lib/config.charset: Update for newest glibc. Add canonical names
82266         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82267
82268 2002-11-04  Bruno Haible  <bruno@clisp.org>
82269
82270         * lib/config.charset: Add support for NetBSD.
82271
82272 2002-11-04  Bruno Haible  <bruno@clisp.org>
82273
82274         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82275
82276 2002-11-01  Bruno Haible  <bruno@clisp.org>
82277
82278         * configure.in: Add AC_CONFIG_AUX_DIR call.
82279         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82280         test/Makefile.
82281         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82282
82283 2002-09-28  Karl Berry  <karl@gnu.org>
82284
82285         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82286         installed automake until the next release, since changes have been
82287         made.
82288
82289 2002-09-25  Karl Berry  <karl@gnu.org>
82290
82291         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82292         * lib/getopt*: copy from libc/posix.
82293         * lib/gettext.h: copy from gettext.
82294         * lib/.cppi-disable: add strdup.c, gettext.h.
82295
82296 2002-09-25  Karl Berry  <karl@gnu.org>
82297
82298         * config/srclist.txt: enable gettext.h check.
82299         * config/config.{guess,sub}: update from prep.
82300         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82301                 from automake 1.6.3.
82302         See srclist*.
82303
82304 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82305
82306         * regex.c (PATFETCH): Remove the translating fetch.
82307         (PATFETCH_RAW): Rename to PATFETCH.
82308         (set_image_of_range): New fun.
82309         (SET_RANGE_TABLE_WORK_AREA): Use it.
82310         (regex_compile): Don't translate the pattern chars so eagerly.
82311         Only do it when inserting an `exactn' bytecode or when handling
82312         a char-range.
82313         (mutually_exclusive_p): Avoid empty statement.
82314
82315 2002-07-06  Jim Meyering  <meyering@lucent.com>
82316
82317         * m4/README: Don't mention Makefile.am.in.
82318         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82319
82320 2002-07-01  Jim Meyering  <meyering@lucent.com>
82321
82322         * lib/c-stack.c: Include sys/time.h.
82323         From Volker Borchert.
82324
82325 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82326
82327         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82328
82329 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82330
82331         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82332         New macro.  Use it uniformly instead of
82333         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82334         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82335         reported by Vin Shelton.
82336
82337 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82338
82339         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82340         Do not assume SA_SIGINFO behavior.
82341         Bug reported by Jim Meyering on NetBSD 1.5.2.
82342
82343 2002-06-22  Jim Meyering  <meyering@lucent.com>
82344
82345         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82346         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82347
82348         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82349         now that configure.ac uses AC_GNU_SOURCE.
82350         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82351         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82352
82353         Update to latest tools.  Suggestions from Paul Eggert.
82354         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82355         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82356         * m4/fnmatch.m4: Likewise.
82357         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82358         to AC_HEADER_STDBOOL
82359
82360 2002-06-22  Jim Meyering  <meyering@lucent.com>
82361
82362         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82363         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82364
82365 2002-06-22  Jim Meyering  <meyering@lucent.com>
82366
82367         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82368
82369         * lib/exitfail.c, exitfail.h: Likewise.
82370         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82371
82372         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82373         of fnmatch.h.
82374         (EXTRA_DIST): Add fnmatch_loop.c.
82375         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82376
82377         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82378         * lib/fnmatch.c: Update from diffutils-2.8.2.
82379         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82380         * lib/fnmatch.h: Remove file.
82381
82382 2002-06-21  Jim Meyering  <meyering@lucent.com>
82383
82384         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82385         * m4/mbrtowc.m4: Likewise.
82386
82387         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82388         * m4/mbswidth.m4: Reflect name change:
82389         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82390         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82391
82392         * m4/lib-link.m4: Update from gettext-0.11.2.
82393         * m4/gettext.m4: Likewise.
82394
82395         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82396         From Alfred M. Szmidt.
82397
82398 2002-06-18  Paul Eggert  <eggert@twinsun.com>
82399
82400         * lib/file-type.h: Report an error if neither S_ISREG nor
82401         S_IFREG is defined, instead of using a test specific to glibc
82402         2.2.  This should be safe, since POSIX requires S_ISREG and
82403         Unix Version 7 had S_IFREG.  We don't need to check for
82404         <sys/types.h> since we don't use any symbols that it defines.
82405
82406 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
82407
82408         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
82409         $@-t, so that each temporary file name is unique and valid in the first
82410         8 characters, for operation under DOS.
82411
82412 2002-06-15  Paul Eggert  <eggert@twinsun.com>
82413
82414         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
82415
82416 2002-06-15  Jim Meyering  <meyering@lucent.com>
82417
82418         Work even with DJGPP 2.03, which lacks support for symlinks.
82419         From Richard Dawe.
82420         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
82421         is defined.
82422         * lib/lchown.c (S_ISLNK): Likewise.
82423
82424 2002-06-15  Jim Meyering  <meyering@lucent.com>
82425
82426         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
82427         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
82428         have been included before this file.
82429
82430 2002-06-14  Jim Meyering  <meyering@lucent.com>
82431
82432         * lib/file-type.h: Use the version from diffutils-2.8.2.
82433         * lib/file-type.c: Likewise.
82434
82435 2002-06-07  Jim Meyering  <meyering@lucent.com>
82436
82437         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
82438         They're needed at least for NetBSD 1.5.2.
82439         ($statxfs_includes): Include those same headers.
82440         ($statxfs_includes): Include sys/vfs.h if available.
82441         ($statxfs_includes): Likewise for sys/statvfs.h.
82442         Check for the following members in both structs statfs and statvfs:
82443         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
82444
82445 2002-06-01  Jim Meyering  <meyering@lucent.com>
82446
82447         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
82448         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
82449
82450 2002-05-28  Jim Meyering  <meyering@lucent.com>
82451
82452         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
82453         Reported by Volker Borchert.
82454
82455 2002-05-27  Jim Meyering  <meyering@lucent.com>
82456
82457         Fix a problem seen only on nonconforming systems whereby ls.c's
82458         use of localtime, and then of gettimeofday would cause trouble:
82459         the localtime call used to initialize rpl_gettimeofday's save
82460         mechanism would clobber ls's current local time information so
82461         that in any long listing the first file would always be listed
82462         with date 1970-01-01.  Analysis by Volker Borchert.
82463
82464         * lib/gettimeofday.c (localtime): Undefine.
82465         (rpl_localtime): New function.
82466
82467 2002-05-27  Jim Meyering  <meyering@lucent.com>
82468
82469         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
82470         localtime.
82471
82472         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
82473         use the replacement function; it wouldn't resolve at link time.
82474         Reported by Volker Borchert.
82475
82476 2002-05-22  Jim Meyering  <meyering@lucent.com>
82477
82478         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
82479         file-type.h.
82480         * lib/file-type.h: New file.
82481         * lib/file-type.c (file_type): New file/function.  Extracted from
82482         diffutils.
82483
82484 2002-04-30  Jim Meyering  <meyering@lucent.com>
82485
82486         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82487
82488 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82489
82490         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82491
82492 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82493
82494         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82495         Do not check for alloca.h (no longer used) or stdbool.h (was never
82496         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82497
82498 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82499
82500         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82501
82502 2002-04-29  Jim Meyering  <meyering@lucent.com>
82503
82504         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82505         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82506         Use AC_FUNC_STRNLEN here instead.
82507
82508         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82509         With autoconf-2.53a, it's part of AC_PROG_CC.
82510
82511 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82512
82513         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82514         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82515
82516 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82517
82518         * lib/sig2str.h, lib/sig2str.c: New files.
82519         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82520
82521 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82522
82523         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82524         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82525         of 127, since 64 is the largest conceivable number for ancient
82526         nonstandard hosts.
82527         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82528
82529 2002-04-28  Jim Meyering  <meyering@lucent.com>
82530
82531         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82532
82533 2002-04-24  Jim Meyering  <meyering@lucent.com>
82534
82535         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82536         (jm_PREREQ): Use it.
82537
82538         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82539         mach/mach.h fcntl.h.
82540         Check for this function: setlocale.
82541
82542 2002-04-24  Jim Meyering  <meyering@lucent.com>
82543
82544         * lib/gettext.h: New file, from Gettext.
82545         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82546         (libfetish_a_SOURCES): Add gettext.h.
82547
82548 2002-04-16  Jim Meyering  <meyering@lucent.com>
82549
82550         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82551         ut_pid, ut_id, ut_exit.
82552
82553 2002-04-16  Jim Meyering  <meyering@lucent.com>
82554
82555         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82556         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82557         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82558
82559 2002-04-12  Jim Meyering  <meyering@lucent.com>
82560
82561         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82562         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82563         existence of the getmntinfo function.  Needed for Darwin 5.3.
82564
82565         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82566         This is necessary at least on Darwin 5.3.
82567
82568         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82569         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82570         strnlen.o in the library, and that makes some versions of ranlib
82571         object.
82572
82573 2002-04-12  Jim Meyering  <meyering@lucent.com>
82574
82575         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82576
82577 2002-04-09  Jim Meyering  <meyering@lucent.com>
82578
82579         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82580         to be more precise.  Rather than saying we're checking whether the
82581         function `works', say what we're testing.
82582         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82583         Reported by Bruno Haible.
82584
82585 2002-03-10  Jim Meyering  <meyering@lucent.com>
82586
82587         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82588         Suggestion from Santiago Vila.
82589
82590 2002-03-08  Jim Meyering  <meyering@lucent.com>
82591
82592         * lib/rename.c: Mention that this wrapper is needed also on
82593         mips-dec-ultrix4.4 systems.
82594
82595 2002-03-02  Jim Meyering  <meyering@lucent.com>
82596
82597         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82598         not HAVE_CLOCK_SETTIME.
82599
82600 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82601
82602         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82603         Check for clock_settime.
82604
82605 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82606
82607         * lib/nanosleep.h: Rename to....
82608         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82609
82610         * lib/gettime.c: New file.
82611         * lib/settime.c: New file.
82612         * lib/stime.c: Remove.
82613
82614         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82615         timespec.h.  Remove nanosleep.h.
82616
82617 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82618
82619         * m4/acl.m4: New file.
82620         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82621         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82622
82623 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82624
82625         * lib/acl.c, lib/acl.h: New files.
82626         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82627
82628 2002-02-24  Jim Meyering  <meyering@lucent.com>
82629
82630         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82631         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82632         cause trouble.  Reported by Nelson Beebe.
82633
82634 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82635
82636         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82637         compilers that don't know that xalloc_die never returns.
82638
82639 2002-02-20  Jim Meyering  <meyering@lucent.com>
82640
82641         * lib/getdate.c: Regenerate using bison-1.33.
82642
82643 2002-02-17  Jim Meyering  <meyering@lucent.com>
82644
82645         * config/config.guess (main): Don't use `head -1'; it's no longer
82646         portable. Use `sed 1q' instead.
82647
82648 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82649
82650         * m4/codeset.m4: Upgrade to gettext-0.11.
82651         * m4/gettext.m4: Upgrade to gettext-0.11.
82652         * m4/glibc21.m4: Upgrade to gettext-0.11.
82653         * m4/iconv.m4: Upgrade to gettext-0.11.
82654         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82655         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82656         * m4/lib-ld.m4: New file, from gettext-0.11.
82657         * m4/lib-link.m4: New file, from gettext-0.11.
82658         * m4/lib-prefix.m4: New file, from gettext-0.11.
82659         * m4/progtest.m4: Upgrade to gettext-0.11.
82660
82661 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82662
82663         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82664         (jm_PREREQ): Use it.
82665
82666 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82667
82668         * lib/posixver.c, lib/posixver.h: New files.
82669         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82670
82671 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82672             Bruno Haible  <bruno@clisp.org>
82673
82674         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82675         (fwrite_success_callback): New declaration.
82676         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82677         print_unicode_char. Call failure callback instead of error.
82678         (fwrite_success_callback): New function.
82679         (exit_failure_callback): New function.
82680         (fallback_failure_callback): New function.
82681         (print_unicode_char): Call unicode_to_mb.
82682
82683 2002-01-26  Jim Meyering  <meyering@lucent.com>
82684
82685         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82686         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82687
82688 2002-01-26  Jim Meyering  <meyering@lucent.com>
82689
82690         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82691
82692 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82693
82694         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82695
82696 2002-01-22  Jim Meyering  <meyering@lucent.com>
82697
82698         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82699         Otherwise, some versions of automake would omit the rule that makes
82700         Makefile from Makefile.in.
82701
82702 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82703
82704         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82705         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82706         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82707         (memcoll): Set errno to zero if there is no error.
82708
82709         * lib/quotearg.c (quotearg_buffer_restyled):
82710         Fix bug with quoting buffers containing NUL when backslashing escapes.
82711         This bug was exposed by the other changes in this patch.
82712         (quotearg_n_options): New arg ARGSIZE.
82713         All callers changed.
82714         (quoting_options_from_style): New function.
82715         (quotearg_n_style): Use it.
82716         (quotearg_n_style_mem): New function.
82717
82718         * lib/quotearg.h (quotearg_n_style_mem): New function.
82719
82720 2002-01-19  Jim Meyering  <meyering@lucent.com>
82721
82722         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82723         Remove useless quotes: DF_PROG="df".
82724         * m4/strnlen.m4: New file.
82725
82726 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82727
82728         * lib/backupfile.c (ISDIGIT): Comment fix.
82729         * lib/getdate.y (ISDIGIT): Likewise.
82730         * lib/posixtm.c (ISDIGIT, year): Likewise.
82731         * lib/strverscmp.c (ISDIGIT): Likewise.
82732         * lib/userspec.c (ISDIGIT): Likewise.
82733
82734 2002-01-16  Jim Meyering  <meyering@lucent.com>
82735
82736         * lib/getdate.y: Add three semicolons, each just before a closing
82737         brace. Bison (as of version 1.31) no longer papers over that mistake.
82738
82739 2002-01-05  Jim Meyering  <meyering@lucent.com>
82740
82741         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82742
82743 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82744
82745         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82746         not silently exit merely because the output buffer happens to
82747         have nothing pending.
82748
82749 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82750
82751         See the big note in ../ChangeLog.
82752         * lib/human.c (suffixes): Prefer K to k for 1024.
82753         (generate_suffix_backwards): New function.
82754         (human_readable_inexact): Use it.
82755         * lib/xstrtol.c (__xstrtol): If there is no number but there
82756         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82757         Accept 'K' as well as 'k'.
82758
82759 2001-12-15  Jim Meyering  <meyering@lucent.com>
82760
82761         * lib/regex.h (__restrict_arr): Update from libc.
82762
82763         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82764         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82765         (STREQ): Define.
82766
82767 2001-12-14  Jim Meyering  <meyering@lucent.com>
82768
82769         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82770         Suggestion from Bruno Haible.
82771
82772 2001-12-10  Jim Meyering  <meyering@lucent.com>
82773
82774         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82775         xrealloc, Instead, include "xalloc.h".
82776         (initbuffer): Don't cast xmalloc return value to char*.
82777         (readline): Reword comment.
82778         Don't cast xrealloc return value to char*
82779         Return NULL, not 0.
82780
82781 2001-12-09  Jim Meyering  <meyering@lucent.com>
82782
82783         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82784         about `signed and unsigned type in conditional expression'.
82785         * lib/posixtm.c (posix_time_parse): Likewise.
82786
82787         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82788
82789         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82790         to avoid a pedantic warning.
82791
82792         * lib/getstr.c: Don't include assert.h.
82793         (getstr): Remove warning-evoking assertions.
82794         Return -1 if offset parameter is out of bounds.
82795         Change the type of a local from int to size_t.
82796
82797         * lib/strftime.c (my_strftime_localtime_r): Include this function
82798         definition in the `#if ! HAVE_TM_GMTOFF' block.
82799
82800         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82801         Include xalloc.h instead.
82802
82803 2001-12-02  Jim Meyering  <meyering@lucent.com>
82804
82805         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82806         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82807         included.
82808
82809         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82810         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82811
82812 2001-11-30  Akim Demaille  <akim@epita.fr>
82813
82814         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82815         before being defined.
82816
82817 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82818
82819         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82820         First arg is int, not unsigned.
82821         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82822         (SIZE_MAX, UINT_MAX): New macros.
82823         (quotearg_n_options): Abort if N is negative.
82824         Avoid overflow check on hosts where size_t is 64 bits and int
82825         is 32 bits, as overflow is impossible there.
82826         Fix off-by-one typo that caused unnecessary reallocation.
82827
82828 2001-11-27  Jim Meyering  <meyering@lucent.com>
82829
82830         * lib/tempname.c: Merge with version from libc.
82831         * lib/regex.c: Likewise.
82832
82833         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82834         systems for which STDC_HEADERS is 0, it was not included, resulting in
82835         a warning about an integer-to-pointer conversion problem with getenv.
82836         Reported by Volker Borchert.
82837
82838 2001-11-26  Jim Meyering  <meyering@lucent.com>
82839
82840         * lib/gtod.h: Remove file.
82841         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82842         * lib/gettimeofday.c: Don't include gtod.h.
82843         (GTOD_init): Remove function.
82844         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82845         Suggestion from Volker Borchert.
82846
82847 2001-11-23  Jim Meyering  <meyering@lucent.com>
82848
82849         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82850         it.
82851         * lib/hash.c (struct hash_table): Define it here instead.
82852
82853 2001-11-22  Jim Meyering  <meyering@lucent.com>
82854
82855         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82856
82857 2001-11-20  Jim Meyering  <meyering@lucent.com>
82858
82859         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82860         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82861
82862 2001-11-19  Jim Meyering  <meyering@lucent.com>
82863
82864         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82865         directory.  Use "conftestXXXXXX" as the template.
82866         Suggestion from Paul Eggert.
82867
82868         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82869         immediately, so the test doesn't mistakenly hit the max-open-files
82870         limit.
82871
82872 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82873
82874         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82875         (TEMPORARIES): New macro.
82876         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82877         removes an artificial limitation (e.g. HP-UX 10.20, where
82878         TMP_MAX is 17576).
82879
82880 2001-11-18  Jim Meyering  <meyering@lucent.com>
82881
82882         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82883
82884 2001-11-18  Jim Meyering  <meyering@lucent.com>
82885
82886         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82887         on SunOS 4.
82888
82889         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82890         files will be created before anything else.
82891
82892 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82893
82894         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82895         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82896
82897 2001-11-17  Jim Meyering  <meyering@lucent.com>
82898
82899         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82900         Prompted by a report from Bob Proulx.
82901
82902         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82903         Instead, require UTILS_FUNC_MKSTEMP.
82904
82905 2001-11-17  Jim Meyering  <meyering@lucent.com>
82906
82907         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82908         Now, that's done as part of AC_FUNC_STRTOD.
82909
82910 2001-11-17  Jim Meyering  <meyering@lucent.com>
82911
82912         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82913         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82914         rather than group writable.  Patch by Juan F. Codagnone.
82915
82916         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82917         xrealloc, Instead, include "xalloc.h".
82918
82919         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82920         Remove explicit declarations of xmalloc, xrealloc,
82921         and xstrdup.  Instead, include "xalloc.h".
82922
82923         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82924         unlocked-io.h.
82925         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82926         Likewise.
82927         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82928
82929         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82930         Reported by Padraig Brady.
82931
82932         * lib/mkstemp.c: #undef mkstemp.
82933         Include config.h.
82934         (rpl_mkstemp): Rename from mkstemp.
82935         Protoize.
82936
82937 2001-11-16  Jim Meyering  <meyering@lucent.com>
82938
82939         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82940         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82941         determine the amount of total physical memory, use pstat_getstatic.
82942         HPUX-11 doesn't define _SC_PHYS_PAGES.
82943         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82944         If sysconf couldn't be used to determine the amount of available
82945         physical memory, use both pstat_getstatic and pstat_getdynamic.
82946         Based on a patch from Bob Proulx.
82947
82948 2001-11-10  Jim Meyering  <meyering@lucent.com>
82949
82950         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82951         (jm_PREREQ): Use it.
82952
82953 2001-11-09  Jim Meyering  <meyering@lucent.com>
82954
82955         * m4/jm-macros.m4: Require autoconf-2.52f.
82956         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82957         Use these AC_-prefixed names, not the AM_-prefixed ones.
82958
82959         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82960
82961 2001-11-05  Jim Meyering  <meyering@lucent.com>
82962
82963         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82964
82965 2001-11-04  Jim Meyering  <meyering@lucent.com>
82966
82967         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82968         $DEFS.
82969
82970 2001-11-03  Jim Meyering  <meyering@lucent.com>
82971
82972         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82973         of AC_DEFUN.
82974
82975         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82976         know the name of the variable in the macro definition.
82977
82978 2001-11-03  Jim Meyering  <meyering@lucent.com>
82979
82980         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82981         in argmatch_to_argument call.
82982
82983         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82984         argument.
82985
82986         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82987         e.g., a fault due to an attempt to free a NULL pointer.
82988
82989 2001-11-01  Jim Meyering  <meyering@lucent.com>
82990
82991         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82992         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82993
82994 2001-11-01  Jim Meyering  <meyering@lucent.com>
82995
82996         * lib/dirfd.c, lib/dirfd.h: New files.
82997         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82998
82999         * lib/hash.c (hash_print) [TESTING]: Clean up.
83000
83001 2001-10-22  Paul Eggert  <eggert@twinsun.com>
83002
83003         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
83004         to avoid a warning if -Wall.
83005
83006 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
83007
83008         * README: New file
83009         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
83010         (per RMS's instructions, this is now the canonical source)
83011         * lgpl/, gpl/: New directories.
83012
83013 2001-10-21  Paul Eggert  <eggert@twinsun.com>
83014
83015         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
83016
83017 2001-10-21  Jim Meyering  <meyering@lucent.com>
83018
83019         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
83020         this code would end up calling gettext even in packages built
83021         with --disable-nls.
83022         * lib/getopt.c (_): Likewise.
83023         * lib/regex.c (_): Likewise.
83024
83025 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83026
83027         * m4/error.m4 (jm_PREREQ_ERROR):
83028         Do not invoke AC_CHECK_FUNCS with strerror_r, as
83029         AC_FUNC_STRERROR_R does that.
83030         Check for strerror declaration.
83031
83032         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
83033         are supposed to have them these days.
83034         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
83035         Merge changes from latest Autoconf CVS.
83036         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
83037         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
83038         POSIX decided to standardize on the int flavor of strerror_r.
83039
83040 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83041
83042         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
83043         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
83044         Use strerror_r that is only a macro, even if it is not a function.
83045         (strerror): Check for HAVE_DECL_STRERROR before declaring.
83046         (private_strerror): Use prototypes, not old-style function definition.
83047         (print_errno_message): New function.
83048         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
83049         char*-flavored one.
83050         (error_tail, error, error_at_line): Use it.
83051
83052 2001-10-11  Jim Meyering  <meyering@lucent.com>
83053
83054         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
83055         and quote_n (1, ... to avoid clobbering a buffer.
83056
83057 2001-10-05  Jim Meyering  <meyering@lucent.com>
83058
83059         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
83060         hash-pjw.h.
83061         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
83062         * lib/hash-pjw.h: New file.
83063
83064 2001-09-30  Jim Meyering  <meyering@lucent.com>
83065
83066         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
83067         `struct fsstat' has the `f_fstypename' member.
83068         Use that to define FS_TYPE, which is now used to make
83069         the getfsstat link test tighter.
83070
83071 2001-09-30  Jim Meyering  <meyering@lucent.com>
83072
83073         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
83074         Include <sys/ucred.h>, for Apple Darwin.
83075         Include sys/mount.h and sys/fs_types.h only if available.
83076         (FS_TYPE): Define.
83077         (read_filesystem_list): Use FS_TYPE.
83078
83079 2001-09-29  Paul Eggert  <eggert@twinsun.com>
83080
83081         * lib/exclude.c (excluded_filename): 0 -> false, since it's
83082         a boolean context.
83083
83084 2001-09-29  Jim Meyering  <meyering@lucent.com>
83085
83086         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83087         [one-argument getmntent function]): Include stdio.h before mntent.h.
83088         SunOS 4.1.x needs it for the declaration of `FILE'.
83089         Patch by Volker Borchert.
83090
83091         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83092         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
83093         sys/fs_types.h, and make the link-test for getfsstat guard #include
83094         directives with appropriate #if HAVE_*_H tests so that we can
83095         detect getfsstat on Apple Darwin1.3.7 systems.
83096         Reported by Nelson Beebe.
83097         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
83098
83099 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83100
83101         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83102         #defines strtoimax.  Also treat the other strto* functions
83103         like strtoimax.
83104
83105         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83106         Check for strtoul and strtoumax,
83107         as those declarations are made even in the signed case.
83108         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
83109         Likewise, for strtol and strtoimax.
83110
83111 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83112
83113         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83114         #defines strtoimax.  Also treat the other strto* functions
83115         like strtoimax.
83116
83117         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
83118         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
83119         (strtoimax, strtoumax): Do not declare if already defined as a macro.
83120
83121 2001-09-26  Jim Meyering  <meyering@lucent.com>
83122
83123         Most macros in unlocked-io.h had the wrong number of arguments.
83124         * lib/gen-uio: New script.
83125         (USE_UNLOCKED_IO): Define to 1 if not already defined.
83126         * lib/unlocked-io.hin: Remove file.
83127         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
83128         rather than trying to embed it here.
83129         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
83130         Reported by Padraig Brady.
83131
83132 2001-09-25  Volker Borchert  <bt@teknon.de>
83133
83134         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
83135         `result'.
83136
83137 2001-09-24  Jim Meyering  <meyering@lucent.com>
83138
83139         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
83140
83141 2001-09-23  Jim Meyering  <meyering@lucent.com>
83142
83143         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
83144         instead of the mere test for existence of mntent.h.  The latter
83145         would get a false-positive on AIX 3.4 systems.
83146         In the outer getmntent if-block, don't die if neither of the getmntent
83147         tests succeeds.  Instead, just fall through and continue with the
83148         remaining tests.
83149
83150 2001-09-23  Jim Meyering  <meyering@lucent.com>
83151
83152         * lib/mountlist.c: Remove useless parentheses in #if directives.
83153         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
83154         the deprecated MOUNTED symbol is no longer defined in mntent.h.
83155
83156 2001-09-22  Jim Meyering  <meyering@lucent.com>
83157
83158         * m4/gettext.m4: New file.  From gettext.
83159         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
83160         * m4/progtest.m4: Likewise
83161         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
83162         * m4/glibc21.m4: Likewise.
83163
83164         * m4/libintl.m4: Remove.  No longer used.
83165
83166 2001-09-22  Jim Meyering  <meyering@lucent.com>
83167
83168         * lib/localcharset.c: Update from latest gettext.
83169         * lib/config.charset: Likewise.
83170
83171 2001-09-20  Jim Meyering  <meyering@lucent.com>
83172
83173         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
83174         strtoimax.
83175         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
83176         strtoumax.
83177
83178 2001-09-20  Jim Meyering  <meyering@lucent.com>
83179
83180         * lib/xstrtol.c (strtoimax): Guard declaration with
83181         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
83182         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
83183         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
83184         (strtoumax): Likewise, for completeness (it wasn't necessary).
83185
83186 2001-09-17  Paul Eggert  <eggert@twinsun.com>
83187
83188         * lib/strtoimax.c (HAVE_LONG_LONG):
83189         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
83190         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
83191         to work around bug in IBM C compiler.
83192
83193 2001-09-17  Jim Meyering  <meyering@lucent.com>
83194
83195         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
83196         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
83197         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
83198         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
83199         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
83200         whenever the right hand side need not be expanded by the shell.
83201
83202 2001-09-16  Paul Eggert  <eggert@twinsun.com>
83203
83204         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
83205         library.  It's not correct, as some older glibcs are buggy.
83206         fnmatch wasn't fixed until glibc 2.2.
83207
83208         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
83209         special shell magic here.
83210
83211 2001-09-16  Jim Meyering  <meyering@lucent.com>
83212
83213         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
83214         * m4/jm-macros.m4: Require it.
83215
83216 2001-09-16  Jim Meyering  <meyering@lucent.com>
83217
83218         * lib/mkdir.c: New file.
83219
83220 2001-09-15  Jim Meyering  <meyering@lucent.com>
83221
83222         * m4/jm-macros.m4: Check for help2man.
83223
83224 2001-09-11  Jim Meyering  <meyering@lucent.com>
83225
83226         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
83227         The body, by Paul Eggert, was moved here from configure.in.
83228         * m4/jm-macros.m4: Require UTILS_HOST_OS.
83229
83230 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83231
83232         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
83233         (jm_PREREQ): Use it.
83234
83235 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83236
83237         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
83238         Use ssize_t, not int, to store result of readlink.
83239         Check for ssize_t overflow as well as size_t overflow,
83240         as POSIX says the result of readlink is implementation-defined
83241         when ssize_t overflows.
83242         Remove unnecessary cast to char*.
83243         Use free+malloc instead of realloc, as the storage doesn't need
83244         to be preserved and it's clearer and can be more efficient that way.
83245         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
83246         * lib/xreadlink.h (xreadlink): Update prototype.
83247
83248 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83249
83250         * lib/xgetcwd.c: Revert some of the previous change; intead,
83251         fix the HAVE_GETCWD_NULL code to behave more like the
83252         !HAVE_GETCWD_NULL code used to.
83253
83254         Include "xalloc.h".
83255         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83256         invoke xalloc_die.
83257
83258 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83259
83260         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83261         sys/param.h, as pathmax.h includes them.
83262
83263 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83264
83265         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83266         (jm_PREREQ_XGETCWD): New macro.
83267
83268         * m4/getcwd.m4: New file.
83269
83270 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83271
83272         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83273         like the HAVE_GETCWD_NULL code.
83274         Include pathmax.h if not HAVE_GETCWD.
83275         Do not include xalloc.h.
83276         (INITIAL_BUFFER_SIZE): New symbol.
83277         Do not use xmalloc / xrealloc, since the caller is responsible for
83278         handling errors.  Preserve errno around `free' during failure.
83279         Do not overrun buffer when using getwd.
83280
83281 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83282
83283         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83284         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83285         getcwd (NULL, 0).
83286
83287 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83288
83289         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83290         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83291         spotted by Jim Meyering.
83292
83293 2001-09-03  Jim Meyering  <meyering@lucent.com>
83294
83295         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83296         failure.
83297
83298 2001-09-02  Jim Meyering  <meyering@lucent.com>
83299
83300         * lib/error.c: Update from GNU libc.
83301
83302 2001-09-01  Jim Meyering  <meyering@lucent.com>
83303
83304         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83305         Used by df.
83306
83307 2001-09-01  Jim Meyering  <meyering@lucent.com>
83308
83309         * lib/xreadlink.c: New file.
83310         * lib/xreadlink.h: New file.
83311         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83312         xreadlink.h.
83313
83314         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83315         doesn't conflict with sparc Solaris 7's definition in
83316         /usr/include/sys/int_types.h.
83317
83318         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83319         files.
83320         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83321         and strncasecmp as r-values.  Unixware didn't have declarations.
83322
83323 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83324
83325         * lib/xstrtol.h: Add copyright notice.
83326         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83327         LONGINT_INVALID_SUFFIX_CHAR.
83328
83329 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83330
83331         * lib/xstrtol.c (strtoimax): New decl.
83332
83333 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83334
83335         * lib/xgetcwd.c: Don't include pathmax.h.
83336         Include stdlib.h and unistd.h if available.
83337         Include xalloc.h.
83338         (xmalloc, xstrdup, free): Remove decls.
83339         (xgetcwd): Don't assume sizes fit in unsigned.
83340         Check for overflow when computing sizes.
83341         Simplify reallocation code.
83342
83343 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83344
83345         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83346         a directory's st_size can have an arbitrary value, so the old
83347         usage could waste an arbitrary amount of memory.  All uses
83348         changed.
83349         * lib/savedir.h: Update prototype.
83350
83351 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83352
83353         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83354
83355         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83356         old strtoimax.c.
83357
83358         Also, make the following further changes to make this file's
83359         configuration more similar to that of strtol.c:
83360         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83361         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83362         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83363         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83364         changed to signed values.
83365
83366         And make the following changes as well:
83367         Fix copyright notice, as 1999 was missing.
83368         (verify): New macro.
83369         (strtoimax): Check sizes at compile-time, not run-time.
83370         Prefer strtol to strtoll if both work.
83371         (main): Remove; it was not that useful and was a pain to maintain.
83372
83373         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83374
83375 2001-08-31  Jim Meyering  <meyering@lucent.com>
83376
83377         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83378         Use an initial, malloc'd, buffer of length 128 rather than
83379         a statically allocated one of length 1024.
83380
83381 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83382
83383         Simplify code, partly by assuming autoconf 2.52 semantics.
83384
83385         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83386
83387         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83388         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83389         All uses removed.
83390         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83391         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83392         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83393         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83394         jm_AC_HEADER_INTTYPES_H.
83395         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83396
83397         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
83398
83399         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83400         Quote first arg of AC_DEFUN.
83401         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
83402         since they are needed to parse the include file even if we need
83403         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
83404         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
83405         but with opposite signedness.
83406
83407 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83408
83409         Merge 'exclude' changes from tar 1.13.22.
83410         This fixes one or two unlikely storage allocation overflow bugs,
83411         but doesn't change user-visible behavior otherwise.
83412
83413 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83414
83415         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
83416         (jm_PREREQ_EXCLUDE): New macro.
83417
83418 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83419
83420         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
83421         tm to be declared.
83422
83423 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83424
83425         * lib/hash.c: Remove '2001' from copyright notice.
83426
83427 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83428
83429         * lib/full-write.h: New file.
83430         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
83431         * lib/full-write.c: Correct credits, as cccp.c no longer
83432         exists and anyway it was so heavily changed from the old cccp
83433         code as to be unrecognizable.  Include full-write.h.
83434         (full_write): Return size_t, with short writes meaning failure.
83435         All callers changed.  This fixes a bug with large buffers
83436         on 64-bit hosts.
83437         * lib/utime.c: Include full-write.h.
83438
83439 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83440
83441         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
83442         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
83443         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
83444         Include if available.
83445         (<xalloc.h>): Include
83446         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
83447         (verify): New macro.  Use it to verify that EXCLUDE macros do not
83448         collide with FNM macros.
83449         (struct patopts): New struct.
83450         (struct exclude): Use it, as exclude patterns now come with options.
83451         (new_exclude): Support above changes.
83452         (new_exclude, add_exclude_file):
83453         Initial size must now be a power of two to simplify overflow checking.
83454         (free_exclude, fnmatch_no_wildcards): New function.
83455         (excluded_filename): No longer requires options arg, as the options
83456         are determined by add_exclude.  Now returns bool, not int.
83457         (excluded_filename, add_exclude):
83458         Add support for the fancy new exclusion options.
83459         (add_exclude, add_exclude_file): Now takes int options arg.
83460         Check for arithmetic overflow when computing sizes.
83461         (add_exclude_file): xrealloc might modify errno, so don't
83462         realloc until after errno might be used.
83463
83464         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
83465         New macros.
83466         (free_exclude): New decl.
83467         (add_exclude, add_exclude_file): Now takes int options arg.
83468         (excluded_filename): No longer requires options arg, as the options
83469         are determined by add_exclude.  Now returns bool, not int.
83470
83471 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83472
83473         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
83474
83475 2001-08-27  Jim Meyering  <meyering@lucent.com>
83476
83477         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
83478
83479         * lib/version-etc.c (N_): Remove definition.
83480         Revert most of last change.
83481         Instead, simply don't mark the `Copyright...' string for translation.
83482         Based on advice from Paul Eggert.
83483
83484         * lib/strtoxmax.c: Tweak comment.
83485
83486 2001-08-26  Jim Meyering  <meyering@lucent.com>
83487
83488         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83489
83490         * m4/xstrtoimax.m4: New file.
83491         * m4/xstrtoumax.m4: Add comments explaining why we
83492         AC_REPLACE_FUNCS(strtol).
83493
83494 2001-08-26  Jim Meyering  <meyering@lucent.com>
83495
83496         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83497         of copyright with `%s' so translators don't get an untranslated
83498         message in 2002.
83499         (COPYRIGHT_YEAR): Define.
83500         (version_etc): Use fprintf rather than fputs.
83501         Suggestion from Ulrich Drepper.
83502
83503         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83504
83505         * lib/strtoll.c: New file, from GNU libc.
83506         * lib/xstrtoimax.c: New file.
83507
83508         * lib/xstrtol.h: Add xstrtoimax.
83509         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83510         * lib/strtoimax.c: New file.  Likewise, but first define
83511         STRTOUXMAX_SIGNED.
83512
83513         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83514         ...
83515         * lib/strtoxmax.c: ... then renamed to this.
83516
83517 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83518
83519         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83520         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83521         (jm_AC_TYPE_INTMAX_T): New macro.
83522         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83523
83524         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83525
83526         * m4/longlong.m4: Renamed from ulonglong.m4.
83527         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83528         * m4/uintmax_t.m4: Removed.
83529
83530 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83531
83532         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83533         Port to Solaris 8, where 'sed' requires a space after the 'r'
83534         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83535         Redirect output to $tmp just once.
83536
83537 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83538
83539         * lib/addext.c (<errno.h>): Include.
83540         (errno): Declare if not defined.
83541         (addext): Work correctly when pathconf returns -1 and leaves
83542         errno alone because there is no limit.  Also, work even if
83543         pathconf returns a value greater than SIZE_MAX.
83544
83545 2001-08-12  Jim Meyering  <meyering@lucent.com>
83546
83547         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83548         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83549         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83550         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83551         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83552         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83553         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83554         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83555         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83556         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83557         utime.m4, utimes.m4, xstrtoumax.m4:
83558         Quote the first argument in each use of AC_DEFUN.
83559
83560 2001-08-12  Jim Meyering  <meyering@lucent.com>
83561
83562         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83563         Simply `return getcwd (NULL, 0);'.
83564         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83565         Use 1300 as initial value for length, not PATH_MAX.
83566
83567         * lib/pathmax.h: Clean up cpp syntax.
83568
83569 2001-08-12  Jim Meyering  <meyering@lucent.com>
83570
83571         * lib/gettimeofday.c: New file.
83572         * lib/gtod.h: New file.
83573         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83574
83575 2001-08-05  Jim Meyering  <meyering@lucent.com>
83576
83577         * m4/jm-macros.m4: Require autoconf-2.52.
83578
83579 2001-08-04  Jim Meyering  <meyering@lucent.com>
83580
83581         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83582         stmt, to get in sync with glibc.
83583
83584 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83585
83586         The following changes are from gettext 0.10.39 as maintained by
83587         Bruno Haible.
83588
83589         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83590         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83591         with inverted sense.  All uses changed.
83592
83593         * lib/mbswidth.c: Don't include <limits.h>.
83594         Include <stdlib.h> and <string.h> unconditionally.
83595         (iswcntrl, mbsinit, ISCNTRL): New macros.
83596         (mbsnwidth): Use K&R style function declarations.
83597         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83598         can optimize it when MB_CUR_MAX == 1.
83599         The width of control characters is zero, not 1.
83600
83601 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83602
83603         The following changes are from gettext 0.10.39 as maintained by
83604         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83605
83606         * m4/codeset.m4: Upgrade to serial AM1.
83607         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83608         all uses changed.  Quote first arg of AC_DEFUN.
83609         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83610
83611         * m4/iconv.m4: Upgrade to serial AM2.
83612         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83613         Add --with-libconv-prefix.
83614         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83615         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83616         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83617         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83618         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83619
83620         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83621         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83622         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83623         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83624         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83625         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83626         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83627         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83628         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83629
83630         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83631         string.h any more.
83632
83633         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83634         not the default value.
83635
83636         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83637         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83638         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83639         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83640         Also check for iswcntrl, used for wcwidth fallback.
83641         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83642         to Autoconf 2.13.
83643
83644 2001-08-03  Jim Meyering  <meyering@lucent.com>
83645
83646         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83647         as it was in the original.  Reported by Paul Eggert.
83648
83649 2001-07-16  Jim Meyering  <meyering@lucent.com>
83650
83651         * m4/gettimeofday.m4: New file.
83652         Prompted by a report from Bernhard Baehr.
83653
83654 2001-07-15  Jim Meyering  <meyering@lucent.com>
83655
83656         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83657         stuff. Now it's in ../Makefile.cfg.
83658
83659 2001-07-15  Jim Meyering  <meyering@lucent.com>
83660
83661         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83662         (BUILT_SOURCES): Add unlocked-io.h.
83663         (io_functions): Define.
83664         (unlocked-io.h): New rule.
83665         (DISTCLEANFILES): Add unlocked-io.h.
83666         (all-local): Depend on unlocked-io.h, to ensure it is created.
83667
83668         * lib/unlocked-io.hin: New file
83669
83670         * lib/regex.c: Update from glibc.
83671
83672 2001-07-05  Jim Meyering  <meyering@lucent.com>
83673
83674         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83675         recommendation.
83676         (libfetish_a_SOURCES): Put all .h files here instead.
83677         Remove a thus-exposed (better checks in automake) duplicate and
83678         two unnecessary .h files.
83679
83680 2001-07-04  Jim Meyering  <meyering@lucent.com>
83681
83682         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83683         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83684         distcheck failure.
83685
83686 2001-07-02  Jim Meyering  <meyering@lucent.com>
83687
83688         The following changes were prompted by suggestions from Bruno Haible.
83689
83690         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83691         is now generated.
83692         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83693         definition of EXTRA_DIST.
83694         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83695         ensure that the generated file is created/updated whenever the list
83696         of $(unlocked_functions) is changed.
83697         (jm-glibc-io.m4): New rule.
83698         (unlocked-io.h): New rule -- currently unused.
83699
83700 2001-06-24  Jim Meyering  <meyering@lucent.com>
83701
83702         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83703         unmatched right bracket, rather than kludging it with an extra,
83704         falsely-matching quote in a comment.  Patch by Akim Demaille.
83705
83706 2001-06-11  Jim Meyering  <meyering@lucent.com>
83707
83708         * lib/regex.c: Update from GNU libc.
83709
83710 2001-05-27  Jim Meyering  <meyering@lucent.com>
83711
83712         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83713         Check for ut_type in struct utmp.
83714
83715 2001-05-27  Jim Meyering  <meyering@lucent.com>
83716
83717         * lib/readutmp.h (UT_TYPE): Define.
83718
83719 2001-05-24  Jim Meyering  <meyering@lucent.com>
83720
83721         * lib/argmatch.c: Include "quote.h".
83722         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83723         quote function.  Reported by Göran Uddeborg.
83724
83725 2001-05-22  Jim Meyering  <meyering@lucent.com>
83726
83727         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83728         now that we use the package-supplied version unconditionally.
83729         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83730
83731 2001-05-21  Jim Meyering  <meyering@lucent.com>
83732
83733         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83734         shell syntax errors.
83735
83736 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83737
83738         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83739
83740 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83741
83742         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83743         Don't bother to check library strftime, since
83744         we'll be using our own my_strftime function anyway.
83745         Define my_strftime instead of strftime.
83746
83747 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83748
83749         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83750         which is not yet declared.
83751
83752 2001-05-15  Jim Meyering  <meyering@lucent.com>
83753
83754         * m4/regex.m4: Use proper quoting so brackets appear in the test
83755         program.
83756         Reported by, and with help from, Bruno Haible.
83757
83758 2001-05-13  Jim Meyering  <meyering@lucent.com>
83759
83760         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83761         undefined.
83762
83763 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83764
83765         dirname code cleanup.  base_name now behaves more compatibly
83766         with POSIX basename when given file names that have trailing
83767         slashes, and similarly for dir_name.  Add new primitives
83768         base_len and dir_len.  Put the directory-name-related decls
83769         into dirname.h.
83770
83771         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83772         * lib/backupfile.c (base_name): Likewise.
83773         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83774         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83775         * lib/makepath.c (strip_trailing_slashes): Likewise.
83776         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83777         ISSLASH): Likewise.
83778         * lib/rename.c (strip_trailing_slashes): Likewise.
83779         * lib/same.c (base_name): Likewise.
83780         * lib/stripslash.c (ISSLASH): Likewise.
83781
83782         * lib/addext.c: Include <dirname.h> after size_t is defined.
83783         * lib/backupfile.c: Likewise.
83784
83785         * lib/addext.c (addext): Use base_len to trim redundant
83786         trailing slashes instead of doing it ourselves.
83787         But do not trim the last slash if it is not redundant.
83788
83789         * lib/backupfile.c (find_backup_file_name,
83790         max_backup_version): Use base_len instead of rolling it ourselves.
83791         Handle the case of "" and (on DOS) "C:" correctly.
83792
83793         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83794         needed. Include <string.h>, <dirname.h>.
83795         (base_name): Allow file names ending in slashes, other than names
83796         that are all slashes.  In this case, return the basename followed
83797         by the slashes.  This is more general, and can be used in places
83798         where the original base_name purposely had an assertion failure.
83799         (base_len): New function.
83800
83801         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83802         Do not include <assert.h>; no longer needed.
83803         Include xalloc.h.
83804         (memrchr): Remove decl.
83805         (dir_name_r): Remove.
83806         (dir_len): Renamed from dirlen.  All callers changed.
83807         Rewrite in terms of base_name, for simplicity and consistency.
83808         (dir_name): Never return NULL.  All callers changed.
83809         Do not include <stdlib.h> in test program; no longer needed.
83810         return 0; is fine for test program.
83811
83812         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83813         New macros.
83814         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83815
83816         * lib/path-concat.c (path_concat): Use base_len to compute
83817         base length, not strlen; this means we cannot rely on memcpy
83818         to null-terminate.
83819
83820         * lib/same.c (STREQ): Remove.
83821         (same_name): Handle the case where the basename ends in trailing '/'.
83822
83823         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83824         a slash was stripped.  Do not strip the last slash after a
83825         file system prefix.
83826
83827 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83828
83829         * lib/Makefile.am (libfetish_a_SOURCES):
83830         Add strftime.c, since we now compile it on all hosts.
83831
83832         * lib/strftime.c (my_strftime):
83833         Define to nstrftime if emacs, but only if my_strftime is not defined.
83834         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83835         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83836         Add one more extra argument: a nanoseconds value.
83837         All uses changed.
83838         (ns): New macro.
83839         (my_strftime function): Add %N format.
83840         (emacs_strftimeu): Renamed from emacs_strftime,
83841         with extra ut argument.
83842
83843 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83844
83845         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83846
83847 2001-04-21  Jim Meyering  <meyering@lucent.com>
83848
83849         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83850         doesn't interfere.
83851
83852 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83853
83854         * m4/ftruncate.m4: Check for chsize.
83855         Link with ftruncate.o unconditionally if ftruncate is missing.
83856         This was required when cross-compiling to i586-mingw32msvc.
83857
83858 2001-04-08  Jim Meyering  <meyering@lucent.com>
83859
83860         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83861         recomputed; that's necessary when the offset spans a DST transition.
83862         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83863
83864 2001-04-02  Jim Meyering  <meyering@lucent.com>
83865
83866         * lib/regex.h, regex.c: Update from GNU libc.
83867
83868 2001-03-24  Jim Meyering  <meyering@lucent.com>
83869
83870         * m4/jm-macros.m4: Require autoconf-2.49d.
83871
83872 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83873
83874         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83875
83876 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83877
83878         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83879
83880 2001-03-17  Jim Meyering  <meyering@lucent.com>
83881
83882         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83883         now that the version in autoconf is equivalent.
83884         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83885
83886         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83887         Suggestion from Akim Demaille.
83888
83889         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83890         (jm_PREREQ_TEMPNAME): New function.
83891
83892 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83893
83894         * lib/tempname.c (uint64_t): Define to uintmax_t if
83895         not defined, and if UINT64_MAX is not defined.
83896         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83897         Reported by John David Anglin.
83898
83899 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83900
83901         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83902         resolve alias if codeset is empty.
83903         * lib/config.charset (BeOS): Use wildcard syntax.
83904
83905 2001-03-13  Jim Meyering  <meyering@lucent.com>
83906
83907         * lib/path-concat.c (path_concat)
83908         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83909         concatenating e.g., `C:' and `foo'.
83910         From Bruno Haible.
83911
83912 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83913
83914         * lib/localcharset.c (locale_charset): Don't use
83915         setlocale(LC_CTYPE,NULL). Don't return NULL.
83916         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83917
83918 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83919
83920         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83921         support for DOS/DJGPP.
83922
83923 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83924
83925         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83926         lacks mkstemp.  Compile our own tempname.c if we compile our own
83927         mkstemp.c, as mkstemp relies on tempname.
83928
83929 2001-03-01  Jim Meyering  <meyering@lucent.com>
83930
83931         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83932         AH_VERBATIM really does output its argument verbatim.
83933
83934 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83935
83936         * lib/Makefile.am (libfetish_a_SOURCES):
83937         Add dup-safer.c, fopen-safer.c.
83938         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83939
83940         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83941         * lib/unistd-safer.h: New files.
83942
83943 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83944
83945         The mkstemp replacement is taken from glibc 2.2.2, with some
83946         portability fixes for use outside glibc, as follows:
83947
83948         * lib/tempname.c (struct_stat64): New macro.
83949         (direxists, __gen_tempname): Use it.
83950         This avoids a portability problem with Solaris 8.
83951
83952         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83953         (<stddef.h>, <stdint.h>, <string.h>):
83954         Include only if STDC_HEADERS || _LIBC.
83955         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83956         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83957         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83958         (__set_errno): Define this macro if <errno.h> doesn't.
83959         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83960         Define these macros if <stdio.h> doesn't.
83961         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83962         Define these macros if <sys/stat.h>
83963         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83964         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83965         __xstat64): Define if not _LIBC.
83966         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83967         (__gen_tempname): Invoke gettimeofday only if
83968         HAVE_GETTIMEOFDAY || _LIBC;
83969         otherwise, fall back on plain "time".
83970         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83971
83972         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83973
83974         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83975
83976 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83977
83978         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83979
83980 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83981
83982         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83983         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83984         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83985         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83986
83987 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83988
83989         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83990         Remove workaround macros for hosts that have mbrtowc but not
83991         mbstate_t, as we now insist on proper declarations for both
83992         before using mbrtowc.
83993
83994 2001-02-17  Jim Meyering  <meyering@lucent.com>
83995
83996         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83997         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83998         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83999         UnixWare 7.1.1.
84000
84001         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
84002         rather than AC_CACHE_VAL.
84003
84004 2001-02-17  Jim Meyering  <meyering@lucent.com>
84005
84006         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
84007         around included file name.
84008
84009         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
84010
84011         * lib/strftime.c: Update from GNU libc (the only changes were to
84012         comments).
84013
84014 2001-02-17  Jim Meyering  <meyering@lucent.com>
84015
84016         * lib/regex.c: Update from libc.
84017
84018 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
84019
84020         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
84021         clash.
84022
84023 2001-02-16  Paul Eggert  <eggert@twinsun.com>
84024
84025         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
84026         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
84027         Reported by Mark Hounschell via Paul Eggert.
84028
84029 2001-02-07  Jim Meyering  <meyering@lucent.com>
84030
84031         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
84032
84033 2001-02-05  Jim Meyering  <meyering@lucent.com>
84034
84035         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
84036         it includes the patch required for `large file' support with at least
84037         HP-UX's 10.20 /bin/cc.
84038
84039 2001-02-03  Jim Meyering  <meyering@lucent.com>
84040
84041         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
84042         AS_IF, now that it works once again (mysteriously).
84043         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84044
84045 2001-01-30  Jim Meyering  <meyering@lucent.com>
84046
84047         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
84048         * m4/chown.m4: Rename conftestchown to conftest.chown.
84049         * m4/rename.m4: s/conftestdir/conftest.d1/ and
84050         s/conftestdir2/conftest.d2/.
84051         * m4/utimes.m4: s/conftestdata/conftest.data/
84052         Inspired by Pavel Roskin's change in autoconf.
84053
84054 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
84055
84056         * lib/config.charset: Update for FreeBSD 4.2.
84057
84058 2001-01-27  Jim Meyering  <meyering@lucent.com>
84059
84060         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
84061         a use of AS_IF.
84062         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84063
84064 2001-01-26  Jim Meyering  <meyering@lucent.com>
84065
84066         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
84067         quotearg.c includes it.
84068
84069 2001-01-26  Jim Meyering  <meyering@lucent.com>
84070
84071         * lib/quotearg.c: Include stddef.h.
84072         * lib/quote.c: Include stddef.h.
84073         Reported by Axel Kittenberger.
84074
84075         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
84076         line in double quotes so that it evokes a better diagnostic.
84077         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
84078         Reported by Axel Kittenberger.
84079
84080 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
84081
84082         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
84083         as if it was a `charset'.
84084
84085 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84086
84087         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
84088         has const.
84089
84090 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84091
84092         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
84093         to avoid a warning.  Add back 'const' to inptr.
84094
84095 2001-01-20  Jim Meyering  <meyering@lucent.com>
84096
84097         Be sure that headers are checked before used in code compiled
84098         for the type checks.
84099         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
84100         In place of that, invoke jm_CHECK_ALL_TYPES.
84101         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
84102         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
84103         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
84104         The check for ssize_t was mistakenly run before the test for unistd.h.
84105
84106         The configure-time check for stdbool.h was missing.
84107         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
84108         (jm_PREREQ_HASH): New function.
84109
84110 2001-01-17  Jim Meyering  <meyering@lucent.com>
84111
84112         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
84113         for autoconf-2.49c.
84114         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
84115
84116 2001-01-16  Jim Meyering  <meyering@lucent.com>
84117
84118         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
84119         From Bruno Haible.
84120
84121 2001-01-14  Jim Meyering  <meyering@lucent.com>
84122
84123         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
84124         foo and bar.  Create conftestdir/ in the script, not in the C code.
84125         Remove directories in the script, not in the C code.
84126         Remove conftestdir{,2} before trying to create the directory.
84127         Make the entire configure script fail if the mkdir fails.
84128
84129 2001-01-14  Jim Meyering  <meyering@lucent.com>
84130
84131         * lib/rename.c: New file.  From Volker Borchert.
84132         Include stdlib.h, string.h or strings.h, and xalloc.h.
84133         Use strip_trailing_slashes rather than open-coding it.
84134
84135 2001-01-03  Paul Eggert  <eggert@twinsun.com>
84136
84137         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
84138
84139 2001-01-03  Jim Meyering  <meyering@lucent.com>
84140
84141         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
84142         of local `inptr' to avoid warning with some system declarations of
84143         iconv.
84144
84145 2001-01-02  Volker Borchert  <bt@teknon.de>
84146
84147         * m4/rename.m4: New file.
84148         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
84149
84150 2001-01-01  Jim Meyering  <meyering@lucent.com>
84151
84152         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
84153         even on systems with utmpx.h.  It's necessary for the declaration of
84154         utmp's ut_user member.  Reported by Andreas Jaeger.
84155
84156         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
84157         available. They are required for the declarations of getgrgid and
84158         getpwuid resp.
84159         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
84160         Reported by Andreas Jaeger.
84161
84162 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
84163
84164         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
84165         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
84166         so `make install' also works in VPATH builds.
84167
84168 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
84169
84170         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
84171         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
84172         can be used in subdirectories.
84173
84174 2000-12-29  Paul Eggert  <eggert@twinsun.com>
84175
84176         * lib/modechange.c: Do not assume that mode_t uses the
84177         traditional octal encoding.  E.g. "chmod 1 FOO" should set
84178         the other-execute bit of FOO even if S_IXOTH != 1.
84179
84180         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
84181         WOTH, XOTH, ALLM): New macros.
84182         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
84183          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
84184         Use them.
84185         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
84186         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
84187         (mode_compile):
84188         No need to use uintmax_t; unsigned long is long enough.
84189         Don't bother to get suffix since we don't use it.
84190
84191 2000-12-26  Jim Meyering  <meyering@lucent.com>
84192
84193         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
84194         better with autoheader.
84195
84196 2000-12-24  Jim Meyering  <meyering@lucent.com>
84197
84198         * lib/hash.c (is_prime): Return explicit boolean values.
84199         (hash_get_first): Return NULL to appease Irix5.6's 89.
84200         Reported by Nelson Beebe.
84201
84202 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
84203
84204         * lib/localcharset.c (locale_charset): Add support for Win32.
84205
84206 2000-12-18  Paul Eggert  <eggert@twinsun.com>
84207
84208         * lib/physmem.h, lib/physmem.c: New files.
84209
84210         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
84211         (noinst_HEADERS): Add physmem.h.
84212
84213         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
84214         't' for compatibility with Solaris 8 sort.
84215
84216 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
84217
84218         * lib/config.charset: Add support for BeOS.
84219
84220 2000-12-17  Jim Meyering  <meyering@lucent.com>
84221
84222         * m4/dos.m4 (jm_AC_DOS): New file and macro.
84223         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
84224
84225 2000-12-16  Jim Meyering  <meyering@lucent.com>
84226
84227         This bug had a serious impact on chown: `chown N:M FILE' (for integer
84228         N and M) would have treated it like `chown N:N FILE'.
84229
84230         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
84231
84232 2000-12-16  Jim Meyering  <meyering@lucent.com>
84233
84234         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
84235         SHELLS_FILE to a file name that's useful on djgpp systems.
84236         Include stdlib.h.
84237         (ADDITIONAL_DEFAULT_SHELLS): Define.
84238         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
84239         Based mostly on a patch from Prashant TR.
84240
84241 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
84242
84243         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
84244         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
84245         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
84246
84247 2000-12-08  Andreas Schwab  <schwab@suse.de>
84248
84249         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
84250         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
84251
84252 2000-12-07  Jim Meyering  <meyering@lucent.com>
84253
84254         * lib/stripslash.c (ISSLASH): Define.
84255         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84256         `/'.
84257         From Prashant TR.
84258
84259         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84260         (dir_name_r): Declare this function as static.
84261         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84262         manifest itself on a name containing a mix of slashes and
84263         backslashes.
84264         Make this function work with names starting with a DOS-style
84265         drive letter and colon prefix.
84266         (dir_name): Append `.' if necessary.
84267         Based mostly on patches from Prashant TR and Eli Zaretskii.
84268
84269         * lib/dirname.h (dir_name_r): Remove prototype.
84270
84271 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84272
84273         * m4/off_t-format.m4: Remove this file.
84274         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84275
84276 2000-12-06  Jim Meyering  <meyering@lucent.com>
84277
84278         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84279         replacement strtoull, we may well need the replacement strtoul, too.
84280         Check for declarations of strtoul and strtoull.
84281         Check for strtol.  Mainly as a cue to cause automake to include
84282         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84283         Check for limits.h -- strtol.c needs it.
84284
84285 2000-12-05  Jim Meyering  <meyering@lucent.com>
84286
84287         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84288
84289 2000-12-04  Jim Meyering  <meyering@lucent.com>
84290
84291         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84292         Also include memory.h, stdlib.h, unistd.h if appropriate.
84293         Reported by Andreas Jaeger (conflicting declaration of malloc).
84294
84295 2000-12-02  Jim Meyering  <meyering@lucent.com>
84296
84297         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84298         * m4/jm-macros.m4 (jm_MACROS): require it.
84299
84300 2000-12-02  Jim Meyering  <meyering@lucent.com>
84301
84302         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84303
84304 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84305
84306         * lib/memrchr.c: Include <config.h> before any system include file.
84307
84308 2000-11-30  Jim Meyering  <meyering@lucent.com>
84309
84310         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84311
84312 2000-11-30  Jim Meyering  <meyering@lucent.com>
84313
84314         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84315
84316 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84317
84318         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84319
84320 2000-11-26  Jim Meyering  <meyering@lucent.com>
84321
84322         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84323
84324 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84325
84326         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84327         size of (size_t) -1; it's not portable.
84328
84329 2000-11-17  Jim Meyering  <meyering@lucent.com>
84330
84331         * lib/strstr.c: Update from GNU libc.
84332
84333 2000-11-17  Akim Demaille  <akim@epita.fr>
84334
84335         * lib/obstack.h: Formatting changes.
84336         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84337         prevent type checking.
84338         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84339         cast the value to (void *): assigning a `foo *' to a `void *'
84340         variable is valid.
84341         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84342
84343 2000-11-16  Jim Meyering  <meyering@lucent.com>
84344
84345         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84346
84347 2000-11-11  Jim Meyering  <meyering@lucent.com>
84348
84349         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84350
84351 2000-11-10  Jim Meyering  <meyering@lucent.com>
84352
84353         * lib/obstack.h: Update from GNU libc.
84354         * lib/obstack.c: Likewise.
84355
84356 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84357
84358         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84359
84360 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84361
84362         * lib/getusershell.c (setusershell): Use rewind rather than
84363         fseek/fseeko, to avoid configuration hassles with fseeko.
84364         Don't bother opening SHELLS_FILE if shellstream is NULL;
84365         it's not necessary.
84366
84367 2000-11-05  Jim Meyering  <meyering@lucent.com>
84368
84369         * lib/makepath.h (make_dir): Declare.
84370         * lib/makepath.c (make_dir): Remove `static' attribute.
84371         Tweak a comment.
84372
84373 2000-11-04  Jim Meyering  <meyering@lucent.com>
84374
84375         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84376
84377 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84378
84379         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84380         last one in a bucket, advance to the next bucket.
84381
84382 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84383
84384         * lib/fnmatch.c: Do not comment out all the code if we are using
84385         the GNU C library, because in some cases we are replacing buggy
84386         code in the GNU C library itself.
84387
84388 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84389
84390         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84391         (regex_compile): Catch bogus \(\1\).
84392
84393 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84394
84395         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84396         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
84397         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
84398
84399 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84400
84401         * lib/error.h, getline.h, modechange.h:
84402         Remove "2000" from Copyright line, as the file hasn't been
84403         changed this year other than in the copyright notice.
84404
84405         * lib/xalloc.h: Add "2000" to Copyright line, as this file
84406         was changed this year.
84407
84408 2000-10-29  Jim Meyering  <meyering@lucent.com>
84409
84410         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
84411         renaming.
84412         * m4/ls-mntd-fs.m4: Likewise
84413
84414 2000-10-29  Jim Meyering  <meyering@lucent.com>
84415
84416         * lib/xstat.in: Fix grammar in comment.
84417
84418 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
84419
84420         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
84421         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
84422         doesn't define __restrict_arr.
84423
84424 2000-10-28  Jim Meyering  <meyering@lucent.com>
84425
84426         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
84427         (jm_PREREQ_MEMCHR): New function.
84428
84429 2000-10-28  Jim Meyering  <meyering@lucent.com>
84430
84431         * lib/memchr.c: Update from libc.
84432         Adjust for portability:
84433         [HAVE_STDLIB_H]: Include stdlib.h.
84434         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
84435         Undef __memchr, too.
84436         [!weak_alias]: Define __memchr to memchr.
84437
84438         * lib/regex.c: Update from libc.
84439         * lib/regex.h: Likewise.
84440         * lib/getopt1.c: Likewise.
84441         * lib/memcmp.c: Likewise.
84442
84443         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
84444         Avoid using fseek, when possible -- it's broken by design.
84445         Patch by Ulrich Drepper.
84446
84447 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
84448
84449         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
84450         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
84451         Giving in to popular pressure to shut up the compiler with casts.
84452
84453 2000-10-26  Jim Meyering  <meyering@lucent.com>
84454
84455         * lib/strftime.c: Update from libc.
84456
84457 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
84458
84459         * regex.c: More `unsigned char' -> `re_char' changes.
84460         Also change several `int' into `re_wchar_t'.
84461         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
84462         (PUSH_FAILURE_POINTER): Don't cast any more.
84463         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
84464         We want GCC to complain, since this piece of code makes
84465         re_match non-reentrant, which *should* be fixed.
84466         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
84467         (EXTEND_BUFFER): Use RETALLOC.
84468         (SET_LIST_BIT): Don't cast.
84469         (re_wchar_t): New type.
84470         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
84471         that those two functions will always properly return.
84472         (IMMEDIATE_QUIT_CHECK): Cast to void.
84473         (analyse_first): Use recursion rather than an explicit stack.
84474         (re_compile_fastmap): Can't fail anymore.
84475         (re_search_2): Don't check re_compile_fastmap for failure.
84476         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
84477         Now also sets the new value (passed in a new argument).
84478         (re_match_2_internal): Use it.
84479         Also, use a new var `reg' of type size_t when looping through regs
84480         rather than reuse the inappropriate `mcnt'.
84481
84482 2000-10-25  Jim Meyering  <meyering@lucent.com>
84483
84484         * lib/obstack.c: Update from libc.
84485
84486 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84487
84488         * regex.c (regex_compile): Change the way of handling a range from
84489         a char less than 256 to a char not less than 256.
84490
84491 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84492
84493         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84494         NT-Emacs only.
84495         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84496         so that re_search functions only quit when callers expect them to.
84497
84498 2000-10-23  Jim Meyering  <meyering@lucent.com>
84499
84500         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84501         wrong.  That set_locale call must not have any side effects.
84502         From Paul Eggert.
84503
84504 2000-10-22  Jim Meyering  <meyering@lucent.com>
84505
84506         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84507         [CYCLIC]: Remove now-unused definition.
84508
84509         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84510         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84511         Suggestion from Ulrich Drepper.
84512
84513 2000-10-21  Jim Meyering  <meyering@lucent.com>
84514
84515         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84516         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84517         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84518
84519 2000-10-21  Jim Meyering  <meyering@lucent.com>
84520
84521         * lib/dirname.c (memrchr): Declare if necessary.
84522         (dir_name): Remove the restriction that there be no
84523         trailing slashes.  Now, this code skips past them, effectively
84524         ignoring them.
84525         [TEST_DIRNAME] (main): New unit tests.
84526
84527         * lib/memrchr.c: New file from GNU libc.
84528         Undef __memrchr, too.
84529         [!weak_alias]: Define __memrchr to memrchr.
84530         Guard weak_alias use with `#ifdef weak_alias'.
84531
84532 2000-10-21  Jim Meyering  <meyering@lucent.com>
84533
84534         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84535         (dir_name): Use dir_name_r.
84536         * lib/dirname.h (dir_name_r): Declare it.
84537
84538 2000-10-17  Jim Meyering  <meyering@lucent.com>
84539
84540         * lib/quote.h (PARAMS): Define and use.
84541         Reported by Akim Demaille.
84542
84543         * lib/getopt.c: Update from libc.
84544
84545 2000-10-16  Jim Meyering  <meyering@lucent.com>
84546
84547         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84548         setlocale.
84549         From Jan Fedak.
84550
84551 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84552
84553         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84554
84555 2000-09-25  Jim Meyering  <meyering@lucent.com>
84556
84557         * lib/md5.h (rol): Define (from GnuPG).
84558
84559         * lib/sha.c: Give credit (GnuPG) where due.
84560         (M): Use rol rather than open-coding it.
84561         Add a FIXME comment.
84562
84563 2000-09-21  Jim Meyering  <meyering@lucent.com>
84564
84565         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84566         Reported by Michael Stone.
84567
84568 2000-09-20  Jim Meyering  <meyering@lucent.com>
84569
84570         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84571         (noinst_HEADERS): Add sha.h.
84572         Based on code from Scott G. Miller and from GnuPG.
84573
84574 2000-09-18  Jim Meyering  <meyering@lucent.com>
84575
84576         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84577         LIBS. Otherwise, everyone ends up linking with -lelf for some
84578         configurations.
84579         Reported by Mike Stone.
84580
84581 2000-09-15  Jim Meyering  <meyering@lucent.com>
84582
84583         * lib/regex.c: Update from libc.
84584
84585 2000-09-10  Jim Meyering  <meyering@lucent.com>
84586
84587         * lib/getopt.c (_getopt_internal): Update from glibc.
84588
84589 2000-09-09  Jim Meyering  <meyering@lucent.com>
84590
84591         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84592         think it should be used as a general replacement for isascii.
84593         * lib/fnmatch.c: Likewise.
84594         * lib/mbswidth.c: Likewise
84595         * lib/regex.c: Likewise.
84596
84597         Don't use atoi.
84598         * lib/userspec.c: Include sys/param.h and limits.h.
84599         Include xstrtol.h.
84600         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84601         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84602         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84603         UID, GID.  Check range.
84604
84605 2000-09-06  Jim Meyering  <meyering@lucent.com>
84606
84607         * lib/getopt.c (_getopt_internal): Update from glibc.
84608
84609 2000-08-30  Jim Meyering  <meyering@lucent.com>
84610
84611         * lib/strftime.c: Merge in changes from GNU libc.
84612
84613 2000-08-26  Jim Meyering  <meyering@lucent.com>
84614
84615         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84616         * m4/fpending.m4: New file.
84617
84618 2000-08-26  Jim Meyering  <meyering@lucent.com>
84619
84620         * lib/closeout.c: Include "__fpending.h".
84621         (close_stdout_status): Return right away if there's nothing to flush.
84622
84623         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84624         * lib/__fpending.c: New file.
84625         * lib/__fpending.h: New file.
84626
84627 2000-08-20  Jim Meyering  <meyering@lucent.com>
84628
84629         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84630         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84631         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84632
84633 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84634
84635         Improve fileutils installation on systems where running
84636         programs (like install) can't be unlinked.
84637         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84638         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84639
84640 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84641
84642         Standardize on "memory exhausted" instead of "Memory exhausted"
84643         or "virtual memory exhausted".
84644         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84645         "virtual memory exhausted".
84646         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84647         our own message.
84648         * lib/userspec.c (parse_user_spec): Likewise.
84649         * lib/bumpalloc.h: comment fix
84650         * lib/same.c, userspec.c: Include xalloc.h.
84651
84652         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84653         not char *const and pointing to a constant array.
84654         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84655         (xrealloc): Comment fix.
84656
84657         * lib/userspec.c (parse_user_spec):
84658         Don't translate a message until just before returning,
84659         to avoid unnecessary translation.
84660
84661 2000-08-07  Jim Meyering  <meyering@lucent.com>
84662
84663         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84664         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84665         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84666         getgroups.c, gethostname.c, getopt.h, group-member.c,
84667         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84668         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84669         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84670         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84671         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84672         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84673         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84674         yesno.c: Back out Copyright date changes for each file with no change
84675         this year.  This eases coordination with other programs using the same
84676         source code modules.  From Paul Eggert.
84677
84678 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84679
84680         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84681         not char, for compatibility with glibc 2.1.3 strftime.c.
84682
84683 2000-08-03  Greg McGary  <greg@mcgary.org>
84684
84685         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84686         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84687         (EXTEND_BUFFER): Use them.
84688
84689 2000-08-01  Jim Meyering  <meyering@lucent.com>
84690
84691         * lib/dirname.c (ISSLASH): Define.
84692         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84693         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84694         both `\' and `/' may be use as path separators.
84695         Based on a patch from Prashant TR.
84696
84697 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84698
84699         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84700         slot vector a constant, since it might get modified.
84701
84702 2000-07-31  Jim Meyering  <meyering@lucent.com>
84703
84704         * lib/xmalloc.c: Use `virtual memory exhausted', not
84705         `Memory exhausted'.
84706         * lib/obstack.c (print_and_abort): Likewise.
84707
84708 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84709
84710         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84711         buffer, so that the caller can always quote one small
84712         component of a "memory exhausted" message in slot 0.
84713         From a suggestion by Jim Meyering.
84714
84715 2000-07-30  Jim Meyering  <meyering@lucent.com>
84716
84717         * lib/makepath.c (make_path): Quote the other instance, too.
84718
84719         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84720         (STATIC_BUF_SIZE): Define.
84721         (quotearg_n_options): Use only statically allocated storage when
84722         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84723         than STATIC_BUF_SIZE.
84724
84725 2000-07-29  Jim Meyering  <meyering@lucent.com>
84726
84727         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84728         * lib/dirname.c (dir_name): Likewise.
84729
84730         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84731         `/'.
84732
84733         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84734         (dir_name): Assert that there are no trailing slashes.
84735
84736 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84737
84738         * lib/mbswidth.h (mbswidth): Add a flags argument.
84739         (mbswidth): New declaration.
84740         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84741         * lib/mbswidth.c (mbswidth): Add a flags argument.
84742         (mbsnwidth): New function.
84743
84744 2000-07-24  Jim Meyering  <meyering@lucent.com>
84745
84746         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84747
84748 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84749
84750         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84751
84752 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84753
84754         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84755         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84756         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84757         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84758         invoke multibyte primitives.
84759
84760 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84761
84762         * lib/quotearg.c:
84763         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84764         so that mbstate_t is always defined.
84765
84766         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84767         be 1 in at least one GCC installation, and this configuration
84768         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84769         performance on hosts that have mbrtowc but have only unibyte
84770         locales, but I assume these hosts are rare.
84771
84772 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84773
84774         * lib/mbswidth.c (_XOPEN_SOURCE):
84775         Don't define; this causes problems on Solaris 7.
84776         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84777
84778 2000-07-23  Jim Meyering  <meyering@lucent.com>
84779
84780         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84781         too: getgrgid, getpwuid, getuid.
84782
84783 2000-07-23  Jim Meyering  <meyering@lucent.com>
84784
84785         * lib/basename.c (base_name): Add an assertion.
84786
84787 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84788
84789         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84790         shadow its mbsinit function.
84791
84792 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84793
84794         * lib/mbswidth.h: New file.
84795         * lib/mbswidth.c: New file.
84796         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84797         (noinst_HEADERS): Add mbswidth.h.
84798
84799 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84800
84801         * lib/config.charset: Add support for FreeBSD. Improve support for
84802         HP-UX and IRIX 6.
84803
84804 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84805
84806         * m4/mbswidth.m4: New file.
84807         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84808
84809 2000-07-15  Jim Meyering  <meyering@lucent.com>
84810
84811         * lib/makepath.c: Include quote.h.
84812         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84813         corresponding argument in a `quote (...)' call.
84814         Give better diagnostics.
84815
84816         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84817         (noinst_HEADERS): Add quote.h.
84818
84819         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84820         from tar's src/misc.c.
84821         * lib/quote.h: New file.  Prototypes for same.
84822
84823 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84824
84825         From a suggestion by Bruno Haible.
84826         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84827         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84828         to decide whether to define the BeOS workaround macro;
84829         this adjusts to the change to AC_MBSTATE_T.
84830
84831 2000-07-14  Jim Meyering  <meyering@lucent.com>
84832
84833         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84834         jm_AC_TYPE_UINTMAX_T.
84835
84836 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84837
84838         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84839
84840         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84841         quotearg_buffer_restyled): Add support for
84842         clocale_quoting_style.  Undo previous change to
84843         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84844         and "{RIGHT QUOTATION MARK}" msgids.
84845
84846 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84847
84848         From a suggestion by Bruno Haible.
84849         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84850         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84851         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84852         and mbstate_t, to a single-part test that simply defines mbstate_t.
84853         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84854         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84855
84856 2000-07-10  Jim Meyering  <meyering@lucent.com>
84857
84858         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84859
84860         * m4/gnu-source.m4: Output to confdefs.h directly.
84861         Suggestion from Akim Demaille.
84862
84863 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84864
84865         The old behavior of quoting `like this' doesn't look good with
84866         newer, ISO-style fonts.  See:
84867         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84868
84869         Instead, quote "like this" by default.  Let the translator
84870         tailor the locale-specific quoting behavior by providing
84871         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84872
84873         * lib/quotearg.c (N_): New macro.
84874         (gettext_default): New function.
84875         (quotearg_buffer_restyled): Use
84876         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84877         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84878
84879 2000-07-09  Jim Meyering  <meyering@lucent.com>
84880
84881         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84882         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84883
84884         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84885         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84886
84887 2000-07-09  Jim Meyering  <meyering@lucent.com>
84888
84889         * lib/Most files: Update copyright dates to include 2000.
84890
84891 2000-07-08  Jim Meyering  <meyering@lucent.com>
84892
84893         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84894         if not defined.
84895         (xgethostname): Remove now-unnecessary #ifdef.
84896         Move declaration of `err' into loop where it's used.
84897
84898 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84899         and Bruno Haible  <haible@clisp.cons.org>
84900
84901         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84902         only if the test for an object-type mbstate_t fails.  This
84903         prevents us from mistakenly reporting that mbstate_t is a
84904         system object type after we "#define mbstate_t int" to work
84905         around its lack.
84906
84907 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84908         and Bruno Haible  <haible@clisp.cons.org>
84909
84910         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84911
84912 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84913
84914         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84915         to strerror_r.
84916         Include <ctype.h> for use of isalpha.
84917
84918 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84919
84920         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84921         by allocating a larger buffer. Test the gethostname return value for
84922         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84923         returns an error and ENAMETOOLONG isn't defined.
84924
84925 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84926
84927         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84928         dimension.
84929
84930 2000-07-04  Jim Meyering  <meyering@lucent.com>
84931
84932         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84933         of the deprecated AC_CHECKING.
84934
84935 2000-07-04  Jim Meyering  <meyering@lucent.com>
84936
84937         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84938         Reported by Bruno Haible.
84939
84940 2000-07-04  Jim Meyering  <meyering@lucent.com>
84941
84942         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84943         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84944         lacks mbrtowc.
84945
84946 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84947
84948         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84949         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84950
84951 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84952         and Bruno Haible  <haible@clisp.cons.org>
84953
84954         * lib/quotearg.c (mbrtowc):
84955         Assign to *pwc, and return 1 only if result is nonzero.
84956         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84957
84958 2000-07-03  Jim Meyering  <meyering@lucent.com>
84959
84960         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84961
84962 2000-07-03  Jim Meyering  <meyering@lucent.com>
84963
84964         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84965         This is necessary to get a definition of e.g., UTMP_FILE on
84966         HP-UX 10.20.
84967         From Bob Proulx.
84968
84969 2000-07-02  Jim Meyering  <meyering@lucent.com>
84970
84971         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84972
84973         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84974         AC_LIBOBJ(function_name).
84975         * m4/chown.m4: Likewise.
84976         * m4/fnmatch.m4: Likewise.
84977         * m4/ftruncate.m4: Likewise.
84978         * m4/getgroups.m4: Likewise.
84979         * m4/getline.m4: Likewise.
84980         * m4/group-member.m4: Likewise.
84981         * m4/jm-macros.m4: Likewise.
84982         * m4/lstat.m4: Likewise.
84983         * m4/malloc.m4: Likewise.
84984         * m4/memcmp.m4: Likewise.
84985         * m4/nanosleep.m4: Likewise.
84986         * m4/putenv.m4: Likewise.
84987         * m4/realloc.m4: Likewise.
84988         * m4/regex.m4: Likewise.
84989         * m4/stat.m4: Likewise.
84990         * m4/strftime.m4: Likewise.
84991
84992 2000-07-02  Jim Meyering  <meyering@lucent.com>
84993
84994         * lib/quotearg.c (mbstate_t): Don't define here.
84995
84996 2000-07-02  Jim Meyering  <meyering@lucent.com>
84997
84998         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84999
85000 2000-07-01  Jim Meyering  <meyering@lucent.com>
85001
85002         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
85003
85004 2000-07-01  Jim Meyering  <meyering@lucent.com>
85005
85006         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
85007         problem.
85008
85009 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85010
85011         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
85012         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
85013
85014 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85015
85016         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
85017         per change in ../m4/ls-mntd-fs.m4.
85018         (read_filesystem_list): Ignore symbolic links.
85019
85020 2000-06-29  Jim Meyering  <meyering@lucent.com>
85021
85022         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
85023         for declaration of strcmp.
85024
85025         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
85026
85027         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
85028         Avoid warning by casting result to `char *' to remove `const'.
85029
85030 2000-06-28  Jim Meyering  <meyering@lucent.com>
85031
85032         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
85033         included by quotearg.c, for which we perform this test.  From
85034         Bruno Haible.
85035
85036 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85037
85038         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
85039         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
85040         <utmpx.h> exists, put readutmp.o into LIBOBJS.
85041
85042 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85043
85044         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
85045
85046 2000-06-26  Paul Eggert  <eggert@twinsun.com>
85047
85048         savedir now sets errno on failure and invokes xmalloc to get memory.
85049         Fix a couple of other minor bugs while we're at it.
85050
85051         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
85052         (NAMLEN): Remove macro.
85053         (malloc, realloc): Remove decls.
85054         (stpcpy): Likewise.
85055         ("xalloc.h"): Include.
85056         (NAME_SIZE_DEFAULT): New macro.
85057         (savedir): Use xmalloc / xrealloc to allocate memory.
85058         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
85059         Skip "" directory entries.
85060         Use strlen to calculate directory entry length, since the old method
85061         is rarely used these days and isn't worth supporting.
85062         Don't use a pointer after freeing it.
85063         Check for integer overflow when calculating allocation size.
85064         Use memcpy to copy entries, instead of stpcpy.
85065         Set errno properly when returning NULL.
85066         Check for readdir error.
85067
85068 2000-06-26  Jim Meyering  <meyering@lucent.com>
85069
85070         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
85071
85072 2000-06-25  Jim Meyering  <meyering@lucent.com>
85073
85074         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
85075         Linux header bug when _XOPEN_SOURCE is defined to 500.
85076
85077 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85078
85079         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
85080         deficiency.
85081
85082 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85083
85084         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
85085         Include xalloc.h.
85086         Don't include <stdlib.h>.  Don't declare malloc, realloc.
85087
85088 2000-06-24  Jim Meyering  <meyering@lucent.com>
85089
85090         * m4/strerror_r.m4: Revive this file -- to try out an experimental
85091         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
85092         for which strerror does return char*, but which lacks a conveniently
85093         accessible declaration of the function.  If the compile-test says
85094         strerror_r doesn't work, then resort to a `run'-test that works on
85095         BeOS and segfaults on DEC Unix.
85096
85097 2000-06-24  Jim Meyering  <meyering@lucent.com>
85098
85099         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
85100
85101 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85102
85103         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
85104         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
85105
85106 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85107
85108         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
85109         (mbrtowc, mbstate_t): Define substitutes if
85110         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
85111         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
85112         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
85113
85114 2000-06-23  Jim Meyering  <meyering@lucent.com>
85115
85116         * m4/afs.m4: Add missing AC_MSG_RESULT.
85117         Reported by Bruno Haible.
85118
85119         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
85120         Suggestion from Bruno Haible.
85121
85122 2000-06-23  Jim Meyering  <meyering@lucent.com>
85123
85124         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
85125
85126 2000-06-21  Jim Meyering  <meyering@lucent.com>
85127
85128         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
85129
85130 2000-06-21  Jim Meyering  <meyering@lucent.com>
85131
85132         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
85133         (noinst_HEADERS): Add getstr.h.
85134
85135         * lib/getline.c (getstr): Move into a separate file.
85136         * lib/getstr.c (getstr): New file, extracted from getline.c, with
85137         the following changes: new parameter, delim2; both delim[12]
85138         parameters have type `int', not `char'.  The latter would lose
85139         with 8-bit delimiters.
85140         * lib/getstr.h: New file.
85141
85142 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85143
85144         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
85145         than 1024, return a memory chunk of least possible size, instead
85146         of size PATH_MAX + 2. In the loop, increment the size proportionally.
85147         Use free/xmalloc instead of xrealloc to avoid copying for very long
85148         paths.
85149
85150 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85151
85152         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
85153         the empty string.
85154
85155 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85156
85157         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
85158         address, not strdup.  Include <stdlib.h> and don't declare free().
85159
85160 2000-06-19  Jim Meyering  <meyering@lucent.com>
85161
85162         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
85163
85164 2000-06-18  Jim Meyering  <meyering@lucent.com>
85165
85166         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
85167
85168         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
85169         `checking whether...' message to be consistent with that of the
85170         lstat test.
85171
85172 2000-06-18  Jim Meyering  <meyering@lucent.com>
85173
85174         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
85175         Besides, these days every porting target provides a mkdir function.
85176
85177         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
85178         needed. (this snippet comes from src/system.h).
85179
85180 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
85181
85182         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
85183
85184 2000-06-15  Paul Eggert  <eggert@twinsun.com>
85185
85186         * lib/human.c (adjust_value): New function.
85187         (human_readable_inexact): Apply rounding style even when
85188         printing approximate values.
85189
85190 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85191
85192         * lib/human.c (human_readable_inexact): Allow an input block
85193         size that is not a multiple of the output block size, and vice versa.
85194         Reported by Piergiorgio Sartor.
85195
85196 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85197
85198         * lib/getdate.y (get_date): Apply relative times after time
85199         zone indicator, not before.  Reported by Todd A. Jacobs.
85200
85201 2000-06-13  Jim Meyering  <meyering@lucent.com>
85202
85203         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
85204
85205         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
85206
85207 2000-06-12  Paul Eggert  <eggert@twinsun.com>
85208
85209         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
85210
85211 2000-06-12  Jim Meyering  <meyering@lucent.com>
85212
85213         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
85214         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
85215         optional argument.
85216         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
85217         the optional argument, `lib'.
85218
85219 2000-06-08  Jim Meyering  <meyering@lucent.com>
85220
85221         * m4/largefile.m4: Remove file (now that it's part of autoconf).
85222
85223 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85224
85225         Rewrite largefile configuration so that we don't need to run
85226         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
85227         AC_CANONICAL_HOST in configure.in -- jmm]
85228
85229         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
85230         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
85231         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
85232         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
85233         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
85234         All uses changed.
85235         Instead of inspecting the output of getconf, try to compile the
85236         test program without and with the macro definition.
85237         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
85238         for getconf.  Instead, check for the needed flags by compiling
85239         test programs.
85240
85241 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85242
85243         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
85244
85245 2000-06-04  Jim Meyering  <meyering@lucent.com>
85246
85247         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
85248         SunOS 4.1.4 for which gid_t is an unsigned type.
85249
85250 2000-06-03  Jim Meyering  <meyering@lucent.com>
85251
85252         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85253         now that autoconf requires that.
85254
85255         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85256         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85257         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85258
85259 2000-06-03  Jim Meyering  <meyering@lucent.com>
85260
85261         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85262
85263 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85264
85265         * m4/glibc21.m4: New file.
85266         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85267
85268 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85269
85270         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85271         newer, don't install charset.alias.
85272         * lib/config.charset: Change the Linux/glibc rules so they become empty
85273         on glibc-2.1 or newer.
85274
85275 2000-06-02  Jim Meyering  <meyering@lucent.com>
85276
85277         * lib/mountlist.c: Back out last change.  Instead, do this...
85278         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85279         me_dummy member using the same `ignore'-testing code.
85280         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85281         fs_type strings.
85282         From Mark D. Roth.
85283
85284 2000-05-29  Jim Meyering  <meyering@lucent.com>
85285
85286         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85287         mounts with the `ignore' attribute.  Based on a patch from
85288         Mark D. Roth.
85289
85290 2000-05-28  Jim Meyering  <meyering@lucent.com>
85291
85292         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85293         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85294         * m4/stat.m4: Likewise.
85295         * m4/lstat.m4: Likewise.
85296         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85297
85298         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85299         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85300
85301 2000-05-26  Jim Meyering  <meyering@lucent.com>
85302
85303         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85304
85305 2000-05-24  Jim Meyering  <meyering@lucent.com>
85306
85307         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85308         autoconf requires that.
85309         * m4/lib-check.m4: Likewise.
85310         * m4/jm-macros.m4: Likewise.
85311         * m4/strftime.m4: Likewise.
85312
85313         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85314         AC_CHECK_DECLS, now that autoconf requires that.
85315
85316 2000-05-22  Jim Meyering  <meyering@lucent.com>
85317
85318         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85319         * m4/lstat.m4: Likewise.
85320
85321 2000-05-22  Jim Meyering  <meyering@lucent.com>
85322
85323         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85324
85325 2000-05-20  Jim Meyering  <meyering@lucent.com>
85326
85327         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85328         (jm_PREREQ): Use it.
85329
85330 2000-05-18  Jim Meyering  <meyering@lucent.com>
85331
85332         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85333         back, too, since it may have been modified by allocate_entry.
85334         (hash_delete): Rewrite to use neither the assignment operator
85335         nor the comma operator in an if-expression.
85336
85337 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85338
85339         * lib/closeout.c:
85340         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85341         Remove; no longer needed.
85342         "quotearg.h": Add include.
85343         (file_name): Do not bother to explicitly initialize to NULL; it's less
85344         efficient on some hosts.
85345         (close_stdout_status): Remove test as to whether stdout was already
85346         closed; it breaks for the case "echo x | sort >&-".
85347         Quote file name colons.
85348         Do not assume that _("write error") lacks format strings.
85349
85350 2000-05-15  Jim Meyering  <meyering@lucent.com>
85351
85352         * lib/version-etc.c (version_etc_copyright): Update the copyright
85353         string used in all --version output.
85354
85355 2000-05-14  Jim Meyering  <meyering@lucent.com>
85356
85357         * lib/closeout.c (close_stdout_set_file_name): New function.
85358         (close_stdout_status): Use new file-scoped global.
85359         Return right away if fstat says the stdout file descriptor is invalid.
85360         * lib/closeout.h (close_stdout_set_file_name): Declare.
85361
85362 2000-05-10  Jim Meyering  <meyering@lucent.com>
85363
85364         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85365         (close_stdout_set_status): New function.
85366         * lib/closeout.h (close_stdout_set_status): Declare.
85367
85368 2000-05-09  Jim Meyering  <meyering@lucent.com>
85369
85370         * m4/gettext.m4: Rename this...
85371         * m4/libintl.m4: ...to this.
85372
85373 2000-05-08  Jim Meyering  <meyering@lucent.com>
85374
85375         * lib/long-options.c: Don't include closeout.h.
85376         (parse_long_options): Don't call close_stdout for --version.
85377
85378 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85379
85380         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85381         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85382         2.1.3 bug.  This avoids a clash when files like regex.c define
85383         _GNU_SOURCE.
85384
85385 2000-05-06  Jim Meyering  <meyering@lucent.com>
85386
85387         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85388         (AC_REPLACE_FUNCS): Add strnlen.
85389
85390         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85391         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85392
85393         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85394         AC_SEARCH_LIBS call for nanosleep.
85395         (LIB_NANOSLEEP): Set and AC_SUBST.
85396
85397 2000-05-06  Jim Meyering  <meyering@lucent.com>
85398
85399         * lib/strnlen.c: Undefine __strnlen and strnlen.
85400         [!weak_alias]: Define __strnlen to strnlen.
85401
85402         * lib/atexit.c: New file, from libiberty.
85403
85404 2000-05-06  Jim Meyering  <meyering@lucent.com>
85405
85406         * lib/closeout.c (close_stdout_status): Also check for errors on the
85407         stderr stream.
85408
85409 2000-05-05  Jim Meyering  <meyering@lucent.com>
85410
85411         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
85412         AC_SEARCH_LIBS call for clock_gettime.
85413         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
85414
85415         * m4/search-libs.m4: Update from autoconf.
85416
85417         su doesn't work on Solaris 2.6.
85418         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
85419         <shadow.h>.  Reported by Dragos Harabor.
85420
85421 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
85422
85423         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
85424         memcpy instead of xmalloc, xrealloc, path_concat.
85425         (locale_charset): Treat empty environment variables as absent.
85426         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
85427
85428 2000-05-04  Jim Meyering  <meyering@lucent.com>
85429
85430         * lib/getopt.c: Update from glibc.
85431         * lib/obstack.c: Likewise.
85432         * lib/obstack.h: Likewise.
85433         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
85434         file
85435
85436         * lib/regex.h: Likewise.
85437         * lib/strndup.c: Likewise.
85438         * lib/strnlen.c: New file, from glibc.
85439
85440 2000-05-03  Jim Meyering  <meyering@lucent.com>
85441
85442         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
85443
85444 2000-05-02  Paul Eggert  <eggert@twinsun.com>
85445
85446         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
85447         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
85448         compile-time test, rather than inspecting host and OS, to
85449         decide whether to define _LARGEFILE_SOURCE.
85450
85451 2000-05-01  Jim Meyering  <meyering@lucent.com>
85452
85453         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
85454
85455         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
85456         Based on a patch from Bruno Haible.
85457
85458 2000-05-01  Jim Meyering  <meyering@lucent.com>
85459
85460         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
85461
85462 2000-04-29  Jim Meyering  <meyering@lucent.com>
85463
85464         * lib/path-concat.c: Declare strdup only if it's not defined.
85465         * lib/canon-host.c: Likewise.
85466
85467 2000-04-28  Jim Meyering  <meyering@lucent.com>
85468
85469         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
85470         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
85471         is included first, then limits.h is included by locale.h by libintl.h.
85472         From John David Anglin.
85473
85474 2000-04-25  Jim Meyering  <meyering@lucent.com>
85475
85476         * lib/makepath.c (S_IRWXUGO): Define.
85477         (make_path): Always perform explicit chmod if MODE specifies any
85478         of the `special' permission bits.  Prompted by a bug report against
85479         install from Mate Wierdl and Joost van Baal.
85480
85481 2000-04-18  Jim Meyering  <meyering@lucent.com>
85482
85483         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85484         (jm_PREREQ): Use it.
85485
85486 2000-04-18  Jim Meyering  <meyering@lucent.com>
85487
85488         * lib/README: New file.
85489
85490         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85491         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85492
85493 2000-04-17  Jim Meyering  <meyering@lucent.com>
85494
85495         Get it right :-)
85496         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85497         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85498         Suggestion from Akim Demaille.
85499
85500 2000-04-17  Jim Meyering  <meyering@lucent.com>
85501
85502         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85503         the definition of it to rpl_strftime also defined-away the system's
85504         declaration.
85505
85506 2000-04-15  Jim Meyering  <meyering@lucent.com>
85507
85508         Use `C' to denote so-called `contiguous' files, the same way
85509         that tar does.
85510         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85511         (ftypelet): Use S_ISCTG.
85512         From Michael Deutschmann.
85513
85514 2000-04-14  Jim Meyering  <meyering@lucent.com>
85515
85516         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85517         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85518         clobbered.
85519
85520 2000-04-14  Jim Meyering  <meyering@lucent.com>
85521
85522         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85523
85524 2000-04-13  Jim Meyering  <meyering@lucent.com>
85525
85526         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85527         AH_VERBATIM to insert required #ifndef into config.h.in.
85528         Suggestion from Akim Demaille.
85529
85530 2000-04-12  Jim Meyering  <meyering@lucent.com>
85531
85532         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85533         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85534         Christian Krackowizer.
85535
85536         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85537         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85538         (AC_SYS_LARGEFILE): Require.
85539         (AM_C_PROTOTYPES): Require.
85540
85541 2000-04-08  Jim Meyering  <meyering@lucent.com>
85542
85543         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85544         names don't conflict.  Reported by Eli Zaretskii.
85545
85546 2000-04-07  Jim Meyering  <meyering@lucent.com>
85547
85548         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85549         sys/types.h, to work around system header problems on AIX 3.2.5.
85550         From Bruno Haible.
85551
85552 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85553
85554         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85555         bug.  Deal with the different error behavior of Irix iconv.
85556
85557 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85558
85559         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85560         IRIX if the installer said otherwise.
85561
85562 2000-04-05  Jim Meyering  <meyering@lucent.com>
85563
85564         Portability tweaks required for ultrix4.3.
85565         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85566         (jm_CHECK_DECLS): Add getutent to the list of functions.
85567         (_jm_DECL_HEADERS): Add utmpx.h.
85568         From John David Anglin.
85569
85570         * m4/strftime.m4: Back out the 2000-04-02 change.
85571         Instead of that change, simply undefine putenv in the test program.
85572
85573 2000-04-05  Jim Meyering  <meyering@lucent.com>
85574
85575         Portability tweaks required for ultrix4.3.
85576         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85577         getutent.
85578         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85579         * lib/canon-host.c: Declare strdup.
85580         * lib/path-concat.c: Likewise.
85581         From John David Anglin.
85582
85583 2000-04-04  Jim Meyering  <meyering@lucent.com>
85584
85585         Be more DOS 8.3-friendly.
85586         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85587         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85588         * lib/Makefile.am: Reflect renaming.
85589         Reported by Eli Zaretskii.
85590
85591         Use a temporary file name that won't clash with `charset.alias'
85592         in the DOS 8.3 name space.
85593         * lib/Makefile.am (charset_tmp): Define.
85594         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85595         (uninstall-local): Likewise.
85596         Reported by Eli Zaretskii.
85597
85598 2000-04-03  Jim Meyering  <meyering@lucent.com>
85599
85600         * m4/gettext.m4: Fix typo in comment.
85601
85602         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85603         textutils/configure.in).  Suggestion from Paul Eggert.
85604         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85605
85606 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85607
85608         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85609         variable in the shell rather than using putenv, which isn't
85610         portable.  This avoids the configure-time inter-test dependency
85611         on the potentially-renamed putenv function.
85612
85613 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85614
85615         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85616         before checking struct stat.st_blksize, so that
85617         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85618
85619 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85620
85621         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85622         since strftime.c uses HAVE_STRFTIME to decide whether to use
85623         the underlying strftime.
85624
85625 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85626
85627         * lib/time/strftime.c (my_strftime): Make sure we call the system
85628         strftime, not ourselves, when invoking the underlying strftime.
85629
85630 2000-03-24  Jim Meyering  <meyering@lucent.com>
85631
85632         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85633         (charset_alias): Define.
85634         (install-exec-local): Factor out common code.
85635         (uninstall-local): Split lines longer than 80.
85636         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85637         (SUFFIXES): Define.
85638         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85639         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85640
85641 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85642
85643         * lib/config.charset: Output a line containing "Packages using this
85644         file".
85645         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85646         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85647         ref-del.sed): New rules.
85648
85649 2000-03-17  Jim Meyering  <meyering@lucent.com>
85650
85651         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85652         Otherwise, include <strings.h>
85653
85654 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85655
85656         * lib/unicodeio.c (utf8_wctomb): New function.
85657         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85658         format instead of in UCS-4 with platform dependent endianness.
85659
85660 2000-03-10  Jim Meyering  <meyering@lucent.com>
85661
85662         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85663         From Marco Franzen.
85664
85665 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85666
85667         * lib/savedir.c (savedir): Work even if directory size is
85668         negative; this can happen with some screwy NFS configurations.
85669
85670 2000-03-06  Jim Meyering  <meyering@lucent.com>
85671
85672         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85673         if it's NULL (because we ran out of memory).  From Bruno Haible.
85674
85675 2000-03-05  Jim Meyering  <meyering@lucent.com>
85676
85677         * lib/localcharset.c ("path-concat.h"): Include.
85678         (get_charset_aliases): Use path_concat instead of ANSI string
85679         concatenation.
85680
85681         * lib/unicodeio.h (PARAMS): Define.
85682         Use it to guard prototype.
85683
85684 2000-03-04  Jim Meyering  <meyering@lucent.com>
85685
85686         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85687         for lib/localcharset.c.
85688
85689 2000-03-04  Jim Meyering  <meyering@lucent.com>
85690
85691         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85692         installing into it.
85693         (uninstall-local): Uncomment this rule so `make distcheck' works
85694         once again.
85695
85696         * lib/unicodeio.c (<errno.h>): Include it.
85697         (errno): Declare if not defined.
85698
85699         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85700
85701         * lib/config.charset: New version, incorporating remarks from a linux
85702         i18n mailing list.  From Bruno Haible.
85703
85704 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85705
85706         * m4/codeset.m4: New file.
85707         * m4/iconv.m4: New file.
85708         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85709
85710 2000-03-03  Jim Meyering  <meyering@lucent.com>
85711
85712         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85713
85714 2000-03-02  Jim Meyering  <meyering@lucent.com>
85715
85716         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85717         the messages come out on separate lines.
85718
85719         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85720         rather than jm_CHECK_DECLARATIONS.
85721         * m4/decl.m4: Remove now-unused file.
85722
85723         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85724         geteuid.
85725
85726 2000-03-02  Jim Meyering  <meyering@lucent.com>
85727
85728         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85729
85730 2000-03-01  Jim Meyering  <meyering@lucent.com>
85731
85732         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85733         * lib/unicodeio.c: Likewise.
85734
85735 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85736
85737         * lib/config.charset: New file.
85738         * lib/localcharset.c: New file.
85739         * lib/unicodeio.h, lib/unicodeio.c: New files.
85740         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85741         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85742         (noinst_HEADERS): Add unicodeio.h.
85743         (all-local, install-exec-local, charset.alias): New targets.
85744
85745 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85746
85747         * lib/quotearg.c (ALERT_CHAR): New macro.
85748         (quotearg_buffer_restyled): Use it.
85749
85750 2000-02-27  Jim Meyering  <meyering@lucent.com>
85751
85752         * m4/check-decl.m4: Add getenv to the list.
85753
85754 2000-02-27  Jim Meyering  <meyering@lucent.com>
85755
85756         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85757         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85758
85759         * lib/backupfile.c: Guard inclusion of stdlib.h with
85760         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85761         Declare malloc if needed.
85762
85763         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85764         `#ifndef HAVE_DECL..'
85765         now that autoconf always defines the HAVE_DECL_ symbols.
85766         * lib/human.c: Likewise.
85767         * lib/same.c: Likewise.
85768         * lib/strtoumax.c: Likewise.
85769
85770         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85771         declaration check was not run.
85772         * lib/hash.c: Likewise.
85773         * lib/human.c: Likewise.
85774         * lib/same.c: Likewise.
85775         * lib/strtoumax.c: Likewise.
85776
85777         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85778         `.', then first look up the entire `.'-containing string as a login
85779         name.
85780
85781 2000-02-23  Jim Meyering  <meyering@lucent.com>
85782
85783         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85784         in place of my hack.
85785
85786 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85787
85788         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85789         (textint): New typedef.
85790         (parser_control): Member year changed from int to textint.
85791         All uses changed.
85792         (YYSTYPE): Removed; replaced by %union with int and textint members.
85793         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85794         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85795         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85796         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85797         (date, number, to_year): Use width of number in digits, not its value,
85798         to determine whether it's a 2-digit year, or a 2-digit time.
85799         (yylex): Store number of digits of numeric tokens.
85800         Reported by John Kendall.
85801
85802         (parser_control): Changed from struct parser_control to typedef (for
85803         consistency).  All uses changed.
85804
85805         (tID): Removed; not used.
85806         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85807
85808 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85809
85810         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85811         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85812
85813 2000-02-12  Jim Meyering  <meyering@lucent.com>
85814
85815         * lib/userspec.c (ISDIGIT): Define it.
85816         (isdigit): Remove definition.
85817         (is_number): Use ISDIGIT, not isdigit.
85818         <libintl.h>: Include.
85819         (_ and N_): Define.
85820         (parse_user_spec): Mark translatable strings.
85821
85822 2000-02-10  Jim Meyering  <meyering@lucent.com>
85823
85824         With these changes, nanosleep.[ch] are finally enough like the other
85825         lib/* replacement files to compile on a few more losing systems.
85826
85827         * lib/nanosleep.h: Don't include config.h.
85828         Remove prototype from declaration of nanosleep.
85829         (PARAMS): Remove now-unneeded definition.
85830         * lib/nanosleep.c: #undef nanosleep.
85831         (rpl_nanosleep): Rename from nanosleep.
85832
85833 2000-02-10  Jim Meyering  <meyering@lucent.com>
85834
85835         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85836         gnu_nanosleep to rpl_nanosleep.
85837
85838 2000-02-09  Jim Meyering  <meyering@lucent.com>
85839
85840         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85841         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85842
85843 2000-02-08  Akim Demaille  <akim@epita.fr>
85844
85845         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85846         `[' and `]' and remove uses of `changequote'.
85847         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85848         (AC_SYS_LARGEFILE): Likewise.
85849         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85850         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85851         of changequote.
85852         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85853         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85854         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85855         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85856
85857 2000-02-05  Jim Meyering  <meyering@lucent.com>
85858
85859         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85860         Remove explicit use of AC_HEADER_TIME.  It is required by
85861         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85862         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85863         in autoconf whereby the expansion of the latter ended up preceding
85864         the expansion of its prerequisite, AC_HEADER_TIME.
85865         Reported by Volker Borchert.
85866
85867 2000-02-03  Jim Meyering  <meyering@lucent.com>
85868
85869         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85870
85871 2000-02-03  Jim Meyering  <meyering@lucent.com>
85872
85873         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85874         rather than with `#if HAVE_UTMPNAME'.
85875
85876 2000-02-02  Jim Meyering  <meyering@lucent.com>
85877
85878         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85879         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85880         Reported by Eli Zaretskii.
85881
85882 2000-02-01  Jim Meyering  <meyering@lucent.com>
85883
85884         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85885
85886 2000-01-31  Jim Meyering  <meyering@lucent.com>
85887
85888         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85889         functions.  Add the time.h and sys/time.h headers along with the
85890         AC_REQUIRE'ment of AC_HEADER_TIME.
85891
85892 2000-01-31  Jim Meyering  <meyering@lucent.com>
85893
85894         * lib/nanosleep.h (nanosleep): Guard declaration with
85895         `#if ! HAVE_DECL_NANOSLEEP'.
85896         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85897         the declaration in that vendor's sys/timers.h.
85898         Reported by Christian Krackowizer.
85899
85900         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85901         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85902         (ISPRINT): Likewise.
85903         Reported by Tom Tromey.
85904
85905 2000-01-30  Jim Meyering  <meyering@lucent.com>
85906
85907         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85908
85909         * m4/prereq.m4 (utmp_includes): Define.
85910         Check for ut_user and ut_name members in both struct utmpx
85911         and struct utmp.
85912
85913 2000-01-30  Jim Meyering  <meyering@lucent.com>
85914
85915         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85916         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85917         header files where only utmpx.ut_user is declared.
85918
85919         * lib/readutmp.h (UT_USER): Define.
85920
85921 2000-01-29  Jim Meyering  <meyering@lucent.com>
85922
85923         * m4/lib-check.m4: New file containing library-related checks from
85924         fileutils and sh-utils (textutils had none).
85925
85926 2000-01-28  Jim Meyering  <meyering@lucent.com>
85927
85928         * m4/perl.m4: Change format of warning message to look more like that
85929         from the missing script.  Suggestion from François Pinard.
85930
85931 2000-01-25  Jim Meyering  <meyering@lucent.com>
85932
85933         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85934         well as time.h in the compile check.
85935         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85936         Fix typo in cross-compiling case: s/yes/no/.
85937
85938 2000-01-23  Jim Meyering  <meyering@lucent.com>
85939
85940         * m4/jm-macros.m4: Move df-related tests here from
85941         fileutils/configure.in
85942
85943         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85944         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85945
85946         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85947         s/space/ac_fsusage_space/.
85948         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85949
85950         * m4/ftruncate.m4: New file (derived from part of
85951         fileutils/configure.in).
85952         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85953         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85954
85955         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85956         AC_SUBST these here, rather than just in sh-util/configure.in, so
85957         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85958         all the same.
85959         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85960         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85961         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85962         (AC_SUBST(POW_LIBM)): Likewise.
85963         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85964
85965 2000-01-23  Jim Meyering  <meyering@lucent.com>
85966
85967         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85968         obstack.c.
85969
85970 2000-01-22  Jim Meyering  <meyering@lucent.com>
85971
85972         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85973
85974         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85975
85976         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85977         configure.in
85978         (AC_CHECK_HEADERS): Likewise for sh-utils.
85979         (AC_CHECK_HEADERS): Likewise for textutils.
85980         Merge the three lists of headers.
85981
85982         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85983         from fileutils' configure.in.
85984
85985         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85986         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85987         check-decl.m4.
85988
85989         * m4/check-decl.m4: Use #if rather than #ifdef.
85990         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85991         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85992         (_jm_DECL_HEADERS): Define new function.
85993         (jm_CHECK_DECLARATIONS): Require it.
85994
85995 2000-01-22  Jim Meyering  <meyering@lucent.com>
85996
85997         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85998         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85999         Required for some AIX systems.  Reported by Christian Krackowizer.
86000         [TESTING] (main): New function.
86001
86002         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
86003         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
86004         letters.
86005
86006         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
86007         iswprint.
86008
86009         * lib/strverscmp.c (ISDIGIT): Define.
86010         (strverscmp): Use ISDIGIT, not isdigit.
86011
86012 2000-01-19  Jim Meyering  <meyering@lucent.com>
86013
86014         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
86015         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
86016         defines `struct timespec' in <sys/time.h>
86017
86018         * m4/c-bs-a.m4: Remove uses of changequote altogether.
86019         Thanks to Akim for explaining.
86020
86021 2000-01-17  Paul Eggert  <eggert@twinsun.com>
86022
86023         * lib/nanosleep.c (nanosleep):
86024         Don't use SA_INTERRUPT to decide whether to call sigaction, as
86025         POSIX.1 doesn't require SA_INTERRUPT and some systems
86026         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
86027         it's been part of POSIX.1 since day 1 (in 1988).
86028
86029 2000-01-17  Jim Meyering  <meyering@lucent.com>
86030
86031         * lib/interlock: Remove unused file.  Reported by François Pinard.
86032
86033 2000-01-16  Paul Eggert  <eggert@twinsun.com>
86034
86035         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
86036         alert, backslash, formfeed, and vertical tab unnecessarily in
86037         shell quoting style.
86038
86039 2000-01-16  Jim Meyering  <meyering@lucent.com>
86040
86041         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
86042         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
86043         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
86044         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
86045
86046 2000-01-16  Jim Meyering  <meyering@lucent.com>
86047
86048         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
86049         because the latter didn't work.
86050
86051 2000-01-15  Jim Meyering  <meyering@lucent.com>
86052
86053         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
86054         (AC_REPLACE_FUNCS): Add memcpy and memset.
86055         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
86056         Add strpbrk.
86057         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
86058
86059 2000-01-12  Jim Meyering  <meyering@lucent.com>
86060
86061         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
86062         (jm_PREREQ): Use it.
86063         (jm_PREREQ_READUTMP): New macro.
86064         (jm_PREREQ): Use it.
86065
86066 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86067
86068         Quote multibyte characters correctly.
86069         * m4/c-bs-a.m4: New file.
86070         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
86071         (jm_PREREQ): Use it.
86072
86073 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86074
86075         * m4/uintmax_t.m4: Port to autoconf 2.13.
86076
86077 2000-01-08  Jim Meyering  <meyering@ascend.com>
86078
86079         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
86080         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
86081
86082 2000-01-04  Jim Meyering  <meyering@ascend.com>
86083
86084         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
86085         jm_STRUCT_DIRENT_D_TYPE.
86086         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
86087         jm_STRUCT_DIRENT_D_INO.
86088         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
86089         jm_STRUCT_UTIMBUF.
86090         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
86091         renamings.
86092         * m4/utime.m4: Likewise.
86093
86094         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
86095         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
86096
86097 2000-01-03  Paul Eggert  <eggert@twinsun.com>
86098
86099         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
86100         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
86101
86102 2000-01-02  Jim Meyering  <meyering@ascend.com>
86103
86104         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
86105         remember if this is necessary.
86106
86107 1999-12-26  Jim Meyering  <meyering@ascend.com>
86108
86109         * m4/jm-macros.m4: Use it here.
86110         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
86111
86112 1999-12-23  Jim Meyering  <meyering@ascend.com>
86113
86114         * m4/jm-macros.m4: Check for clock_gettime (moved from
86115         fileutils/configure.in)
86116         Check for gettimeofday.
86117
86118 1999-12-20  Jim Meyering  <meyering@ascend.com>
86119
86120         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
86121         autoconf-2.14a-1999-12-20.
86122
86123 1999-12-19  Jim Meyering  <meyering@ascend.com>
86124
86125         * m4/lstat-slash.m4: New file.
86126         * m4/jm-macros.m4: Use the new macro:
86127         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86128
86129 1999-12-07  Jim Meyering  <meyering@ascend.com>
86130
86131         * m4/perl.m4: Require that File::Compare be available, too.
86132         Too many systems seem to lack it.
86133
86134         * m4/strftime.m4: Add checks for most of the cpp macros tested in
86135         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
86136
86137 1999-11-18  Paul Eggert  <eggert@twinsun.com>
86138
86139         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
86140         problem with the QNX 4.25 shell, which doesn't propagate exit
86141         status of failed commands inside shell assignments.
86142
86143 1999-11-17  Jim Meyering  <meyering@ascend.com>
86144
86145         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
86146
86147 1999-11-07  Jim Meyering  <meyering@ascend.com>
86148
86149         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
86150
86151 1999-11-06  Jim Meyering  <meyering@ascend.com>
86152
86153         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
86154         * m4/jm-macros.m4 (jm_MACROS): Use it here.
86155
86156 1999-11-05  Jim Meyering  <meyering@ascend.com>
86157
86158         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
86159         configure.in of textutils, fileutils, and sh-utils into this one
86160         (shared between those packages) file.
86161         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
86162         AC_STRUCT_ST_BLKSIZE.
86163
86164 1999-11-03  Jim Meyering  <meyering@ascend.com>
86165
86166         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
86167         of AC_CHECK_TYPE checks includes unistd.h.
86168         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
86169         Suggestion from Akim Demaille.
86170
86171 1999-10-30  Jim Meyering  <meyering@ascend.com>
86172
86173         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
86174         m4-quoted string.
86175         * m4/ls-mntd-fs.m4: Likewise.
86176         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
86177         * m4/jm-winsz1.m4: Likewise.
86178
86179         * m4/const.m4: Remove file, since the fix made it into the experimental
86180         version of autoconf.
86181         * m4/mktime.m4: Likewise.
86182
86183         * m4/check-type.m4: Remove file, now that the latest version of
86184         AC_CHECK_TYPE takes a third arg to specify additional #includes.
86185
86186         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
86187         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
86188         AC_CHECK_TYPE.
86189
86190 1999-10-04  Jim Meyering  <meyering@ascend.com>
86191
86192         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
86193
86194 1999-09-22  Paul Eggert  <eggert@twinsun.com>
86195
86196         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
86197         2.95.1 bug with HP-UX 10.20.
86198
86199 1999-09-17  Jim Meyering  <meyering@ascend.com>
86200
86201         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
86202         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
86203         due to missing strdup (against sh-utils-2.0).
86204
86205 1999-08-29  Jim Meyering  <meyering@ascend.com>
86206
86207         * m4/jm-macros.m4: Require jm_BISON.
86208         * m4/bison.m4: New file.
86209
86210 1999-08-17  Paul Eggert  <eggert@twinsun.com>
86211
86212         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
86213         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
86214
86215 1999-08-05  Jim Meyering  <meyering@ascend.com>
86216
86217         * m4/getline.m4: Rename test file from conftestdata to conftest.data
86218         to avoid conflicts with `conftest' on 8+3 filesystems.
86219         Suggestion from Eli Zaretskii.
86220
86221 1999-08-04  Jim Meyering  <meyering@ascend.com>
86222
86223         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
86224         fileutils and sh-utils (textutils's getline test was inadequate).
86225         (AM_FUNC_GETLINE): Run this test.
86226         (AC_CHECK_FUNCS): Check for getdelim.
86227         Reported by Bob Proulx.
86228
86229 1999-08-02  Jim Meyering  <meyering@ascend.com>
86230
86231         * m4/jm-macros.m4: Add a comment.
86232
86233 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86234
86235         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
86236         <inttypes.h> defines strtoumax as a macro (and not as a
86237         function).
86238
86239 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86240
86241         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
86242         that we can shift, multiply and divide unsigned long long
86243         values; Ultrix cc can't do it.
86244
86245 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86246
86247         * m4/mktime.m4: New file, which is a preview of what should appear
86248         in the next public autoconf release.
86249
86250 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86251
86252         * m4/lfs.m4: Remove this file.
86253         * m4/largefile.m4: New file.  It contains the old contents of
86254         lfs.m4, except that all names with prefix AC_LFS have been
86255         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86256         compatible with future autoconf versions.  Also, some minor m4
86257         quoting problems have been fixed.
86258
86259 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86260
86261         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86262         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86263         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86264         and simplify the shell code.
86265
86266 1999-08-01  Jim Meyering  <meyering@ascend.com>
86267
86268         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86269         m4.
86270
86271 1999-07-20  Jim Meyering  <meyering@ascend.com>
86272
86273         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86274
86275 1999-07-15  Jim Meyering  <meyering@ascend.com>
86276
86277         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86278
86279 1999-05-22  Jim Meyering  <meyering@ascend.com>
86280
86281         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86282
86283 1999-05-20  Jim Meyering  <meyering@ascend.com>
86284
86285         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86286         Add a colon after each `then' in case $4 is empty.
86287
86288 1999-05-16  Jim Meyering  <meyering@ascend.com>
86289
86290         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86291
86292 1999-05-10  Jim Meyering  <meyering@ascend.com>
86293
86294         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86295
86296         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86297         AC_FUNC_MKTIME.
86298
86299 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86300
86301         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86302
86303 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86304
86305         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86306         not CPPFLAGS, so that linking works correctly in IRIX.
86307
86308 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86309
86310         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86311
86312 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86313
86314         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86315         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86316         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86317         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86318         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86319
86320         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86321
86322 1999-04-20  Jim Meyering  <meyering@ascend.com>
86323
86324         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86325         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86326         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86327
86328 1999-04-18  Jim Meyering  <meyering@ascend.com>
86329
86330         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86331         * m4/jm-macros.m4: Use it.
86332
86333 1999-04-06  Jim Meyering  <meyering@ascend.com>
86334
86335         * m4/strftime.m4: Remove test for %f.
86336
86337 1999-03-29  Jim Meyering  <meyering@ascend.com>
86338
86339         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86340         superset of the AC_TYPE_* checks in the textutils, fileutils,
86341         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86342         AC_TYPE_PID_T.
86343
86344 1999-03-28  Jim Meyering  <meyering@ascend.com>
86345
86346         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86347         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86348         replaced e.g., in the *.sh files of the sh-utils.
86349
86350 1999-03-20  Jim Meyering  <meyering@ascend.com>
86351
86352         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86353         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86354         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86355
86356 1999-03-19  Jim Meyering  <meyering@ascend.com>
86357
86358         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86359
86360 1999-03-12  Jim Meyering  <meyering@ascend.com>
86361
86362         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86363
86364 1999-03-07  Jim Meyering  <meyering@ascend.com>
86365
86366         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86367         declared.
86368
86369 1999-02-17  Jim Meyering  <meyering@ascend.com>
86370
86371         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86372         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86373
86374 1999-02-07  Jim Meyering  <meyering@ascend.com>
86375
86376         * m4/group-member.m4: New file -- extracted from sh-utils'
86377         configure.in.
86378
86379         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86380         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86381
86382 1999-02-06  Jim Meyering  <meyering@ascend.com>
86383
86384         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86385         * m4/fnmatch.m4: Likewise.
86386         * m4/getgroups.m4: Likewise.
86387         * m4/lstat.m4: Likewise.
86388         * m4/malloc.m4: Likewise.
86389         * m4/putenv.m4: Likewise.
86390         * m4/realloc.m4: Likewise.
86391         * m4/regex.m4: Likewise.
86392         * m4/stat.m4: Likewise.
86393         * m4/strftime.m4: Likewise.
86394         Suggestion from Alain Magloire.
86395
86396         * m4/chown.m4: Use `.$ac_objext', not `.o'.
86397         * m4/fnmatch.m4: Likewise.
86398         * m4/getgroups.m4: Likewise.
86399         * m4/getline.m4: Likewise.
86400         * m4/lstat.m4: Likewise.
86401         * m4/malloc.m4: Likewise.
86402         * m4/memcmp.m4: Likewise.
86403         * m4/putenv.m4: Likewise.
86404         * m4/realloc.m4: Likewise.
86405         * m4/regex.m4: Likewise.
86406         * m4/stat.m4: Likewise.
86407         * m4/strftime.m4: Likewise.
86408         Suggestion from Alain Magloire.
86409
86410         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
86411         an argument.
86412
86413         * m4/regex.m4: Add a run-time Test for proper operation of
86414         re_compile_pattern.
86415
86416 1999-01-31  Jim Meyering  <meyering@ascend.com>
86417
86418         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
86419
86420 1999-01-30  Jim Meyering  <meyering@ascend.com>
86421
86422         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
86423
86424         * m4/jm-mktime.m4: Make this a wrapper around the official
86425         AM_FUNC_MKTIME rather than my private copy, now that the official one
86426         is up to date.
86427         * m4/mktime.m4: Remove file.
86428
86429         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
86430         * m4/uptime.m4: Likewise.
86431         * m4/uintmax_t.m4: Likewise.
86432
86433 1999-01-28  Jim Meyering  <meyering@ascend.com>
86434
86435         * m4/jm-macros.m4: Use jm_AFS.
86436         * m4/afs.m4: New file (from fileutils' configure.in).
86437
86438         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
86439         * m4/chown.m4: Likewise.
86440         * m4/d-ino.m4: Likewise.
86441         * m4/d-type.m4: Likewise.
86442         * m4/fnmatch.m4: Likewise.
86443         * m4/getgroups.m4: Likewise.
86444         * m4/gettext.m4: Likewise.
86445         * m4/jm-mktime.m4: Likewise.
86446         * m4/jm-winsz2.m4: Likewise.
86447         * m4/lcmessage.m4: Likewise.
86448         * m4/ls-mntd-fs.m4: Likewise.
86449         * m4/malloc.m4: Likewise.
86450         * m4/memcmp.m4: Likewise.
86451         * m4/putenv.m4: Likewise.
86452         * m4/realloc.m4: Likewise.
86453         * m4/st_mtim.m4: Likewise.
86454         * m4/strftime.m4: Likewise.
86455
86456 1999-01-16  Jim Meyering  <meyering@ascend.com>
86457
86458         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
86459         (ARGMATCH_DIE_DECL): Define.
86460
86461 1999-01-12  Jim Meyering  <meyering@ascend.com>
86462
86463         * m4/Makefile.am.in: Rewrite to avoid using fmt.
86464         Reported by Lars Hecking.
86465
86466 1999-01-10  Jim Meyering  <meyering@ascend.com>
86467
86468         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
86469         gross kludge.
86470         * m4/inttypes_h.m4: Likewise.
86471         * m4/lstat.m4: Likewise.
86472         * m4/malloc.m4: Likewise.
86473         * m4/readdir.m4: Likewise.
86474         * m4/realloc.m4: Likewise.
86475         * m4/st_dm_mode.m4: Likewise.
86476         * m4/stat.m4: Likewise.
86477         * m4/utimbuf.m4: Likewise.
86478         * m4/utimes.m4: Likewise.
86479
86480         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86481         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86482         comments in config.h.in are meaningful.
86483
86484         * m4/jm-macros.m4: Require autoconf-2.13 here.
86485
86486         * m4/regex.m4: By default, don't use the included regex.c on systems
86487         with glibc 2.  Suggestion from Uli Drepper.
86488
86489 1999-01-02  Jim Meyering  <meyering@ascend.com>
86490
86491         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86492
86493 1998-12-18  Jim Meyering  <meyering@ascend.com>
86494
86495         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86496         Based on a suggestion from Lars Hecking.
86497
86498 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86499
86500         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86501
86502 1998-11-16  Jim Meyering  <meyering@ascend.com>
86503
86504         * m4/lfs.m4: Double-quote the `uname...` expression.
86505
86506 1998-11-14  Jim Meyering  <meyering@ascend.com>
86507
86508         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86509         * m4/stat.m4: Likewise.
86510
86511 1998-11-03  Jim Meyering  <meyering@ascend.com>
86512
86513         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86514         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86515
86516 1998-10-18  Jim Meyering  <meyering@ascend.com>
86517
86518         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86519
86520 1998-10-17  Jim Meyering  <meyering@ascend.com>
86521
86522         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86523         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86524         calls for those previously hard-coded headers.  Instead, take a new
86525         parameter.
86526         (jm_CHECK_DECLARATIONS): Reflect interface change.
86527         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86528         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86529
86530         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86531
86532 1998-10-14  Jim Meyering  <meyering@ascend.com>
86533
86534         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86535         instead of "TZ=America/Vancouver".  From Paul Eggert.
86536
86537 1998-10-11  Jim Meyering  <meyering@ascend.com>
86538
86539         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86540         This adds a test for a recently added compatibility fix for mktime.c.
86541         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86542
86543 1998-09-27  Jim Meyering  <meyering@ascend.com>
86544
86545         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86546
86547         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86548         ../configure.in, including a change from Gordon Matzigkeit to allow
86549         cross-compiling for the Hurd.
86550
86551         * m4/glibc.m4: New file/macro to test for the GNU C Library
86552         versions 1 and 2.  From Gordon Matzigkeit.
86553         Indent.
86554
86555 1998-09-21  Jim Meyering  <meyering@ascend.com>
86556
86557         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86558
86559 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86560
86561         Port nanosecond-resolution times to UnixWare 2.1.2 and
86562         pedantic Solaris 2.6.
86563
86564         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86565         AC_STRUCT_ST_MTIM.
86566         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86567         Generate name of ns member, instead of just 1 or undef.
86568         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86569
86570 1998-08-15  Jim Meyering  <meyering@ascend.com>
86571
86572         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86573         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86574         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86575         instead of jm_TYPE_SSIZE_T.
86576
86577 1998-08-12  Jim Meyering  <meyering@ascend.com>
86578
86579         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86580
86581 1998-08-02  Jim Meyering  <meyering@ascend.com>
86582
86583         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86584         in acconfig.h manually.
86585
86586 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86587
86588         * m4/st_mtim.m4: New file.
86589
86590 1998-07-28  Jim Meyering  <meyering@ascend.com>
86591
86592         * m4/utimes.m4: Undef stat.
86593
86594 1998-07-25  Jim Meyering  <meyering@ascend.com>
86595
86596         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86597         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86598
86599 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86600
86601         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86602         uid and gid actually remain unchanged.
86603
86604 1998-07-07  Jim Meyering  <meyering@ascend.com>
86605
86606         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86607
86608 1998-07-04  Jim Meyering  <meyering@ascend.com>
86609
86610         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86611         to prove that this macro can be used in packages without regex.c.
86612
86613 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86614
86615         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86616         is to be used.
86617
86618 1998-07-03  Jim Meyering  <meyering@ascend.com>
86619
86620         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86621
86622         * m4/gettext.m4: New file -- from gettext-0.10.35.
86623         * m4/lcmessage.m4: Likewise.
86624         * m4/progtest.m4: Likewise.
86625
86626         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86627         * m4/jm-macros.m4: Require the new macro.
86628
86629 1998-06-29  Jim Meyering  <meyering@ascend.com>
86630
86631         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86632         for the definition of NGROUPS (used in a system header included
86633         by sys/mount.h).
86634
86635 1998-06-28  Jim Meyering  <meyering@ascend.com>
86636
86637         * m4/ls-mntd-fs.m4: New file.
86638         * m4/fstypename.m4: New file.
86639
86640         * m4/jm-macros.m4: Require the new macro.
86641         * m4/jm-glibc-io.m4: New file.
86642
86643 1998-05-19  Jim Meyering  <meyering@ascend.com>
86644
86645         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86646         * m4/lchown.m4: New file.
86647
86648         * m4/Makefile.am.in: New file.
86649         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86650
86651 1998-05-14  Jim Meyering  <meyering@ascend.com>
86652
86653         * m4/Makefile.am (EXTRA_DIST): Add them.
86654         * m4/jm-macros.m4: New file.
86655         * m4/utimbuf.m4: New file.
86656
86657 1998-05-12  Jim Meyering  <meyering@ascend.com>
86658
86659         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86660
86661 1998-05-11  Jim Meyering  <meyering@ascend.com>
86662
86663         * m4/isc-posix.m4: New file.
86664
86665 1998-05-10  Jim Meyering  <meyering@ascend.com>
86666
86667         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86668
86669 1998-05-09  Jim Meyering  <meyering@ascend.com>
86670
86671         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86672         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86673         with automake.
86674
86675         * m4/ssize_t.m4: New file.
86676         * m4/mktime.m4: Remove file -- the new automake has this now.
86677
86678 1998-04-26  Jim Meyering  <meyering@ascend.com>
86679
86680         * m4/assert.m4: New file.
86681         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86682
86683 1998-04-05  Jim Meyering  <meyering@ascend.com>
86684
86685         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86686         (jm_PREREQ): Use it here.
86687
86688 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86689
86690         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86691         in acconfig.h.
86692
86693 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86694
86695         * m4/prereq.m4: New file.
86696         * m4/error.m4: New file.
86697         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86698
86699 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86700
86701         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86702         cache-check for the same variable -- that defeated the purpose of
86703         the test; the test program was never run.  This was a problem only
86704         on systems with losing getline functions -- HP-UX 10.20 is one.
86705         Reported by Bjorn Helgaas.
86706
86707 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86708
86709         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86710
86711 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86712
86713         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86714
86715         * m4/const.m4: New file.  Use an initializer in this declaration
86716         typedef int charset[2]; const charset x;
86717         Reported by Bob Glickstein.
86718
86719 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86720
86721         * m4/chown.m4: Fix reversed types on -1 args to chown.
86722         From Kaveh Ghazi.
86723
86724 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86725
86726         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86727         Add lseek and memchr.
86728
86729         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86730         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86731         have a 20-character limit on names.
86732
86733 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86734
86735         * m4/inttypes_h.m4: New file.
86736         * m4/uintmax_t.m4: New file.
86737         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86738
86739
86740         -----
86741
86742         Local Variables:
86743         coding: utf-8
86744         End:
86745
86746         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86747
86748         Copying and distribution of this file, with or without
86749         modification, are permitted provided the copyright notice
86750         and this notice are preserved.